Since the *_Init() are private, prefix with _, suggested by Skip
This commit is contained in:
parent
744f0fd655
commit
b2501f4cd1
|
@ -30,7 +30,7 @@ PyAPI_DATA(PyTypeObject) PyInt_Type;
|
|||
#define PyInt_Check(op) PyObject_TypeCheck(op, &PyInt_Type)
|
||||
#define PyInt_CheckExact(op) ((op)->ob_type == &PyInt_Type)
|
||||
|
||||
PyAPI_FUNC(int) PyInt_Init(void);
|
||||
PyAPI_FUNC(int) _PyInt_Init(void);
|
||||
PyAPI_FUNC(PyObject *) PyInt_FromString(char*, char**, int);
|
||||
#ifdef Py_USING_UNICODE
|
||||
PyAPI_FUNC(PyObject *) PyInt_FromUnicode(Py_UNICODE*, int, int);
|
||||
|
|
|
@ -100,7 +100,7 @@ PyAPI_FUNC(PyObject *) _PySys_Init(void);
|
|||
PyAPI_FUNC(void) _PyImport_Init(void);
|
||||
PyAPI_FUNC(void) _PyExc_Init(void);
|
||||
PyAPI_FUNC(void) _PyImportHooks_Init(void);
|
||||
PyAPI_FUNC(int) PyFrame_Init(void);
|
||||
PyAPI_FUNC(int) _PyFrame_Init(void);
|
||||
|
||||
/* Various internal finalizers */
|
||||
PyAPI_FUNC(void) _PyExc_Fini(void);
|
||||
|
|
|
@ -527,7 +527,7 @@ PyTypeObject PyFrame_Type = {
|
|||
|
||||
static PyObject *builtin_object;
|
||||
|
||||
int PyFrame_Init()
|
||||
int _PyFrame_Init()
|
||||
{
|
||||
builtin_object = PyString_InternFromString("__builtins__");
|
||||
return (builtin_object != NULL);
|
||||
|
|
|
@ -939,7 +939,7 @@ PyTypeObject PyInt_Type = {
|
|||
};
|
||||
|
||||
int
|
||||
PyInt_Init(void)
|
||||
_PyInt_Init(void)
|
||||
{
|
||||
PyIntObject *v;
|
||||
int ival;
|
||||
|
|
|
@ -124,10 +124,10 @@ Py_Initialize(void)
|
|||
|
||||
_Py_ReadyTypes();
|
||||
|
||||
if (!PyFrame_Init())
|
||||
if (!_PyFrame_Init())
|
||||
Py_FatalError("Py_Initialize: can't init frames");
|
||||
|
||||
if (!PyInt_Init())
|
||||
if (!_PyInt_Init())
|
||||
Py_FatalError("Py_Initialize: can't init ints");
|
||||
|
||||
interp->modules = PyDict_New();
|
||||
|
|
Loading…
Reference in New Issue