forked from enlightenment/efl
eina eina_inlist.c: fixed formatting while reading the code.
This commit is contained in:
parent
0140560530
commit
0dba1e9b8a
|
@ -77,7 +77,8 @@ struct _Eina_Inlist_Sorted_State
|
|||
};
|
||||
|
||||
static Eina_Bool
|
||||
eina_inlist_iterator_next(Eina_Iterator_Inlist *it, void **data) {
|
||||
eina_inlist_iterator_next(Eina_Iterator_Inlist *it, void **data)
|
||||
{
|
||||
if (!it->current)
|
||||
return EINA_FALSE;
|
||||
|
||||
|
@ -90,19 +91,22 @@ eina_inlist_iterator_next(Eina_Iterator_Inlist *it, void **data) {
|
|||
}
|
||||
|
||||
static Eina_Inlist *
|
||||
eina_inlist_iterator_get_container(Eina_Iterator_Inlist *it) {
|
||||
eina_inlist_iterator_get_container(Eina_Iterator_Inlist *it)
|
||||
{
|
||||
return (Eina_Inlist *)it->head;
|
||||
}
|
||||
|
||||
static void
|
||||
eina_inlist_iterator_free(Eina_Iterator_Inlist *it) {
|
||||
eina_inlist_iterator_free(Eina_Iterator_Inlist *it)
|
||||
{
|
||||
free(it);
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
eina_inlist_accessor_get_at(Eina_Accessor_Inlist *it,
|
||||
unsigned int idx,
|
||||
void **data) {
|
||||
void **data)
|
||||
{
|
||||
const Eina_Inlist *over;
|
||||
unsigned int middle;
|
||||
unsigned int i;
|
||||
|
@ -146,12 +150,14 @@ eina_inlist_accessor_get_at(Eina_Accessor_Inlist *it,
|
|||
}
|
||||
|
||||
static Eina_Inlist *
|
||||
eina_inlist_accessor_get_container(Eina_Accessor_Inlist *it) {
|
||||
eina_inlist_accessor_get_container(Eina_Accessor_Inlist *it)
|
||||
{
|
||||
return (Eina_Inlist *)it->head;
|
||||
}
|
||||
|
||||
static void
|
||||
eina_inlist_accessor_free(Eina_Accessor_Inlist *it) {
|
||||
eina_inlist_accessor_free(Eina_Accessor_Inlist *it)
|
||||
{
|
||||
free(it);
|
||||
}
|
||||
|
||||
|
@ -432,7 +438,8 @@ eina_inlist_find(Eina_Inlist *list, Eina_Inlist *item)
|
|||
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(item, NULL);
|
||||
|
||||
for (l = list; l; l = l->next) {
|
||||
for (l = list; l; l = l->next)
|
||||
{
|
||||
if (l == item)
|
||||
return item;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue