Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 090b3dd

Browse files
committed
No need to export PySTEntry_New, it is only used in symtable.c
1 parent 7ef75e4 commit 090b3dd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Include/symtable.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#ifndef Py_SYMTABLE_H
22
#define Py_SYMTABLE_H
3+
34
#ifdef __cplusplus
45
extern "C" {
56
#endif
@@ -48,8 +49,6 @@ PyAPI_DATA(PyTypeObject) PySTEntry_Type;
4849

4950
#define PySTEntry_Check(op) ((op)->ob_type == &PySTEntry_Type)
5051

51-
PyAPI_FUNC(PySTEntryObject *) \
52-
PySTEntry_New(struct symtable *, identifier, _Py_block_ty, void *, int);
5352
PyAPI_FUNC(int) PyST_GetScope(PySTEntryObject *, PyObject *);
5453

5554
PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,

Python/symtable.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
#define IMPORT_STAR_WARNING "import * only allowed at module level"
1515

1616

17-
PySTEntryObject *
17+
/* XXX(nnorwitz): change name since static? */
18+
static PySTEntryObject *
1819
PySTEntry_New(struct symtable *st, identifier name, _Py_block_ty block,
1920
void *key, int lineno)
2021
{

0 commit comments

Comments
 (0)