cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / third_party / talloc / script / abi_checks_gcc.sh
blobe3d3b042faadf88212c9ca5f0aae5b21a0f2344f
1 #!/bin/bash
3 make clean
5 mkdir abi
6 ABI_CHECKS="-aux-info abi/\$@.X"
7 make ABI_CHECK="$ABI_CHECKS" CC="/usr/bin/gcc"
9 for i in abi/*.X; do cat $i | grep 'talloc\.h'; done | sort | uniq | awk -F "extern " '{ print $2 }' | sort > abi/signatures
11 cat > abi/exports << EOF
13 global:
14 EOF
15 cat abi/signatures | awk -F '(' '{ print $1 }' | awk -F ' ' '{ print " "$NF";" }' | tr -d '*' | sort >> abi/exports
16 # need to manually add talloc free for backward ABI compat
17 echo ' talloc_free;' >> abi/exports
18 cat >> abi/exports << EOF
20 local: *;
22 EOF
24 rm -fr abi/*.X
26 diff -u talloc.signatures abi/signatures
27 if [ "$?" != "0" ]; then
28 echo "WARNING: Possible ABI Change!!"
31 diff -u talloc.exports abi/exports
32 if [ "$?" != "0" ]; then
33 echo "WARNING: Export file may be outdated!!"