Not needed, just use -DPCRE_STATIC.
authorTor Lillqvist <tml@novell.com>
Wed, 7 Nov 2007 09:49:25 +0000 (09:49 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 7 Nov 2007 09:49:25 +0000 (09:49 +0000)
2007-11-07  Tor Lillqvist  <tml@novell.com>

* glib/update-pcre/notdll.patch: Not needed, just use -DPCRE_STATIC.

* glib/update-pcre/Makefile.am: Drop notdll.patch.

* glib/update-pcre/Makefile.am-1
* glib/update-pcre/update.sh
* glib/pcre/Makefile.am
* glib/Makefile.am: Use -DPCRE_STATIC.

* tests/gio-test.c
* tests/mainloop-test.c
* tests/spawn-test.c: #define pipe(fds) _pipe(fds, 4096,
_O_BINARY) on Windows.

* tests/regex-test.c (test_expand): Don't print NULL with %s.

svn path=/trunk/; revision=5805

ChangeLog
glib/Makefile.am
glib/pcre/Makefile.am
glib/update-pcre/Makefile.am
glib/update-pcre/Makefile.am-1
glib/update-pcre/notdll.patch [deleted file]
glib/update-pcre/update.sh
tests/gio-test.c
tests/mainloop-test.c
tests/regex-test.c
tests/spawn-test.c

index e8ad5657faf2173605483e73f45abffce1bf6cb4..f731dc081f2b52f35cd8d5f79a545ccb7b58011e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2007-11-07  Tor Lillqvist  <tml@novell.com>
+
+       * glib/update-pcre/notdll.patch: Not needed, just use -DPCRE_STATIC.
+
+       * glib/update-pcre/Makefile.am: Drop notdll.patch.
+
+       * glib/update-pcre/Makefile.am-1
+       * glib/update-pcre/update.sh
+       * glib/pcre/Makefile.am
+       * glib/Makefile.am: Use -DPCRE_STATIC.
+
+       * tests/gio-test.c
+       * tests/mainloop-test.c
+       * tests/spawn-test.c: #define pipe(fds) _pipe(fds, 4096,
+       _O_BINARY) on Windows
+
+       * tests/regex-test.c (test_expand): Don't print NULL with %s.
+
 2007-11-07  Matthias Clasen <mclasen@redhat.com>
 
        * configure.in: Bump version
index df6aed7b7eea3f43c8bc985a18971daf482b782e..2e0d69c29aa204159a369c73d63ec3a9b6a41696 100644 (file)
@@ -23,7 +23,8 @@ SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre
 DIST_SUBDIRS = libcharset gnulib pcre update-pcre
 
 INCLUDES = -I$(top_srcdir) $(pcre_inc) -DG_LOG_DOMAIN=\"GLib\" \
-       $(GLIB_DEBUG_FLAGS) -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION 
+       $(GLIB_DEBUG_FLAGS) -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION \
+       -DPCRE_STATIC
 
 glib.def: glib.symbols
        (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/glib.symbols | sed -e '/^$$/d' -e 's/^/        /' -e 's/G_GNUC_[^ ]*//g') > glib.def
index 9d9d09a423092f273a39279b0324db0d15b6e477..cad7f05ea5a273cc6eca051b5383ebc5be34c94a 100644 (file)
@@ -10,6 +10,7 @@ INCLUDES = \
        -DMAX_DUPLENGTH=30000 \
        -DLINK_SIZE=2 \
        -DPOSIX_MALLOC_THRESHOLD=10 \
+       -DPCRE_STATIC \
        -I$(top_srcdir) \
        -I$(srcdir) \
        -I$(top_srcdir)/glib \
index 57af29d1857abc99d438a4a2714ecefbb5851c94..ac7f82c112c84daba094f8042a4439f6292035b7 100644 (file)
@@ -4,6 +4,5 @@ EXTRA_DIST =                    \
        Makefile.am-2           \
        digitab.patch           \
        memory.patch            \
-       notdll.patch            \
        pcre_ucp_searchfuncs.c  \
        pcre_valid_utf8.c
index c26708e4dd43cd0049891414b0099da8234e5169..d4255b754cb4e7eeed3be335cea67a4765fab1da 100644 (file)
@@ -11,6 +11,7 @@ INCLUDES = \
        -DLINK_SIZE=2 \
        -DEBCDIC=0 \
        -DPOSIX_MALLOC_THRESHOLD=10 \
+       -DPCRE_STATIC \
        -I$(top_srcdir) \
        -I$(srcdir) \
        -I$(top_srcdir)/glib \
diff --git a/glib/update-pcre/notdll.patch b/glib/update-pcre/notdll.patch
deleted file mode 100644 (file)
index 511e76a..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
---- pcre/pcre.h        2006-07-05 13:28:01.000000000 +0200
-+++ pcre/pcre.h        2006-07-05 13:28:01.000000000 +0200
-@@ -51,13 +51,16 @@
- export setting is defined in pcre_internal.h, which includes this file. So we
- don't change an existing definition of PCRE_EXP_DECL. */
-+/* But don't do that when building as part of GLib */
-+#if 0
- #ifndef PCRE_EXP_DECL
- #  ifdef _WIN32
- #    ifndef PCRE_STATIC
- #      define PCRE_EXP_DECL extern __declspec(dllimport)
- #    endif
- #  endif
- #endif
-+#endif
- /* By default, we use the standard "extern" declarations. */
index 9194e41d415424cab7c03111c2a00b2447e485d2..960b4d21d65b698d416b63c0dc87f2088b1aed5a 100644 (file)
@@ -128,9 +128,6 @@ cp $PCRE/COPYING .
 # Use glib for memory allocation.
 patch > /dev/null < $IN/memory.patch
 
-# No dllimport/dllexport of pcre symbols
-patch > /dev/null <$IN/notdll.patch
-
 # Copy the modified version of pcre_valid_utf8.c.
 cp $IN/pcre_valid_utf8.c .
 
index 1ed5236072b7198bcdae11d7418447e04bd60fda..cc56ef42215b2649da07343b25a08a66557904a2 100644 (file)
@@ -39,6 +39,7 @@
   #include <process.h>
   #define STRICT
   #include <windows.h>
+  #define pipe(fds) _pipe(fds, 4096, _O_BINARY)
 #else
   #ifdef HAVE_UNISTD_H
     #include <unistd.h>
index 2c8be10347014c7a58724187ab3ad74354cb3c6f..cfa7f7391a73885bbd965d573883f37517585a90 100644 (file)
@@ -12,6 +12,7 @@
 #ifdef G_OS_WIN32
 #include <fcntl.h>             /* For _O_BINARY used by pipe() macro */
 #include <io.h>                        /* for _pipe() */
+#define pipe(fds) _pipe(fds, 4096, _O_BINARY)
 #endif
 
 #define ITERS 10000
index 26d96776f8cd77fa2a28768a32d7d14468255316..94c57671aa50b67e383f1531ae9fecca4833d9af 100644 (file)
@@ -1098,7 +1098,9 @@ test_expand (const gchar *pattern,
   gchar *res;
   
   verbose ("expanding the references in \"%s\" (pattern: \"%s\", string: \"%s\") \t",
-          string_to_expand, pattern, string);
+          string_to_expand,
+          pattern ? pattern : "(null)",
+          string ? string : "(null)");
 
   if (pattern)
     {
index 501049be53face1f9613c5308b1dd742aea1d377..1bc360a4280247be565ec6ebd90bdd1189099a77 100644 (file)
@@ -35,6 +35,7 @@
 #ifdef G_OS_WIN32
 #include <fcntl.h>
 #include <io.h>
+#define pipe(fds) _pipe(fds, 4096, _O_BINARY)
 #endif