[Lognorm] [rsyslog] liblognorm

Pavel Levshin pavel at levshin.spb.ru
Thu Nov 28 12:10:46 CET 2013


28.11.2013 15:00, Rainer Gerhards:
>
> ahh... excellent point, I have to admit I overlooked it. es_size_t has 
> the advantage (IMHO) that it is 32 bits and saves us the overhead of 
> passing 64 bits around. I cannot see any reasonable case where we have 
> >2gig messages. How about using uint32_t instead (or just plain int, 
> but...).
>
>

I'm not sure. Size_t is universally portable, but uint32_t is also 
sufficient for all current architectures, which I could think of. Is 
there someone running liblognorm at 16 bit CPU?..

For external interface, I'd vote for size_t.


--
Pavel Levshin



More information about the Lognorm mailing list