[SCM] libav/experimental: Detect static prototypes.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:39:49 UTC 2013


The following commit has been merged in the experimental branch:
commit 70ec53a0bf3dfd77fdc5904516c358edee545c7c
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Fri Feb 27 21:11:49 2009 +0000

    Detect static prototypes.
    
    Originally committed as revision 17649 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/tools/patcheck b/tools/patcheck
index 65beca9..89c0667 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' $*
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list