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

@@ -24,7 +24,7 @@
struct CharmapNode {
bool isTerminal; // Whether there exists a mapping that ends here
uint8_t value; // If the above is true, its corresponding value
// This MUST be indexes and not pointers, because pointers get invalidated by `realloc`!
// This MUST be indexes and not pointers, because pointers get invalidated by reallocation!
size_t next[255]; // Indexes of where to go next, 0 = nowhere
};