/[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 923 by ph10, Tue Feb 21 13:25:05 2012 UTC revision 926 by ph10, Wed Feb 22 15:01:32 2012 UTC
# Line 613  static int callout_fail_count; Line 613  static int callout_fail_count;
613  static int callout_fail_id;  static int callout_fail_id;
614  static int debug_lengths;  static int debug_lengths;
615  static int first_callout;  static int first_callout;
616    static int jit_was_used;
617  static int locale_set = 0;  static int locale_set = 0;
618  static int show_malloc;  static int show_malloc;
619  static int use_utf;  static int use_utf;
# Line 1077  return sys_errlist[n]; Line 1078  return sys_errlist[n];
1078    
1079  static pcre_jit_stack* jit_callback(void *arg)  static pcre_jit_stack* jit_callback(void *arg)
1080  {  {
1081    jit_was_used = TRUE;
1082  return (pcre_jit_stack *)arg;  return (pcre_jit_stack *)arg;
1083  }  }
1084    
# Line 3411  while (!done) Line 3413  while (!done)
3413      int start_offset_sign = 1;      int start_offset_sign = 1;
3414      int g_notempty = 0;      int g_notempty = 0;
3415      int use_dfa = 0;      int use_dfa = 0;
     int jit_was_used = 0;  
3416    
3417      *copynames = 0;      *copynames = 0;
3418      *getnames = 0;      *getnames = 0;
# Line 3891  while (!done) Line 3892  while (!done)
3892        }        }
3893  #endif  #endif
3894    
3895        /* Ensure that there is a JIT callback if we want to verify that JIT was
3896        actually used. If jit_stack == NULL, no stack has yet been assigned. */
3897    
3898        if (verify_jit && jit_stack == NULL && extra != NULL)
3899           { PCRE_ASSIGN_JIT_STACK(extra, jit_callback, jit_stack); }
3900    
3901      for (;; gmatched++)    /* Loop for /g or /G */      for (;; gmatched++)    /* Loop for /g or /G */
3902        {        {
3903        markptr = NULL;        markptr = NULL;
3904          jit_was_used = FALSE;
3905    
3906        if (timeitm > 0)        if (timeitm > 0)
3907          {          {
# Line 3998  while (!done) Line 4006  while (!done)
4006            }            }
4007          }          }
4008    
       if (extra != NULL && (extra->flags & PCRE_EXTRA_USED_JIT) != 0)  
         jit_was_used = TRUE;  
   
4009        /* Matched */        /* Matched */
4010    
4011        if (count >= 0)        if (count >= 0)

Legend:
Removed from v.923  
changed lines
  Added in v.926

  ViewVC Help
Powered by ViewVC 1.1.5