From: Mike Frysinger Date: Sat, 27 Jan 2007 19:41:52 +0000 (-0000) Subject: add support for parsing of unicode quotes X-Git-Tag: v2.2_pre1~1796 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=506cc0b2d692e28812af48682d301479a3949bed;p=portage.git add support for parsing of unicode quotes svn path=/main/trunk/; revision=5796 --- diff --git a/bin/check-implicit-pointer-usage.py b/bin/check-implicit-pointer-usage.py index 4afa8f24b..948bc675e 100755 --- a/bin/check-implicit-pointer-usage.py +++ b/bin/check-implicit-pointer-usage.py @@ -1,6 +1,8 @@ #!/usr/bin/env python +# coding: iso-8859-15 # Ripped from HP and updated from Debian +# Update by Gentoo to support unicode output # # Copyright (c) 2004 Hewlett-Packard Development Company, L.P. @@ -16,14 +18,14 @@ import re import sys implicit_pattern = re.compile("([^:]*):(\d+): warning: implicit declaration " - + "of function [`']([^']*)'") + + "of function [`'‘]+([^'‘]*)['‘]") pointer_pattern = re.compile( "([^:]*):(\d+): warning: " + "(" + "(assignment" + "|initialization" + "|return" - + "|passing arg \d+ of `[^']*'" + + "|passing arg \d+ of [`'‘][^'‘]*['‘]" + "|passing arg \d+ of pointer to function" + ") makes pointer from integer without a cast" + "|"