Skip to content

Commit

Permalink
Merge pull request #1231 from xiota/pr-lua-luaL_Reg
Browse files Browse the repository at this point in the history
GeanyLua: Use `luaL_Reg` instead of compatibility name `luaL_reg`.
  • Loading branch information
b4n committed Jun 16, 2024
2 parents bc2bf39 + 6cb701c commit d8df495
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion geanylua/glspi_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ static gint glspi_reloadconf(lua_State* L)



static const struct luaL_reg glspi_app_funcs[] = {
static const struct luaL_Reg glspi_app_funcs[] = {
{"pluginver", glspi_pluginver},
{"appinfo", glspi_appinfo},
{"xsel", glspi_xsel},
Expand Down
2 changes: 1 addition & 1 deletion geanylua/glspi_dlg.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ static gint glspi_pickfile(lua_State* L)



static const struct luaL_reg glspi_dlg_funcs[] = {
static const struct luaL_Reg glspi_dlg_funcs[] = {
{"choose", glspi_choose},
{"confirm", glspi_confirm},
{"input", glspi_input},
Expand Down
2 changes: 1 addition & 1 deletion geanylua/glspi_doc.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ static gint glspi_setfiletype(lua_State* L)



static const struct luaL_reg glspi_doc_funcs[] = {
static const struct luaL_Reg glspi_doc_funcs[] = {
{"filename", glspi_filename},
{"fileinfo", glspi_fileinfo},
{"settype", glspi_setfiletype},
Expand Down
2 changes: 1 addition & 1 deletion geanylua/glspi_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ static gint glspi_rescan(lua_State* L) {
return 0;
}

static const struct luaL_reg glspi_mnu_funcs[] = {
static const struct luaL_Reg glspi_mnu_funcs[] = {
{"rescan", glspi_rescan},
{NULL,NULL}
};
Expand Down
2 changes: 1 addition & 1 deletion geanylua/glspi_kfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ static gint kfile_remove(lua_State* L)



static const struct luaL_reg kfile_funcs[] = {
static const struct luaL_Reg kfile_funcs[] = {
{"new", kfile_new},
{"data", kfile_data},
{"groups", kfile_groups},
Expand Down
2 changes: 1 addition & 1 deletion geanylua/glspi_run.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static void glspi_state_done(lua_State *L)



static const struct luaL_reg glspi_timer_funcs[] = {
static const struct luaL_Reg glspi_timer_funcs[] = {
{"timeout", glspi_timeout},
{"yield", glspi_yield},
{"optimize", glspi_optimize},
Expand Down
2 changes: 1 addition & 1 deletion geanylua/glspi_sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ struct Sci_TextToFind {



static const struct luaL_reg glspi_sci_funcs[] = {
static const struct luaL_Reg glspi_sci_funcs[] = {
{"text", glspi_text},
{"selection", glspi_selection},
{"select", glspi_select},
Expand Down
2 changes: 1 addition & 1 deletion geanylua/gsdlg_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ static gint gsdl_done(lua_State *L)



static const struct luaL_reg gsdl_funcs[] = {
static const struct luaL_Reg gsdl_funcs[] = {
{"new", gsdl_new},
{"run", gsdl_run},
{"label", gsdl_label},
Expand Down

0 comments on commit d8df495

Please sign in to comment.