From: Neal Norwitz Date: Tue, 28 Feb 2006 22:36:46 +0000 (+0000) Subject: No need to export PySTEntry_New, it is only used in symtable.c X-Git-Tag: v2.5a0~464 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=090b3dde06c7590ed7d789bd01a7d800cc09a348;p=thirdparty%2FPython%2Fcpython.git No need to export PySTEntry_New, it is only used in symtable.c --- diff --git a/Include/symtable.h b/Include/symtable.h index fefe08bb31b3..222831a00492 100644 --- a/Include/symtable.h +++ b/Include/symtable.h @@ -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 *, diff --git a/Python/symtable.c b/Python/symtable.c index bc0fc3364a7f..c8eab5807689 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -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) {