about summary refs log tree commit diff stats
path: root/src/linit.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-19 19:11:03 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-19 19:11:03 -0800
commitb43747ecef13a7cbe5eb5842d03d803165a473b3 (patch)
treedbecfd6324961dd4c1debfc3fb1128acf5794a55 /src/linit.c
parent9837d327f5617852167d82ed589c9342539072ac (diff)
downloadteliva-b43747ecef13a7cbe5eb5842d03d803165a473b3.tar.gz
inline lcurses maximally rather than minimally
Until now we had just the bare minimum bindings needed for the demos
built so far. Now we have all of lcurses building in place with minimal
changes.

The changes in this commit can run hanoi.lua when inlined into Lua 5.1,
but don't work with Teliva.
Diffstat (limited to 'src/linit.c')
-rw-r--r--src/linit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linit.c b/src/linit.c
index 6211f39..48eb082 100644
--- a/src/linit.c
+++ b/src/linit.c
@@ -22,7 +22,7 @@ static const luaL_Reg lualibs[] = {
   {LUA_OSLIBNAME, luaopen_os},
   {LUA_STRLIBNAME, luaopen_string},
   {LUA_MATHLIBNAME, luaopen_math},
-  {LUA_CURSESLIBNAME, luaopen_curses},
+  {LUA_CURSESLIBNAME, luaopen_curses_c},
   {LUA_DBLIBNAME, luaopen_debug},
   {NULL, NULL}
 };