aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-15 18:53:12 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-15 18:53:12 -0800
commit7c77f5d6f45a0e888b16995a9c396a8161a688bb (patch)
tree89311a9d231ae0d209aae65b5cb8310a6c89042a
parentdc38cde3c7a47517d0e65f272d5752794fe2140d (diff)
Rename destroy_op -> destroy_pat
-rw-r--r--file_loader.c2
-rw-r--r--vm.c2
-rw-r--r--vm.h2
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);
}
diff --git a/vm.c b/vm.c
index 213e697..8c5d3a0 100644
--- a/vm.c
+++ b/vm.c
@@ -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:
diff --git a/vm.h b/vm.h
index 5f06b82..a0b73b3 100644
--- a/vm.h
+++ b/vm.h
@@ -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);