On Tue, 2007-09-25 at 13:38 -0400, Kristian Høgsberg wrote: > > A nice patch would be to introduce a macro such as CHECK_OVERFLOW(a,b) > that implements the above check, which makes the code more readable > and isolates the implementation of this tricky check in place. But > the checks have to stay.
Cairo has a bunch of macros that do this, though written as malloc replacements: http://gitweb.freedesktop.org/?p=cairo;a=blob;h=ad22851b1070dcc4736ede887a5d600c4d1af71c;hb=f1d84271d363cc80cdef92ec9cac2cf29783bfe0;f=src/cairo-malloc-private.h -- behdad http://behdad.org/ "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." -- Benjamin Franklin, 1759 _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
