[Python-checkins] r42691 - in python/trunk: Include/symtable.h Python/symtable.c

neal.norwitz python-checkins at python.org
Tue Feb 28 23:36:47 CET 2006


Author: neal.norwitz
Date: Tue Feb 28 23:36:46 2006
New Revision: 42691

Modified:
   python/trunk/Include/symtable.h
   python/trunk/Python/symtable.c
Log:
No need to export PySTEntry_New, it is only used in symtable.c

Modified: python/trunk/Include/symtable.h
==============================================================================
--- python/trunk/Include/symtable.h	(original)
+++ python/trunk/Include/symtable.h	Tue Feb 28 23:36:46 2006
@@ -1,5 +1,6 @@
 #ifndef Py_SYMTABLE_H
 #define Py_SYMTABLE_H
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -48,8 +49,6 @@
 
 #define PySTEntry_Check(op) ((op)->ob_type == &PySTEntry_Type)
 
-PyAPI_FUNC(PySTEntryObject *) \
-	PySTEntry_New(struct symtable *, identifier, _Py_block_ty, void *, int);
 PyAPI_FUNC(int) PyST_GetScope(PySTEntryObject *, PyObject *);
 
 PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *, 

Modified: python/trunk/Python/symtable.c
==============================================================================
--- python/trunk/Python/symtable.c	(original)
+++ python/trunk/Python/symtable.c	Tue Feb 28 23:36:46 2006
@@ -14,7 +14,8 @@
 #define IMPORT_STAR_WARNING "import * only allowed at module level"
 
 
-PySTEntryObject *
+/* XXX(nnorwitz): change name since static? */
+static PySTEntryObject *
 PySTEntry_New(struct symtable *st, identifier name, _Py_block_ty block,
 	      void *key, int lineno)
 {


More information about the Python-checkins mailing list