Avoids any need for MONITOR_HEAP hackery. Link src/alloc.o and util/panic.o into util/makedefs. When replacing the realloc() call in fgetline(), I noticed that fgetline() would miss the last line of an input file if it lacked a terminating newline. This was hard to test because OSX seems to be supplying one when it is missing (VMS would do that too). I had to modify epitaph (my test bed) to take off the final character, run 'makedefs -s' under debugger control and strip away final newline that stdio added back, build new nhdat and move it into place, then run nethack and execute #wizrumorcheck all multiple times before the fix and once more after it. Much effort for little gain... Plus some of the recent reformatting: indent labels one space, replace tabs with spaces, shorten or split wide lines.
66 KiB
66 KiB