From 73d940555283b372fcf3b732de05184b28813853 Mon Sep 17 00:00:00 2001 From: lxoliva Date: Thu, 8 May 2008 05:09:50 +0000 Subject: [PATCH] Make yy matching rules even more lax. A few additional sound and thread matches for 2.6.23. Use LANG=C to speed it up. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@3470 559672b5-ba27-0410-b829-e8f1faed8b1b --- deblob-check | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/deblob-check b/deblob-check index 1ad6aa325a7..d05787bbad7 100755 --- a/deblob-check +++ b/deblob-check @@ -195,6 +195,11 @@ # Yeah, lots of stuff to do. Want to help? +# This makes it much faster, and mostly immune to non-ASCII stuff, as +# long as a 8-bit-safe sed is used. Probably a safe assumption these +# days. +case ${LANG+set} in set) LANG=C; export LANG;; esac + rm="rm -f" case $1 in --save-scripts | -S) @@ -598,6 +603,10 @@ set_except () { initnc ' static const unsigned char invert5\[\] =' initnc 'static unsigned char alpa2target\[\] =' initnc 'static unsigned char target2alpa\[\] =' + oprepline '#define INIT_THREAD [{0},]\+[ ]*\\[ ]*[{0},]\+' + initnc 'static uint tas300\(1c\|4\)_\(master\|mixer\|treble\|bass\)_tab\[\]=' + initnc 'static short dmasound_[au]law2dma16\[\] =' + initnc 'static const unsigned short DACVolTable\[101\] =' # new in 2.6.25 accept "%canned_values = ([\\n] \\([0-9]\\+ => \\[[ \\n]\\+\\(\\([0-9]\\+\\|'0x[0-9a-f]\\+'\\),[ \\n]*\\)*\\]\\(, \\|[\\n]\\)\\)*);" @@ -637,7 +646,7 @@ set_except () { # too lax? initnc 'static yyconst flex_int\(16\|32\)_t yy_[^[]*\[[][0-9]*\] =' - initnc 'static const yytype_u\?int\(8\|16\) yy[^[]*\[\] =' + initnc 'static const \(yytype_u\?int\(8\|16\)\|unsigned \(short\( int\)\?\|char\)\) yy[^[]*\[\] =' initnc '\(\| \)static \(const \|\)\(unsigned \(short\|char\)\|struct SiS_[^ ]*\) SiS[^[]*\(\[[] [*0-9]*\]\)\+ *=' initnc 'static const a3d_Hrtf_t A3dHrirZeros = {' -- 2.31.1