/* 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))
/* Releases a Py_buffer obtained from getbuffer ParseTuple's s*.
*/
+#endif /* Py_LIMITED_API */
PyAPI_FUNC(PyObject *) PyObject_Format(PyObject* obj,
PyObject *format_spec);
typedef int(*ssizessizeobjargproc)(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *);
typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *);
-
+#ifndef Py_LIMITED_API
/* buffer interface */
typedef struct bufferinfo {
void *buf;
#define PyBUF_WRITE 0x200
/* End buffer interface */
+#endif /* Py_LIMITED_API */
typedef int (*objobjproc)(PyObject *, PyObject *);
typedef int (*visitproc)(PyObject *, void *);
PyBaseObject_Type=python32.PyBaseObject_Type DATA\r
PyBool_FromLong=python32.PyBool_FromLong\r
PyBool_Type=python32.PyBool_Type DATA\r
- PyBuffer_FillContiguousStrides=python32.PyBuffer_FillContiguousStrides\r
- PyBuffer_FillInfo=python32.PyBuffer_FillInfo\r
- PyBuffer_FromContiguous=python32.PyBuffer_FromContiguous\r
- PyBuffer_GetPointer=python32.PyBuffer_GetPointer\r
- PyBuffer_IsContiguous=python32.PyBuffer_IsContiguous\r
- PyBuffer_Release=python32.PyBuffer_Release\r
- PyBuffer_ToContiguous=python32.PyBuffer_ToContiguous\r
PyByteArrayIter_Type=python32.PyByteArrayIter_Type DATA\r
PyByteArray_AsString=python32.PyByteArray_AsString\r
PyByteArray_Concat=python32.PyByteArray_Concat\r
PyMem_Malloc=python32.PyMem_Malloc\r
PyMem_Realloc=python32.PyMem_Realloc\r
PyMemberDescr_Type=python32.PyMemberDescr_Type DATA\r
- PyMemoryView_FromBuffer=python32.PyMemoryView_FromBuffer\r
PyMemoryView_FromObject=python32.PyMemoryView_FromObject\r
PyMemoryView_GetContiguous=python32.PyMemoryView_GetContiguous\r
PyMemoryView_Type=python32.PyMemoryView_Type DATA\r
PyObject_CallObject=python32.PyObject_CallObject\r
PyObject_CheckReadBuffer=python32.PyObject_CheckReadBuffer\r
PyObject_ClearWeakRefs=python32.PyObject_ClearWeakRefs\r
- PyObject_CopyData=python32.PyObject_CopyData\r
PyObject_DelItem=python32.PyObject_DelItem\r
PyObject_DelItemString=python32.PyObject_DelItemString\r
PyObject_Dir=python32.PyObject_Dir\r
PyObject_GenericSetAttr=python32.PyObject_GenericSetAttr\r
PyObject_GetAttr=python32.PyObject_GetAttr\r
PyObject_GetAttrString=python32.PyObject_GetAttrString\r
- PyObject_GetBuffer=python32.PyObject_GetBuffer\r
PyObject_GetItem=python32.PyObject_GetItem\r
PyObject_GetIter=python32.PyObject_GetIter\r
PyObject_HasAttr=python32.PyObject_HasAttr\r