preprocess_* now uses const references to tokens

They copy and construct new token vectors and just read the token
inputs.
This commit is contained in:
2024-04-15 05:08:07 +06:30
parent 9ca93786af
commit 0e5c934072
2 changed files with 5 additions and 5 deletions

View File

@@ -45,13 +45,13 @@ std::pair<std::vector<token_t *>, pp_err_t>
preprocesser(std::vector<token_t *> &);
std::pair<std::vector<token_t *>, pp_err_t>
preprocess_const_blocks(std::vector<token_t *> &);
preprocess_const_blocks(const std::vector<token_t *> &);
std::pair<std::vector<token_t *>, pp_err_t>
preprocess_use_blocks(std::vector<token_t *> &);
preprocess_use_blocks(const std::vector<token_t *> &);
// TODO: Implement this
std::pair<std::vector<token_t *>, pp_err_t>
preprocess_macro_blocks(std::vector<token_t *> &);
preprocess_macro_blocks(const std::vector<token_t *> &);
#endif