elua: remove elua_prefix from main runtime
authorDaniel Kolesa <d.kolesa@samsung.com>
Fri, 10 Apr 2015 10:44:30 +0000 (11:44 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 6 May 2015 14:05:19 +0000 (15:05 +0100)
src/Makefile_Elua.am
src/bin/elua/main.c

index 8a5fc821e1a30bd28deb1d824b23ceaab37fc26c..49ba426711a25a14ed11bb341db89fc6956ffd8b 100644 (file)
@@ -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
index ed83b7027be9166992317455a3b2dc6eb1db1824..b2806be5e01c39f4163702140fefa8d6a567a820 100644 (file)
@@ -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);