aboutsummaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-10 01:45:40 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-10 01:45:40 -0800
commit421880be128dc9614b4d194991bdd47d61af78b8 (patch)
tree8a0a5e9f2802917316097496608d8d8419e32989 /vm.h
parentb8a5d399d76efd983255e26eea38029e358cc381 (diff)
Refactor of grammar logic to instead *only* use a linked list for all
grammar rules and backrefs. This simplifies things a lot.
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.h b/vm.h
index 148f2b5..b19f80b 100644
--- a/vm.h
+++ b/vm.h
@@ -9,8 +9,8 @@
#include "types.h"
const char *opcode_name(enum VMOpcode o);
-__attribute__((hot, nonnull))
-match_t *match(grammar_t *g, file_t *f, const char *str, vm_op_t *op, unsigned int flags);
+__attribute__((hot, nonnull(2,3,4)))
+match_t *match(def_t *defs, file_t *f, const char *str, vm_op_t *op, unsigned int flags);
__attribute__((nonnull))
void destroy_match(match_t **m);
__attribute__((nonnull))