Yes, a memset is simpler, but the idea was to abstract the setup of
the list so that we could potentially do more work at allocation time,
or be handed a struct and initialize that correctly.
Originally, the list structure had pthreads mutexes inside which were
initialized at this time. Considering the low overhead, I'm not likely
to change this now.

On Apr 5, 2005 2:51 AM, Piotr Skamruk <[EMAIL PROTECTED]> wrote:
> more strange things in ecore_list.c
> in list creation (ecore_list_net)
>         if (!ecore_list_init(list)) {
>                 FREE(list);
>                 return NULL;
>         }
> because above condition can't be true this lines could be changed to:
>         ecore_list_init(list);
> or simplier to:
>         memset(list, 0, sizeof(Ecore_List));
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to