/[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 93 by nigel, Sat Feb 24 21:41:42 2007 UTC revision 230 by ph10, Mon Sep 10 13:23:56 2007 UTC
# Line 6  Line 6 
6  and semantics are as close as possible to those of the Perl 5 language.  and semantics are as close as possible to those of the Perl 5 language.
7    
8                         Written by Philip Hazel                         Written by Philip Hazel
9             Copyright (c) 1997-2006 University of Cambridge             Copyright (c) 1997-2007 University of Cambridge
10    
11  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
12  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# Line 43  from the subject string after a regex ma Line 43  from the subject string after a regex ma
43  for these functions came from Scott Wimer. */  for these functions came from Scott Wimer. */
44    
45    
46    #ifdef HAVE_CONFIG_H
47    #include <config.h>
48    #endif
49    
50  #include "pcre_internal.h"  #include "pcre_internal.h"
51    
52    
# Line 185  const real_pcre *re = (const real_pcre * Line 189  const real_pcre *re = (const real_pcre *
189  int entrysize;  int entrysize;
190  char *first, *last;  char *first, *last;
191  uschar *entry;  uschar *entry;
192  if ((re->options & (PCRE_DUPNAMES | PCRE_JCHANGED)) == 0)  if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0)
193    return pcre_get_stringnumber(code, stringname);    return pcre_get_stringnumber(code, stringname);
194  entrysize = pcre_get_stringtable_entries(code, stringname, &first, &last);  entrysize = pcre_get_stringtable_entries(code, stringname, &first, &last);
195  if (entrysize <= 0) return entrysize;  if (entrysize <= 0) return entrysize;

Legend:
Removed from v.93  
changed lines
  Added in v.230

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12