diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 18:57:09 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 18:57:09 -0800 |
| commit | 09e1d1a36556c5b80f58159f2441905b77418194 (patch) | |
| tree | 3e69e6c59ccf21e4106ff620042f0492382c4cab /types.h | |
| parent | 7c77f5d6f45a0e888b16995a9c396a8161a688bb (diff) | |
Removing opcode references
Diffstat (limited to 'types.h')
| -rw-r--r-- | types.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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; |
