| 43 |
locale. Now that pcre_maketables is a function visible to the outside world, we |
locale. Now that pcre_maketables is a function visible to the outside world, we |
| 44 |
make use of its code from here in order to be consistent. */ |
make use of its code from here in order to be consistent. */ |
| 45 |
|
|
| 46 |
|
#ifdef HAVE_CONFIG_H |
| 47 |
|
#include <config.h> |
| 48 |
|
#endif |
| 49 |
|
|
| 50 |
#include <ctype.h> |
#include <ctype.h> |
| 51 |
#include <stdio.h> |
#include <stdio.h> |
| 52 |
#include <string.h> |
#include <string.h> |
| 103 |
"tables are passed to PCRE by the application that calls it. The tables\n" |
"tables are passed to PCRE by the application that calls it. The tables\n" |
| 104 |
"are used only for characters whose code values are less than 256.\n\n"); |
"are used only for characters whose code values are less than 256.\n\n"); |
| 105 |
fprintf(f, |
fprintf(f, |
| 106 |
"The following #include is present because without it gcc 4.x may remove\n" |
"The following #includes are present because without them gcc 4.x may remove\n" |
| 107 |
"the array definition from the final binary if PCRE is built into a static\n" |
"the array definition from the final binary if PCRE is built into a static\n" |
| 108 |
"library and dead code stripping is activated. This leads to link errors.\n" |
"library and dead code stripping is activated. This leads to link errors.\n" |
| 109 |
"Pulling in the header ensures that the array gets flagged as \"someone\n" |
"Pulling in the header ensures that the array gets flagged as \"someone\n" |
| 110 |
"outside this compilation unit might reference this\" and so it will always\n" |
"outside this compilation unit might reference this\" and so it will always\n" |
| 111 |
"be supplied to the linker. */\n\n" |
"be supplied to the linker. */\n\n" |
| 112 |
|
"#ifdef HAVE_CONFIG_H" |
| 113 |
|
"#include <config.h>" |
| 114 |
|
"#endif" |
| 115 |
"#include \"pcre_internal.h\"\n\n"); |
"#include \"pcre_internal.h\"\n\n"); |
| 116 |
fprintf(f, |
fprintf(f, |
| 117 |
"const unsigned char _pcre_default_tables[] = {\n\n" |
"const unsigned char _pcre_default_tables[] = {\n\n" |