summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-12-30 22:29:22 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-12-30 22:29:22 (GMT)
commitc91ed400e053dc9f11dd30c84e2bb611999dce50 (patch)
treef190a1d4d9d3dbdb7d60afda9f7ea643e4f63b1b /Include
parent83f898c86c5ce68eaddd8f729a67ae2d7d0666ec (diff)
downloadcpython-c91ed400e053dc9f11dd30c84e2bb611999dce50.zip
cpython-c91ed400e053dc9f11dd30c84e2bb611999dce50.tar.gz
cpython-c91ed400e053dc9f11dd30c84e2bb611999dce50.tar.bz2
SF #561244, Micro optimizations
Initialize the small integers and __builtins__ in startup. This removes some if conditions. Change XDECREF to DECREF for values which shouldn't be NULL.
Diffstat (limited to 'Include')
-rw-r--r--Include/intobject.h1
-rw-r--r--Include/pythonrun.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Include/intobject.h b/Include/intobject.h
index ab936b2..50e6a73 100644
--- a/Include/intobject.h
+++ b/Include/intobject.h
@@ -30,6 +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(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 b888193..898eead 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -100,6 +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);
/* Various internal finalizers */
PyAPI_FUNC(void) _PyExc_Fini(void);