Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 579b65c

Browse files
author
Thomas Heller
committed
Merged revisions 71640-71641 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 1055e89 commit 579b65c

4 files changed

Lines changed: 1 addition & 20 deletions

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5411,11 +5411,6 @@ PyInit__ctypes(void)
54115411
Py_INCREF(PyExc_ArgError);
54125412
PyModule_AddObject(m, "ArgumentError", PyExc_ArgError);
54135413
}
5414-
/*************************************************
5415-
*
5416-
* Others...
5417-
*/
5418-
init_callbacks_in_module(m);
54195414
return m;
54205415
}
54215416

Modules/_ctypes/callbacks.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -463,17 +463,6 @@ CThunkObject *AllocFunctionCallback(PyObject *callable,
463463
return NULL;
464464
}
465465

466-
/****************************************************************************
467-
*
468-
* callback objects: initialization
469-
*/
470-
471-
void init_callbacks_in_module(PyObject *m)
472-
{
473-
if (PyType_Ready((PyTypeObject *)&PyType_Type) < 0)
474-
return;
475-
}
476-
477466
#ifdef MS_WIN32
478467

479468
static void LoadPython(void)

Modules/_ctypes/ctypes.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ extern PyTypeObject StructType_Type;
148148
extern PyObject *
149149
CreateArrayType(PyObject *itemtype, Py_ssize_t length);
150150

151-
extern void init_callbacks_in_module(PyObject *m);
152-
153151
extern PyMethodDef module_methods[];
154152

155153
extern CThunkObject *AllocFunctionCallback(PyObject *callable,
@@ -312,7 +310,6 @@ struct tagPyCArgObject {
312310
};
313311

314312
extern PyTypeObject PyCArg_Type;
315-
extern PyCArgObject *new_CArgObject(void);
316313
#define PyCArg_CheckExact(v) ((v)->ob_type == &PyCArg_Type)
317314
extern PyCArgObject *new_CArgObject(void);
318315

Modules/_ctypes/malloc_closure.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ typedef union _tagITEM {
2828
} ITEM;
2929

3030
static ITEM *free_list;
31-
int _pagesize;
31+
static int _pagesize;
3232

3333
static void more_core(void)
3434
{

0 commit comments

Comments
 (0)