--- code/trunk/pcreposix.h 2007/02/24 21:38:01 3 +++ code/tags/pcre-3.9/pcreposix.h 2007/02/24 21:40:00 62 @@ -2,7 +2,7 @@ * Perl-Compatible Regular Expressions * *************************************************/ -/* Copyright (c) 1997 University of Cambridge */ +/* Copyright (c) 1997-2001 University of Cambridge */ #ifndef _PCREPOSIX_H #define _PCREPOSIX_H @@ -15,6 +15,12 @@ #include +/* Allow for C++ users */ + +#ifdef __cplusplus +extern "C" { +#endif + /* Options defined by POSIX. */ #define REG_ICASE 0x01 @@ -22,6 +28,12 @@ #define REG_NOTBOL 0x04 #define REG_NOTEOL 0x08 +/* These are not used by PCRE, but by defining them we make it easier +to slot PCRE into existing programs that make POSIX calls. */ + +#define REG_EXTENDED 0 +#define REG_NOSUB 0 + /* Error values. Not all these are relevant or used by the wrapper. */ enum { @@ -69,4 +81,8 @@ extern size_t regerror(int, const regex_t *, char *, size_t); extern void regfree(regex_t *); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* End of pcreposix.h */