[Python-checkins] python/dist/src/Include symtable.h,2.9.18.4,2.9.18.5

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Fri, 30 Aug 2002 13:04:51 -0700


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

Modified Files:
      Tag: ast-branch
	symtable.h 
Log Message:
Cleanup symbol table.

Add public PySymtable_Lookup() function that returns an entry for a
block given the address of its AST node.

Remove lookup code from PySTEntry_New() since we only call this when
the symbol table is created.

Track change in asdl_seq_ API, e.g. get -> GET.




Index: symtable.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/symtable.h,v
retrieving revision 2.9.18.4
retrieving revision 2.9.18.5
diff -C2 -d -r2.9.18.4 -r2.9.18.5
*** symtable.h	23 Aug 2002 18:09:41 -0000	2.9.18.4
--- symtable.h	30 Aug 2002 20:04:48 -0000	2.9.18.5
***************
*** 48,54 ****
  DL_IMPORT(int) PyST_GetScope(PySTEntryObject *, PyObject *);
  
- DL_IMPORT(struct symtable *) PyNode_CompileSymtable(struct _node *, char *);
  DL_IMPORT(struct symtable *) PySymtable_Build(mod_ty, const char *, 
  					      PyFutureFeatures *);
  
  DL_IMPORT(void) PySymtable_Free(struct symtable *);
--- 48,54 ----
  DL_IMPORT(int) PyST_GetScope(PySTEntryObject *, PyObject *);
  
  DL_IMPORT(struct symtable *) PySymtable_Build(mod_ty, const char *, 
  					      PyFutureFeatures *);
+ DL_IMPORT(PySTEntryObject *) PySymtable_Lookup(struct symtable *, void *);
  
  DL_IMPORT(void) PySymtable_Free(struct symtable *);