On 23 Jun 2001 02:08:00 +0200, Lorenz Minder wrote: > > Hence, the fix is to simply remove the ##. This certainly can't break > anything since, as you pointed out, even if some preprocessors (wrongly) > insert a white space there, this won't cause any problems. > > Thus, the following patch, which solves these problems, can be safely > applied. > > if (id == -1) { \ > for (id = 0; id < globals.num_managers; id++) { \ > - globals.managers[id].##field = value; \ > + globals.managers[id].field = value; \ > } \ > } \ > else if (id < globals.num_managers) { \ > - globals.managers[id].##field = value; \ > + globals.managers[id].field = value; \ > } \
I am not a preprocessor profi, but the fact that the original ## existed suggests that not all preprocessors recognize "field" as parameter here. I would replace ## with a space to be sure. Regards, Mikhael. -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]