Fix EINA_INLIST_GET() macro.

now EINA_INLIST_GET(bla)->next will work, before it was like

 &bla->__in_list->next

which is wrong, since __in_list is not a pointer, rather the memory itself.



SVN revision: 39210
This commit is contained in:
Gustavo Sverzut Barbieri 2009-02-25 16:24:00 +00:00
parent 97d692ff18
commit 27f001875b
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ struct _Eina_Inlist
};
#define EINA_INLIST Eina_Inlist __in_list
#define EINA_INLIST_GET(Inlist) &((Inlist)->__in_list)
#define EINA_INLIST_GET(Inlist) (&((Inlist)->__in_list))
EAPI Eina_Inlist * eina_inlist_append(Eina_Inlist *in_list, Eina_Inlist *in_item) EINA_ARG_NONNULL(2) EINA_WARN_UNUSED_RESULT;
EAPI Eina_Inlist * eina_inlist_prepend(Eina_Inlist *in_list, Eina_Inlist *in_item) EINA_ARG_NONNULL(2) EINA_WARN_UNUSED_RESULT;