Use std::vector for capture buffer

This commit is contained in:
Rangi42
2024-03-02 06:46:11 -05:00
parent a71e4086a2
commit dbcb82799e
3 changed files with 11 additions and 26 deletions

View File

@@ -6,6 +6,7 @@
#include <deque>
#include <optional>
#include <string>
#include <vector>
#include "platform.hpp" // SSIZE_MAX
@@ -82,8 +83,7 @@ struct LexerState {
bool capturing; // Whether the text being lexed should be captured
size_t captureSize; // Amount of text captured
char *captureBuf; // Buffer to send the captured text to if non-null
size_t captureCapacity; // Size of the buffer above
std::vector<char> *captureBuf; // Buffer to send the captured text to if non-null
bool disableMacroArgs;
bool disableInterpolation;