summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-05-05 18:42:14 (GMT)
committerThomas Heller <theller@ctypes.org>2006-05-05 18:42:14 (GMT)
commit21a929f5ab6dd52b880e49272a50de5ee507137d (patch)
tree2be0a80194441d7ead27e8f966f69940439e2f4d /Modules
parent08041d582b539aec159ec51d2759c0f8876cd151 (diff)
downloadcpython-21a929f5ab6dd52b880e49272a50de5ee507137d.zip
cpython-21a929f5ab6dd52b880e49272a50de5ee507137d.tar.gz
cpython-21a929f5ab6dd52b880e49272a50de5ee507137d.tar.bz2
Export the 'free' standard C function for use in the test suite.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c
index ad3b047..2696b9b 100644
--- a/Modules/_ctypes/_ctypes_test.c
+++ b/Modules/_ctypes/_ctypes_test.c
@@ -96,6 +96,11 @@ EXPORT(char *) my_strdup(char *src)
return dst;
}
+EXPORT(void) free(void *ptr)
+{
+ free(ptr);
+}
+
#ifdef HAVE_WCHAR_H
EXPORT(wchar_t *) my_wcsdup(wchar_t *src)
{