On Wed, Jan 11, 2012 at 1:52 AM, Lucas De Marchi
<lucas.demar...@profusion.mobi> wrote:
> On Wed, Jan 11, 2012 at 12:20 AM, Enlightenment SVN
> <no-re...@enlightenment.org> wrote:
>> Log:
>> add eina_value.
>>
...
>> +static const unsigned char eina_value_uchar_max = 255U;
>> +static const char eina_value_char_max =  127;
>> +static const char eina_value_char_min = -127 - 1;
>> +
>> +static const unsigned short eina_value_ushort_max = 65535U;
>> +static const short eina_value_short_max =  32767;
>> +static const short eina_value_short_min = -32767 - 1;
>> +
>> +static const unsigned int eina_value_uint_max = 4294967295U;
>> +static const int eina_value_int_max =  2147483647;
>> +static const int eina_value_int_min = -2147483647 - 1;
>> +
>> +static const uint64_t eina_value_uint64_max = 18446744073709551615ULL;
>> +static const int64_t eina_value_int64_max =  9223372036854775807LL;
>> +static const int64_t eina_value_int64_min = -9223372036854775807LL - 1LL;
>> +
>> +#if __WORDSIZE == 64
>> +static const unsigned long eina_value_ulong_max = 18446744073709551615ULL;
>> +static const long eina_value_long_max =  9223372036854775807LL;
>> +static const long eina_value_long_min = -9223372036854775807LL - 1LL;
>> +#else
>> +static const unsigned long eina_value_ulong_max = 4294967295U;
>> +static const long eina_value_long_max =  2147483647;
>> +static const long eina_value_long_min = -2147483647 - 1;
>> +#endif
>
> Why don't you use limits.h?

forgot they were there, just remembered about stdint.h, that people
say is not available bla bla bla (otherwise I'd use intX_t types and
avoid typing so much --- int64_t defined in eina_fp.h with some
windows magic)

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to