summaryrefslogtreecommitdiff
path: root/inline_invlist.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-07-04 22:01:05 -0600
committerKarl Williamson <public@khwilliamson.com>2013-07-04 22:44:52 -0600
commitde353015643cf10b437d714d3483c1209e079916 (patch)
treebf756d015c7d5c70451fc1f071c0c79ef3977565 /inline_invlist.c
parentac7a6f5849b5fd57b2e837f4ddbc18c992610e9c (diff)
downloadperl-de353015643cf10b437d714d3483c1209e079916.tar.gz
Revert "regcomp.c: Add a constant 0 element before inversion lists"
This reverts commit 533c4e2f08b42d977e5004e823d4849f7473d2d0. This continues the backing out of this topic branch. A bisect shows that the first commit exhibiting an error is the first one in the branch.
Diffstat (limited to 'inline_invlist.c')
-rw-r--r--inline_invlist.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/inline_invlist.c b/inline_invlist.c
index b194c0d264..b56ce60002 100644
--- a/inline_invlist.c
+++ b/inline_invlist.c
@@ -20,21 +20,20 @@
* insert that at this location. Then, if an auxiliary program doesn't change
* correspondingly, it will be discovered immediately */
#define INVLIST_VERSION_ID_OFFSET 3
-#define INVLIST_VERSION_ID 1039476070
-
-#define INVLIST_ZERO_OFFSET 4 /* 0 or 1 */
-/* The UV at position ZERO 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
- * adding or removing the 0 at the beginning of it. By reserving a space for
- * that 0, inversion can be made very fast: we just flip this UV */
+#define INVLIST_VERSION_ID 290655244
/* 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
- 0 element */
+#define INVLIST_ZERO_OFFSET 4 /* 0 or 1; must be last element in header */
+/* The UV at position ZERO contains either 0 or 1. If 0, the inversion list
+ * contains the code point U+00000, and begins here. If 1, the inversion list
+ * doesn't contain U+0000, and it begins at the next UV in the array.
+ * Inverting an inversion list consists of adding or removing the 0 at the
+ * beginning of it. By reserving a space for that 0, inversion can be made
+ * very fast */
+
+#define HEADER_LENGTH (INVLIST_ZERO_OFFSET + 1)
/* An element is in an inversion list iff its index is even numbered: 0, 2, 4,
* etc */