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

Diff of /code/trunk/pcre_compile.c

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

revision 81 by nigel, Sat Feb 24 21:40:59 2007 UTC revision 85 by nigel, Sat Feb 24 21:41:13 2007 UTC
# Line 45  supporting internal functions that are n Line 45  supporting internal functions that are n
45  #include "pcre_internal.h"  #include "pcre_internal.h"
46    
47    
48    /* When DEBUG is defined, we need the pcre_printint() function, which is also
49    used by pcretest. DEBUG is not defined when building a production library. */
50    
51    #ifdef DEBUG
52    #include "pcre_printint.src"
53    #endif
54    
55    
56    
57  /*************************************************  /*************************************************
58  *      Code parameters and static tables         *  *      Code parameters and static tables         *
59  *************************************************/  *************************************************/
# Line 3839  Returns: pointer to compiled data Line 3848  Returns: pointer to compiled data
3848                  with errorptr and erroroffset set                  with errorptr and erroroffset set
3849  */  */
3850    
3851  EXPORT pcre *  PCRE_EXPORT pcre *
3852  pcre_compile(const char *pattern, int options, const char **errorptr,  pcre_compile(const char *pattern, int options, const char **errorptr,
3853    int *erroroffset, const unsigned char *tables)    int *erroroffset, const unsigned char *tables)
3854  {  {
# Line 3847  return pcre_compile2(pattern, options, N Line 3856  return pcre_compile2(pattern, options, N
3856  }  }
3857    
3858    
3859  EXPORT pcre *  PCRE_EXPORT pcre *
3860  pcre_compile2(const char *pattern, int options, int *errorcodeptr,  pcre_compile2(const char *pattern, int options, int *errorcodeptr,
3861    const char **errorptr, int *erroroffset, const unsigned char *tables)    const char **errorptr, int *erroroffset, const unsigned char *tables)
3862  {  {
# Line 5000  if (reqbyte >= 0 && Line 5009  if (reqbyte >= 0 &&
5009    re->options |= PCRE_REQCHSET;    re->options |= PCRE_REQCHSET;
5010    }    }
5011    
5012  /* Print out the compiled data for debugging */  /* Print out the compiled data if debugging is enabled. This is never the
5013    case when building a production library. */
5014    
5015  #ifdef DEBUG  #ifdef DEBUG
5016    
# Line 5038  if ((re->options & PCRE_REQCHSET) != 0) Line 5048  if ((re->options & PCRE_REQCHSET) != 0)
5048      else printf("Req char = \\x%02x%s\n", ch, caseless);      else printf("Req char = \\x%02x%s\n", ch, caseless);
5049    }    }
5050    
5051  _pcre_printint(re, stdout);  pcre_printint(re, stdout);
5052    
5053  /* This check is done here in the debugging case so that the code that  /* This check is done here in the debugging case so that the code that
5054  was compiled can be seen. */  was compiled can be seen. */

Legend:
Removed from v.81  
changed lines
  Added in v.85

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12