Add spelling suggestions for four cases:
authorNico Weber <nicolasweber@gmx.de>
Wed, 16 Nov 2011 05:38:21 +0000 (21:38 -0800)
committerNico Weber <nicolasweber@gmx.de>
Wed, 16 Nov 2011 05:42:34 +0000 (21:42 -0800)
commitf72a4137f5a9b3ee4001d60888612b22a6a63020
tree7901b64ddb1a4def692eb6c151e357367443a720
parentd838f8ed07d5cc2550a8b083ad7e866de49fe45d
Add spelling suggestions for four cases:

1. For targets, when invoking ninja to build a target.
2. For targets, when doing a "query" command.
3. For command names.
4. For the subcommands of the "targets" command.

Also change CmdTargets() to call LookupNode() instead of GetNode() --
since the result was checked for NULL, that's probably what was intended
here originally.
src/edit_distance.cc
src/edit_distance.h
src/edit_distance_test.cc
src/ninja.cc
src/stat_cache.cc
src/stat_cache.h
src/state.cc
src/state.h
src/util.cc
src/util.h