Since the *_Init() are private, prefix with _, suggested by Skip

This commit is contained in:
Neal Norwitz 2002-12-31 03:42:13 +00:00
parent 744f0fd655
commit b2501f4cd1
5 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -939,7 +939,7 @@ PyTypeObject PyInt_Type = {
};
int
PyInt_Init(void)
_PyInt_Init(void)
{
PyIntObject *v;
int ival;

View File

@ -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();