Martin Buchholz <martin(a)xemacs.org> writes:
>> Also, here is a rewritten XMALLOC_OR_ALLOCA macro that
avoids
>> multiple evaluation of the `len' argument.
Hrvoje> I'll add the patch on the grounds of general saneness, but
Hrvoje> what's the point? I mean, the macro is purely local in
Hrvoje> nature, and if you use it, you should know what you're
Hrvoje> doing.
For macros that have statement semantics, e.g. using do {} while
(0), as opposed to expression semantics, it is always possible to
eliminate multiple evaluation, and we should do so consistently. I
have been adding this kind of macro hygiene in the XEmacs sources
for a while now.
Do the added automatic variables make a difference?
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
A jury consists of 12 persons chosen to decide who has the better
lawyer.