From 0d83b30e25d68147ab53c760c386514140ac0751 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 1 Dec 2010 14:26:22 -0500 Subject: Typo fixes. --- deheader | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deheader b/deheader index 43a27a3..b73eaf1 100755 --- a/deheader +++ b/deheader @@ -13,7 +13,7 @@ on which #includes can be omitted from them -- the test, for each foo.c or foo.cc or foo.cpp, is simply whether 'rm foo.o; make foo.o' returns a zero status. Optionally, with the -r option, the unneeded headers are removed. -If a sourcefile argument is a directory, the report is generates on all source +If a sourcefile argument is a directory, the report is generated on all source files beneath it. Subdirectories beginning with a dot are ignored. If no arguments are given, the program runs as if the name of the current directory had been passed to it. @@ -59,7 +59,7 @@ class Baton: return def c_source(filename): - "Predicate: return true idf the filename appears to be C or C++ source." + "Predicate: return true if the filename appears to be C or C++ source." return filename.endswith(".c") or filename.endswith(".cpp") class InclusionMap: @@ -127,7 +127,7 @@ class SaveForModification: "Disable reversion." os.remove(self.original) def __del__(self): - "Revert modifications on the file at the end of this onject's lifetime." + "Revert modifications on the file at the end of this object's lifetime." if os.path.exists(self.original): try: os.remove(self.filename) @@ -238,3 +238,5 @@ if __name__ == "__main__": inclusion_map = InclusionMap(arguments, ignore, verbose) for sourcefile in inclusion_map.c_to_h: deheader(sourcefile, inclusion_map.c_to_h[sourcefile], remove, verbose) + +# End -- cgit v1.2.3-70-g09d2