summaryrefslogtreecommitdiff
path: root/inline_invlist.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-02-12 09:20:44 -0700
committerKarl Williamson <public@khwilliamson.com>2013-07-03 19:21:18 -0600
commit875c4e2c5193b5245da578b222e9c93aad31d93b (patch)
tree4b1cac3ee58d146a169187cc21ba0c4fc2cdd813 /inline_invlist.c
parent4fdeca7844470c929f35857f49078db1fd124dbc (diff)
downloadperl-875c4e2c5193b5245da578b222e9c93aad31d93b.tar.gz
regcomp.c: Change, variable, fcn name
These have always been slightly misnamed, but a recent commit made them more so. The old name contained "zero", but now there is a new element which always has zero. This element indicates whether the inversion list is offset, that is if the beginning is the zero element, or if the beginning is the next element beyond the zero element.
Diffstat (limited to 'inline_invlist.c')
-rw-r--r--inline_invlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/inline_invlist.c b/inline_invlist.c
index 5d239bd6cd..21d628205c 100644
--- a/inline_invlist.c
+++ b/inline_invlist.c
@@ -18,8 +18,8 @@
#define INVLIST_VERSION_ID_OFFSET 1
#define INVLIST_VERSION_ID 1511554547
-#define INVLIST_ZERO_OFFSET 2 /* 0 or 1 */
-/* The UV at position ZERO contains either 0 or 1. If 0, the inversion list
+#define INVLIST_OFFSET_OFFSET 2 /* 0 or 1 */
+/* The UV at this position contains either 0 or 1. If 0, the inversion list
* contains the code point U+00000, and begins at element [0] in the array,
* which always contains 0. If 1, the inversion list doesn't contain U+0000,
* and it begins at element [1]. Inverting an inversion list consists of
@@ -29,7 +29,7 @@
/* For safety, when adding new elements, remember to #undef them at the end of
* the inversion list code section */
-#define HEADER_LENGTH (INVLIST_ZERO_OFFSET + 2) /* includes 1 for the constant
+#define HEADER_LENGTH (INVLIST_OFFSET_OFFSET + 2) /* includes 1 for the constant
0 element */
/* An element is in an inversion list iff its index is even numbered: 0, 2, 4,