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

Diff of /code/trunk/pcretest.c

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

revision 1344 by ph10, Tue May 28 09:13:59 2013 UTC revision 1345 by ph10, Tue Jul 2 17:52:28 2013 UTC
# Line 2031  return yield; Line 2031  return yield;
2031    
2032  static int strlen16(PCRE_SPTR16 p)  static int strlen16(PCRE_SPTR16 p)
2033  {  {
2034  int len = 0;  PCRE_SPTR16 pp = p;
2035  while (*p++ != 0) len++;  while (*pp != 0) pp++;
2036  return len;  return (int)(pp - p);
2037  }  }
2038  #endif  /* SUPPORT_PCRE16 */  #endif  /* SUPPORT_PCRE16 */
2039    
# Line 2046  return len; Line 2046  return len;
2046    
2047  static int strlen32(PCRE_SPTR32 p)  static int strlen32(PCRE_SPTR32 p)
2048  {  {
2049  int len = 0;  PCRE_SPTR32 pp = p;
2050  while (*p++ != 0) len++;  while (*pp != 0) pp++;
2051  return len;  return (int)(pp - p);
2052  }  }
2053  #endif  /* SUPPORT_PCRE32 */  #endif  /* SUPPORT_PCRE32 */
2054    

Legend:
Removed from v.1344  
changed lines
  Added in v.1345

  ViewVC Help
Powered by ViewVC 1.1.5