mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Issue #25318: cleanup code _PyBytesWriter
Rename "stack buffer" to "small buffer". Add also an assertion in _PyBytesWriter_GetPos().
This commit is contained in:
parent
3fa36ff5e4
commit
b3653a3458
2 changed files with 19 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue