]> granicus.if.org Git - nethack/commit
feature options (#version output)
authorPatR <rankin@nethack.org>
Tue, 3 Oct 2017 01:25:09 +0000 (18:25 -0700)
committerPatR <rankin@nethack.org>
Tue, 3 Oct 2017 01:25:09 +0000 (18:25 -0700)
commit8a45da0e8d06651bc4400ca3cac3508446642134
tree36b368dc2c5ef3bd843e17d98ac60b30c1c84f1c
parent67aaf4ef4c230d68a2ad08c1f87ce08e3ff22e08
feature options (#version output)

I've sometimes seen
  , and basic NetHack features.
as the last line of the features section from '#version'.  I thought
it was due to the way feature phrases were split into individual words
by makedefs, but it turned out to be due to inserting pattern matching
method at run-time.  That dynamic options update had a second problem:
if the final phrase "and basic NetHack features" was split across two
lines, the run-time substitution didn't find it and the pattern matching
entry ended up being left out.  This fixes both problems, but if future
dynamic entries become more complex, the phrase-splitting/word-wrapping
being done by makedefs may need to be moved into nethack.

Also, add entries for XLOGFILE and PANICLOG to makedefs' options and
re-order a couple of existing ones alphabetically (a failry hopeless
endeavor).
doc/fixes36.1
src/version.c
util/makedefs.c