diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 18:53:12 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 18:53:12 -0800 |
| commit | 7c77f5d6f45a0e888b16995a9c396a8161a688bb (patch) | |
| tree | 89311a9d231ae0d209aae65b5cb8310a6c89042a | |
| parent | dc38cde3c7a47517d0e65f272d5752794fe2140d (diff) | |
Rename destroy_op -> destroy_pat
| -rw-r--r-- | file_loader.c | 2 | ||||
| -rw-r--r-- | vm.c | 2 | ||||
| -rw-r--r-- | vm.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/file_loader.c b/file_loader.c index a8fa98c..9a07ced 100644 --- a/file_loader.c +++ b/file_loader.c @@ -153,7 +153,7 @@ void destroy_file(file_t **f) for (allocated_op_t *next; (*f)->ops; (*f)->ops = next) { next = (*f)->ops->next; - destroy_op(&(*f)->ops->op); + destroy_pat(&(*f)->ops->op); xfree(&(*f)->ops); } @@ -667,7 +667,7 @@ size_t free_all_matches(void) // // Deallocate memory associated with an op // -void destroy_op(pat_t *op) +void destroy_pat(pat_t *op) { switch (op->type) { case VM_STRING: case VM_REF: @@ -15,7 +15,7 @@ match_t *match(def_t *defs, file_t *f, const char *str, pat_t *op, unsigned int __attribute__((nonnull)) match_t *get_capture(match_t *m, const char **id); __attribute__((nonnull)) -void destroy_op(pat_t *op); +void destroy_pat(pat_t *op); match_t *new_match(void); __attribute__((nonnull)) void recycle_if_unused(match_t **at_m); |
