Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: GitHub noreply@github.com Date: Sun, 15 Jan 2023 17:53:42 UTC Commit: 2665511f731e613944815ab62885ecf52e3037e6 https://github.com/geany/geany-plugins/commit/2665511f731e613944815ab62885ec...
Log Message: ----------- Merge pull request #1210 from cjmayo/luaopenlib
GeanyLua: Use luaL_register instead of luaL_openlib
Modified Paths: -------------- geanylua/glspi_kfile.c geanylua/glspi_run.c geanylua/gsdlg_lua.c
Modified: geanylua/glspi_kfile.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -395,8 +395,8 @@ static gint luaopen_keyfile(lua_State *L) lua_pushstring(L,"__gc"); lua_pushcfunction(L,kfile_done); lua_rawset(L,-3); - luaL_openlib(L, NULL, &kfile_funcs[1], 0); - luaL_openlib(L, LUA_MODULE_NAME, kfile_funcs, 0); + luaL_register(L, NULL, &kfile_funcs[1]); + luaL_register(L, LUA_MODULE_NAME, kfile_funcs); return 0; }
Modified: geanylua/glspi_run.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -393,7 +393,7 @@ static void show_error(lua_State *L, const gchar *script_file)
static gint glspi_init_module(lua_State *L, const gchar *script_file, gint caller, GKeyFile*proj, const gchar*script_dir) { - luaL_openlib(L, LUA_MODULE_NAME, glspi_timer_funcs, 0); + luaL_register(L, LUA_MODULE_NAME, glspi_timer_funcs); glspi_init_sci_funcs(L); glspi_init_doc_funcs(L); glspi_init_mnu_funcs(L);
Modified: geanylua/gsdlg_lua.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -425,8 +425,8 @@ gint luaopen_dialog(lua_State *L) lua_pushcfunction(L,gsdl_done); lua_rawset(L,-3);
- luaL_openlib(L, NULL, &gsdl_funcs[1], 0); - luaL_openlib(L, LUA_MODULE_NAME, gsdl_funcs, 0); + luaL_register(L, NULL, &gsdl_funcs[1]); + luaL_register(L, LUA_MODULE_NAME, gsdl_funcs); return 0; }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org