summaryrefslogtreecommitdiff
path: root/src/lib/elua/elua.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-04-09 14:21:18 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:19 +0100
commit51a5d09018b554530031c8ee0556aef7e289e260 (patch)
tree6ec1d504c002849b25bd1df42b4d2743eb99408d /src/lib/elua/elua.c
parent19bb7eb4608c30733f92a655d758dbfa525cf1f8 (diff)
elua lib: const correctness
Diffstat (limited to 'src/lib/elua/elua.c')
-rw-r--r--src/lib/elua/elua.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c
index 7382bdeff5..2a31eae647 100644
--- a/src/lib/elua/elua.c
+++ b/src/lib/elua/elua.c
@@ -99,21 +99,21 @@ elua_state_dirs_set(Elua_State *es, const char *core, const char *mods,
99} 99}
100 100
101EAPI Eina_Stringshare * 101EAPI Eina_Stringshare *
102elua_state_core_dir_get(Elua_State *es) 102elua_state_core_dir_get(const Elua_State *es)
103{ 103{
104 EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL); 104 EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL);
105 return es->coredir; 105 return es->coredir;
106} 106}
107 107
108EAPI Eina_Stringshare * 108EAPI Eina_Stringshare *
109elua_state_mod_dir_get(Elua_State *es) 109elua_state_mod_dir_get(const Elua_State *es)
110{ 110{
111 EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL); 111 EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL);
112 return es->moddir; 112 return es->moddir;
113} 113}
114 114
115EAPI Eina_Stringshare * 115EAPI Eina_Stringshare *
116elua_state_apps_dir_get(Elua_State *es) 116elua_state_apps_dir_get(const Elua_State *es)
117{ 117{
118 EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL); 118 EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL);
119 return es->moddir; 119 return es->moddir;
@@ -141,7 +141,7 @@ _elua_errmsg(const char *pname, const char *msg)
141} 141}
142 142
143EAPI int 143EAPI int
144elua_report_error(Elua_State *es, const char *pname, int status) 144elua_report_error(const Elua_State *es, const char *pname, int status)
145{ 145{
146 EINA_SAFETY_ON_FALSE_RETURN_VAL(es && es->luastate, status); 146 EINA_SAFETY_ON_FALSE_RETURN_VAL(es && es->luastate, status);
147 if (status && !lua_isnil(es->luastate, -1)) 147 if (status && !lua_isnil(es->luastate, -1))
@@ -188,7 +188,7 @@ const luaL_reg gettextlib[] =
188}; 188};
189 189
190EAPI void 190EAPI void
191elua_state_setup_i18n(Elua_State *es) 191elua_state_setup_i18n(const Elua_State *es)
192{ 192{
193#ifdef ENABLE_NLS 193#ifdef ENABLE_NLS
194 char *(*dgettextp)(const char*, const char*) = dgettext; 194 char *(*dgettextp)(const char*, const char*) = dgettext;