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

Diff of /code/trunk/pcre_exec.c

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

revision 1313 by ph10, Wed Apr 24 12:07:09 2013 UTC revision 1316 by zherczeg, Sun Apr 28 08:54:42 2013 UTC
# Line 6511  if (extra_data != NULL Line 6511  if (extra_data != NULL
6511      && extra_data->executable_jit != NULL      && extra_data->executable_jit != NULL
6512      && (options & ~PUBLIC_JIT_EXEC_OPTIONS) == 0)      && (options & ~PUBLIC_JIT_EXEC_OPTIONS) == 0)
6513    {    {
   /* A facility for setting the match limit in the regex was added; this puts  
   a value in the compiled block. (Similarly for recursion limit, but the JIT  
   does not make use of that.) Because the regex is not passed to jit_exec, we  
   fudge up an alternative extra block, because we must not modify the extra  
   block that the user has passed. */  
   
 #if defined COMPILE_PCRE8  
   pcre_extra extra_data_copy;  
 #elif defined COMPILE_PCRE16  
   pcre16_extra extra_data_copy;  
 #elif defined COMPILE_PCRE32  
   pcre32_extra extra_data_copy;  
 #endif  
   
   if ((re->flags & PCRE_MLSET) != 0 &&  
       ((extra_data->flags & PCRE_EXTRA_MATCH_LIMIT) == 0 ||  
        re->limit_match < extra_data->match_limit))  
     {  
     extra_data_copy = *extra_data;  
     extra_data_copy.match_limit = re->limit_match;  
     extra_data_copy.flags |= PCRE_EXTRA_MATCH_LIMIT;  
     extra_data = &extra_data_copy;  
     }  
   
6514    rc = PRIV(jit_exec)(extra_data, (const pcre_uchar *)subject, length,    rc = PRIV(jit_exec)(extra_data, (const pcre_uchar *)subject, length,
6515         start_offset, options, offsets, offsetcount);         start_offset, options, offsets, offsetcount);
6516    

Legend:
Removed from v.1313  
changed lines
  Added in v.1316

  ViewVC Help
Powered by ViewVC 1.1.5