Permalink
Browse files

regcomp.c: Change macro formal parameter name

The parameter is not a node, but an offset into the array of nodes;  The
new name is clearer.
  • Loading branch information...
khwilliamson committed Sep 17, 2018
1 parent f568f14 commit 58249092e5c7344d5a36c5250e82ea015d39bfec
Showing with 6 additions and 6 deletions.
  1. +6 −6 regcomp.c
View
@@ -890,7 +890,7 @@ static const scan_data_t zero_scan_data = {
* Position is 1 indexed.
*/
#ifndef RE_TRACK_PATTERN_OFFSETS
#define Set_Node_Offset_To_R(node,byte)
#define Set_Node_Offset_To_R(offset,byte)
#define Set_Node_Offset(node,byte)
#define Set_Cur_Node_Offset
#define Set_Node_Length_To_R(node,len)
@@ -904,15 +904,15 @@ static const scan_data_t zero_scan_data = {
#else
#define ProgLen(ri) ri->u.offsets[0]
#define SetProgLen(ri,x) ri->u.offsets[0] = x
#define Set_Node_Offset_To_R(node,byte) STMT_START { \
#define Set_Node_Offset_To_R(offset,byte) STMT_START { \
if (! SIZE_ONLY) { \
MJD_OFFSET_DEBUG(("** (%d) offset of node %d is %d.\n", \
__LINE__, (int)(node), (int)(byte))); \
if((node) < 0) { \
__LINE__, (int)(offset), (int)(byte))); \
if((offset) < 0) { \
Perl_croak(aTHX_ "value of node is %d in Offset macro", \
(int)(node)); \
(int)(offset)); \
} else { \
RExC_offsets[2*(node)-1] = (byte); \
RExC_offsets[2*(offset)-1] = (byte); \
} \
} \
} STMT_END

0 comments on commit 5824909

Please sign in to comment.