mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Reindent a function that was somehow indented by 7 spaces. Also did a
spaces->tab conversion for fields added to struct compiling.
This commit is contained in:
parent
85d6edfc83
commit
cd90c20b62
1 changed files with 15 additions and 15 deletions
|
@ -193,19 +193,19 @@ PyTypeObject PyCode_Type = {
|
||||||
static int
|
static int
|
||||||
all_name_chars(unsigned char *s)
|
all_name_chars(unsigned char *s)
|
||||||
{
|
{
|
||||||
static char ok_name_char[256];
|
static char ok_name_char[256];
|
||||||
static unsigned char *name_chars = (unsigned char *)NAME_CHARS;
|
static unsigned char *name_chars = (unsigned char *)NAME_CHARS;
|
||||||
|
|
||||||
if (ok_name_char[*name_chars] == 0) {
|
if (ok_name_char[*name_chars] == 0) {
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
for (p = name_chars; *p; p++)
|
for (p = name_chars; *p; p++)
|
||||||
ok_name_char[*p] = 1;
|
ok_name_char[*p] = 1;
|
||||||
}
|
}
|
||||||
while (*s) {
|
while (*s) {
|
||||||
if (ok_name_char[*s++] == 0)
|
if (ok_name_char[*s++] == 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -353,9 +353,9 @@ struct compiling {
|
||||||
int c_last_addr, c_last_line, c_lnotab_next;
|
int c_last_addr, c_last_line, c_lnotab_next;
|
||||||
char *c_private; /* for private name mangling */
|
char *c_private; /* for private name mangling */
|
||||||
int c_tmpname; /* temporary local name counter */
|
int c_tmpname; /* temporary local name counter */
|
||||||
int c_nested; /* Is block nested funcdef or lamdef? */
|
int c_nested; /* Is block nested funcdef or lamdef? */
|
||||||
int c_closure; /* Is nested w/freevars? */
|
int c_closure; /* Is nested w/freevars? */
|
||||||
struct symtable *c_symtable; /* pointer to module symbol table */
|
struct symtable *c_symtable; /* pointer to module symbol table */
|
||||||
};
|
};
|
||||||
|
|
||||||
int is_free(int v)
|
int is_free(int v)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue