elua: remove elua_prefix from main runtime
This commit is contained in:
parent
5f6109bc47
commit
87a8e51cd3
|
@ -31,9 +31,7 @@ bin_elua_elua_SOURCES = \
|
|||
bin/elua/main.c
|
||||
|
||||
bin_elua_elua_CPPFLAGS = -I$(top_builddir)/src/lib/efl @ELUA_CFLAGS@ \
|
||||
-DLOCALE_DIR=\"@LOCALE_DIR@\" \
|
||||
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
|
||||
-DPACKAGE_DATA_DIR=\"$(datadir)/elua\"
|
||||
-DLOCALE_DIR=\"@LOCALE_DIR@\"
|
||||
|
||||
if HAVE_OSX
|
||||
if HAVE_X86_64
|
||||
|
|
|
@ -37,7 +37,6 @@ enum
|
|||
static int elua_require_ref = LUA_REFNIL;
|
||||
static int elua_appload_ref = LUA_REFNIL;
|
||||
static const char *elua_progname = NULL;
|
||||
static Eina_Prefix *elua_prefix = NULL;
|
||||
static Elua_State *elua_state = NULL;
|
||||
|
||||
static int _el_log_domain = -1;
|
||||
|
@ -224,7 +223,6 @@ void
|
|||
elua_bin_shutdown(Elua_State *es, int c)
|
||||
{
|
||||
INF("elua shutdown");
|
||||
if (elua_prefix) eina_prefix_free(elua_prefix);
|
||||
if (es) elua_state_free(es);
|
||||
if (_el_log_domain != EINA_LOG_DOMAIN_GLOBAL)
|
||||
eina_log_domain_unregister(_el_log_domain);
|
||||
|
@ -337,17 +335,6 @@ elua_main(lua_State *L)
|
|||
|
||||
lua_gc(L, LUA_GCSTOP, 0);
|
||||
|
||||
elua_prefix = eina_prefix_new(elua_progname, elua_main, "ELUA", "elua", "checkme",
|
||||
PACKAGE_BIN_DIR, "", PACKAGE_DATA_DIR,
|
||||
LOCALE_DIR);
|
||||
|
||||
if (!elua_prefix)
|
||||
{
|
||||
ERR("could not find elua prefix");
|
||||
m->status = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
elua_state_dirs_set(es, coredir, moddir, appsdir);
|
||||
elua_state_dirs_fill(es, noenv);
|
||||
|
||||
|
|
Loading…
Reference in New Issue