]> granicus.if.org Git - nethack/commit
more cmdhelp revamp
authorPatR <rankin@nethack.org>
Wed, 8 Jun 2016 23:54:01 +0000 (16:54 -0700)
committerPatR <rankin@nethack.org>
Wed, 8 Jun 2016 23:54:01 +0000 (16:54 -0700)
commit60b7e9bc1726f090133446b5a0becff0baff1727
tree32e4fb4910b963b057b9c5a260945b0fca0279f7
parentca22b3fe46438242a61bc3e26e334bfd46af846e
more cmdhelp revamp

The if/elif/else/endif interpretor for '&' command data was too
simplistic.  It would allow multiple else clauses, elif clauses
after an else clause, and worst of all, accept a should-be-rejected
conditional block if an else or elif which evaluated true followed
an elif which evaluated false which in turn followed an earlier
true clause.  (dat/cmdhelp trigger any of those bugs.)
src/pager.c