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

Diff of /code/trunk/pcre_get.c

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

revision 860 by zherczeg, Mon Jan 9 20:12:58 2012 UTC revision 883 by zherczeg, Mon Jan 16 08:35:42 2012 UTC
# Line 236  get_first_set(const pcre16 *code, PCRE_S Line 236  get_first_set(const pcre16 *code, PCRE_S
236  {  {
237  const REAL_PCRE *re = (const REAL_PCRE *)code;  const REAL_PCRE *re = (const REAL_PCRE *)code;
238  int entrysize;  int entrysize;
 pcre_uchar *first, *last;  
239  pcre_uchar *entry;  pcre_uchar *entry;
240  #ifdef COMPILE_PCRE8  #ifdef COMPILE_PCRE8
241    char *first, *last;
242    #else
243    PCRE_UCHAR16 *first, *last;
244    #endif
245    
246    #ifdef COMPILE_PCRE8
247  if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0)  if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0)
248    return pcre_get_stringnumber(code, stringname);    return pcre_get_stringnumber(code, stringname);
249  entrysize = pcre_get_stringtable_entries(code, stringname,  entrysize = pcre_get_stringtable_entries(code, stringname, &first, &last);
   (char **)&first, (char **)&last);  
250  #else  #else
251  if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0)  if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0)
252    return pcre16_get_stringnumber(code, stringname);    return pcre16_get_stringnumber(code, stringname);
253  entrysize = pcre16_get_stringtable_entries(code, stringname,  entrysize = pcre16_get_stringtable_entries(code, stringname, &first, &last);
   (PCRE_UCHAR16 **)&first, (PCRE_UCHAR16 **)&last);  
254  #endif  #endif
255  if (entrysize <= 0) return entrysize;  if (entrysize <= 0) return entrysize;
256  for (entry = (pcre_uchar *)first; entry <= (pcre_uchar *)last; entry += entrysize)  for (entry = (pcre_uchar *)first; entry <= (pcre_uchar *)last; entry += entrysize)

Legend:
Removed from v.860  
changed lines
  Added in v.883

  ViewVC Help
Powered by ViewVC 1.1.5