OLD | NEW |
1 // Inferno utils/6l/span.c | 1 // Inferno utils/6l/span.c |
2 // http://code.google.com/p/inferno-os/source/browse/utils/6l/span.c | 2 // http://code.google.com/p/inferno-os/source/browse/utils/6l/span.c |
3 // | 3 // |
4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. | 4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. |
5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) | 5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) |
6 // Portions Copyright © 1997-1999 Vita Nuova Limited | 6 // Portions Copyright © 1997-1999 Vita Nuova Limited |
7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov
a.com) | 7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov
a.com) |
8 // Portions Copyright © 2004,2006 Bruce Ellis | 8 // Portions Copyright © 2004,2006 Bruce Ellis |
9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) | 9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) |
10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others | 10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 s->type = STYPE; | 344 s->type = STYPE; |
345 s->size = 0; | 345 s->size = 0; |
346 s->reachable = 1; | 346 s->reachable = 1; |
347 | 347 |
348 s = lookup("go.string.*", 0); | 348 s = lookup("go.string.*", 0); |
349 s->type = SGOSTRING; | 349 s->type = SGOSTRING; |
350 s->size = 0; | 350 s->size = 0; |
351 s->reachable = 1; | 351 s->reachable = 1; |
352 | 352 |
353 symt = lookup("symtab", 0); | 353 symt = lookup("symtab", 0); |
354 » symt->type = SRODATA; | 354 » symt->type = SSYMTAB; |
355 symt->size = 0; | 355 symt->size = 0; |
356 symt->reachable = 1; | 356 symt->reachable = 1; |
357 ········ | 357 ········ |
358 // assign specific types so that they sort together. | 358 // assign specific types so that they sort together. |
359 // within a type they sort by size, so the .* symbols | 359 // within a type they sort by size, so the .* symbols |
360 // just defined above will be first. | 360 // just defined above will be first. |
361 // hide the specific symbols. | 361 // hide the specific symbols. |
362 for(s = allsym; s != S; s = s->allsym) { | 362 for(s = allsym; s != S; s = s->allsym) { |
363 if(!s->reachable || s->special || s->type != SRODATA) | 363 if(!s->reachable || s->special || s->type != SRODATA) |
364 continue; | 364 continue; |
365 if(strncmp(s->name, "type.", 5) == 0) { | 365 if(strncmp(s->name, "type.", 5) == 0) { |
366 s->type = STYPE; | 366 s->type = STYPE; |
367 s->hide = 1; | 367 s->hide = 1; |
368 } | 368 } |
369 if(strncmp(s->name, "go.string.", 10) == 0) { | 369 if(strncmp(s->name, "go.string.", 10) == 0) { |
370 s->type = SGOSTRING; | 370 s->type = SGOSTRING; |
371 s->hide = 1; | 371 s->hide = 1; |
372 } | 372 } |
373 } | 373 } |
374 | 374 |
375 if(debug['s']) | 375 if(debug['s']) |
376 return; | 376 return; |
377 genasmsym(putsymb); | 377 genasmsym(putsymb); |
378 } | 378 } |
OLD | NEW |