--- code/trunk/internal.h 2007/02/24 21:38:09 7 +++ code/trunk/internal.h 2007/02/24 21:38:33 19 @@ -3,7 +3,7 @@ *************************************************/ -#define PCRE_VERSION "1.02 12-Dec-1997" +#define PCRE_VERSION "1.08 27-Mar-1998" /* This is a library of functions to support regular expressions whose syntax @@ -12,7 +12,7 @@ Written by: Philip Hazel - Copyright (c) 1997 University of Cambridge + Copyright (c) 1998 University of Cambridge ----------------------------------------------------------------------------- Permission is granted to anyone to use this software for any purpose on any @@ -38,6 +38,7 @@ define a macro for memmove() if USE_BCOPY is defined. */ #ifdef USE_BCOPY +#undef memmove /* some systems may have a macro */ #define memmove(a, b, c) bcopy(b, a, c) #endif @@ -52,6 +53,13 @@ #include #include "pcre.h" +/* In case there is no definition of offsetof() provided - though any proper +Standard C system should have one. */ + +#ifndef offsetof +#define offsetof(p_type,field) ((size_t)&(((p_type *)0)->field)) +#endif + /* Private options flags start at the most significant end of the two bytes. The public options defined in pcre.h start at the least significant end. Make sure they don't overlap! */ @@ -70,7 +78,7 @@ #define PUBLIC_OPTIONS \ (PCRE_CASELESS|PCRE_EXTENDED|PCRE_ANCHORED|PCRE_MULTILINE| \ - PCRE_DOTALL|PCRE_DOLLAR_ENDONLY|PCRE_EXTRA) + PCRE_DOTALL|PCRE_DOLLAR_ENDONLY|PCRE_EXTRA|PCRE_UNGREEDY) #define PUBLIC_EXEC_OPTIONS \ (PCRE_CASELESS|PCRE_ANCHORED|PCRE_MULTILINE|PCRE_NOTBOL|PCRE_NOTEOL| \ @@ -173,6 +181,7 @@ OP_CRMINRANGE, OP_CLASS, /* Match a character class */ + OP_NEGCLASS, /* Match a character class, specified negatively */ OP_REF, /* Match a back reference */ OP_ALT, /* Start of alternation */