diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2011-01-06 19:15:47 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2011-01-06 19:15:47 (GMT) |
commit | c83bc3c1fbed14d27a5de3032e24d2cf006a7c4b (patch) | |
tree | 527ca0642bcb61ed5ad38b5ed420ae23180a372b /Include/memoryobject.h | |
parent | e85da7aa4f575e9925afafdb332b17e085c4aea1 (diff) | |
download | cpython-c83bc3c1fbed14d27a5de3032e24d2cf006a7c4b.zip cpython-c83bc3c1fbed14d27a5de3032e24d2cf006a7c4b.tar.gz cpython-c83bc3c1fbed14d27a5de3032e24d2cf006a7c4b.tar.bz2 |
Remove buffer API from stable ABI for now, see #10181.
Diffstat (limited to 'Include/memoryobject.h')
-rw-r--r-- | Include/memoryobject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/memoryobject.h b/Include/memoryobject.h index f763531..62ecbd6 100644 --- a/Include/memoryobject.h +++ b/Include/memoryobject.h @@ -55,9 +55,11 @@ PyAPI_FUNC(PyObject *) PyMemoryView_GetContiguous(PyObject *base, PyAPI_FUNC(PyObject *) PyMemoryView_FromObject(PyObject *base); +#ifndef Py_LIMITED_API PyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(Py_buffer *info); /* create new if bufptr is NULL will be a new bytesobject in base */ +#endif /* The struct is declared here so that macros can work, but it shouldn't |