/[pcre]/code/branches/pcre16/pcre_study.c
ViewVC logotype

Diff of /code/branches/pcre16/pcre_study.c

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

revision 766 by zherczeg, Wed Nov 23 17:23:20 2011 UTC revision 767 by zherczeg, Sat Nov 26 12:48:56 2011 UTC
# Line 599  set_type_bits(pcre_uint8 *start_bits, in Line 599  set_type_bits(pcre_uint8 *start_bits, in
599  {  {
600  register int c;  register int c;
601  for (c = 0; c < table_limit; c++) start_bits[c] |= cd->cbits[c+cbit_type];  for (c = 0; c < table_limit; c++) start_bits[c] |= cd->cbits[c+cbit_type];
602    #ifdef SUPPORT_UTF8
603  if (table_limit == 32) return;  if (table_limit == 32) return;
604  for (c = 128; c < 256; c++)  for (c = 128; c < 256; c++)
605    {    {
# Line 609  for (c = 128; c < 256; c++) Line 610  for (c = 128; c < 256; c++)
610      SET_BIT(buff[0]);      SET_BIT(buff[0]);
611      }      }
612    }    }
613    #endif
614  }  }
615    
616    
# Line 1219  Returns:    pointer to a pcre_extra bloc Line 1221  Returns:    pointer to a pcre_extra bloc
1221              NULL on error or if no optimization possible              NULL on error or if no optimization possible
1222  */  */
1223    
1224    #ifdef COMPILE_PCRE8
1225  PCRE_EXP_DEFN pcre_extra * PCRE_CALL_CONVENTION  PCRE_EXP_DEFN pcre_extra * PCRE_CALL_CONVENTION
1226  pcre_study(const pcre *external_re, int options, const char **errorptr)  pcre_study(const pcre *external_re, int options, const char **errorptr)
1227    #else
1228    PCRE_EXP_DEFN pcre_extra * PCRE_CALL_CONVENTION
1229    pcre16_study(const pcre *external_re, int options, const char **errorptr)
1230    #endif
1231  {  {
1232  int min;  int min;
1233  BOOL bits_set = FALSE;  BOOL bits_set = FALSE;
# Line 1369  Argument:   a pointer to the pcre_extra Line 1376  Argument:   a pointer to the pcre_extra
1376  Returns:    nothing  Returns:    nothing
1377  */  */
1378    
1379    #ifdef COMPILE_PCRE8
1380  PCRE_EXP_DEFN void  PCRE_EXP_DEFN void
1381  pcre_free_study(pcre_extra *extra)  pcre_free_study(pcre_extra *extra)
1382    #else
1383    PCRE_EXP_DEFN void
1384    pcre16_free_study(pcre_extra *extra)
1385    #endif
1386  {  {
1387  #ifdef SUPPORT_JIT  #ifdef SUPPORT_JIT
1388  if ((extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) != 0 &&  if ((extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) != 0 &&

Legend:
Removed from v.766  
changed lines
  Added in v.767

  ViewVC Help
Powered by ViewVC 1.1.5