aboutsummaryrefslogtreecommitdiff
path: root/asm/preprocesser.hpp
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-15 05:08:07 +0630
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-15 05:08:07 +0630
commit0e5c9340725a5ee0b419c8e61f221049ee3c542e (patch)
treeb3c32f1cf70f4b1887e99f617bd4b5fcf0986d5e /asm/preprocesser.hpp
parent9ca93786af90636bbace0631d87f1a565ba8f25e (diff)
downloadovm-0e5c9340725a5ee0b419c8e61f221049ee3c542e.tar.gz
ovm-0e5c9340725a5ee0b419c8e61f221049ee3c542e.tar.bz2
ovm-0e5c9340725a5ee0b419c8e61f221049ee3c542e.zip
preprocess_* now uses const references to tokens
They copy and construct new token vectors and just read the token inputs.
Diffstat (limited to 'asm/preprocesser.hpp')
-rw-r--r--asm/preprocesser.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/asm/preprocesser.hpp b/asm/preprocesser.hpp
index a1d8a31..0d340df 100644
--- a/asm/preprocesser.hpp
+++ b/asm/preprocesser.hpp
@@ -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