[Python-checkins] r51264 - python/trunk/Modules/_ctypes/_ctypes_test.c

thomas.heller python-checkins at python.org
Mon Aug 14 09:13:05 CEST 2006


Author: thomas.heller
Date: Mon Aug 14 09:13:05 2006
New Revision: 51264
Modified:
 python/trunk/Modules/_ctypes/_ctypes_test.c
Log:
Remove unused, buggy test function.
Fixes klockwork issue #207.
Modified: python/trunk/Modules/_ctypes/_ctypes_test.c
==============================================================================
--- python/trunk/Modules/_ctypes/_ctypes_test.c	(original)
+++ python/trunk/Modules/_ctypes/_ctypes_test.c	Mon Aug 14 09:13:05 2006
@@ -197,18 +197,6 @@
 
 #endif
 
-EXPORT(int) _testfunc_ppp(char ***p)
-{
-	static char message[] = "Hello, World";
-	if (p) {
-		*p = (char **)malloc(sizeof(char *));
-		printf("malloc returned %p\n", *p);
-		**p = message;
-		return 1;
-	}
-	return 0;
-}
-
 typedef struct {
 	char *name;
 	char *value;


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /