aboutsummaryrefslogtreecommitdiffstats
path: root/tools/patcheck
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-02-27 21:11:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-02-27 21:11:49 +0000
commit70ec53a0bf3dfd77fdc5904516c358edee545c7c (patch)
tree0563f627bf9ef2680d21bdf1a8a3790a5c85f8e6 /tools/patcheck
parentf55e1812d016610839ea09740eb3f3ea535b81d6 (diff)
downloadffmpeg-70ec53a0bf3dfd77fdc5904516c358edee545c7c.tar.gz
Detect static prototypes.
Originally committed as revision 17649 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools/patcheck')
-rwxr-xr-xtools/patcheck1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/patcheck b/tools/patcheck
index 65beca9db9..89c06672f8 100755
--- a/tools/patcheck
+++ b/tools/patcheck
@@ -68,6 +68,7 @@ hiegrep '& *[a-zA-Z0-9_]* *\[ *0 *\]' 'useless & [0]' $*
hiegrep '(\( *[0-9] *(&&|\|\|)|(&&|\|\|) *[0-9] *\))' 'overriding condition' $*
hiegrep '(:\+|,|;)( *|static|\*)*'"$ERE_PRITYP"' *\*( |\*)*(src|source|input|in[^a-z])' 'missing const?' $*
hiegrep '(:\+|,|;)( *|static|\*)*'"$ERE_PRITYP"' *(src|source|input|in)([0-9A-Z_][0-9A-Za-z_]*){1,} *\[' 'missing const (test2)?' $*
+hiegrep ' *static *'"$ERE_FUNCS"'[^)]*\);' 'static prototype, maybe you should reorder your functions' $*
hiegrep2 '\.long_name *=' 'NULL_IF_CONFIG_SMAL' 'missing NULL_IF_CONFIG_SMAL' $*