]> granicus.if.org Git - nethack/commit
loadlua() simplification
authorPatR <rankin@nethack.org>
Fri, 31 Jan 2020 21:36:22 +0000 (13:36 -0800)
committerPatR <rankin@nethack.org>
Fri, 31 Jan 2020 21:36:22 +0000 (13:36 -0800)
commitc03ed894de026f17f39d3b444926b9dcb96efb76
tree9ac3f32adcb3f545242a554213876ebedad68d62
parent625a9a7b7990a1a6562e898bd783860d7227b81a
loadlua() simplification

nhl_loadlua() went from too simple to too complicated, now somewhere
in between.  Still doesn't assume that an entire file can be scooped
up with a single fread(), but no longer mucks about with the contents
of the file in order to insert a comment containing the file's name.
In order to have useful filename feedback in Lua error messages, just
use a different liblua routine to feed the file's contents to it.
src/nhlua.c