va_start(args, fmt);
_print_cb(level, file, fnc, line, fmt, _print_cb_data, args);
va_end(args);
+
+ if (getenv("EINA_ERROR_ABORT")) abort();
}
/**
eina_list_remove(Eina_List *list, const void *data)
{
Eina_List *l;
- void *list_data;
if (list) EINA_MAGIC_CHECK_LIST(list);
- EINA_LIST_FOREACH(list, l, list_data)
- {
- if (list_data == data)
+ l = eina_list_data_find_list(list, data);
return eina_list_remove_list(list, l);
- }
-
- return list;
}
/**
}
else
return_l = remove_list->next;
- if (remove_list == list->accounting->last)
+ if (remove_list == remove_list->accounting->last)
{
EINA_MAGIC_CHECK_LIST(list);
list->accounting->last = remove_list->prev;
}
-
_eina_list_mempool_list_free(remove_list);
return return_l;
}