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:
parent
7640576cc9
commit
8d8ea166df
6 changed files with 3 additions and 3 deletions
|
@ -2334,7 +2334,7 @@ static int matchl (lua_State *L) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static struct luaL_reg pattreg[] = {
|
static struct luaL_Reg pattreg[] = {
|
||||||
{"match", matchl},
|
{"match", matchl},
|
||||||
{"print", printpat_l},
|
{"print", printpat_l},
|
||||||
{"locale", locale_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},
|
{"__add", union_l},
|
||||||
{"__pow", star_l},
|
{"__pow", star_l},
|
||||||
{"__sub", diff_l},
|
{"__sub", diff_l},
|
||||||
|
|
|
@ -54,7 +54,7 @@ static int l_load(lua_State * L)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* luabins Lua module API */
|
/* luabins Lua module API */
|
||||||
static const struct luaL_reg R[] =
|
static const struct luaL_Reg R[] =
|
||||||
{
|
{
|
||||||
{ "save", l_save },
|
{ "save", l_save },
|
||||||
{ "load", l_load },
|
{ "load", l_load },
|
||||||
|
|
Loading…
Reference in a new issue