| 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-2007 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 |
| 41 |
/* This module contains the external function pcre_config(). */ |
/* This module contains the external function pcre_config(). */ |
| 42 |
|
|
| 43 |
|
|
| 44 |
|
#ifdef HAVE_CONFIG_H |
| 45 |
|
#include <config.h> |
| 46 |
|
#endif |
| 47 |
|
|
| 48 |
#include "pcre_internal.h" |
#include "pcre_internal.h" |
| 49 |
|
|
| 50 |
|
|
| 62 |
Returns: 0 if data returned, negative on error |
Returns: 0 if data returned, negative on error |
| 63 |
*/ |
*/ |
| 64 |
|
|
| 65 |
PCRE_EXPORT int |
PCRE_EXP_DEFN int |
| 66 |
pcre_config(int what, void *where) |
pcre_config(int what, void *where) |
| 67 |
{ |
{ |
| 68 |
switch (what) |
switch (what) |
| 99 |
*((unsigned int *)where) = MATCH_LIMIT; |
*((unsigned int *)where) = MATCH_LIMIT; |
| 100 |
break; |
break; |
| 101 |
|
|
| 102 |
|
case PCRE_CONFIG_MATCH_LIMIT_RECURSION: |
| 103 |
|
*((unsigned int *)where) = MATCH_LIMIT_RECURSION; |
| 104 |
|
break; |
| 105 |
|
|
| 106 |
case PCRE_CONFIG_STACKRECURSE: |
case PCRE_CONFIG_STACKRECURSE: |
| 107 |
#ifdef NO_RECURSE |
#ifdef NO_RECURSE |
| 108 |
*((int *)where) = 0; |
*((int *)where) = 0; |