/[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 862 by ph10, Wed Jan 11 16:07:32 2012 UTC revision 881 by ph10, Sun Jan 15 18:07:05 2012 UTC
# Line 2182  pcre_jit_stack *jit_stack = NULL; Line 2182  pcre_jit_stack *jit_stack = NULL;
2182  substring names, each list itself being terminated by an empty name. Assume  substring names, each list itself being terminated by an empty name. Assume
2183  that 1024 is plenty long enough for the few names we'll be testing. It is  that 1024 is plenty long enough for the few names we'll be testing. It is
2184  easiest to keep separate 8-bit and 16-bit versions, using the 16-bit version  easiest to keep separate 8-bit and 16-bit versions, using the 16-bit version
2185  for the actual memory, to ensure alignment. By defining these variables always  for the actual memory, to ensure alignment. */
 (whether or not 8-bit or 16-bit is supported), we avoid too much mess with  
 #ifdefs in the code. */  
2186    
2187  pcre_uint16 copynames[1024];  pcre_uint16 copynames[1024];
2188  pcre_uint16 getnames[1024];  pcre_uint16 getnames[1024];
2189    
2190    #ifdef SUPPORT_PCRE16
2191  pcre_uint16 *cn16ptr;  pcre_uint16 *cn16ptr;
2192  pcre_uint16 *gn16ptr;  pcre_uint16 *gn16ptr;
2193    #endif
2194    
2195    #ifdef SUPPORT_PCRE8
2196  pcre_uint8 *copynames8 = (pcre_uint8 *)copynames;  pcre_uint8 *copynames8 = (pcre_uint8 *)copynames;
2197  pcre_uint8 *getnames8 = (pcre_uint8 *)getnames;  pcre_uint8 *getnames8 = (pcre_uint8 *)getnames;
2198  pcre_uint8 *cn8ptr;  pcre_uint8 *cn8ptr;
2199  pcre_uint8 *gn8ptr;  pcre_uint8 *gn8ptr;
2200    #endif
2201    
2202  /* Get buffers from malloc() so that valgrind will check their misuse when  /* Get buffers from malloc() so that valgrind will check their misuse when
2203  debugging. They grow automatically when very long lines are read. The 16-bit  debugging. They grow automatically when very long lines are read. The 16-bit
# Line 3369  while (!done) Line 3371  while (!done)
3371      *copynames = 0;      *copynames = 0;
3372      *getnames = 0;      *getnames = 0;
3373    
3374    #ifdef SUPPORT_PCRE16
3375      cn16ptr = copynames;      cn16ptr = copynames;
3376      gn16ptr = getnames;      gn16ptr = getnames;
3377    #endif
3378    #ifdef SUPPORT_PCRE8
3379      cn8ptr = copynames8;      cn8ptr = copynames8;
3380      gn8ptr = getnames8;      gn8ptr = getnames8;
3381    #endif
3382    
3383      SET_PCRE_CALLOUT(callout);      SET_PCRE_CALLOUT(callout);
3384      first_callout = 1;      first_callout = 1;

Legend:
Removed from v.862  
changed lines
  Added in v.881

  ViewVC Help
Powered by ViewVC 1.1.5