В Fri, 5 Apr 2013 19:20:28 +0200
Lennart Poettering <[email protected]> пишет:

> On Mon, 01.04.13 03:08, Cristian Rodríguez ([email protected]) wrote:
> 
> > code in src/shared/macro.h only defined MAX/MIN in case
> > they were not defined previously. however the MAX/MIN
> > macros implemented in glibc are not of the "safe" kind but defined
> > as:
> > 
> > define MIN(a,b) (((a)<(b))?(a):(b))
> > define MAX(a,b) (((a)>(b))?(a):(b))
> > 
> > Avoid nasty side effects by using our own versions instead.
> 
> Just wondering: nasty side effects? Can you elaborate? 

MIN(a++, b++)

>                                                        In real-life it
> shouldn't matter too much, should it?
> 

Probably not, but if something like this creeps in, it is extremely
hard to debug.
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to