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

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

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

revision 818 by ph10, Thu Dec 22 20:11:31 2011 UTC revision 819 by zherczeg, Thu Dec 22 23:10:09 2011 UTC
# Line 3076  while (!done) Line 3076  while (!done)
3076    
3077      options = 0;      options = 0;
3078    
3079    #if defined SUPPORT_PCRE8 && defined SUPPORT_PCRE16
3080        if (use_pcre16)
3081          {
3082          *(PCRE_SCHAR16 *)copynames = 0;
3083          *(PCRE_SCHAR16 *)getnames = 0;
3084          }
3085        else
3086          {
3087          *copynames = 0;
3088          *getnames = 0;
3089          }
3090    #else
3091      *copynames = 0;      *copynames = 0;
     copynames[1] = 0;  
3092      *getnames = 0;      *getnames = 0;
3093      getnames[1] = 0;  #endif
3094    
3095      copynamesptr = copynames;      copynamesptr = copynames;
3096      getnamesptr = getnames;      getnamesptr = getnames;
# Line 3928  while (!done) Line 3939  while (!done)
3939                 (obits & PCRE_NEWLINE_BITS) == PCRE_NEWLINE_ANYCRLF)                 (obits & PCRE_NEWLINE_BITS) == PCRE_NEWLINE_ANYCRLF)
3940                &&                &&
3941                start_offset < len - 1 &&                start_offset < len - 1 &&
3942                bptr[start_offset * CHAR_SIZE] == '\r' &&  #if defined SUPPORT_PCRE8 && defined SUPPORT_PCRE16
3943                bptr[(start_offset + 1) * CHAR_SIZE] == '\n')                (use_pcre16?
3944                       ((PCRE_SPTR16)bptr)[start_offset] == '\r'
3945                    && ((PCRE_SPTR16)bptr)[start_offset + 1] == '\n'
3946                  :
3947                       bptr[start_offset] == '\r'
3948                    && bptr[start_offset + 1] == '\n')
3949    #else
3950                  bptr[start_offset] == '\r' &&
3951                  bptr[start_offset + 1] == '\n'
3952    #endif
3953                  )
3954              onechar++;              onechar++;
3955            else if (use_utf)            else if (use_utf)
3956              {              {

Legend:
Removed from v.818  
changed lines
  Added in v.819

  ViewVC Help
Powered by ViewVC 1.1.5