aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-15 19:02:36 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-15 19:02:36 -0800
commit984a869c985f8cc334cc40bd5b387e11d9f9ba29 (patch)
tree52924e7275843295607666408c51f0718bf61819 /types.h
parent5d1ffd61440a9563d10e921538cbfdc4e21bbd09 (diff)
Renaming 'op' member fields to 'pat'
Diffstat (limited to 'types.h')
-rw-r--r--types.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/types.h b/types.h
index 5e99922..ab5694c 100644
--- a/types.h
+++ b/types.h
@@ -80,7 +80,7 @@ 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;
- pat_t *op;
+ pat_t *pat;
// Intrusive linked list nodes for garbage collection:
struct match_s *next;
#ifdef DEBUG_HEAP
@@ -101,17 +101,17 @@ typedef struct def_s {
size_t namelen;
const char *name;
file_t *file;
- pat_t *op;
+ pat_t *pat;
struct def_s *next;
} def_t;
//
-// Structure used for tracking allocated ops, which must be freed when the file
-// is freed.
+// 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 op;
+ pat_t pat;
} allocated_pat_t;
#endif