qt/qml_menu_wrapper: Add group support
[vlc.git] / src / check_headers
blob9441035a5c6ec9bf924ec9cbb8720c039572c8d8
1 #! /bin/sh
2 # Copyright © 2008 Rémi Denis-Courmont
4 cd "$(dirname "$0")" || exit $?
6 # Look for configure #defines in public headers.
7 # There are incorrect, as external users don't have our <config.h>.
8 regexp=""
10 while read l; do
11 d=$(echo "$l" | sed -n -e 's/^#undef \([[:upper:][:digit:]_]*\)$/\1/p')
12 test -z "$d" && continue
13 test "$d" = "WORDS_BIGENDIAN" && continue
14 test "$d" = "UNICODE" && continue
15 test "$d" = "__LIBVLC__" && continue
17 if test -z "$regexp"; then
18 regexp="[^A-Za-z0-9_]\("
19 else
20 regexp="${regexp}\|"
22 regexp="${regexp}${d}"
23 done < ../config.h.in
24 regexp="${regexp}\)\([^A-Za-z0-9_]\|\$\)"
26 echo Looking for private defines in public headers...
27 ! grep -- "$regexp" "$@" || exit $?
28 echo "None found."