aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-07-29 12:45:37 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-07-29 12:45:37 -0700
commitbc813df3d749971ade565a7cf34aedae6787dc44 (patch)
tree83ebd4020fa82769af3315ab415d0aaace4c7420 /types.h
parentdb969f34a99b5ab5efd3a82d3c6d5a8e9be6f2da (diff)
Tweaks and optimizations
Diffstat (limited to 'types.h')
-rw-r--r--types.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/types.h b/types.h
index 3a94203..4085218 100644
--- a/types.h
+++ b/types.h
@@ -46,6 +46,7 @@ struct match_s; // forward declared to resolve circular struct defs
// A struct reperesenting a BP virtual machine operation
//
typedef struct pat_s {
+ struct pat_s *next;
enum pattype_e type;
const char *start, *end;
// The bounds of the match length (used for backtracking)
@@ -126,14 +127,5 @@ typedef struct def_s {
struct def_s *next;
} def_t;
-//
-// Structure used for tracking allocated patterns, which must be freed when the
-// file is freed.
-//
-typedef struct allocated_pat_s {
- struct allocated_pat_s *next;
- pat_t pat;
-} allocated_pat_t;
-
#endif
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1