diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-20 16:18:17 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-20 16:33:41 -0800 |
commit | d6ff198e7830a4a034bf00d03228ba7ee288028a (patch) | |
tree | b9da8943d55ae3dbfd004634cb0a418c1467f6ba /src | |
parent | b618bfc7cf7eb5fa498a051a17832c2cda4cca9c (diff) | |
download | teliva-d6ff198e7830a4a034bf00d03228ba7ee288028a.tar.gz |
get rid of a distracting name
No distinction now between the C and Lua versions of the curses library. We build them all together in one place.
Diffstat (limited to 'src')
-rw-r--r-- | src/lcurses/curses.c | 2 | ||||
-rw-r--r-- | src/linit.c | 2 | ||||
-rw-r--r-- | src/lualib.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/lcurses/curses.c b/src/lcurses/curses.c index 303607a..a7b22b6 100644 --- a/src/lcurses/curses.c +++ b/src/lcurses/curses.c @@ -1514,7 +1514,7 @@ after @{curses.initscr} has returned successfully. */ LUALIB_API int -luaopen_curses_c(lua_State *L) +luaopen_curses(lua_State *L) { luaopen_curses_window(L); luaopen_curses_chstr(L); diff --git a/src/linit.c b/src/linit.c index 48eb082..6211f39 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_c}, + {LUA_CURSESLIBNAME, luaopen_curses}, {LUA_DBLIBNAME, luaopen_debug}, {NULL, NULL} }; diff --git a/src/lualib.h b/src/lualib.h index e861154..02924dd 100644 --- a/src/lualib.h +++ b/src/lualib.h @@ -33,8 +33,8 @@ LUALIB_API int (luaopen_string) (lua_State *L); #define LUA_MATHLIBNAME "math" LUALIB_API int (luaopen_math) (lua_State *L); -#define LUA_CURSESLIBNAME "curses_c" -LUALIB_API int (luaopen_curses_c) (lua_State *L); +#define LUA_CURSESLIBNAME "curses" +LUALIB_API int (luaopen_curses) (lua_State *L); #define LUA_DBLIBNAME "debug" LUALIB_API int (luaopen_debug) (lua_State *L); |