pager history buffer: alloc buffer progressively

Realloc buffer 1MB at a time until the configured size is reached
This commit is contained in:
Dominique Martinet
2018-09-22 19:10:09 +09:00
parent c421d3bb59
commit f76c8ad30b
2 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ typedef struct {
} HistoryBufSegment;
typedef struct {
index_type bufsize;
index_type bufsize, maxsz;
Py_UCS4 *buffer;
index_type start, end;
index_type bufend;