Skip to content

Commit 60385d5

Browse files
committed
fix outdated pcre2_chartables.c (pcre2_chartables.c.dist)
1 parent bd1bda4 commit 60385d5

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

ext/pcre/pcre2lib/pcre2_chartables.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
/* This file was automatically written by the pcre2_dftables auxiliary
66
program. It contains character tables that are used when no external
77
tables are passed to PCRE2 by the application that calls it. The tables
8-
are used only for characters whose code values are less than 256. */
8+
are used only for characters whose code values are less than 256, and
9+
only relevant if not in UCP mode. */
910

1011
/* This set of tables was written in the C locale. */
1112

@@ -18,13 +19,6 @@ PCRE2 is configured with --enable-rebuild-chartables. However, you can run
1819
pcre2_dftables manually with the -L option to build tables using the LC_ALL
1920
locale. */
2021

21-
/* The following #include is present because without it gcc 4.x may remove
22-
the array definition from the final binary if PCRE2 is built into a static
23-
library and dead code stripping is activated. This leads to link errors.
24-
Pulling in the header ensures that the array gets flagged as "someone
25-
outside this compilation unit might reference this" and so it will always
26-
be supplied to the linker. */
27-
2822
#ifdef HAVE_CONFIG_H
2923
#include "config.h"
3024
#endif
@@ -163,7 +157,7 @@ graph, print, punct, and cntrl. Other classes are built from combinations. */
163157
0x02 letter
164158
0x04 lower case letter
165159
0x08 decimal digit
166-
0x10 alphanumeric or '_'
160+
0x10 word (alphanumeric or '_')
167161
*/
168162

169163
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0- 7 */

0 commit comments

Comments
 (0)