[vlc-devel] [PATCH] Use character classes instead of ranges in check_headers.

Alexis Ballier aballier at gentoo.org
Sun Jun 28 15:51:10 CEST 2009


This fixes weird check_headers failures when it also matches things like 'const' which are obviously allowed in the public headers and cause check failures due to these false positives.
---
 src/check_headers |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/check_headers b/src/check_headers
index a60a931..9a30d94 100755
--- a/src/check_headers
+++ b/src/check_headers
@@ -6,7 +6,7 @@ cd "$(dirname "$0")" || exit $?
 # Look for configure #defines in public headers.
 # There are incorrect, as external users don't have our <config.h>.
 regexp="$(cat ../config.h.in | \
-	sed -n -e 's/^#undef \([A-Z0-9_]*\)$/\1/p' | \
+	sed -n -e 's/^#undef \([[:upper:][:digit:]_]*\)$/\1/p' | \
 	grep -v 'WORDS_BIGENDIAN' | \
 	xargs | \
 	sed -e 's/ /\\\|/g')"
-- 
1.6.3.3




More information about the vlc-devel mailing list