aboutsummaryrefslogtreecommitdiffstats
path: root/tools/patcheck
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-02-17 18:20:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-02-17 18:20:06 +0000
commit6c25f346820b1ec00982e857aec23be0ece47856 (patch)
treea553458d575848479ad0f0e1db946ca17a1bad6d /tools/patcheck
parent41d7f7bdb9ba95a990f0fbfa47e808a48cfd748d (diff)
downloadffmpeg-6c25f346820b1ec00982e857aec23be0ece47856.tar.gz
Fix @param[in/out] handling
Originally committed as revision 17395 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools/patcheck')
-rwxr-xr-xtools/patcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patcheck b/tools/patcheck
index ac4de1aea5..9720cb26fb 100755
--- a/tools/patcheck
+++ b/tools/patcheck
@@ -81,7 +81,7 @@ hiegrep ':\+ *{ *$' '{ should be on the same line as the related previous state
rm $TMP
-for i in `grep -H '^+.*@param' $*| sed 's/^\([^:]*\):.*@param *\([a-zA-Z0-9_]*\) .*$/\1:\2/'` ; do
+for i in `grep -H '^+.*@param' $*| sed 's/^\([^:]*\):.*@param\(\[.*\]\|\) *\([a-zA-Z0-9_]*\) .*$/\1:\3/'` ; do
doxpar=`echo $i | sed 's/^.*:\(.*\)$/\1/'`
file=`echo $i | sed 's/^\([^:]*\):.*$/\1/'`
grep " *$doxpar *[),]" $file | grep -v '@param' >/dev/null || grep --color=always "@param *$doxpar" $file >>$TMP