On Sun, Sep 2, 2012 at 5:13 PM, Gustavo Sverzut Barbieri
<barbi...@profusion.mobi> wrote:
> On Sunday, September 2, 2012, rustyBSD wrote:
>
>> Le 02/09/2012 13:20, Daniel Juyung Seo a écrit :
>> > It looks like valptr is not always boolean. You can set int value to
>> > the check object.
>> > So it's int rather than Eina_Bool.
>> > But yes, most of cases it is used as if it was a boolean.
>> >
>> > Anybody has a historical idea on this?
>> >
>> > Daniel Juyung Seo (SeoZ)
>> Mmhhh... In e_widget_check.c, i don't see
>> where valptr isn't a boolean.
>>
>> Yes, argument passed to e_widget_check_add()
>> is int, but as it's used as boolean, we also could
>> replace all call to e_widget_check_add() to pass
>> an Eina_Bool. It implies a lot of changes... but it
>> uses less memory.
>
>
> It would be cumbersome to replace everywhere.

we are in a hurry ? No. So we can do it.

> Also it does save memory but
> the extra 3 bytes are minimal compared to everything else, then it does not
> worth the trouble

why not optimizing the memory used ? Again, as we are not in a hurry,
we can do it.

Vincent

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to