Re: time wasters for 9grid

[email protected] Sat, 20 Dec 2003 21:19:33 +0000 (UTC)
Newsgroups gmane.os.plan9.nine-grid
Message-ID <[email protected]>
> /* If you get error messages about the following forms, and you think you're
>     using an ANSI C conforming compiler, then you're mistaken.  Possibly you're
>     mixing an ANSI compiler with a non-ANSI preprocessor, or vice versa.
>     Regardless, your system is broken; it's not a bug in this program.
>   */
> 
> #define rotate(name,dim0,dim1) \
>   old_u = hs->hs_ref_/**/name/**/dim0; \

i'm fairly sure that the /**/ token concatenation hack isn't blessed
in ANSI C compilers (i think ## is the thing to use now, only
i doubt it works with 8c)

might it not be better just to enumerate the code in its unrolled
state? or something avoiding cpp abuse, anyway? :-)