Fix reserved identifer detection so it doesnt detect __asm and such.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Feb 2009 13:34:22 +0000 (13:34 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Feb 2009 13:34:22 +0000 (13:34 +0000)
Originally committed as revision 17057 to svn://svn.ffmpeg.org/ffmpeg/trunk

tools/patcheck

index 1ee6e1557bb22a28f99f2d42c06fa8b0612a8ae1..c14de5f2f771ff0dd30f40700cc5bc2c5ba59a17 100755 (executable)
@@ -36,7 +36,7 @@ hiegrep '[[:space:]]$'    'trailing whitespace' $*
 hiegrep "`echo x | tr 'x' '\t'`"         'tabs' $*
 #hiegrep ':\+$'          'Empty lines' $*
 hiegrep ';;'              'double ;' $*
-hiegrep '\b_[a-zA-Z0-9_]' 'reserved identifer' $*
+hiegrep2 '\b_[a-zA-Z0-9_]{1,}' '__(asm|attribute)([^a-zA-Z0-9]|$)' 'reserved identifer' $*
 hiegrep '//[-/<\* ]*$'    'empty comment' $*
 hiegrep '/\*[-<\* ]*\*/'  'empty comment' $*
 hiegrep 'for *\( *'"$ERE_PRITYP"' '  'not gcc 2.95 compatible' $*