[Python-checkins] CVS: python/dist/src/Python compile.c,2.159,2.160
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 09 Feb 2001 07:06:45 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv16567
Modified Files:
compile.c
Log Message:
Reindent a function that was somehow indented by 7 spaces. Also did a
spaces->tab conversion for fields added to struct compiling.
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.159
retrieving revision 2.160
diff -C2 -r2.159 -r2.160
*** compile.c 2001/02/02 20:01:10 2.159
--- compile.c 2001/02/09 15:06:42 2.160
***************
*** 194,210 ****
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;
}
--- 194,210 ----
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;
}
***************
*** 354,360 ****
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 */
};
--- 354,360 ----
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 */
};