Use automatic allocation for fstack nodes' iters/names

This commit is contained in:
Rangi42
2024-02-24 21:58:34 -05:00
committed by Sylvie
parent 5075ac8887
commit 0e19f6c0ae
3 changed files with 44 additions and 51 deletions

View File

@@ -27,12 +27,12 @@ struct FileStackNode {
struct FileStackReptNode { // NODE_REPT
struct FileStackNode node;
std::vector<uint32_t> *iters; // REPT iteration counts since last named node, in reverse depth order
std::vector<uint32_t> iters; // REPT iteration counts since last named node, in reverse depth order
};
struct FileStackNamedNode { // NODE_FILE, NODE_MACRO
struct FileStackNode node;
std::string *name; // File name for files, file::macro name for macros
std::string name; // File name for files, file::macro name for macros
};
#define DEFAULT_MAX_DEPTH 64