diff options
author | Daniel Kolesa <d.kolesa@samsung.com> | 2015-04-14 14:14:50 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-05-06 15:05:20 +0100 |
commit | f8f9cc14a798a4e760e09c6c3a2d54eea02e40ee (patch) | |
tree | c3df7e80875dc18c2dff7906942933e125aa7721 /src | |
parent | d8890209afc702643e1a066279eb8eda09b1119b (diff) |
elua lib: API rename
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/elua/Elua.h | 2 | ||||
-rw-r--r-- | src/lib/elua/cache.c | 2 | ||||
-rw-r--r-- | src/lib/elua/elua.c | 6 |
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); | |||
66 | EAPI int elua_shutdown(void); | 66 | EAPI int elua_shutdown(void); |
67 | 67 | ||
68 | EAPI Elua_State *elua_state_new(const char *progname); | 68 | EAPI Elua_State *elua_state_new(const char *progname); |
69 | EAPI Elua_State *elua_state_from_lua_get(lua_State *L); | 69 | EAPI Elua_State *elua_state_from_lua_state_get(lua_State *L); |
70 | 70 | ||
71 | EAPI void elua_state_free(Elua_State *es); | 71 | EAPI 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) | |||
190 | static int | 190 | static int |
191 | loadfile(lua_State *L) | 191 | loadfile(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 | ||
218 | EAPI Elua_State * | 218 | EAPI Elua_State * |
219 | elua_state_from_lua_get(lua_State *L) | 219 | elua_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) | |||
339 | EAPI int | 339 | EAPI int |
340 | elua_module_init(lua_State *L) | 340 | elua_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) | |||
357 | EAPI int | 357 | EAPI int |
358 | elua_module_system_init(lua_State *L) | 358 | elua_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; |