/[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 75 by nigel, Sat Feb 24 21:40:37 2007 UTC revision 89 by nigel, Sat Feb 24 21:41:27 2007 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-2004 University of Cambridge              Copyright (c) 1997-2006 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    
63  /* These are not used by PCRE, but by defining them we make it easier  /* This is not used by PCRE, but by defining it we make it easier
64  to slot PCRE into existing programs that make POSIX calls. */  to slot PCRE into existing programs that make POSIX calls. */
65    
66  #define REG_EXTENDED  0  #define REG_EXTENDED  0
 #define REG_NOSUB     0  
67    
68  /* Error values. Not all these are relevant or used by the wrapper. */  /* Error values. Not all these are relevant or used by the wrapper. */
69    
# Line 103  typedef struct { Line 105  typedef struct {
105    regoff_t rm_eo;    regoff_t rm_eo;
106  } regmatch_t;  } regmatch_t;
107    
108    /* Win32 uses DLL by default; it needs special stuff for exported functions
109    when building PCRE. */
110    
111    #ifndef PCRE_DATA_SCOPE
112    #ifdef _WIN32
113    #  ifdef PCRE_DEFINITION
114    #    ifdef DLL_EXPORT
115    #      define PCRE_DATA_SCOPE __declspec(dllexport)
116    #    endif
117    #  else
118    #    ifndef PCRE_STATIC
119    #      define PCRE_DATA_SCOPE extern __declspec(dllimport)
120    #    endif
121    #  endif
122    #endif
123    #endif
124    
125    /* Otherwise, we use the standard "extern". */
126    
127    #ifndef PCRE_DATA_SCOPE
128    #  ifdef __cplusplus
129    #    define PCRE_DATA_SCOPE     extern "C"
130    #  else
131    #    define PCRE_DATA_SCOPE     extern
132    #  endif
133    #endif
134    
135  /* The functions */  /* The functions */
136    
137  extern int regcomp(regex_t *, const char *, int);  PCRE_DATA_SCOPE int regcomp(regex_t *, const char *, int);
138  extern int regexec(const regex_t *, const char *, size_t, regmatch_t *, int);  PCRE_DATA_SCOPE int regexec(const regex_t *, const char *, size_t,
139  extern size_t regerror(int, const regex_t *, char *, size_t);                    regmatch_t *, int);
140  extern void regfree(regex_t *);  PCRE_DATA_SCOPE size_t regerror(int, const regex_t *, char *, size_t);
141    PCRE_DATA_SCOPE void regfree(regex_t *);
142    
143  #ifdef __cplusplus  #ifdef __cplusplus
144  }   /* extern "C" */  }   /* extern "C" */

Legend:
Removed from v.75  
changed lines
  Added in v.89

  ViewVC Help
Powered by ViewVC 1.1.5