| 1 |
/* The value of LINK_SIZE determines the number of bytes used to store links |
|---|
| 2 |
as offsets within the compiled regex. The default is 2, which allows for |
|---|
| 3 |
compiled patterns up to 64K long. This covers the vast majority of cases. |
|---|
| 4 |
However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows |
|---|
| 5 |
for longer patterns in extreme cases. On systems that support it, |
|---|
| 6 |
"configure" can be used to override this default. */ |
|---|
| 7 |
#define LINK_SIZE 2 |
|---|
| 8 |
|
|---|
| 9 |
/* The value of MATCH_LIMIT determines the default number of times the |
|---|
| 10 |
internal match() function can be called during a single execution of |
|---|
| 11 |
pcre_exec(). There is a runtime interface for setting a different limit. |
|---|
| 12 |
The limit exists in order to catch runaway regular expressions that take |
|---|
| 13 |
for ever to determine that they do not match. The default is set very large |
|---|
| 14 |
so that it does not accidentally catch legitimate cases. On systems that |
|---|
| 15 |
support it, "configure" can be used to override this default default. */ |
|---|
| 16 |
#define MATCH_LIMIT 10000000 |
|---|
| 17 |
|
|---|
| 18 |
/* The above limit applies to all calls of match(), whether or not they |
|---|
| 19 |
increase the recursion depth. In some environments it is desirable to limit |
|---|
| 20 |
the depth of recursive calls of match() more strictly, in order to restrict |
|---|
| 21 |
the maximum amount of stack (or heap, if NO_RECURSE is defined) that is |
|---|
| 22 |
used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of |
|---|
| 23 |
match(). To have any useful effect, it must be less than the value of |
|---|
| 24 |
MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is |
|---|
| 25 |
a runtime method for setting a different limit. On systems that support it, |
|---|
| 26 |
"configure" can be used to override the default. */ |
|---|
| 27 |
#define MATCH_LIMIT_RECURSION MATCH_LIMIT |
|---|
| 28 |
|
|---|
| 29 |
/* This limit is parameterized just in case anybody ever wants to change it. |
|---|
| 30 |
Care must be taken if it is increased, because it guards against integer |
|---|
| 31 |
overflow caused by enormously large patterns. */ |
|---|
| 32 |
#define MAX_NAME_COUNT 10000 |
|---|
| 33 |
|
|---|
| 34 |
/* This limit is parameterized just in case anybody ever wants to change it. |
|---|
| 35 |
Care must be taken if it is increased, because it guards against integer |
|---|
| 36 |
overflow caused by enormously large patterns. */ |
|---|
| 37 |
#define MAX_NAME_SIZE 32 |
|---|
| 38 |
|
|---|
| 39 |
/* The value of NEWLINE determines the newline character sequence. On |
|---|
| 40 |
Unix-like systems, "configure" can be used to override the default, which |
|---|
| 41 |
is 10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF), -1 (ANY), or |
|---|
| 42 |
-2 (ANYCRLF). */ |
|---|
| 43 |
#define NEWLINE 10 |
|---|