]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Fix misdetection of #else in 'missing } prior to else'.
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 27 Feb 2009 18:33:46 +0000 (18:33 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 27 Feb 2009 18:33:46 +0000 (18:33 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17647 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

tools/patcheck

index ed32ec1db85ca6388fb521ec3439c6c16c37f48f..87f412e731f11b0deffb3f788ac22c21d6be83e1 100755 (executable)
@@ -76,7 +76,7 @@ hiegrep2 '\.long_name *=' 'NULL_IF_CONFIG_SMAL' 'missing NULL_IF_CONFIG_SMAL' $*
 
 hiegrep2 "$ERE_TYPES" '(static|av_|ff_|typedef|:\+[^a-zA-Z_])' 'Non static with no ff_/av_ prefix' $*
 
-hiegrep ':\+[^}]*else' 'missing } prior to else' $*
+hiegrep ':\+[^}#]*else' 'missing } prior to else' $*
 
 #FIXME this should print the previous statement maybe
 hiegrep ':\+  *{ *$' '{ should be on the same line as the related previous statement' $*