[Python-checkins] python/dist/src/Modules symtablemodule.c,1.5,1.5.8.1

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Sun, 07 Jul 2002 10:47:44 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv579/Modules

Modified Files:
      Tag: ast-branch
	symtablemodule.c 
Log Message:
checkin of partial progress:
Revise symtable to use AST.

Move the code to symtable.c in the process.
Haven't yet nuked the old code in compile.c.

Note that this code doesn't even compile.


Index: symtablemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/symtablemodule.c,v
retrieving revision 1.5
retrieving revision 1.5.8.1
diff -C2 -d -r1.5 -r1.5.8.1
*** symtablemodule.c	6 Dec 2001 14:34:58 -0000	1.5
--- symtablemodule.c	7 Jul 2002 17:47:42 -0000	1.5.8.1
***************
*** 2,5 ****
--- 2,6 ----
  
  #include "compile.h"
+ #include "Python-ast.h"
  #include "symtable.h"
  
***************
*** 63,69 ****
  	PyModule_AddIntConstant(m, "DEF_BOUND", DEF_BOUND);
  
! 	PyModule_AddIntConstant(m, "TYPE_FUNCTION", TYPE_FUNCTION);
! 	PyModule_AddIntConstant(m, "TYPE_CLASS", TYPE_CLASS);
! 	PyModule_AddIntConstant(m, "TYPE_MODULE", TYPE_MODULE);
  
  	PyModule_AddIntConstant(m, "OPT_IMPORT_STAR", OPT_IMPORT_STAR);
--- 64,70 ----
  	PyModule_AddIntConstant(m, "DEF_BOUND", DEF_BOUND);
  
! 	PyModule_AddIntConstant(m, "TYPE_FUNCTION", FunctionScope);
! 	PyModule_AddIntConstant(m, "TYPE_CLASS", ClassScope);
! 	PyModule_AddIntConstant(m, "TYPE_MODULE", ModuleScope);
  
  	PyModule_AddIntConstant(m, "OPT_IMPORT_STAR", OPT_IMPORT_STAR);