From 8ff80b09ccd7e680829d0911d965ad4b0d6f7939 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 15 Jan 2021 01:19:10 -0800 Subject: 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. --- vm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm.h') 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)) -- cgit v1.2.3