diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-31 03:42:13 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-31 03:42:13 (GMT) |
commit | b2501f4cd18f65cc671482ceb1abe88c289b664c (patch) | |
tree | 5e661dfd4229e4eeb41d07fcc58a2040208b95ab | |
parent | 744f0fd655cd55676532119894e2845d0533608b (diff) | |
download | cpython-b2501f4cd18f65cc671482ceb1abe88c289b664c.zip cpython-b2501f4cd18f65cc671482ceb1abe88c289b664c.tar.gz cpython-b2501f4cd18f65cc671482ceb1abe88c289b664c.tar.bz2 |
Since the *_Init() are private, prefix with _, suggested by Skip
-rw-r--r-- | Include/intobject.h | 2 | ||||
-rw-r--r-- | Include/pythonrun.h | 2 | ||||
-rw-r--r-- | Objects/frameobject.c | 2 | ||||
-rw-r--r-- | Objects/intobject.c | 2 | ||||
-rw-r--r-- | Python/pythonrun.c | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/Include/intobject.h b/Include/intobject.h index 50e6a73..cf463e4 100644 --- a/Include/intobject.h +++ b/Include/intobject.h @@ -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); diff --git a/Include/pythonrun.h b/Include/pythonrun.h index 898eead..e65df9fc 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -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); diff --git a/Objects/frameobject.c b/Objects/frameobject.c index b982064..2c62b67 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -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); diff --git a/Objects/intobject.c b/Objects/intobject.c index 10587ac..d9e4d31 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -939,7 +939,7 @@ PyTypeObject PyInt_Type = { }; int -PyInt_Init(void) +_PyInt_Init(void) { PyIntObject *v; int ival; diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 81543cc..fba3ade 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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(); |