/[pcre]/code/tags/pcre-2.08a/study.c
ViewVC logotype

Diff of /code/tags/pcre-2.08a/study.c

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

revision 3 by nigel, Sat Feb 24 21:38:01 2007 UTC revision 13 by nigel, Sat Feb 24 21:38:21 2007 UTC
# Line 52  Returns:       TRUE if table built, FALS Line 52  Returns:       TRUE if table built, FALS
52  */  */
53    
54  static BOOL  static BOOL
55  set_start_bits(uschar *code, uschar *start_bits)  set_start_bits(const uschar *code, uschar *start_bits)
56  {  {
57  register int c;  register int c;
58    
59  do  do
60    {    {
61    uschar *tcode = code + 3;    const uschar *tcode = code + 3;
62    BOOL try_next = TRUE;    BOOL try_next = TRUE;
63    
64    while (try_next)    while (try_next)
# Line 208  do Line 208  do
208        according to the repeat count. */        according to the repeat count. */
209    
210        case OP_CLASS:        case OP_CLASS:
211          case OP_NEGCLASS:
212          {          {
213          tcode++;          tcode++;
214          for (c = 0; c < 32; c++) start_bits[c] |= tcode[c];          for (c = 0; c < 32; c++) start_bits[c] |= tcode[c];
# Line 264  Returns:    pointer to a pcre_extra bloc Line 265  Returns:    pointer to a pcre_extra bloc
265  */  */
266    
267  pcre_extra *  pcre_extra *
268  pcre_study(const pcre *external_re, int options, char **errorptr)  pcre_study(const pcre *external_re, int options, const char **errorptr)
269  {  {
270  BOOL caseless;  BOOL caseless;
271  uschar start_bits[32];  uschar start_bits[32];
272  real_pcre_extra *extra;  real_pcre_extra *extra;
273  real_pcre *re = (real_pcre *)external_re;  const real_pcre *re = (const real_pcre *)external_re;
274    
275  *errorptr = NULL;  *errorptr = NULL;
276    

Legend:
Removed from v.3  
changed lines
  Added in v.13

  ViewVC Help
Powered by ViewVC 1.1.5