diff options
author | Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> | 2019-08-20 14:46:36 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-08-20 14:46:36 (GMT) |
commit | 9e66aba99925eebacfe137d9deb0ef1fdbc2d5db (patch) | |
tree | e9353ac99e9911959aadb9092ae35237ec06b5e2 /Include/cpython | |
parent | 18f8dcfa10d8a858b152d12a9ad8fa83b7e967f0 (diff) | |
download | cpython-9e66aba99925eebacfe137d9deb0ef1fdbc2d5db.zip cpython-9e66aba99925eebacfe137d9deb0ef1fdbc2d5db.tar.gz cpython-9e66aba99925eebacfe137d9deb0ef1fdbc2d5db.tar.bz2 |
bpo-15913: Implement PyBuffer_SizeFromFormat() (GH-13873)
Implement PyBuffer_SizeFromFormat() function (previously
documented but not implemented): call struct.calcsize().
Diffstat (limited to 'Include/cpython')
-rwxr-xr-x[-rw-r--r--] | Include/cpython/abstract.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/abstract.h b/Include/cpython/abstract.h index 62a113f..04e4a9e 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, |