Warn if we find %ll in the source
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 24 Jan 2008 22:02:55 +0000 (22:02 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 24 Jan 2008 22:02:55 +0000 (22:02 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24182 f5534014-38df-0310-8fa8-9805f1628bb7

tools/checkAPIs.pl

index 9fab2dd9ffdd5fc12ab3868011ba55d94f7c574b..cbbf2810a8228d77b1d44f546bd5305c4645a114 100755 (executable)
@@ -166,6 +166,13 @@ while ($_ = $ARGV[0])
                $errorCount++;
        }
 
+       if ($fileContents =~ m{%ll})
+       {
+               # use G_GINT64_MODIFIER instead of ll
+               print "Error: found %ll in " .$filename."\n";
+               $errorCount++;
+       }
+
        # Remove all the C-comments and strings
        $fileContents =~ s {$commentAndStringRegex} []g;