| 6 |
and semantics are as close as possible to those of the Perl 5 language. |
and semantics are as close as possible to those of the Perl 5 language. |
| 7 |
|
|
| 8 |
Written by Philip Hazel |
Written by Philip Hazel |
| 9 |
Copyright (c) 1997-2005 University of Cambridge |
Copyright (c) 1997-2006 University of Cambridge |
| 10 |
|
|
| 11 |
----------------------------------------------------------------------------- |
----------------------------------------------------------------------------- |
| 12 |
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
| 58 |
Returns: 0 if data returned, negative on error |
Returns: 0 if data returned, negative on error |
| 59 |
*/ |
*/ |
| 60 |
|
|
| 61 |
EXPORT int |
PCRE_DATA_SCOPE int |
| 62 |
pcre_config(int what, void *where) |
pcre_config(int what, void *where) |
| 63 |
{ |
{ |
| 64 |
switch (what) |
switch (what) |
| 95 |
*((unsigned int *)where) = MATCH_LIMIT; |
*((unsigned int *)where) = MATCH_LIMIT; |
| 96 |
break; |
break; |
| 97 |
|
|
| 98 |
|
case PCRE_CONFIG_MATCH_LIMIT_RECURSION: |
| 99 |
|
*((unsigned int *)where) = MATCH_LIMIT_RECURSION; |
| 100 |
|
break; |
| 101 |
|
|
| 102 |
case PCRE_CONFIG_STACKRECURSE: |
case PCRE_CONFIG_STACKRECURSE: |
| 103 |
#ifdef NO_RECURSE |
#ifdef NO_RECURSE |
| 104 |
*((int *)where) = 0; |
*((int *)where) = 0; |