From 46f1747947503a6fab403e2d77e97408a47cbae7 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Jan 2021 10:47:20 -0800 Subject: More static analyzer cleanup --- types.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'types.h') diff --git a/types.h b/types.h index 28b0d07..1fee2a6 100644 --- a/types.h +++ b/types.h @@ -50,7 +50,8 @@ typedef struct pat_s { unsigned char low, high; } range; struct { - ssize_t min, max; + size_t min; + ssize_t max; struct pat_s *sep, *repeat_pat; } repetitions; // TODO: use a linked list instead of a binary tree @@ -81,7 +82,7 @@ typedef struct pat_s { // // Pattern matching result object // -typedef /*@refcounted@*/ struct match_s { +typedef struct match_s { // Where the match starts and ends (end is after the last character) const char *start, *end; struct match_s *child, *nextsibling; @@ -91,7 +92,7 @@ typedef /*@refcounted@*/ struct match_s { #ifdef DEBUG_HEAP struct match_s **atme; #endif - /*@refs@*/ int refcount; + int refcount; // If skip_replacement is set to 1, that means the user wants to not print // the replaced text when printing this match: // TODO: this is a bit hacky, there is probably a better way to go about -- cgit v1.2.3