diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-15 04:56:14 +0630 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-15 05:07:16 +0630 |
commit | 9ca93786af90636bbace0631d87f1a565ba8f25e (patch) | |
tree | 83ff4c98a301a733a7ece19ef25275cc55a8565c | |
parent | ec87245724cd2746a40f349151137a89deb00bee (diff) | |
download | ovm-9ca93786af90636bbace0631d87f1a565ba8f25e.tar.gz ovm-9ca93786af90636bbace0631d87f1a565ba8f25e.tar.bz2 ovm-9ca93786af90636bbace0631d87f1a565ba8f25e.zip |
Updated main.cpp for changes to lexer
-rw-r--r-- | asm/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/asm/main.cpp b/asm/main.cpp index be26426..c2414b8 100644 --- a/asm/main.cpp +++ b/asm/main.cpp @@ -36,8 +36,6 @@ void usage(const char *program_name, FILE *fp) int main(int argc, const char *argv[]) { - usage(argv[1], stdout); - return 0; if (argc == 1 || argc > 3) { usage(argv[0], stderr); @@ -50,7 +48,7 @@ int main(int argc, const char *argv[]) string source_str; string_view original; string_view src; - vector<token_t> tokens; + vector<token_t *> tokens; lerr_t lerr; if (file_source.has_value()) @@ -95,5 +93,8 @@ int main(int argc, const char *argv[]) } end: + for (auto token : tokens) + delete token; + return ret; } |