summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-07-06 03:35:58 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-07-06 03:35:58 (GMT)
commit2fe77060eb2b322da925b50ffe3c471258736cee (patch)
tree0966f7b98ec52c58f6c58cf42ec75237c72dda0b /Include
parent17f2e4acb963268fe8b3c4e822f33d9372460607 (diff)
downloadcpython-2fe77060eb2b322da925b50ffe3c471258736cee.zip
cpython-2fe77060eb2b322da925b50ffe3c471258736cee.tar.gz
cpython-2fe77060eb2b322da925b50ffe3c471258736cee.tar.bz2
- Issue #2862: Make int and float freelist management consistent with other
freelists. Changes their CompactFreeList apis into ClearFreeList apis and calls them via gc.collect().
Diffstat (limited to 'Include')
-rw-r--r--Include/floatobject.h2
-rw-r--r--Include/intobject.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/floatobject.h b/Include/floatobject.h
index 04978be..60ede40 100644
--- a/Include/floatobject.h
+++ b/Include/floatobject.h
@@ -113,7 +113,7 @@ PyAPI_FUNC(double) _PyFloat_Unpack4(const unsigned char *p, int le);
PyAPI_FUNC(double) _PyFloat_Unpack8(const unsigned char *p, int le);
/* free list api */
-PyAPI_FUNC(void) PyFloat_CompactFreeList(size_t *, size_t *, size_t *);
+PyAPI_FUNC(int) PyFloat_ClearFreeList(void);
/* Format the object based on the format_spec, as defined in PEP 3101
(Advanced String Formatting). */
diff --git a/Include/intobject.h b/Include/intobject.h
index 329ff45..78746a6 100644
--- a/Include/intobject.h
+++ b/Include/intobject.h
@@ -60,7 +60,7 @@ PyAPI_FUNC(unsigned long) PyOS_strtoul(char *, char **, int);
PyAPI_FUNC(long) PyOS_strtol(char *, char **, int);
/* free list api */
-PyAPI_FUNC(void) PyInt_CompactFreeList(size_t *, size_t *, size_t *);
+PyAPI_FUNC(int) PyInt_ClearFreeList(void);
/* Convert an integer to the given base. Returns a string.
If base is 2, 8 or 16, add the proper prefix '0b', '0o' or '0x'.