There was an error while loading. Please reload this page.
1 parent 7ef75e4 commit 090b3ddCopy full SHA for 090b3dd
2 files changed
Include/symtable.h
@@ -1,5 +1,6 @@
1
#ifndef Py_SYMTABLE_H
2
#define Py_SYMTABLE_H
3
+
4
#ifdef __cplusplus
5
extern "C" {
6
#endif
@@ -48,8 +49,6 @@ PyAPI_DATA(PyTypeObject) PySTEntry_Type;
48
49
50
#define PySTEntry_Check(op) ((op)->ob_type == &PySTEntry_Type)
51
-PyAPI_FUNC(PySTEntryObject *) \
52
- PySTEntry_New(struct symtable *, identifier, _Py_block_ty, void *, int);
53
PyAPI_FUNC(int) PyST_GetScope(PySTEntryObject *, PyObject *);
54
55
PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,
Python/symtable.c
@@ -14,7 +14,8 @@
14
#define IMPORT_STAR_WARNING "import * only allowed at module level"
15
16
17
-PySTEntryObject *
+/* XXX(nnorwitz): change name since static? */
18
+static PySTEntryObject *
19
PySTEntry_New(struct symtable *st, identifier name, _Py_block_ty block,
20
void *key, int lineno)
21
{
0 commit comments