aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-09 23:43:59 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-09 23:43:59 -0800
commitaa91728a082cde784e01078944dc39e6df0877fa (patch)
tree72b187de913d139f4ba225ec88e635f01cca9f17 /types.h
parent03c790d5b61ecc07a34e6d113a5b434b72c835fe (diff)
Replaced (void*) with (match_t*) in struct def
Diffstat (limited to 'types.h')
-rw-r--r--types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/types.h b/types.h
index 56c6e28..e497c44 100644
--- a/types.h
+++ b/types.h
@@ -41,6 +41,8 @@ enum VMOpcode {
VM_NODENT,
};
+struct match_s; // forward declared to resolve circular struct defs
+
/*
* A struct reperesenting a BP virtual machine operation
*/
@@ -71,7 +73,7 @@ typedef struct vm_op_s {
struct vm_op_s *capture_pat;
char *name;
} capture;
- void *backref;
+ struct match_s *backref;
struct vm_op_s *pat;
} args;
} vm_op_t;