add support for parsing of unicode quotes
authorMike Frysinger <vapier@gentoo.org>
Sat, 27 Jan 2007 19:41:52 +0000 (19:41 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 27 Jan 2007 19:41:52 +0000 (19:41 -0000)
svn path=/main/trunk/; revision=5796

bin/check-implicit-pointer-usage.py

index 4afa8f24bc35f429a9dc89f565791ff0b2319820..948bc675e2b015732f5fe855aeacd0627599f6c4 100755 (executable)
@@ -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"
     + "|"