Issue #25318: cleanup code _PyBytesWriter

Rename "stack buffer" to "small buffer".

Add also an assertion in _PyBytesWriter_GetPos().
This commit is contained in:
Victor Stinner 2015-10-09 03:38:24 +02:00
parent 3fa36ff5e4
commit b3653a3458
2 changed files with 19 additions and 19 deletions

View file

@ -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