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

Diff of /code/trunk/pcregrep.c

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

revision 685 by ph10, Tue Sep 6 15:02:07 2011 UTC revision 691 by ph10, Sun Sep 11 14:31:21 2011 UTC
# Line 1871  switch(letter) Line 1871  switch(letter)
1871    case N_HELP: help(); pcregrep_exit(0);    case N_HELP: help(); pcregrep_exit(0);
1872    case N_LBUFFER: line_buffered = TRUE; break;    case N_LBUFFER: line_buffered = TRUE; break;
1873    case N_LOFFSETS: line_offsets = number = TRUE; break;    case N_LOFFSETS: line_offsets = number = TRUE; break;
1874    case N_NOJIT: study_options &= ~PCRE_STUDY_JIT_COMPILE; break;    case N_NOJIT: study_options &= ~PCRE_STUDY_JIT_COMPILE; break;
1875    case 'c': count_only = TRUE; break;    case 'c': count_only = TRUE; break;
1876    case 'F': process_options |= PO_FIXED_STRINGS; break;    case 'F': process_options |= PO_FIXED_STRINGS; break;
1877    case 'H': filenames = FN_FORCE; break;    case 'H': filenames = FN_FORCE; break;
# Line 2586  if (pattern_filename != NULL) Line 2586  if (pattern_filename != NULL)
2586    if (f != stdin) fclose(f);    if (f != stdin) fclose(f);
2587    }    }
2588    
2589  /* Study the regular expressions, as we will be running them many times. Unless  /* Study the regular expressions, as we will be running them many times. Unless
2590  JIT has been explicitly disabled, arrange a stack for it to use. */  JIT has been explicitly disabled, arrange a stack for it to use. */
2591    
2592  #ifdef SUPPORT_PCREGREP_JIT  #ifdef SUPPORT_PCREGREP_JIT
2593  if ((study_options & PCRE_STUDY_JIT_COMPILE) != 0)  if ((study_options & PCRE_STUDY_JIT_COMPILE) != 0)
2594    jit_stack = pcre_jit_stack_alloc(32*1024, 1024*1024);    jit_stack = pcre_jit_stack_alloc(32*1024, 1024*1024);
2595  #endif  #endif
2596    
2597  for (j = 0; j < pattern_count; j++)  for (j = 0; j < pattern_count; j++)
2598    {    {
2599    hints_list[j] = pcre_study(pattern_list[j], study_options, &error);    hints_list[j] = pcre_study(pattern_list[j], study_options, &error);
# Line 2606  for (j = 0; j < pattern_count; j++) Line 2606  for (j = 0; j < pattern_count; j++)
2606      }      }
2607    hint_count++;    hint_count++;
2608  #ifdef SUPPORT_PCREGREP_JIT  #ifdef SUPPORT_PCREGREP_JIT
2609    if (jit_stack != NULL && hints_list[j] != NULL)    if (jit_stack != NULL && hints_list[j] != NULL)
2610      pcre_assign_jit_stack(hints_list[j], NULL, jit_stack);      pcre_assign_jit_stack(hints_list[j], NULL, jit_stack);
2611  #endif  #endif
2612    }    }

Legend:
Removed from v.685  
changed lines
  Added in v.691

  ViewVC Help
Powered by ViewVC 1.1.5