forked from enlightenment/efl
elua: use up to date lua API
luaL_reg is a 5.0 API which we don't support.
This commit is contained in:
parent
e65e90a660
commit
352c044524
|
@ -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 },
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Reference in New Issue