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

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

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

revision 96 by nigel, Fri Mar 2 13:10:43 2007 UTC revision 169 by ph10, Mon Jun 4 10:49:21 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 61  Arguments: Line 61  Arguments:
61  Returns:           0 if data returned, negative on error  Returns:           0 if data returned, negative on error
62  */  */
63    
64  PCRE_DATA_SCOPE int  PCRE_EXP_DEFN int
65  pcre_fullinfo(const pcre *argument_re, const pcre_extra *extra_data, int what,  pcre_fullinfo(const pcre *argument_re, const pcre_extra *extra_data, int what,
66    void *where)    void *where)
67  {  {
# Line 139  switch (what) Line 139  switch (what)
139    case PCRE_INFO_DEFAULT_TABLES:    case PCRE_INFO_DEFAULT_TABLES:
140    *((const uschar **)where) = (const uschar *)(_pcre_default_tables);    *((const uschar **)where) = (const uschar *)(_pcre_default_tables);
141    break;    break;
142    
143      case PCRE_INFO_OKPARTIAL:
144      *((int *)where) = (re->options & PCRE_NOPARTIAL) == 0;
145      break;
146    
147      case PCRE_INFO_JCHANGED:
148      *((int *)where) = (re->options & PCRE_JCHANGED) != 0;
149      break;
150    
151    default: return PCRE_ERROR_BADOPTION;    default: return PCRE_ERROR_BADOPTION;
152    }    }

Legend:
Removed from v.96  
changed lines
  Added in v.169

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12