[Python-checkins] r71641 - in python/trunk/Modules/_ctypes: ctypes.h malloc_closure.c

thomas.heller python-checkins at python.org
Thu Apr 16 08:42:02 CEST 2009


Author: thomas.heller
Date: Thu Apr 16 08:42:02 2009
New Revision: 71641

Log:
Remove duplicated function declaration.
Make _pagesize static.

Modified:
   python/trunk/Modules/_ctypes/ctypes.h
   python/trunk/Modules/_ctypes/malloc_closure.c

Modified: python/trunk/Modules/_ctypes/ctypes.h
==============================================================================
--- python/trunk/Modules/_ctypes/ctypes.h	(original)
+++ python/trunk/Modules/_ctypes/ctypes.h	Thu Apr 16 08:42:02 2009
@@ -351,7 +351,6 @@
 };
 
 extern PyTypeObject PyCArg_Type;
-extern PyCArgObject *new_CArgObject(void);
 #define PyCArg_CheckExact(v)	    ((v)->ob_type == &PyCArg_Type)
 extern PyCArgObject *new_CArgObject(void);
 

Modified: python/trunk/Modules/_ctypes/malloc_closure.c
==============================================================================
--- python/trunk/Modules/_ctypes/malloc_closure.c	(original)
+++ python/trunk/Modules/_ctypes/malloc_closure.c	Thu Apr 16 08:42:02 2009
@@ -32,7 +32,7 @@
 } ITEM;
 
 static ITEM *free_list;
-int _pagesize;
+static int _pagesize;
 
 static void more_core(void)
 {


More information about the Python-checkins mailing list