diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-10-09 10:37:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-10-09 10:37:03 (GMT) |
commit | 53926a1ce2772ea5dc1c4fb8c19f5f9ae461750d (patch) | |
tree | 0bcfb4a42bcb869f2b9441aa4fc5913b2859222d /Include/bytesobject.h | |
parent | fa7762ec066aa3632a25b6a52bb7597b8f17c2f3 (diff) | |
download | cpython-53926a1ce2772ea5dc1c4fb8c19f5f9ae461750d.zip cpython-53926a1ce2772ea5dc1c4fb8c19f5f9ae461750d.tar.gz cpython-53926a1ce2772ea5dc1c4fb8c19f5f9ae461750d.tar.bz2 |
_PyBytesWriter: rename size attribute to min_size
Diffstat (limited to 'Include/bytesobject.h')
-rw-r--r-- | Include/bytesobject.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/bytesobject.h b/Include/bytesobject.h index ffa529b..6cd5a34 100644 --- a/Include/bytesobject.h +++ b/Include/bytesobject.h @@ -134,8 +134,9 @@ typedef struct { /* Number of allocated size */ Py_ssize_t allocated; - /* Current size of the buffer (can be smaller than the allocated size) */ - Py_ssize_t size; + /* Minimum number of allocated bytes, + incremented by _PyBytesWriter_Prepare() */ + Py_ssize_t min_size; /* If non-zero, overallocate the buffer (default: 0). */ int overallocate; |