@@ -56,10 +56,11 @@ given, they are written in binary. */
56
56
#include <string.h>
57
57
#include <locale.h>
58
58
59
+ #define PCRE2_DFTABLES /* for pcre2_internal.h, pcre2_maketables.c */
60
+
59
61
#define PCRE2_CODE_UNIT_WIDTH 0 /* Must be set, but not relevant here */
60
62
#include "pcre2_internal.h"
61
63
62
- #define PCRE2_DFTABLES /* pcre2_maketables.c notices this */
63
64
#include "pcre2_maketables.c"
64
65
65
66
98
99
int nclass = 0 ;
99
100
BOOL binary = FALSE;
100
101
char * env = (char * )"C" ;
101
- const unsigned char * tables ;
102
- const unsigned char * base_of_tables ;
102
+ const uint8_t * tables ;
103
+ const uint8_t * base_of_tables ;
103
104
104
105
/* Process options */
105
106
@@ -180,7 +181,8 @@ the very long string otherwise. */
180
181
"/* This file was automatically written by the pcre2_dftables auxiliary\n"
181
182
"program. It contains character tables that are used when no external\n"
182
183
"tables are passed to PCRE2 by the application that calls it. The tables\n"
183
- "are used only for characters whose code values are less than 256. */\n\n" );
184
+ "are used only for characters whose code values are less than 256, and\n"
185
+ "only relevant if not in UCP mode. */\n\n" );
184
186
185
187
(void )fprintf (f ,
186
188
"/* This set of tables was written in the %s locale. */\n\n" , env );
@@ -205,14 +207,6 @@ the very long string otherwise. */
205
207
"#endif\n\n" );
206
208
#endif
207
209
208
- (void )fprintf (f ,
209
- "/* The following #include is present because without it gcc 4.x may remove\n"
210
- "the array definition from the final binary if PCRE2 is built into a static\n"
211
- "library and dead code stripping is activated. This leads to link errors.\n"
212
- "Pulling in the header ensures that the array gets flagged as \"someone\n"
213
- "outside this compilation unit might reference this\" and so it will always\n"
214
- "be supplied to the linker. */\n\n" );
215
-
216
210
(void )fprintf (f ,
217
211
"#ifdef HAVE_CONFIG_H\n"
218
212
"#include \"config.h\"\n"
@@ -269,7 +263,7 @@ for (i = 0; i < cbit_length; i++)
269
263
" 0x%02x letter\n"
270
264
" 0x%02x lower case letter\n"
271
265
" 0x%02x decimal digit\n"
272
- " 0x%02x alphanumeric or '_'\n*/\n\n" ,
266
+ " 0x%02x word ( alphanumeric or '_') \n*/\n\n" ,
273
267
ctype_space , ctype_letter , ctype_lcletter , ctype_digit , ctype_word );
274
268
275
269
(void )fprintf (f , " " );
0 commit comments