summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/regex.c b/regex.c
index 5c664532..6ee25b9d 100644
--- a/regex.c
+++ b/regex.c
@@ -797,13 +797,11 @@ static void char_set_cobj_destroy(val chset)
chset->co.handle = 0;
}
-static struct cobj_ops char_set_obj_ops = {
- eq,
- cobj_print_op,
- char_set_cobj_destroy,
- cobj_mark_op,
- cobj_hash_op
-};
+static struct cobj_ops char_set_obj_ops = cobj_ops_init(eq,
+ cobj_print_op,
+ char_set_cobj_destroy,
+ cobj_mark_op,
+ cobj_hash_op);
static nfa_state_t *nfa_state_accept(void)
{
@@ -1311,13 +1309,11 @@ static void regex_mark(val obj)
static void regex_print(val obj, val stream);
-static struct cobj_ops regex_obj_ops = {
- eq,
- regex_print,
- regex_destroy,
- regex_mark,
- cobj_hash_op
-};
+static struct cobj_ops regex_obj_ops = cobj_ops_init(eq,
+ regex_print,
+ regex_destroy,
+ regex_mark,
+ cobj_hash_op);
static val reg_nullable(val);