lua: remove usage of luaL_reg in favor of luaL_Reg

The former was deprecated with 5.1, and removed entirely in later versions and in LuaJIT
This commit is contained in:
Ryan 2021-01-21 06:02:19 -05:00
parent 7640576cc9
commit 8d8ea166df
6 changed files with 3 additions and 3 deletions

View file

@ -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},
@ -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},

View file

@ -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 },