From 7d4bc36949cec8e5c791c352a264cd1dea4f8a1e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 27 Dec 2020 19:48:52 -0800 Subject: Added in-place filtering/replacements --- vm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vm.h') diff --git a/vm.h b/vm.h index 3470e9c..842b782 100644 --- a/vm.h +++ b/vm.h @@ -4,6 +4,8 @@ #ifndef VM__H #define VM__H +#include + #include "types.h" typedef enum { @@ -17,7 +19,7 @@ match_t *match(grammar_t *g, file_t *f, const char *str, vm_op_t *op, unsigned i __attribute__((nonnull)) void destroy_match(match_t **m); __attribute__((nonnull)) -void print_match(file_t *f, match_t *m, print_options_t options); +void print_match(FILE *out, file_t *f, match_t *m, print_options_t options); #endif // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 -- cgit v1.2.3