aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-18 10:47:20 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-18 10:47:20 -0800
commit46f1747947503a6fab403e2d77e97408a47cbae7 (patch)
tree061f73dc9a4ee098c841ee376bb425283bed7925 /types.h
parenteece8c85564b9c5ae0cb3edfe7edb684242e9227 (diff)
More static analyzer cleanup
Diffstat (limited to 'types.h')
-rw-r--r--types.h7
1 files changed, 4 insertions, 3 deletions
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