forked from enlightenment/efl
move declaration of variables at the beginning of the block
SVN revision: 42627
This commit is contained in:
parent
3e74ea2ad3
commit
165a507ce2
|
@ -83,10 +83,11 @@ evas_object_smart_clipped_smart_add(Evas_Object *obj)
|
|||
static void
|
||||
evas_object_smart_clipped_smart_del(Evas_Object *obj)
|
||||
{
|
||||
CSO_DATA_GET_OR_RETURN(obj, cso);
|
||||
Eina_List *lst, *itr;
|
||||
Evas_Object *data;
|
||||
|
||||
CSO_DATA_GET_OR_RETURN(obj, cso);
|
||||
|
||||
if (cso->clipper)
|
||||
{
|
||||
Evas_Object *clipper = cso->clipper;
|
||||
|
|
|
@ -1090,9 +1090,10 @@ evas_object_table_padding_get(const Evas_Object *o, Evas_Coord *horizontal, Evas
|
|||
Eina_Bool
|
||||
evas_object_table_pack(Evas_Object *o, Evas_Object *child, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan)
|
||||
{
|
||||
EVAS_OBJECT_TABLE_DATA_GET_OR_RETURN_VAL(o, priv, 0);
|
||||
Evas_Object_Table_Option *opt;
|
||||
|
||||
EVAS_OBJECT_TABLE_DATA_GET_OR_RETURN_VAL(o, priv, 0);
|
||||
|
||||
if (rowspan < 1)
|
||||
{
|
||||
ERROR("rowspan < 1");
|
||||
|
@ -1212,9 +1213,10 @@ _evas_object_table_remove_opt(Evas_Object_Table_Data *priv, Evas_Object_Table_Op
|
|||
Eina_Bool
|
||||
evas_object_table_unpack(Evas_Object *o, Evas_Object *child)
|
||||
{
|
||||
EVAS_OBJECT_TABLE_DATA_GET_OR_RETURN_VAL(o, priv, 0);
|
||||
Evas_Object_Table_Option *opt;
|
||||
|
||||
EVAS_OBJECT_TABLE_DATA_GET_OR_RETURN_VAL(o, priv, 0);
|
||||
|
||||
if (o != evas_object_smart_parent_get(child))
|
||||
{
|
||||
ERROR("cannot unpack child from incorrect table!");
|
||||
|
|
|
@ -194,12 +194,13 @@ evas_common_font_utf8_get_prev(const unsigned char *buf, int *iindex)
|
|||
* Returns 0 to indicate there is no prev char
|
||||
*/
|
||||
|
||||
int r;
|
||||
int index = *iindex;
|
||||
if (index <= 0)
|
||||
return 0;
|
||||
|
||||
/* First obtain the codepoint at iindex */
|
||||
int r = evas_common_font_utf8_get_next(buf, &index);
|
||||
r = evas_common_font_utf8_get_next(buf, &index);
|
||||
|
||||
/* Next advance iindex to previous codepoint */
|
||||
index = *iindex;
|
||||
|
|
Loading…
Reference in New Issue