/[pcre]/code/trunk/pcreposix.h
ViewVC logotype

Diff of /code/trunk/pcreposix.h

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

revision 77 by nigel, Sat Feb 24 21:40:45 2007 UTC revision 388 by ph10, Wed Mar 11 17:03:17 2009 UTC
# Line 9  Line 9 
9  Compatible Regular Expression library. It defines the things POSIX says should  Compatible Regular Expression library. It defines the things POSIX says should
10  be there. I hope.  be there. I hope.
11    
12              Copyright (c) 1997-2005 University of Cambridge              Copyright (c) 1997-2009 University of Cambridge
13    
14  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
15  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# Line 50  POSSIBILITY OF SUCH DAMAGE. Line 50  POSSIBILITY OF SUCH DAMAGE.
50  extern "C" {  extern "C" {
51  #endif  #endif
52    
53  /* Options defined by POSIX. */  /* Options, mostly defined by POSIX, but with a couple of extras. */
54    
55  #define REG_ICASE     0x01  #define REG_ICASE     0x0001
56  #define REG_NEWLINE   0x02  #define REG_NEWLINE   0x0002
57  #define REG_NOTBOL    0x04  #define REG_NOTBOL    0x0004
58  #define REG_NOTEOL    0x08  #define REG_NOTEOL    0x0008
59    #define REG_DOTALL    0x0010   /* NOT defined by POSIX. */
60    #define REG_NOSUB     0x0020
61    #define REG_UTF8      0x0040   /* NOT defined by POSIX. */
62    #define REG_STARTEND  0x0080   /* BSD feature: pass subject string by so,eo */
63    #define REG_NOTEMPTY  0x0100   /* NOT defined by POSIX. */
64    
65  /* Additional options, not defined by POSIX, but somebody wanted them. */  /* This is not used by PCRE, but by defining it we make it easier
   
 #define REG_DOTALL    0x10  
   
 /* These are not used by PCRE, but by defining them we make it easier  
66  to slot PCRE into existing programs that make POSIX calls. */  to slot PCRE into existing programs that make POSIX calls. */
67    
68  #define REG_EXTENDED  0  #define REG_EXTENDED  0
 #define REG_NOSUB     0  
69    
70  /* Error values. Not all these are relevant or used by the wrapper. */  /* Error values. Not all these are relevant or used by the wrapper. */
71    
# Line 107  typedef struct { Line 107  typedef struct {
107    regoff_t rm_eo;    regoff_t rm_eo;
108  } regmatch_t;  } regmatch_t;
109    
110    /* When an application links to a PCRE DLL in Windows, the symbols that are
111    imported have to be identified as such. When building PCRE, the appropriate
112    export settings are needed, and are set in pcreposix.c before including this
113    file. */
114    
115    #if defined(_WIN32) && !defined(PCRE_STATIC) && !defined(PCREPOSIX_EXP_DECL)
116    #  define PCREPOSIX_EXP_DECL  extern __declspec(dllimport)
117    #  define PCREPOSIX_EXP_DEFN  __declspec(dllimport)
118    #endif
119    
120    /* By default, we use the standard "extern" declarations. */
121    
122    #ifndef PCREPOSIX_EXP_DECL
123    #  ifdef __cplusplus
124    #    define PCREPOSIX_EXP_DECL  extern "C"
125    #    define PCREPOSIX_EXP_DEFN  extern "C"
126    #  else
127    #    define PCREPOSIX_EXP_DECL  extern
128    #    define PCREPOSIX_EXP_DEFN  extern
129    #  endif
130    #endif
131    
132  /* The functions */  /* The functions */
133    
134  extern int regcomp(regex_t *, const char *, int);  PCREPOSIX_EXP_DECL int regcomp(regex_t *, const char *, int);
135  extern int regexec(const regex_t *, const char *, size_t, regmatch_t *, int);  PCREPOSIX_EXP_DECL int regexec(const regex_t *, const char *, size_t,
136  extern size_t regerror(int, const regex_t *, char *, size_t);                       regmatch_t *, int);
137  extern void regfree(regex_t *);  PCREPOSIX_EXP_DECL size_t regerror(int, const regex_t *, char *, size_t);
138    PCREPOSIX_EXP_DECL void regfree(regex_t *);
139    
140  #ifdef __cplusplus  #ifdef __cplusplus
141  }   /* extern "C" */  }   /* extern "C" */

Legend:
Removed from v.77  
changed lines
  Added in v.388

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12