feed the contents of config.h and glibconfig.h into the preprocessor,
authorManish Singh <yosh@gimp.org>
Mon, 7 Feb 2005 06:00:32 +0000 (06:00 +0000)
committerManish Singh <yosh@src.gnome.org>
Mon, 7 Feb 2005 06:00:32 +0000 (06:00 +0000)
Sun Feb  6 21:59:09 2005  Manish Singh  <yosh@gimp.org>

        * glib/abicheck.sh: feed the contents of config.h and glibconfig.h
        into the preprocessor, since glib.symbols could need #defines
        from them.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/abicheck.sh

index b0a7047..0ead977 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Feb  6 21:59:09 2005  Manish Singh  <yosh@gimp.org>
+
+       * glib/abicheck.sh: feed the contents of config.h and glibconfig.h
+       into the preprocessor, since glib.symbols could need #defines
+       from them.
+
 Sun Feb  6 12:09:55 2005  Manish Singh  <yosh@gimp.org>
 
        * glib/gatomic.c: Don't use matching constraints for asm mem
index b0a7047..0ead977 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  6 21:59:09 2005  Manish Singh  <yosh@gimp.org>
+
+       * glib/abicheck.sh: feed the contents of config.h and glibconfig.h
+       into the preprocessor, since glib.symbols could need #defines
+       from them.
+
 Sun Feb  6 12:09:55 2005  Manish Singh  <yosh@gimp.org>
 
        * glib/gatomic.c: Don't use matching constraints for asm mem
index b0a7047..0ead977 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  6 21:59:09 2005  Manish Singh  <yosh@gimp.org>
+
+       * glib/abicheck.sh: feed the contents of config.h and glibconfig.h
+       into the preprocessor, since glib.symbols could need #defines
+       from them.
+
 Sun Feb  6 12:09:55 2005  Manish Singh  <yosh@gimp.org>
 
        * glib/gatomic.c: Don't use matching constraints for asm mem
index b0a7047..0ead977 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  6 21:59:09 2005  Manish Singh  <yosh@gimp.org>
+
+       * glib/abicheck.sh: feed the contents of config.h and glibconfig.h
+       into the preprocessor, since glib.symbols could need #defines
+       from them.
+
 Sun Feb  6 12:09:55 2005  Manish Singh  <yosh@gimp.org>
 
        * glib/gatomic.c: Don't use matching constraints for asm mem
index a9bead4..d77e63d 100755 (executable)
@@ -1,5 +1,13 @@
 #! /bin/sh
 
-cpp -P -DG_OS_UNIX -DINCLUDE_INTERNAL_SYMBOLS ${srcdir:-.}/glib.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
+egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp
+
+INCLUDES="-include ${top_builddir:-..}/config.h"
+INCLUDES="$INCLUDES -include glibconfig.cpp"
+
+cpp -P -DINCLUDE_INTERNAL_SYMBOLS $INCLUDES "${srcdir:-.}/glib.symbols" | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
+rm glibconfig.cpp
+
 nm -D .libs/libglib-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi
+
 diff -u expected-abi actual-abi && rm expected-abi actual-abi