elua: use up to date lua API

luaL_reg is a 5.0 API which we don't support.
This commit is contained in:
Daniel Kolesa 2017-06-28 11:51:29 +02:00
parent e65e90a660
commit 352c044524
3 changed files with 3 additions and 8 deletions

View File

@ -355,7 +355,7 @@ _elua_get_localeconv(lua_State *L)
return 1;
};
const luaL_reg gettextlib[] =
const luaL_Reg gettextlib[] =
{
{ "bind_textdomain", _elua_gettext_bind_textdomain },
{ "get_message_language", _elua_get_message_language },
@ -442,7 +442,7 @@ _elua_file_rmrf(lua_State *L)
return 1;
}
const luaL_reg _elua_cutillib[] =
const luaL_Reg _elua_cutillib[] =
{
{ "init_module", _elua_module_init },
{ "popenv" , _elua_io_popen },

View File

@ -28,11 +28,6 @@
#include <lualib.h>
#include <lauxlib.h>
// FIX for luajit 2.1.0-beta3: see https://phab.enlightenment.org/T2728
#ifndef luaL_reg
# define luaL_reg luaL_Reg
#endif
#include "Elua.h"
struct _Elua_State

View File

@ -313,7 +313,7 @@ elua_ftostring(lua_State *L)
return 1;
}
static const luaL_reg elua_popenlib[] =
static const luaL_Reg elua_popenlib[] =
{
{ "close" , elua_close },
{ "flush" , elua_flush },