diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-18 10:47:20 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-18 10:47:20 -0800 |
| commit | 46f1747947503a6fab403e2d77e97408a47cbae7 (patch) | |
| tree | 061f73dc9a4ee098c841ee376bb425283bed7925 /types.h | |
| parent | eece8c85564b9c5ae0cb3edfe7edb684242e9227 (diff) | |
More static analyzer cleanup
Diffstat (limited to 'types.h')
| -rw-r--r-- | types.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
