/[pcre]/code/branches/pcre16/pcre_compile.c
ViewVC logotype

Diff of /code/branches/pcre16/pcre_compile.c

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

revision 756 by ph10, Mon Nov 21 10:48:42 2011 UTC revision 757 by ph10, Mon Nov 21 11:44:55 2011 UTC
# Line 7213  Returns:        pointer to compiled data Line 7213  Returns:        pointer to compiled data
7213                  with errorptr and erroroffset set                  with errorptr and erroroffset set
7214  */  */
7215    
7216    #ifndef COMPILE_PCRE16
7217  PCRE_EXP_DEFN pcre * PCRE_CALL_CONVENTION  PCRE_EXP_DEFN pcre * PCRE_CALL_CONVENTION
7218  pcre_compile(const char *pattern, int options, const char **errorptr,  pcre_compile(const char *pattern, int options, const char **errorptr,
7219    int *erroroffset, const unsigned char *tables)    int *erroroffset, const unsigned char *tables)
7220    #else
7221    PCRE_EXP_DEFN pcre * PCRE_CALL_CONVENTION
7222    pcre16_compile(PCRE_SPTR16 pattern, int options, const char **errorptr,
7223      int *erroroffset, const unsigned char *tables)
7224    #endif
7225  {  {
7226    #ifndef COMPILE_PCRE16
7227  return pcre_compile2(pattern, options, NULL, errorptr, erroroffset, tables);  return pcre_compile2(pattern, options, NULL, errorptr, erroroffset, tables);
7228    #else
7229    return pcre16_compile2(pattern, options, NULL, errorptr, erroroffset, tables);
7230    #endif
7231  }  }
7232    
7233    
7234    #ifndef COMPILE_PCRE16
7235  PCRE_EXP_DEFN pcre * PCRE_CALL_CONVENTION  PCRE_EXP_DEFN pcre * PCRE_CALL_CONVENTION
7236  pcre_compile2(const char *pattern, int options, int *errorcodeptr,  pcre_compile2(const char *pattern, int options, int *errorcodeptr,
7237    const char **errorptr, int *erroroffset, const unsigned char *tables)    const char **errorptr, int *erroroffset, const unsigned char *tables)
7238    #else
7239    PCRE_EXP_DEFN pcre * PCRE_CALL_CONVENTION
7240    pcre16_compile2(PCRE_SPTR16 pattern, int options, int *errorcodeptr,
7241      const char **errorptr, int *erroroffset, const unsigned char *tables)
7242    #endif
7243  {  {
7244  real_pcre *re;  real_pcre *re;
7245  int length = 1;  /* For final END opcode */  int length = 1;  /* For final END opcode */

Legend:
Removed from v.756  
changed lines
  Added in v.757

  ViewVC Help
Powered by ViewVC 1.1.5