From 004ac4bb49b12bddda65ac7475814d782a4c1227 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 29 Nov 2019 22:37:30 -0500 Subject: [PATCH] insert Lua version Instead of the hardcoded value that's in this right at the moment, the intention is to get the Lua version information directly from Lua itself for the insertion. For now, this will have to do. --- src/mdlib.c | 2 +- src/version.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mdlib.c b/src/mdlib.c index 812bc1e73..e252037f1 100644 --- a/src/mdlib.c +++ b/src/mdlib.c @@ -637,7 +637,7 @@ build_options() { static const char *lua_info[] = { "", "NetHack 3.7.* uses the 'Lua' interpreter to process some data:", "", - " About Lua: Copyright (c) 1994-2017 Lua.org, PUC-Rio.", "", + " About Lua:LUAVERSION:: Copyright (c) 1994-2017 Lua.org, PUC-Rio.", "", /* 1 2 3 4 5 6 7 1234567890123456789012345678901234567890123456789012345678901234567890123456 */ diff --git a/src/version.c b/src/version.c index a85867908..c4040c1bc 100644 --- a/src/version.c +++ b/src/version.c @@ -303,6 +303,7 @@ static struct rt_opt { const char *token, *value; } rt_opts[] = { { ":PATMATCH:", regex_id }, + { ":LUAVERSION:", " 5.3.5"}, /* plan is to get this directly from Lua */ }; /*