/[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 145 by ph10, Wed Apr 4 14:06:52 2007 UTC revision 359 by ph10, Wed Jul 9 16:20:19 2008 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-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
# 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_EXP_DEFN 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;

Legend:
Removed from v.145  
changed lines
  Added in v.359

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12