--- code/trunk/pcreposix.h 2007/02/24 21:38:49 27 +++ code/tags/pcre-4.4/pcreposix.h 2007/02/24 21:40:26 72 @@ -2,7 +2,7 @@ * Perl-Compatible Regular Expressions * *************************************************/ -/* Copyright (c) 1997-1999 University of Cambridge */ +/* Copyright (c) 1997-2003 University of Cambridge */ #ifndef _PCREPOSIX_H #define _PCREPOSIX_H @@ -28,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 { @@ -71,7 +77,7 @@ /* The functions */ extern int regcomp(regex_t *, const char *, int); -extern int regexec(regex_t *, const char *, size_t, regmatch_t *, int); +extern int regexec(const regex_t *, const char *, size_t, regmatch_t *, int); extern size_t regerror(int, const regex_t *, char *, size_t); extern void regfree(regex_t *);