[MPlayer-cvslog] r23958 - trunk/TOOLS/checktree.sh
ivo
subversion at mplayerhq.hu
Tue Jul 31 10:06:37 CEST 2007
Author: ivo
Date: Tue Jul 31 10:06:37 2007
New Revision: 23958
Log:
replace ^I by $TAB now that TAB is global
Modified:
trunk/TOOLS/checktree.sh
Modified: trunk/TOOLS/checktree.sh
==============================================================================
--- trunk/TOOLS/checktree.sh (original)
+++ trunk/TOOLS/checktree.sh Tue Jul 31 10:06:37 2007
@@ -363,37 +363,37 @@ if [ "$_stupid" = "yes" -a -n "$chfileli
for i in calloc malloc realloc memalign av_malloc av_mallocz faad_malloc \
lzo_malloc safe_malloc mpeg2_malloc _ogg_malloc; do
printhead "--> casting of void* $i()"
- grep $_grepopts "([ ]*[a-zA-Z_]\+[ ]*\*.*)[ ]*$i" $chfilelist
+ grep $_grepopts "([ $TAB]*[a-zA-Z_]\+[ $TAB]*\*.*)[ $TAB]*$i" $chfilelist
done
for i in "" signed unsigned; do
printhead "--> usage of sizeof($i char)"
- grep $_grepopts "sizeof[ ]*([ ]*$i[ ]*char[ ]*)" $chfilelist
+ grep $_grepopts "sizeof[ $TAB]*([ $TAB]*$i[ $TAB]*char[ $TAB]*)" $chfilelist
done
for i in int8_t uint8_t; do
printhead "--> usage of sizeof($i)"
- grep $_grepopts "sizeof[ ]*([ ]*$i[ ]*)" $chfilelist
+ grep $_grepopts "sizeof[ $TAB]*([ $TAB]*$i[ $TAB]*)" $chfilelist
done
printhead "--> usage of &&1"
- grep $_grepopts "&&[ ]*1" $chfilelist
+ grep $_grepopts "&&[ $TAB]*1" $chfilelist
printhead "--> usage of ||0"
- grep $_grepopts "||[ ]*0" $chfilelist
+ grep $_grepopts "||[ $TAB]*0" $chfilelist
# added a-fA-F_ to eliminate some false positives
printhead "--> usage of *0"
- grep $_grepopts "[a-zA-Z0-9)]\+[ ]*\*[ ]*0[^.0-9xa-fA-F_]" $chfilelist
+ grep $_grepopts "[a-zA-Z0-9)]\+[ $TAB]*\*[ $TAB]*0[^.0-9xa-fA-F_]" $chfilelist
printhead "--> usage of *1"
- grep $_grepopts "[a-zA-Z0-9)]\+[ ]*\*[ ]*1[^.0-9ea-fA-F_]" $chfilelist
+ grep $_grepopts "[a-zA-Z0-9)]\+[ $TAB]*\*[ $TAB]*1[^.0-9ea-fA-F_]" $chfilelist
printhead "--> usage of +0"
- grep $_grepopts "[a-zA-Z0-9)]\+[ ]*+[ ]*0[^.0-9xa-fA-F_]" $chfilelist
+ grep $_grepopts "[a-zA-Z0-9)]\+[ $TAB]*+[ $TAB]*0[^.0-9xa-fA-F_]" $chfilelist
printhead "--> usage of -0"
- grep $_grepopts "[a-zA-Z0-9)]\+[ ]*-[ ]*0[^.0-9xa-fA-F_]" $chfilelist
+ grep $_grepopts "[a-zA-Z0-9)]\+[ $TAB]*-[ $TAB]*0[^.0-9xa-fA-F_]" $chfilelist
fi
# -----------------------------------------------------------------------------
More information about the MPlayer-cvslog
mailing list