/[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 974 by ph10, Sat Apr 21 18:06:31 2012 UTC revision 975 by ph10, Sat Jun 2 11:03:06 2012 UTC
# Line 737  static const char *errtexts[] = { Line 737  static const char *errtexts[] = {
737    "JIT stack limit reached",    "JIT stack limit reached",
738    "pattern compiled in wrong mode: 8-bit/16-bit error",    "pattern compiled in wrong mode: 8-bit/16-bit error",
739    "pattern compiled with other endianness",    "pattern compiled with other endianness",
740    "invalid data in workspace for DFA restart"    "invalid data in workspace for DFA restart"
741  };  };
742    
743    
# Line 2600  while (!done) Line 2600  while (!done)
2600    int do_showcaprest = 0;    int do_showcaprest = 0;
2601    int do_flip = 0;    int do_flip = 0;
2602    int erroroffset, len, delimiter, poffset;    int erroroffset, len, delimiter, poffset;
2603    
2604  #if !defined NODFA  #if !defined NODFA
2605    int dfa_matched = 0;    int dfa_matched = 0;
2606  #endif  #endif
2607    
2608    use_utf = 0;    use_utf = 0;
2609    debug_lengths = 1;    debug_lengths = 1;
# Line 3946  while (!done) Line 3946  while (!done)
3946              {              {
3947              fprintf(outfile, "Timing DFA restarts is not supported\n");              fprintf(outfile, "Timing DFA restarts is not supported\n");
3948              break;              break;
3949              }              }
3950            if (dfa_workspace == NULL)            if (dfa_workspace == NULL)
3951              dfa_workspace = (int *)malloc(DFA_WS_DIMENSION*sizeof(int));              dfa_workspace = (int *)malloc(DFA_WS_DIMENSION*sizeof(int));
3952            for (i = 0; i < timeitm; i++)            for (i = 0; i < timeitm; i++)
3953              {              {
3954              PCRE_DFA_EXEC(count, re, extra, bptr, len, start_offset,              PCRE_DFA_EXEC(count, re, extra, bptr, len, start_offset,
# Line 4019  while (!done) Line 4019  while (!done)
4019  #if !defined NODFA  #if !defined NODFA
4020        else if (all_use_dfa || use_dfa)        else if (all_use_dfa || use_dfa)
4021          {          {
4022          if (dfa_workspace == NULL)          if (dfa_workspace == NULL)
4023            dfa_workspace = (int *)malloc(DFA_WS_DIMENSION*sizeof(int));            dfa_workspace = (int *)malloc(DFA_WS_DIMENSION*sizeof(int));
4024          if (dfa_matched++ == 0)          if (dfa_matched++ == 0)
4025            dfa_workspace[0] = -1;  /* To catch bad restart */            dfa_workspace[0] = -1;  /* To catch bad restart */
4026          PCRE_DFA_EXEC(count, re, extra, bptr, len, start_offset,          PCRE_DFA_EXEC(count, re, extra, bptr, len, start_offset,
4027            (options | g_notempty), use_offsets, use_size_offsets, dfa_workspace,            (options | g_notempty), use_offsets, use_size_offsets, dfa_workspace,

Legend:
Removed from v.974  
changed lines
  Added in v.975

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12