]> granicus.if.org Git - nethack/commitdiff
insert Lua version
authornhmall <nhmall@nethack.org>
Sat, 30 Nov 2019 03:37:30 +0000 (22:37 -0500)
committernhmall <nhmall@nethack.org>
Sat, 30 Nov 2019 03:37:30 +0000 (22:37 -0500)
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
src/version.c

index 812bc1e7383eea20b30646c93d114e0c9d3c3988..e252037f10ab5a9b74af82746f469884f2559400 100644 (file)
@@ -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
   */
index a858679088c3062d6728b7a2b3174291c46e189d..c4040c1bcf898ee2ef26590bb04ccbc183310faa 100644 (file)
@@ -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 */
 };
 
 /*