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

Diff of /code/trunk/pcre_fullinfo.c

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

revision 1055 by chpe, Tue Oct 16 15:53:30 2012 UTC revision 1080 by chpe, Tue Oct 16 15:55:07 2012 UTC
# Line 140  switch (what) Line 140  switch (what)
140      ((re->flags & PCRE_STARTLINE) != 0)? -1 : -2;      ((re->flags & PCRE_STARTLINE) != 0)? -1 : -2;
141    break;    break;
142    
143      case PCRE_INFO_FIRSTLITERAL:
144        *((pcre_uint32 *)where) =
145          (re->flags & PCRE_FIRSTSET) != 0 ? re->first_char : 0;
146        break;
147    
148      case PCRE_INFO_FIRSTLITERALSET:
149        *((int *)where) =
150          ((re->flags & PCRE_FIRSTSET) != 0) ? 1 :
151          ((re->flags & PCRE_STARTLINE) != 0) ? 2 : 0;
152        break;
153    
154    /* Make sure we pass back the pointer to the bit vector in the external    /* Make sure we pass back the pointer to the bit vector in the external
155    block, not the internal copy (with flipped integer fields). */    block, not the internal copy (with flipped integer fields). */
156    
# Line 166  switch (what) Line 177  switch (what)
177      ((re->flags & PCRE_REQCHSET) != 0)? re->req_char : -1;      ((re->flags & PCRE_REQCHSET) != 0)? re->req_char : -1;
178    break;    break;
179    
180      case PCRE_INFO_LASTLITERAL2:
181        *((pcre_uint32 *)where) =
182          ((re->flags & PCRE_REQCHSET) != 0) ? re->req_char : 0;
183        break;
184    
185      case PCRE_INFO_LASTLITERAL2SET:
186        *((int *)where) =
187          ((re->flags & PCRE_REQCHSET) != 0);
188        break;
189    
190    case PCRE_INFO_NAMEENTRYSIZE:    case PCRE_INFO_NAMEENTRYSIZE:
191    *((int *)where) = re->name_entry_size;    *((int *)where) = re->name_entry_size;
192    break;    break;

Legend:
Removed from v.1055  
changed lines
  Added in v.1080

  ViewVC Help
Powered by ViewVC 1.1.5