aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael Niedermayer2009-02-17 18:20:06 +0000
committerMichael Niedermayer2009-02-17 18:20:06 +0000
commit6c25f346820b1ec00982e857aec23be0ece47856 (patch)
treea553458d575848479ad0f0e1db946ca17a1bad6d /tools
parent41d7f7bdb9ba95a990f0fbfa47e808a48cfd748d (diff)
Fix @param[in/out] handling
Originally committed as revision 17395 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools')
-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