summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorJoannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>2019-08-20 11:46:36 -0300
committerVictor Stinner <vstinner@redhat.com>2019-08-20 15:46:36 +0100
commit9e66aba99925eebacfe137d9deb0ef1fdbc2d5db (patch)
treee9353ac99e9911959aadb9092ae35237ec06b5e2 /Include
parent18f8dcfa10d8a858b152d12a9ad8fa83b7e967f0 (diff)
downloadcpython-git-9e66aba99925eebacfe137d9deb0ef1fdbc2d5db.tar.gz
bpo-15913: Implement PyBuffer_SizeFromFormat() (GH-13873)
Implement PyBuffer_SizeFromFormat() function (previously documented but not implemented): call struct.calcsize().
Diffstat (limited to 'Include')
-rwxr-xr-x[-rw-r--r--]Include/cpython/abstract.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/abstract.h b/Include/cpython/abstract.h
index 62a113fc00..04e4a9e7bd 100644..100755
--- a/Include/cpython/abstract.h
+++ b/Include/cpython/abstract.h
@@ -243,7 +243,7 @@ PyAPI_FUNC(void *) PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices);
/* Return the implied itemsize of the data-format area from a
struct-style description. */
-PyAPI_FUNC(int) PyBuffer_SizeFromFormat(const char *);
+PyAPI_FUNC(Py_ssize_t) PyBuffer_SizeFromFormat(const char *format);
/* Implementation in memoryobject.c */
PyAPI_FUNC(int) PyBuffer_ToContiguous(void *buf, Py_buffer *view,