On Wed, 6 Jul 2005, Derek Martin wrote:
Not to take away from what you said, but wouldn't you also say that this kind of fix for preprocessor weirdness warrants a comment? Something like: /* weird parens fix preprocessor wierdness - don't remove */ I think that would make it far less likely someone down the road would accidentally "fix" the fix... I know lots of programmers hate comments, but this seems like a good place for one to me. ;-)
I suppose. But I'd have wrapped the whole thing up in a macro so it's done only once (and put a comment on the macro). iirc, the consensusearlier was to leave 'open' alone and repair it where it became a nuisance.
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net