7 from headerutils import *
18 only_use_list = list ()
20 for x in sys.argv[1:]:
27 if not usage and len (src) > 0:
30 src = readwholefile (fn)
33 d = find_pound_include (line, True, True)
34 if d != "" and d[-2:] ==".h":
35 if dup.get (d) == None:
36 if incl.get (d) == None:
44 l.append ((incl[i], i))
45 l.sort (key=lambda tup:tup[0], reverse=True)
48 print str (f[0]) + " : " + f[1]
51 print "count-headers file1 [filen]"
52 print "Count the number of occurrences of all includes across all listed files"