static void
-_range_del(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
+_range_del(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o __UNUSED__, Entry *en)
{
evas_textblock_cursor_range_delete(en->sel_start, en->sel_end);
}
static void
-_backspace(Evas_Textblock_Cursor *c, Evas_Object *o, Entry *en)
+_backspace(Evas_Textblock_Cursor *c, Evas_Object *o __UNUSED__, Entry *en __UNUSED__)
{
if (evas_textblock_cursor_char_prev(c))
- {
- evas_textblock_cursor_char_delete(c);
- }
+ evas_textblock_cursor_char_delete(c);
}
static void
-_delete(Evas_Textblock_Cursor *c, Evas_Object *o, Entry *en)
+_delete(Evas_Textblock_Cursor *c, Evas_Object *o __UNUSED__, Entry *en __UNUSED__)
{
evas_textblock_cursor_char_delete(c);
}
}
void
-_edje_external_recalc_apply(Edje *ed, Edje_Real_Part *ep,
- Edje_Calc_Params *params,
- Edje_Part_Description_Common *chosen_desc)
+_edje_external_recalc_apply(Edje *ed __UNUSED__, Edje_Real_Part *ep,
+ Edje_Calc_Params *params __UNUSED__,
+ Edje_Part_Description_Common *chosen_desc __UNUSED__)
{
Edje_External_Type *type;
Edje_Part_Description_External *ext;
void *params1, *params2 = NULL;
- if (!ep->swallowed_object) return;
+ if (!ep->swallowed_object) return;
type = evas_object_data_get(ep->swallowed_object, "Edje_External_Type");
- if (!type) return;
-
- if (!type->state_set) return;
+ if ((!type) || (!type->state_set)) return;
ext = (Edje_Part_Description_External*) ep->param1.description;
params1 = ep->param1.external_params ?
- ep->param1.external_params :
- ext->external_params;
+ ep->param1.external_params : ext->external_params;
if (ep->param2 && ep->param2->description)
{
ext = (Edje_Part_Description_External*) ep->param2->description;
params2 = ep->param2->external_params ?
- ep->param2->external_params :
- ext->external_params;
+ ep->param2->external_params : ext->external_params;
}
type->state_set(type->data, ep->swallowed_object,
- params1, params2, ep->description_pos);
+ params1, params2, ep->description_pos);
}
void *
}
static int
-_elua_custom_panic(lua_State *L)
+_elua_custom_panic(lua_State *L __UNUSED__)
{
ERR("Lua Panic!!!!");
return 1;
}
static void
-_elua_obj_free(lua_State *L, Edje_Lua_Obj *obj)
+_elua_obj_free(lua_State *L __UNUSED__, Edje_Lua_Obj *obj)
{
if (!obj->free_func) return;
obj->free_func(obj);
}
void
-_edje_lua2_script_load(Edje_Part_Collection *edc, void *data, int size)
+_edje_lua2_script_load(Edje_Part_Collection *edc __UNUSED__, void *data __UNUSED__, int size __UNUSED__)
{
_elua_init();
}
void
-_edje_lua2_script_unload(Edje_Part_Collection *edc)
+_edje_lua2_script_unload(Edje_Part_Collection *edc __UNUSED__)
{
lua_State *L;
+
if (!lstate) return;
L = lstate;
lua_gc(L, LUA_GCCOLLECT, 0);