summaryrefslogtreecommitdiff
path: root/Include/bytesobject.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-10-09 03:38:24 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-10-09 03:38:24 +0200
commitb3653a34580684d210daed5cbb8a676c4d7a33fd (patch)
tree7fded22fcdf13645a0753d334d498a96c1e66b67 /Include/bytesobject.h
parent3fa36ff5e4991550e31cc7ab55dc3a2165c2ffa3 (diff)
downloadcpython-git-b3653a34580684d210daed5cbb8a676c4d7a33fd.tar.gz
Issue #25318: cleanup code _PyBytesWriter
Rename "stack buffer" to "small buffer". Add also an assertion in _PyBytesWriter_GetPos().
Diffstat (limited to 'Include/bytesobject.h')
-rw-r--r--Include/bytesobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/bytesobject.h b/Include/bytesobject.h
index eafcdea4bb..ffa529b862 100644
--- a/Include/bytesobject.h
+++ b/Include/bytesobject.h
@@ -141,8 +141,8 @@ typedef struct {
int overallocate;
/* Stack buffer */
- int use_stack_buffer;
- char stack_buffer[512];
+ int use_small_buffer;
+ char small_buffer[512];
} _PyBytesWriter;
/* Initialize a bytes writer