1.1 --- a/tools/pcre/pcreposix.h Sun Mar 17 11:29:55 2013 -0400
1.2 +++ b/tools/pcre/pcreposix.h Sun Mar 17 11:32:03 2013 -0400
1.3 @@ -9,7 +9,7 @@
1.4 Compatible Regular Expression library. It defines the things POSIX says should
1.5 be there. I hope.
1.6
1.7 - Copyright (c) 1997-2009 University of Cambridge
1.8 + Copyright (c) 1997-2012 University of Cambridge
1.9
1.10 -----------------------------------------------------------------------------
1.11 Redistribution and use in source and binary forms, with or without
1.12 @@ -50,17 +50,19 @@
1.13 extern "C" {
1.14 #endif
1.15
1.16 -/* Options, mostly defined by POSIX, but with a couple of extras. */
1.17 +/* Options, mostly defined by POSIX, but with some extras. */
1.18
1.19 -#define REG_ICASE 0x0001
1.20 -#define REG_NEWLINE 0x0002
1.21 -#define REG_NOTBOL 0x0004
1.22 -#define REG_NOTEOL 0x0008
1.23 -#define REG_DOTALL 0x0010 /* NOT defined by POSIX. */
1.24 -#define REG_NOSUB 0x0020
1.25 -#define REG_UTF8 0x0040 /* NOT defined by POSIX. */
1.26 +#define REG_ICASE 0x0001 /* Maps to PCRE_CASELESS */
1.27 +#define REG_NEWLINE 0x0002 /* Maps to PCRE_MULTILINE */
1.28 +#define REG_NOTBOL 0x0004 /* Maps to PCRE_NOTBOL */
1.29 +#define REG_NOTEOL 0x0008 /* Maps to PCRE_NOTEOL */
1.30 +#define REG_DOTALL 0x0010 /* NOT defined by POSIX; maps to PCRE_DOTALL */
1.31 +#define REG_NOSUB 0x0020 /* Maps to PCRE_NO_AUTO_CAPTURE */
1.32 +#define REG_UTF8 0x0040 /* NOT defined by POSIX; maps to PCRE_UTF8 */
1.33 #define REG_STARTEND 0x0080 /* BSD feature: pass subject string by so,eo */
1.34 -#define REG_NOTEMPTY 0x0100 /* NOT defined by POSIX. */
1.35 +#define REG_NOTEMPTY 0x0100 /* NOT defined by POSIX; maps to PCRE_NOTEMPTY */
1.36 +#define REG_UNGREEDY 0x0200 /* NOT defined by POSIX; maps to PCRE_UNGREEDY */
1.37 +#define REG_UCP 0x0400 /* NOT defined by POSIX; maps to PCRE_UCP */
1.38
1.39 /* This is not used by PCRE, but by defining it we make it easier
1.40 to slot PCRE into existing programs that make POSIX calls. */