Skip to content

Commit

Permalink
lua: remove usage of luaL_reg in favor of luaL_Reg
Browse files Browse the repository at this point in the history
The former was deprecated with 5.1, and removed entirely in later versions and in LuaJIT
  • Loading branch information
CoffeeFlux committed Jan 30, 2021
1 parent 7640576 commit 8d8ea16
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libaegisub/lua/modules/lpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2334,7 +2334,7 @@ static int matchl (lua_State *L) {
}


static struct luaL_reg pattreg[] = {
static struct luaL_Reg pattreg[] = {
{"match", matchl},
{"print", printpat_l},
{"locale", locale_l},
Expand All @@ -2360,7 +2360,7 @@ static struct luaL_reg pattreg[] = {
};


static struct luaL_reg metapattreg[] = {
static struct luaL_Reg metapattreg[] = {
{"__add", union_l},
{"__pow", star_l},
{"__sub", diff_l},
Expand Down
Empty file.
Empty file removed subprojects/luabins/lib/.keepme
Empty file.
Empty file removed subprojects/luabins/obj/.keepme
Empty file.
2 changes: 1 addition & 1 deletion subprojects/luabins/src/luabins.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static int l_load(lua_State * L)
}

/* luabins Lua module API */
static const struct luaL_reg R[] =
static const struct luaL_Reg R[] =
{
{ "save", l_save },
{ "load", l_load },
Expand Down
Empty file removed subprojects/luabins/tmp/.keepme
Empty file.

0 comments on commit 8d8ea16

Please sign in to comment.