forked from enlightenment/efl
Replace calloc by ELM_NEW and hack last externals
Spank watchwolf. The last added externals dont compile with the flags that we try to keep OK, since revision 53683. Replace calloc(1,X) to use ELM_NEW, i want do tests with mem pool. SVN revision: 54778
This commit is contained in:
parent
39f48066ff
commit
f4294f8d2c
|
@ -64,7 +64,7 @@ external_anchorblock_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUS
|
|||
Edje_External_Param *param;
|
||||
const Eina_List *l;
|
||||
|
||||
mem = calloc(1, sizeof(Elm_Params_Anchorblock));
|
||||
mem = ELM_NEW(Elm_Params_Anchorblock);
|
||||
if (!mem)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ external_anchorview_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSE
|
|||
Edje_External_Param *param;
|
||||
const Eina_List *l;
|
||||
|
||||
mem = calloc(1, sizeof(Elm_Params_Anchorview));
|
||||
mem = ELM_NEW(Elm_Params_Anchorview);
|
||||
if (!mem)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ external_button_params_parse(void *data __UNUSED__, Evas_Object *obj, const Eina
|
|||
Edje_External_Param *param;
|
||||
const Eina_List *l;
|
||||
|
||||
mem = calloc(1, sizeof(Elm_Params_Button));
|
||||
mem = ELM_NEW(Elm_Params_Button);
|
||||
if (!mem)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -250,7 +250,7 @@ external_genlist_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__
|
|||
Edje_External_Param *param;
|
||||
const Eina_List *l;
|
||||
|
||||
mem = calloc(1, sizeof(Elm_Params_Genlist));
|
||||
mem = ELM_NEW(Elm_Params_Genlist);
|
||||
if (!mem)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ external_icon_params_parse(void *data, Evas_Object *obj, const Eina_List *params
|
|||
Edje_External_Param *param;
|
||||
const Eina_List *l;
|
||||
|
||||
//mem = external_common_params_parse(Elm_Params_Icon, data, obj, params);
|
||||
mem = ELM_NEW(Elm_Params_Icon);
|
||||
if (!mem)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ external_label_params_parse(void *data, Evas_Object *obj, const Eina_List *param
|
|||
Edje_External_Param *param;
|
||||
const Eina_List *l;
|
||||
|
||||
//mem = external_common_params_parse(Elm_Params_Label, data, obj, params);
|
||||
mem = ELM_NEW(Elm_Params_Label);
|
||||
if (!mem)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -235,7 +235,7 @@ external_list_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__, c
|
|||
Edje_External_Param *param;
|
||||
const Eina_List *l;
|
||||
|
||||
mem = calloc(1, sizeof(Elm_Params_List));
|
||||
mem = ELM_NEW(Elm_Params_List);
|
||||
if (!mem)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ static void * external_scroller_params_parse(void *data, Evas_Object *obj,
|
|||
Edje_External_Param *param;
|
||||
const Eina_List *l;
|
||||
|
||||
//mem = external_common_params_parse(Elm_Params_Scroller, data, obj, params);
|
||||
mem = ELM_NEW(Elm_Params_Scroller);
|
||||
if (!mem)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue