summaryrefslogtreecommitdiff
path: root/parse.h
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-08-04 14:21:05 +1200
committerDavid Phillips <david@sighup.nz>2019-08-04 14:24:50 +1200
commit4b1f9e2cb436e74ce6084dbc35df5f052cb701bf (patch)
tree201bf4d3cf1120ad0e9a8d3fe7b1a95c2fd3333d /parse.h
parent1c8e50028e15facaa4d31992bfc6cab9d10832e6 (diff)
downloadtoy-cpu-assembler-4b1f9e2cb436e74ce6084dbc35df5f052cb701bf.tar.xz
Wrap tests in valgrind, clean up memory leaks
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.h b/parse.h
index 5feb420..d5fc466 100644
--- a/parse.h
+++ b/parse.h
@@ -61,5 +61,6 @@ struct instruction {
};
int parse(const char *filename_local, FILE *fd, struct label **labels_local, size_t *labels_count_local, struct token *tokens, size_t tokens_count, struct instruction **instructions, size_t *instructions_count);
+void parse_free(struct instruction *is, size_t i_count, struct label *ls, size_t l_count);
#endif /* PARSE_H */