Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 16523:9d625303f914 legacy-trunk
Reindent a function that was somehow indented by 7 spaces. Also did a
spaces->tab conversion for fields added to struct compiling.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 09 Feb 2001 15:06:42 +0000 |
| parents | 6496844c4a42 |
| children | a47d93ef103a |
line wrap: on
line diff
--- a/Python/compile.c Fri Feb 09 13:37:37 2001 +0000 +++ b/Python/compile.c Fri Feb 09 15:06:42 2001 +0000 @@ -193,19 +193,19 @@ static int all_name_chars(unsigned char *s) { - static char ok_name_char[256]; - static unsigned char *name_chars = (unsigned char *)NAME_CHARS; - - if (ok_name_char[*name_chars] == 0) { - unsigned char *p; - for (p = name_chars; *p; p++) - ok_name_char[*p] = 1; - } - while (*s) { - if (ok_name_char[*s++] == 0) - return 0; - } - return 1; + static char ok_name_char[256]; + static unsigned char *name_chars = (unsigned char *)NAME_CHARS; + + if (ok_name_char[*name_chars] == 0) { + unsigned char *p; + for (p = name_chars; *p; p++) + ok_name_char[*p] = 1; + } + while (*s) { + if (ok_name_char[*s++] == 0) + return 0; + } + return 1; } static int @@ -353,9 +353,9 @@ int c_last_addr, c_last_line, c_lnotab_next; char *c_private; /* for private name mangling */ int c_tmpname; /* temporary local name counter */ - int c_nested; /* Is block nested funcdef or lamdef? */ - int c_closure; /* Is nested w/freevars? */ - struct symtable *c_symtable; /* pointer to module symbol table */ + int c_nested; /* Is block nested funcdef or lamdef? */ + int c_closure; /* Is nested w/freevars? */ + struct symtable *c_symtable; /* pointer to module symbol table */ }; int is_free(int v)
