>>>> "Hrvoje" == Hrvoje Niksic
<hniksic(a)arsdigita.com> writes:
> The alternative would be to fix the lisp-union.h versions of
> XSETINT and XSETCHAR, but it's not obvious to me how offhand.
Hrvoje> The "obvious" way should work. The original is:
OK. I get lost in the labyrinth of lisp-union.h, and don't trust
anything to be obvious.
Hrvoje> This has the added bonus of evaluating both var and value
Hrvoje> only once, and in proper order.
But I thought in general C doesn't guarantee order of evaluation for
operands, with a few exceptions like && (and in particular not for =
or function arguments)? So that seems unnecessary, as long as you
don't put side effects into the arguments, which is bad practice
anyway. (The current macros only evaluate each argument once.)
--
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
_________________ _________________ _________________ _________________
What are those straight lines for? "XEmacs rules."