From 45d7aff47545f52136487fbb5b06cdcf716cbe9f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 13 Jan 2021 01:48:36 -0800 Subject: Major overhaul of some of the memory tracking code, as well as some cleanup of the compilation code. --- grammar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'grammar.h') diff --git a/grammar.h b/grammar.h index a7eedc4..6822c24 100644 --- a/grammar.h +++ b/grammar.h @@ -15,6 +15,8 @@ __attribute__((nonnull(2))) def_t *load_grammar(def_t *defs, file_t *f); __attribute__((pure, nonnull(2))) vm_op_t *lookup(def_t *defs, const char *name); +__attribute__((nonnull(1))) +void free_defs(def_t **defs, def_t *stop); #endif // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 -- cgit v1.2.3