From bc813df3d749971ade565a7cf34aedae6787dc44 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 29 Jul 2021 12:45:37 -0700 Subject: Tweaks and optimizations --- types.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'types.h') 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 -- cgit v1.2.3