mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
No need to export PySTEntry_New, it is only used in symtable.c
This commit is contained in:
parent
7ef75e46bb
commit
090b3dde06
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
#ifndef Py_SYMTABLE_H
|
#ifndef Py_SYMTABLE_H
|
||||||
#define Py_SYMTABLE_H
|
#define Py_SYMTABLE_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -48,8 +49,6 @@ PyAPI_DATA(PyTypeObject) PySTEntry_Type;
|
||||||
|
|
||||||
#define PySTEntry_Check(op) ((op)->ob_type == &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(int) PyST_GetScope(PySTEntryObject *, PyObject *);
|
||||||
|
|
||||||
PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,
|
PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@
|
||||||
#define IMPORT_STAR_WARNING "import * only allowed at module level"
|
#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,
|
PySTEntry_New(struct symtable *st, identifier name, _Py_block_ty block,
|
||||||
void *key, int lineno)
|
void *key, int lineno)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue