diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-17 22:05:59 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-17 22:05:59 (GMT) |
commit | 928405303dfdb740e5b40815a0cfdb2da92f768d (patch) | |
tree | 1770f5a48cd9751873ecaba8d73981b19e094b57 /Objects/obmalloc.c | |
parent | 3438fa496db50ef3cafcfdb3243f2f769bc12ebe (diff) | |
download | cpython-928405303dfdb740e5b40815a0cfdb2da92f768d.zip cpython-928405303dfdb740e5b40815a0cfdb2da92f768d.tar.gz cpython-928405303dfdb740e5b40815a0cfdb2da92f768d.tar.bz2 |
Following issue #13390, fix compilation --without-pymalloc, and make sys.getallocatedblocks() return 0 in that situation.
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r-- | Objects/obmalloc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index c82c978..bbe2805 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -1316,6 +1316,13 @@ PyObject_Free(void *p) { PyMem_FREE(p); } + +Py_ssize_t +_Py_GetAllocatedBlocks(void) +{ + return 0; +} + #endif /* WITH_PYMALLOC */ #ifdef PYMALLOC_DEBUG |