[linux-kernel] Move ZSTD_STATIC_ASSERT to zstd_internal.h

This commit is contained in:
Nick Terrell
2017-05-17 14:51:50 -07:00
parent 67101c6c77
commit 06fa1b0560
3 changed files with 11 additions and 4 deletions
+7
View File
@@ -30,6 +30,10 @@ function check_not_present_in_file() {
grep "$1" "$2" && exit 1 || true
}
function check_present_in_file() {
grep "$1" "$2" > /dev/null 2> /dev/null || exit 1
}
echo "Files: " $INCLUDE*.h $LIB*.{h,c}
prompt "Do you wish to replace 4 spaces with a tab?"
@@ -88,7 +92,10 @@ fi
prompt "Do you wish to run some checks?"
if [ ! -z "$yes" ]
then
check_present_in_file ZSTD_STATIC_ASSERT ${LIB}zstd_internal.h
check_not_present_in_file STATIC_ASSERT ${LIB}mem.h
check_not_present_in_file "#define ZSTD_STATIC_ASSERT" ${LIB}compress.c
check_not_present MEM_STATIC
check_not_present "#if 0"
check_not_present "#if 1"
check_not_present _MSC_VER