| 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-2006 University of Cambridge |
Copyright (c) 1997-2008 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_DATA_SCOPE int |
PCRE_EXP_DEFN int |
| 66 |
pcre_config(int what, void *where) |
pcre_config(int what, void *where) |
| 67 |
{ |
{ |
| 68 |
switch (what) |
switch (what) |
| 87 |
*((int *)where) = NEWLINE; |
*((int *)where) = NEWLINE; |
| 88 |
break; |
break; |
| 89 |
|
|
| 90 |
|
case PCRE_CONFIG_BSR: |
| 91 |
|
#ifdef BSR_ANYCRLF |
| 92 |
|
*((int *)where) = 1; |
| 93 |
|
#else |
| 94 |
|
*((int *)where) = 0; |
| 95 |
|
#endif |
| 96 |
|
break; |
| 97 |
|
|
| 98 |
case PCRE_CONFIG_LINK_SIZE: |
case PCRE_CONFIG_LINK_SIZE: |
| 99 |
*((int *)where) = LINK_SIZE; |
*((int *)where) = LINK_SIZE; |
| 100 |
break; |
break; |