summaryrefslogtreecommitdiff
path: root/inline_invlist.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-07-06 15:10:14 -0600
committerKarl Williamson <public@khwilliamson.com>2013-07-16 13:58:08 -0600
commit596005989a9f38f57e92b1769576e19a9527c59a (patch)
tree15cfef254d6207540b26f5bbd020b6f649303e27 /inline_invlist.c
parentaf4954206dfba1b5195f1d962d6a5af92d7efa12 (diff)
downloadperl-596005989a9f38f57e92b1769576e19a9527c59a.tar.gz
Reinstate "regcomp.c: Move some #defines to only file that uses them"
This reverts commit 247f9b19318882fd9a52fe49aa31fc8d3d3db4f7, which reverted 05944450e0fc82eb8fc1fb5a4bf63f23785262a0, thus reinstating the latter commit. It turns out that the error being chased down was not due to this commit. Its original message was: These were used in a header file to provide synchronization between files. However, the only other file that would need them is a .pl file which doesn't have access to them. So simplify things so that the variables are either removed entirely if only used in a single place, or are #defined in the area where they are used
Diffstat (limited to 'inline_invlist.c')
-rw-r--r--inline_invlist.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/inline_invlist.c b/inline_invlist.c
index c6bc47ef38..ced42d85c0 100644
--- a/inline_invlist.c
+++ b/inline_invlist.c
@@ -8,30 +8,6 @@
#if defined(PERL_IN_UTF8_C) || defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_REGEXEC_C)
-#define INVLIST_LEN_OFFSET 0 /* Number of elements in the inversion list */
-
-/* This is a combination of a version and data structure type, so that one
- * being passed in can be validated to be an inversion list of the correct
- * vintage. When the structure of the header is changed, a new random number
- * in the range 2**31-1 should be generated. Then, if an auxiliary program
- * doesn't change correspondingly, it will be discovered immediately */
-#define INVLIST_VERSION_ID_OFFSET 1
-#define INVLIST_VERSION_ID 1826693541
-
-#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
- * 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 */
-
-/* For safety, when adding new elements, remember to #undef them at the end of
- * the inversion list code section */
-
-#define HEADER_LENGTH (INVLIST_OFFSET_OFFSET + 1) /* includes 1 for the constant
- 0 element */
-
/* An element is in an inversion list iff its index is even numbered: 0, 2, 4,
* etc */
#define ELEMENT_RANGE_MATCHES_INVLIST(i) (! ((i) & 1))