]> granicus.if.org Git - python/commitdiff
Since the *_Init() are private, prefix with _, suggested by Skip
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 31 Dec 2002 03:42:13 +0000 (03:42 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 31 Dec 2002 03:42:13 +0000 (03:42 +0000)
Include/intobject.h
Include/pythonrun.h
Objects/frameobject.c
Objects/intobject.c
Python/pythonrun.c

index 50e6a73c6989e9aa1aab6856fecc832db370df24..cf463e465d85de3b4074b606f6766ef1e878d127 100644 (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);
index 898eead4898dccb6559dcc0790a582aaa360d29a..e65df9fcd0228d84d69d74d31a9c831153b94c84 100644 (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);
index b982064c0e5a5d790a31c79cbe32f51bb99eb7ba..2c62b67f61fc779e5ca803b414aefdb3da4e3652 100644 (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);
index 10587ac7bd84b10e4263a127fa26809c841ea02a..d9e4d317c1fa124fac7081dbaeaa9efb978df26c 100644 (file)
@@ -939,7 +939,7 @@ PyTypeObject PyInt_Type = {
 };
 
 int
-PyInt_Init(void)
+_PyInt_Init(void)
 {
        PyIntObject *v;
        int ival;
index 81543cc86f9abc5e2f2216946b22be067d27e422..fba3ade8003a03396fe1a9fc81fb65ff0cca8e71 100644 (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();