LEFT | RIGHT |
(no file at all) | |
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 if(strncmp(s->name, "go.string.", 10) == 0) { | 418 if(strncmp(s->name, "go.string.", 10) == 0) { |
419 s->type = SGOSTRING; | 419 s->type = SGOSTRING; |
420 s->hide = 1; | 420 s->hide = 1; |
421 s->outer = symgostring; | 421 s->outer = symgostring; |
422 } | 422 } |
423 if(strncmp(s->name, "go.func.", 8) == 0) { | 423 if(strncmp(s->name, "go.func.", 8) == 0) { |
424 s->type = SGOFUNC; | 424 s->type = SGOFUNC; |
425 s->hide = 1; | 425 s->hide = 1; |
426 s->outer = symgofunc; | 426 s->outer = symgofunc; |
427 } | 427 } |
428 » » if(strstr(s->name, ".gcargs·") != nil || strstr(s->name, ".gcloc
als·") != nil || strncmp(s->name, "gcargs·", 8) == 0 || strncmp(s->name, "gcloca
ls·", 10) == 0) { | 428 » » if(strncmp(s->name, "gcargs.", 7) == 0 || strncmp(s->name, "gclo
cals.", 9) == 0 || strncmp(s->name, "gclocals·", 10) == 0) { |
429 s->type = SGOFUNC; | 429 s->type = SGOFUNC; |
430 s->hide = 1; | 430 s->hide = 1; |
431 s->outer = symgofunc; | 431 s->outer = symgofunc; |
432 s->align = 4; | 432 s->align = 4; |
433 liveness += (s->size+s->align-1)&~(s->align-1); | 433 liveness += (s->size+s->align-1)&~(s->align-1); |
434 } | 434 } |
435 } | 435 } |
436 } | 436 } |
LEFT | RIGHT |