]> granicus.if.org Git - python/commitdiff
No need to export PySTEntry_New, it is only used in symtable.c
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 28 Feb 2006 22:36:46 +0000 (22:36 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 28 Feb 2006 22:36:46 +0000 (22:36 +0000)
Include/symtable.h
Python/symtable.c

index fefe08bb31b3b9637b00a1fe5d86e95d73e42974..222831a004926b7f7b4552660995f56802f8dcc0 100644 (file)
@@ -1,5 +1,6 @@
 #ifndef Py_SYMTABLE_H
 #define Py_SYMTABLE_H
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -48,8 +49,6 @@ PyAPI_DATA(PyTypeObject) PySTEntry_Type;
 
 #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 *, 
index bc0fc3364a7fd8fa394cb78e8736b0b7b34ebdf7..c8eab5807689ef4d933e4e49afe8b34259855c6b 100644 (file)
@@ -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)
 {