Mercurial > cpython-lru_cache-weakref
comparison Python/compile.c @ 17736:437482fe55e6 legacy-trunk
SF patch #416249, from Mark Favas: 2.1c1 compile: unused vrbl cleanup
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Wed, 09 May 2001 18:53:51 +0000 |
| parents | e3f0fd38c24b |
| children | 889db6d55506 |
comparison
equal
deleted
inserted
replaced
| 17735:147632ad1bcc | 17736:437482fe55e6 |
|---|---|
| 3537 nch = NCH(n); | 3537 nch = NCH(n); |
| 3538 /* Enter all arguments in table of locals */ | 3538 /* Enter all arguments in table of locals */ |
| 3539 for (i = 0, narg = 0; i < nch; i++) { | 3539 for (i = 0, narg = 0; i < nch; i++) { |
| 3540 node *ch = CHILD(n, i); | 3540 node *ch = CHILD(n, i); |
| 3541 node *fp; | 3541 node *fp; |
| 3542 char *name; | |
| 3543 if (TYPE(ch) == STAR || TYPE(ch) == DOUBLESTAR) | 3542 if (TYPE(ch) == STAR || TYPE(ch) == DOUBLESTAR) |
| 3544 break; | 3543 break; |
| 3545 REQ(ch, fpdef); /* fpdef: NAME | '(' fplist ')' */ | 3544 REQ(ch, fpdef); /* fpdef: NAME | '(' fplist ')' */ |
| 3546 fp = CHILD(ch, 0); | 3545 fp = CHILD(ch, 0); |
| 3547 if (TYPE(fp) != NAME) { | 3546 if (TYPE(fp) != NAME) { |
| 3548 name = nbuf; | |
| 3549 sprintf(nbuf, ".%d", i); | 3547 sprintf(nbuf, ".%d", i); |
| 3550 complex = 1; | 3548 complex = 1; |
| 3551 } | 3549 } |
| 3552 narg++; | 3550 narg++; |
| 3553 /* all name updates handled by symtable */ | 3551 /* all name updates handled by symtable */ |
