From 19a5f8d316d541b9a9adb54c5a918787760100e1 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Sat, 30 Jul 2022 19:36:07 +0200 Subject: regex engine - rename REGNODE_AFTER_dynamic() REGNODE_AFTER() Now that REGNODE_AFTER() can handle all cases it makes sense to remove the dynamic() suffix. --- regcomp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'regcomp.h') diff --git a/regcomp.h b/regcomp.h index d673634373..a5c0695e5b 100644 --- a/regcomp.h +++ b/regcomp.h @@ -489,8 +489,10 @@ struct regnode_ssc { /* find the regnode after this p by using OP(p) to find the regnode type of p */ #define REGNODE_AFTER_dynamic(p) REGNODE_AFTER_opcode((p),OP(p)) /* find the regnode after this p by using the size of the struct associated with - * the opcode for p. use this when you *know* that p is pointer to a given type */ -#define REGNODE_AFTER_type(p,t) REGNODE_AFTER_plus((p),EXTRA_SIZE(t)) + +/* find the regnode after this p by using OP(p) to find the regnode type of p */ +#define REGNODE_AFTER(p) regnode_after(p) + /* REGNODE_BEFORE() is trickier to deal with in terms of validation, execution. * All the places that use it assume that p will be one struct regnode large. -- cgit v1.2.1