SVN commit 866464 by winterz: Less false positives, thanks for the patch Erik. CCMAIL: erik@hovland.org M +4 -2 null --- trunk/quality/krazy2/extras/c++/null #866463:866464 @@ -4,7 +4,7 @@ if 0; # not running under some shell ############################################################################### # Sanity check plugin for the Krazy project. # -# Copyright (C) 2007 by Allen Winter # +# Copyright (C) 2007-2008 by Allen Winter # # # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -43,7 +43,7 @@ use Krazy::Utils; my($Prog) = "null"; -my($Version) = "1.1"; +my($Version) = "1.2"; &parseArgs(); @@ -105,6 +105,8 @@ if ($line =~ m/NULL/ || $line =~ m/0[lL]/) { next if ($line =~ m/\".*NULL.*\"/); next if ($line =~ m/#.*NULL/); + next if ($line =~ m/\w+NULL/); + next if ($line =~ m/NULL\w+/); next if ($line =~ m/\".*0[lL].*\"/); next if ($line =~ m/[[:digit:]]0[lL]/); $cnt++;