Use a separate, re-useable ring-buffer implementation
Not only is it re-useable it also allows for easier debugging by separating the ring buffer specific logic and the pager history logic. Hopefully it fixes #3049
This commit is contained in:
+2
-3
@@ -193,9 +193,8 @@ typedef struct {
|
||||
} HistoryBufSegment;
|
||||
|
||||
typedef struct {
|
||||
uint8_t *buffer;
|
||||
size_t buffer_size, max_sz;
|
||||
size_t start, length;
|
||||
void *ringbuf;
|
||||
size_t maximum_size;
|
||||
bool rewrap_needed;
|
||||
} PagerHistoryBuf;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user