| 118 |
|
|
| 119 |
/* We also need the pcre_printint() function for printing out compiled |
/* We also need the pcre_printint() function for printing out compiled |
| 120 |
patterns. This function is in a separate file so that it can be included in |
patterns. This function is in a separate file so that it can be included in |
| 121 |
pcre_compile.c when that module is compiled with debugging enabled. |
pcre_compile.c when that module is compiled with debugging enabled. It needs to |
| 122 |
|
know which case is being compiled. */ |
|
The definition of the macro PRINTABLE, which determines whether to print an |
|
|
output character as-is or as a hex value when showing compiled patterns, is |
|
|
contained in this file. We uses it here also, in cases when the locale has not |
|
|
been explicitly changed, so as to get consistent output from systems that |
|
|
differ in their output from isprint() even in the "C" locale. */ |
|
| 123 |
|
|
| 124 |
|
#define COMPILING_PCRETEST |
| 125 |
#include "pcre_printint.src" |
#include "pcre_printint.src" |
| 126 |
|
|
| 127 |
#define PRINTHEX(c) (locale_set? isprint(c) : PRINTABLE(c)) |
/* The definition of the macro PRINTABLE, which determines whether to print an |
| 128 |
|
output character as-is or as a hex value when showing compiled patterns, is |
| 129 |
|
contained in the printint.src file. We uses it here also, in cases when the |
| 130 |
|
locale has not been explicitly changed, so as to get consistent output from |
| 131 |
|
systems that differ in their output from isprint() even in the "C" locale. */ |
| 132 |
|
|
| 133 |
|
#define PRINTHEX(c) (locale_set? isprint(c) : PRINTABLE(c)) |
| 134 |
|
|
| 135 |
/* It is possible to compile this test program without including support for |
/* It is possible to compile this test program without including support for |
| 136 |
testing the POSIX interface, though this is not available via the standard |
testing the POSIX interface, though this is not available via the standard |