summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-02-08 13:34:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-02-08 13:34:22 +0000
commit74892f7a4ebe94462e61c64cda7d6d3f2a594e3b (patch)
treef0fc9d1678086709fdec3ee8b585ecd1694827b3 /tools
parent3d8f9025b10b9782341592498618f14aa1ccd433 (diff)
Fix reserved identifer detection so it doesnt detect __asm and such.
Originally committed as revision 17057 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 1ee6e1557b..c14de5f2f7 100755
--- a/tools/patcheck
+++ b/tools/patcheck
@@ -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' $*