[opensuse-packaging] Re: Procinfo and Procinfo-NG

2007-08-31 Thread Philipp Thomas
* Jan Engelhardt ([EMAIL PROTECTED]) [20070830 20:42]:

> Ah ok, if the macro expands to %z or %j, very well, but that was not obvious
> from the macro.

No, it dosn't expand to %z or %j >;-), but it will expand to %i, %hhi etc. Just
look at the top of /usr/include/stdint.h and you'll see what those macros
expand to.

Philipp
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-packaging] Re: Procinfo and Procinfo-NG

2007-08-30 Thread Jan Engelhardt

On Aug 30 2007 18:32, Philipp Thomas wrote:
>* Jan Engelhardt ([EMAIL PROTECTED]) [20070823 09:36]:
>
>> Bwäh. printf("%llu", (unsigned long long)var); is much more readable 
>> and does not provide any surprises.
>
>It isn't more readable and it certainly doesn't provide surprises as stdint.h
>and inttype.h are ISO C99. Using the widest available type and then doing
>casts is IMNSHO much uglier. 

Ah ok, if the macro expands to %z or %j, very well, but that was not obvious
from the macro.


Jan
-- 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[opensuse-packaging] Re: Procinfo and Procinfo-NG

2007-08-30 Thread Philipp Thomas
* Jan Engelhardt ([EMAIL PROTECTED]) [20070823 09:36]:

> Bwäh. printf("%llu", (unsigned long long)var); is much more readable 
> and does not provide any surprises.

It isn't more readable and it certainly doesn't provide surprises as stdint.h
and inttype.h are ISO C99. Using the widest available type and then doing
casts is IMNSHO much uglier. 

Philipp
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]