summaryrefslogtreecommitdiffstats
path: root/Include/pymem.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2014-01-03 20:36:49 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2014-01-03 20:36:49 (GMT)
commit1c0689c613b61c8944456e78c5b592e3aaa40aba (patch)
tree7f8bb895da42b257af0ca9cbc2dd13e60abf2186 /Include/pymem.h
parenta2924cabaf115169b1629424dbe71ba5a18670da (diff)
downloadcpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.zip
cpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.tar.gz
cpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.tar.bz2
Issue #19526: Exclude all new API from the stable ABI.
Diffstat (limited to 'Include/pymem.h')
-rw-r--r--Include/pymem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/pymem.h b/Include/pymem.h
index 83f1537..2372b86 100644
--- a/Include/pymem.h
+++ b/Include/pymem.h
@@ -11,9 +11,11 @@
extern "C" {
#endif
+#ifndef Py_LIMITED_API
PyAPI_FUNC(void *) PyMem_RawMalloc(size_t size);
PyAPI_FUNC(void *) PyMem_RawRealloc(void *ptr, size_t new_size);
PyAPI_FUNC(void) PyMem_RawFree(void *ptr);
+#endif
/* BEWARE:
@@ -58,8 +60,10 @@ PyAPI_FUNC(void *) PyMem_Malloc(size_t size);
PyAPI_FUNC(void *) PyMem_Realloc(void *ptr, size_t new_size);
PyAPI_FUNC(void) PyMem_Free(void *ptr);
+#ifndef Py_LIMITED_API
PyAPI_FUNC(char *) _PyMem_RawStrdup(const char *str);
PyAPI_FUNC(char *) _PyMem_Strdup(const char *str);
+#endif
/* Macros. */