summaryrefslogtreecommitdiff
path: root/src/lib/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-04-14 14:14:50 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:20 +0100
commitf8f9cc14a798a4e760e09c6c3a2d54eea02e40ee (patch)
treec3df7e80875dc18c2dff7906942933e125aa7721 /src/lib/elua
parentd8890209afc702643e1a066279eb8eda09b1119b (diff)
elua lib: API rename
Diffstat (limited to 'src/lib/elua')
-rw-r--r--src/lib/elua/Elua.h2
-rw-r--r--src/lib/elua/cache.c2
-rw-r--r--src/lib/elua/elua.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h
index 8d00e67464..1d45e1c5cb 100644
--- a/src/lib/elua/Elua.h
+++ b/src/lib/elua/Elua.h
@@ -66,7 +66,7 @@ EAPI int elua_init(void);
66EAPI int elua_shutdown(void); 66EAPI int elua_shutdown(void);
67 67
68EAPI Elua_State *elua_state_new(const char *progname); 68EAPI Elua_State *elua_state_new(const char *progname);
69EAPI Elua_State *elua_state_from_lua_get(lua_State *L); 69EAPI Elua_State *elua_state_from_lua_state_get(lua_State *L);
70 70
71EAPI void elua_state_free(Elua_State *es); 71EAPI void elua_state_free(Elua_State *es);
72 72
diff --git a/src/lib/elua/cache.c b/src/lib/elua/cache.c
index ae5cf93716..43ef3d7d19 100644
--- a/src/lib/elua/cache.c
+++ b/src/lib/elua/cache.c
@@ -190,7 +190,7 @@ elua_io_loadfile(const Elua_State *es, const char *fname)
190static int 190static int
191loadfile(lua_State *L) 191loadfile(lua_State *L)
192{ 192{
193 Elua_State *es = elua_state_from_lua_get(L); 193 Elua_State *es = elua_state_from_lua_state_get(L);
194 const char *fname = luaL_optstring(L, 1, NULL); 194 const char *fname = luaL_optstring(L, 1, NULL);
195 int status = elua_io_loadfile(es, fname), 195 int status = elua_io_loadfile(es, fname),
196 hasenv = (lua_gettop(L) >= 3); 196 hasenv = (lua_gettop(L) >= 3);
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c
index 0207681947..229eb65a12 100644
--- a/src/lib/elua/elua.c
+++ b/src/lib/elua/elua.c
@@ -216,7 +216,7 @@ elua_state_lua_state_get(const Elua_State *es)
216} 216}
217 217
218EAPI Elua_State * 218EAPI Elua_State *
219elua_state_from_lua_get(lua_State *L) 219elua_state_from_lua_state_get(lua_State *L)
220{ 220{
221 EINA_SAFETY_ON_NULL_RETURN_VAL(L, NULL); 221 EINA_SAFETY_ON_NULL_RETURN_VAL(L, NULL);
222 lua_getfield(L, LUA_REGISTRYINDEX, "elua_ptr"); 222 lua_getfield(L, LUA_REGISTRYINDEX, "elua_ptr");
@@ -339,7 +339,7 @@ elua_state_modules_setup(const Elua_State *es)
339EAPI int 339EAPI int
340elua_module_init(lua_State *L) 340elua_module_init(lua_State *L)
341{ 341{
342 Elua_State *es = elua_state_from_lua_get(L); 342 Elua_State *es = elua_state_from_lua_state_get(L);
343 if (!lua_isnoneornil(L, 1)) 343 if (!lua_isnoneornil(L, 1))
344 { 344 {
345 lua_pushvalue(L, 1); 345 lua_pushvalue(L, 1);
@@ -357,7 +357,7 @@ elua_module_init(lua_State *L)
357EAPI int 357EAPI int
358elua_module_system_init(lua_State *L) 358elua_module_system_init(lua_State *L)
359{ 359{
360 Elua_State *es = elua_state_from_lua_get(L); 360 Elua_State *es = elua_state_from_lua_state_get(L);
361 const char *corepath = es->coredir; 361 const char *corepath = es->coredir;
362 const char *modpath = es->moddir; 362 const char *modpath = es->moddir;
363 const char *appspath = es->appsdir; 363 const char *appspath = es->appsdir;