From: Eric S. Raymond Date: Wed, 3 Sep 2003 15:54:06 +0000 (+0000) Subject: Name change. X-Git-Tag: 1.0~36 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=cb9bee94c7852b6b9e1b9fc1eea39d8404987f55;p=comparator.git Name change. --- diff --git a/filterator b/filterator index 2ec0ac4..08aac3d 100755 --- a/filterator +++ b/filterator @@ -1,10 +1,10 @@ #!/usr/bin/env python # -# shredfilter -- filter and format the output of shredcompare +# filterator -- filter and format the output of comparator # import os, sys, re, getopt -# Template for parsing the output from shredfilter. Grabs from second tree. +# Template for parsing the output from comparator. shredline = re.compile("([^:]*):([0-9]+):([0-9]+)") # Tokens to be removed when checking whether a shred is significant @@ -18,6 +18,8 @@ C_junk = [r'\bbreak\b', r'\bcase\b',r'\bcontinue\b', r'\bdefault\b', r'\b0\b', r'\b1\b', # Common preprocessor macros, not significant by themselves. r'\bASSERT\b', r'\bFALSE\b', r'\bNULL\b', r'\bSTATIC\b', r'\bTRUE\b', + # Macro include lines are noise, too. + r'^#include', # Common error macros. r'\bEINVAL\b', r'\bENOSYS\b', # Conventional variables frequently found in kernel code. @@ -54,7 +56,7 @@ if __name__ == '__main__': try: (optlist, args) = getopt.getopt(sys.argv[1:], 'd:n') except getopt.GetoptError: - sys.stderr.write("usage: shredfilter [-d dir] [-n]\n") + sys.stderr.write("usage: filterator [-d dir] [-n]\n") sys.exit(2) nofilter = False for (opt, val) in optlist: