summaryrefslogtreecommitdiffstats
path: root/Include/abstract.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-01-06 19:15:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-01-06 19:15:47 (GMT)
commitc83bc3c1fbed14d27a5de3032e24d2cf006a7c4b (patch)
tree527ca0642bcb61ed5ad38b5ed420ae23180a372b /Include/abstract.h
parente85da7aa4f575e9925afafdb332b17e085c4aea1 (diff)
downloadcpython-c83bc3c1fbed14d27a5de3032e24d2cf006a7c4b.zip
cpython-c83bc3c1fbed14d27a5de3032e24d2cf006a7c4b.tar.gz
cpython-c83bc3c1fbed14d27a5de3032e24d2cf006a7c4b.tar.bz2
Remove buffer API from stable ABI for now, see #10181.
Diffstat (limited to 'Include/abstract.h')
-rw-r--r--Include/abstract.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 53c9dc7..5f2d541 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -488,6 +488,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
/* new buffer API */
+#ifndef Py_LIMITED_API
#define PyObject_CheckBuffer(obj) \
(((obj)->ob_type->tp_as_buffer != NULL) && \
((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
@@ -575,6 +576,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
/* Releases a Py_buffer obtained from getbuffer ParseTuple's s*.
*/
+#endif /* Py_LIMITED_API */
PyAPI_FUNC(PyObject *) PyObject_Format(PyObject* obj,
PyObject *format_spec);