| 62 |
Returns: 0 if data returned, negative on error |
Returns: 0 if data returned, negative on error |
| 63 |
*/ |
*/ |
| 64 |
|
|
| 65 |
|
#ifdef COMPILE_PCRE8 |
| 66 |
PCRE_EXP_DEFN int PCRE_CALL_CONVENTION |
PCRE_EXP_DEFN int PCRE_CALL_CONVENTION |
| 67 |
pcre_config(int what, void *where) |
pcre_config(int what, void *where) |
| 68 |
|
#else |
| 69 |
|
PCRE_EXP_DEFN int PCRE_CALL_CONVENTION |
| 70 |
|
pcre16_config(int what, void *where) |
| 71 |
|
#endif |
| 72 |
{ |
{ |
| 73 |
switch (what) |
switch (what) |
| 74 |
{ |
{ |
| 75 |
case PCRE_CONFIG_UTF8: |
case PCRE_CONFIG_UTF8: |
| 76 |
#ifdef SUPPORT_UTF8 |
#if defined SUPPORT_UTF8 && defined COMPILE_PCRE8 |
| 77 |
|
*((int *)where) = 1; |
| 78 |
|
#else |
| 79 |
|
*((int *)where) = 0; |
| 80 |
|
#endif |
| 81 |
|
break; |
| 82 |
|
|
| 83 |
|
case PCRE_CONFIG_UTF16: |
| 84 |
|
#if defined SUPPORT_UTF16 && defined COMPILE_PCRE16 |
| 85 |
*((int *)where) = 1; |
*((int *)where) = 1; |
| 86 |
#else |
#else |
| 87 |
*((int *)where) = 0; |
*((int *)where) = 0; |