aboutsummaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-15 01:19:10 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-15 01:19:10 -0800
commit8ff80b09ccd7e680829d0911d965ad4b0d6f7939 (patch)
tree399da1a15ed749fa10cec8bf62dcde5e93ef3f3f /vm.h
parent9b70cb4f624aa19c09ea73b3d9e0f50c032602c5 (diff)
Major overhaul of how different modes of behavior work. Approximately 2x
speedup and 2x memory footprint reduction. Also removed --mode and VM_HIDE (~ operator), and added --context. Printing works better now.
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm.h b/vm.h
index 3777492..de167b4 100644
--- a/vm.h
+++ b/vm.h
@@ -8,6 +8,8 @@
#include "types.h"
+__attribute__((nonnull(2,4)))
+match_t *next_match(def_t *defs, file_t *f, match_t *prev, 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))