summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-07-30 19:36:07 +0200
committerYves Orton <demerphq@gmail.com>2022-08-03 11:07:09 +0200
commit19a5f8d316d541b9a9adb54c5a918787760100e1 (patch)
tree3aeb8d9b29646657f22a880ac464870f2ac12f72 /regcomp.h
parent6f83e0eceec58363a6a1027ef9a408c9cf4f28b9 (diff)
downloadperl-19a5f8d316d541b9a9adb54c5a918787760100e1.tar.gz
regex engine - rename REGNODE_AFTER_dynamic() REGNODE_AFTER()
Now that REGNODE_AFTER() can handle all cases it makes sense to remove the dynamic() suffix.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h6
1 files changed, 4 insertions, 2 deletions
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.