diff options
author | mattip <matti.picus@gmail.com> | 2021-11-10 00:16:56 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2021-11-10 00:23:26 +0200 |
commit | 6312c18e99dad89231b65693a05c92c1f06d3671 (patch) | |
tree | f3ffa4524db016a33765feced29fbab19bfdd40c /doc/source/reference | |
parent | e1239e7152c87fa97266f62e107d383905e6006c (diff) | |
download | numpy-6312c18e99dad89231b65693a05c92c1f06d3671.tar.gz |
ENH: add a 'version' field to PyDataMem_Handler
Diffstat (limited to 'doc/source/reference')
-rw-r--r-- | doc/source/reference/c-api/data_memory.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/source/reference/c-api/data_memory.rst b/doc/source/reference/c-api/data_memory.rst index 11a37adc4..b779026b4 100644 --- a/doc/source/reference/c-api/data_memory.rst +++ b/doc/source/reference/c-api/data_memory.rst @@ -62,7 +62,8 @@ reallocate or free the data memory of the instance. .. code-block:: c typedef struct { - char name[128]; /* multiple of 64 to keep the struct aligned */ + char name[127]; /* multiple of 64 to keep the struct aligned */ + uint8_t version; /* currently 1 */ PyDataMemAllocator allocator; } PyDataMem_Handler; |