45 |
#include "pcre_internal.h" |
#include "pcre_internal.h" |
46 |
|
|
47 |
|
|
48 |
|
/* When DEBUG is defined, we need the pcre_printint() function, which is also |
49 |
|
used by pcretest. DEBUG is not defined when building a production library. */ |
50 |
|
|
51 |
|
#ifdef DEBUG |
52 |
|
#include "pcre_printint.src" |
53 |
|
#endif |
54 |
|
|
55 |
|
|
56 |
|
|
57 |
/************************************************* |
/************************************************* |
58 |
* Code parameters and static tables * |
* Code parameters and static tables * |
59 |
*************************************************/ |
*************************************************/ |
3848 |
with errorptr and erroroffset set |
with errorptr and erroroffset set |
3849 |
*/ |
*/ |
3850 |
|
|
3851 |
EXPORT pcre * |
PCRE_EXPORT pcre * |
3852 |
pcre_compile(const char *pattern, int options, const char **errorptr, |
pcre_compile(const char *pattern, int options, const char **errorptr, |
3853 |
int *erroroffset, const unsigned char *tables) |
int *erroroffset, const unsigned char *tables) |
3854 |
{ |
{ |
3856 |
} |
} |
3857 |
|
|
3858 |
|
|
3859 |
EXPORT pcre * |
PCRE_EXPORT pcre * |
3860 |
pcre_compile2(const char *pattern, int options, int *errorcodeptr, |
pcre_compile2(const char *pattern, int options, int *errorcodeptr, |
3861 |
const char **errorptr, int *erroroffset, const unsigned char *tables) |
const char **errorptr, int *erroroffset, const unsigned char *tables) |
3862 |
{ |
{ |
5009 |
re->options |= PCRE_REQCHSET; |
re->options |= PCRE_REQCHSET; |
5010 |
} |
} |
5011 |
|
|
5012 |
/* Print out the compiled data for debugging */ |
/* Print out the compiled data if debugging is enabled. This is never the |
5013 |
|
case when building a production library. */ |
5014 |
|
|
5015 |
#ifdef DEBUG |
#ifdef DEBUG |
5016 |
|
|
5048 |
else printf("Req char = \\x%02x%s\n", ch, caseless); |
else printf("Req char = \\x%02x%s\n", ch, caseless); |
5049 |
} |
} |
5050 |
|
|
5051 |
_pcre_printint(re, stdout); |
pcre_printint(re, stdout); |
5052 |
|
|
5053 |
/* This check is done here in the debugging case so that the code that |
/* This check is done here in the debugging case so that the code that |
5054 |
was compiled can be seen. */ |
was compiled can be seen. */ |