/[pcre]/code/trunk/pcre_config.c
ViewVC logotype

Diff of /code/trunk/pcre_config.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 117 by ph10, Fri Mar 9 15:59:06 2007 UTC revision 376 by ph10, Sun Mar 1 12:00:59 2009 UTC
# Line 6  Line 6 
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-2007 University of Cambridge             Copyright (c) 1997-2009 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
# Line 41  POSSIBILITY OF SUCH DAMAGE. Line 41  POSSIBILITY OF SUCH DAMAGE.
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    
# Line 58  Arguments: Line 62  Arguments:
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 PCRE_CALL_CONVENTION
66  pcre_config(int what, void *where)  pcre_config(int what, void *where)
67  {  {
68  switch (what)  switch (what)
# Line 83  switch (what) Line 87  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;
# Line 92  switch (what) Line 104  switch (what)
104    break;    break;
105    
106    case PCRE_CONFIG_MATCH_LIMIT:    case PCRE_CONFIG_MATCH_LIMIT:
107    *((unsigned int *)where) = MATCH_LIMIT;    *((unsigned long int *)where) = MATCH_LIMIT;
108    break;    break;
109    
110    case PCRE_CONFIG_MATCH_LIMIT_RECURSION:    case PCRE_CONFIG_MATCH_LIMIT_RECURSION:
111    *((unsigned int *)where) = MATCH_LIMIT_RECURSION;    *((unsigned long int *)where) = MATCH_LIMIT_RECURSION;
112    break;    break;
113    
114    case PCRE_CONFIG_STACKRECURSE:    case PCRE_CONFIG_STACKRECURSE:

Legend:
Removed from v.117  
changed lines
  Added in v.376

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12