root/src/check_symbols

Revision 966cd094f1c06e6dcfd14eacfd84ea6b9dc4df23, 0.6 kB (checked in by Rémi Denis-Courmont <rem@videolan.org>, 3 months ago)

More symbols fixes

Still not working though

  • Property mode set to 100755
Line 
1 #! /bin/sh
2 # Plugin API consistency check for VLC
3 # Copyright © 2007 Rémi Denis-Courmont.
4
5 rm -f libvlc-headers.sym
6
7 cat ${srcdir}/../include/vlc_*.h ${srcdir}/control/*.h | \
8 sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
9 sed -e 's/[^a-zA-Z0-9_]*//' | \
10 sort -fdu > libvlc-headers.sym
11
12 if ! diff -u ${srcdir}/libvlccore.sym libvlc-headers.sym; then
13         echo "Mismatching symbols found!"
14         exit 1
15 fi
16
17 # TODO: we should pass this:
18 #if grep -e "^_" libvlc-headers.sym; then
19 #       echo "Illegal symbol name (starting with underscore) found!";
20 #       exit 1
21 #fi
22
23 rm -f libvlc-headers.sym
Note: See TracBrowser for help on using the browser.