summaryrefslogtreecommitdiff
path: root/Modules/pcre-int.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-22 22:46:52 +0000
committerGuido van Rossum <guido@python.org>1997-12-22 22:46:52 +0000
commitf71dda4a9bcb75279dbd9e1453b2e5939b75f795 (patch)
treee466b3737aff35a401d61723443dcf79a266413e /Modules/pcre-int.h
parent0a726fbaaed456a06e6d3e21db51884c5a4e3ed5 (diff)
downloadcpython-f71dda4a9bcb75279dbd9e1453b2e5939b75f795.tar.gz
AMK's latest -- synchronized with PCRE 1.04.
Diffstat (limited to 'Modules/pcre-int.h')
-rw-r--r--Modules/pcre-int.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Modules/pcre-int.h b/Modules/pcre-int.h
index 2e3e1afc3b..2c34dfe3e4 100644
--- a/Modules/pcre-int.h
+++ b/Modules/pcre-int.h
@@ -3,7 +3,7 @@
*************************************************/
-#define PCRE_VERSION "1.02 12-Dec-1997"
+#define PCRE_VERSION "1.04 22-Dec-1997"
/* This is a library of functions to support regular expressions whose syntax
@@ -39,6 +39,7 @@ modules, but which are not relevant to the outside. */
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
@@ -53,6 +54,13 @@ define a macro for memmove() if USE_BCOPY is defined. */
#include <string.h>
#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! */