GVariant: fix some refcounting issues
[platform/upstream/glib.git] / glib / abicheck.sh
1 #! /bin/sh
2
3 egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp
4
5 INCLUDES="-include ${top_builddir:-..}/config.h"
6 INCLUDES="$INCLUDES -include glibconfig.cpp $GLIB_DEBUG_FLAGS"
7
8 cpp -P -DINCLUDE_INTERNAL_SYMBOLS -DINCLUDE_VARIABLES -DG_STDIO_NO_WRAP_ON_UNIX -DALL_FILES $INCLUDES "${srcdir:-.}/glib.symbols" | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
9 rm -f glibconfig.cpp
10
11 nm -D -g --defined-only .libs/libglib-2.0.so | cut -d ' ' -f 3 | sort > actual-abi
12
13 diff -u expected-abi actual-abi && rm -f expected-abi actual-abi