diff options
author | Yves Orton <demerphq@gmail.com> | 2022-07-30 19:06:31 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2022-08-03 11:07:09 +0200 |
commit | 83ca6c9dc53fc3a29f6f59f535adb99e2d036b6d (patch) | |
tree | a5b6cdcdec12a5bb7197fcd36a77c2b3dc8b3b0e /regcomp.h | |
parent | 689eab88ca31da31ff61f38d1aecdd06b9adcaea (diff) | |
download | perl-83ca6c9dc53fc3a29f6f59f535adb99e2d036b6d.tar.gz |
regex engine - Rename PL_regarglen to PL_regnode_arg_len
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -412,7 +412,7 @@ struct regnode_ssc { /* The number of (smallest) regnode equivalents that the node 'p' which uses * 'struct regnode_string' occupies. (These are EXACTish nodes and a few * others.) */ -#define NODE_SZ_STR(p) (STR_SZ(STR_LEN(p)) + 1 + PL_regarglen[(p)->type]) +#define NODE_SZ_STR(p) (STR_SZ(STR_LEN(p)) + 1 + PL_regnode_arg_len[(p)->type]) #define setSTR_LEN(p,v) \ STMT_START{ \ @@ -485,7 +485,7 @@ struct regnode_ssc { #define REGNODE_AFTER(p) REGNODE_AFTER_plus((p),0) /* find the regnode after this p by using the opcode we previously extracted * with OP(p) */ -#define REGNODE_AFTER_opcode(p,op) REGNODE_AFTER_plus((p),PL_regarglen[op]) +#define REGNODE_AFTER_opcode(p,op) REGNODE_AFTER_plus((p),PL_regnode_arg_len[op]) /* 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 @@ -519,13 +519,13 @@ struct regnode_ssc { FILL_ADVANCE_NODE(offset, op); \ /* This is used generically for other operations \ * that have a longer argument */ \ - (offset) += PL_regarglen[op]; \ + (offset) += PL_regnode_arg_len[op]; \ } STMT_END #define FILL_ADVANCE_NODE_ARGp(offset, op, arg) \ STMT_START { \ ARGp_SET(REGNODE_p(offset), arg); \ FILL_ADVANCE_NODE(offset, op); \ - (offset) += PL_regarglen[op]; \ + (offset) += PL_regnode_arg_len[op]; \ } STMT_END #define FILL_ADVANCE_NODE_2L_ARG(offset, op, arg1, arg2) \ STMT_START { \ |