summaryrefslogtreecommitdiff
path: root/ext/pcre/pcrelib/pcreposix.c
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2007-09-01 17:48:43 +0000
committerNuno Lopes <nlopess@php.net>2007-09-01 17:48:43 +0000
commit3edd2a69f27242b50b7afb46dd9220da46820178 (patch)
tree96da4f8dc21d66c25cecbea0a2d2560214bcba51 /ext/pcre/pcrelib/pcreposix.c
parenta3e6be974fc62869c3f4d72bcbbf73865168e613 (diff)
downloadphp-git-3edd2a69f27242b50b7afb46dd9220da46820178.tar.gz
upgrade to PCRE 7.3
Diffstat (limited to 'ext/pcre/pcrelib/pcreposix.c')
-rw-r--r--ext/pcre/pcrelib/pcreposix.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/ext/pcre/pcrelib/pcreposix.c b/ext/pcre/pcrelib/pcreposix.c
index 8582fba097..83263deaab 100644
--- a/ext/pcre/pcrelib/pcreposix.c
+++ b/ext/pcre/pcrelib/pcreposix.c
@@ -42,9 +42,24 @@ POSSIBILITY OF SUCH DAMAGE.
functions. */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+
+/* Ensure that the PCREPOSIX_EXP_xxx macros are set appropriately for
+compiling these functions. This must come before including pcreposix.h, where
+they are set for an application (using these functions) if they have not
+previously been set. */
+
+#if defined(_WIN32) && !defined(PCRE_STATIC)
+# define PCREPOSIX_EXP_DECL extern __declspec(dllexport)
+# define PCREPOSIX_EXP_DEFN __declspec(dllexport)
+#endif
+
+#include <pcre.h>
#include "pcre_internal.h"
#include "pcreposix.h"
-#include "stdlib.h"
@@ -109,7 +124,8 @@ static const int eint[] = {
REG_BADPAT, /* repeating a DEFINE group is not allowed */
REG_INVARG, /* inconsistent NEWLINE options */
REG_BADPAT, /* \g is not followed followed by an (optionally braced) non-zero number */
- REG_BADPAT /* (?+ or (?- must be followed by a non-zero number */
+ REG_BADPAT, /* (?+ or (?- must be followed by a non-zero number */
+ REG_BADPAT /* number is too big */
};
/* Table of texts corresponding to POSIX error codes */