summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2009-04-16 18:37:24 (GMT)
committerThomas Heller <theller@ctypes.org>2009-04-16 18:37:24 (GMT)
commit579b65c2d695eb468fb97568ff7d2ad9d261b2b3 (patch)
tree976d9b2d4c2fc796d6ca44bc7438b37bafa18a42
parent1055e89a258ab8257b0fd91ac0ae11a21ff37b4c (diff)
downloadcpython-579b65c2d695eb468fb97568ff7d2ad9d261b2b3.zip
cpython-579b65c2d695eb468fb97568ff7d2ad9d261b2b3.tar.gz
cpython-579b65c2d695eb468fb97568ff7d2ad9d261b2b3.tar.bz2
Merged revisions 71640-71641 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71640 | thomas.heller | 2009-04-16 08:26:33 +0200 (Do, 16 Apr 2009) | 1 line Remove unneeded code. ........ r71641 | thomas.heller | 2009-04-16 08:42:02 +0200 (Do, 16 Apr 2009) | 2 lines Remove duplicated function declaration. Make _pagesize static. ........
-rw-r--r--Modules/_ctypes/_ctypes.c5
-rw-r--r--Modules/_ctypes/callbacks.c11
-rw-r--r--Modules/_ctypes/ctypes.h3
-rw-r--r--Modules/_ctypes/malloc_closure.c2
4 files changed, 1 insertions, 20 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 61d34ab..69a8c73 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -5411,11 +5411,6 @@ PyInit__ctypes(void)
Py_INCREF(PyExc_ArgError);
PyModule_AddObject(m, "ArgumentError", PyExc_ArgError);
}
- /*************************************************
- *
- * Others...
- */
- init_callbacks_in_module(m);
return m;
}
diff --git a/Modules/_ctypes/callbacks.c b/Modules/_ctypes/callbacks.c
index ed86ee5..b599326 100644
--- a/Modules/_ctypes/callbacks.c
+++ b/Modules/_ctypes/callbacks.c
@@ -463,17 +463,6 @@ CThunkObject *AllocFunctionCallback(PyObject *callable,
return NULL;
}
-/****************************************************************************
- *
- * callback objects: initialization
- */
-
-void init_callbacks_in_module(PyObject *m)
-{
- if (PyType_Ready((PyTypeObject *)&PyType_Type) < 0)
- return;
-}
-
#ifdef MS_WIN32
static void LoadPython(void)
diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h
index 7bbe439..acd94f4 100644
--- a/Modules/_ctypes/ctypes.h
+++ b/Modules/_ctypes/ctypes.h
@@ -148,8 +148,6 @@ extern PyTypeObject StructType_Type;
extern PyObject *
CreateArrayType(PyObject *itemtype, Py_ssize_t length);
-extern void init_callbacks_in_module(PyObject *m);
-
extern PyMethodDef module_methods[];
extern CThunkObject *AllocFunctionCallback(PyObject *callable,
@@ -312,7 +310,6 @@ struct tagPyCArgObject {
};
extern PyTypeObject PyCArg_Type;
-extern PyCArgObject *new_CArgObject(void);
#define PyCArg_CheckExact(v) ((v)->ob_type == &PyCArg_Type)
extern PyCArgObject *new_CArgObject(void);
diff --git a/Modules/_ctypes/malloc_closure.c b/Modules/_ctypes/malloc_closure.c
index b7d58c0..97d4d4e 100644
--- a/Modules/_ctypes/malloc_closure.c
+++ b/Modules/_ctypes/malloc_closure.c
@@ -28,7 +28,7 @@ typedef union _tagITEM {
} ITEM;
static ITEM *free_list;
-int _pagesize;
+static int _pagesize;
static void more_core(void)
{