From 09e1d1a36556c5b80f58159f2441905b77418194 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 15 Jan 2021 18:57:09 -0800 Subject: Removing opcode references --- types.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'types.h') diff --git a/types.h b/types.h index 227bbb3..071c688 100644 --- a/types.h +++ b/types.h @@ -8,10 +8,8 @@ #include "file_loader.h" -// -// BP virtual machine opcodes (these must be kept in sync with the names in vm.c) -// -enum VMOpcode { +// BP virtual machine pattern types +enum pattype_e { VM_ANYCHAR = 1, VM_STRING, VM_RANGE, @@ -38,7 +36,7 @@ struct match_s; // forward declared to resolve circular struct defs // A struct reperesenting a BP virtual machine operation // typedef struct pat_s { - enum VMOpcode type; + enum pattype_e type; const char *start, *end; // Length of the match, if constant, otherwise -1 ssize_t len; -- cgit v1.2.3