Make should set optreset to one before it calls getopt() with a new
authorMax Okumoto <okumoto@dragonflybsd.org>
Thu, 7 Apr 2005 07:52:32 +0000 (07:52 +0000)
committerMax Okumoto <okumoto@dragonflybsd.org>
Thu, 7 Apr 2005 07:52:32 +0000 (07:52 +0000)
commit6ef095c691cf19343c4608a85fcd621302f82ecd
tree01f83e8f95c77efd1305c076669f59c3834c109a
parent9de1d47ad20e3ad2d219d22e0eb4777d37b8c86b
Make should set optreset to one before it calls getopt() with a new
set of args.

    o Removed unnessisary forward declaration for MainParseArgs()

    o Use optreset global variable to inform getopt() that we are
      parsing another arg list.

    o Cleanup handling of remaining arguments after getopt()
      completes parsing arguments.  There is no reason to restart
      getopt() for single dash case, just ignore it.  And update
      comment to reflect code.

    o Removed missleading comments.
usr.bin/make/main.c