Re: time wasters for 9grid

mirtchov-o/MP3MtDmzouExZ/[email protected] Tue, 4 Nov 2003 08:54:27 -0700
Newsgroups gmane.os.plan9.nine-grid
Message-ID <[email protected]>
 
> 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? :-)

don't look at me like that :) the code comes from XScreensaver.  All
I've done is add #defines to make it compile under Plan 9, and changed
the X* function calls to draw() ones.  If anything, I've removed large
chunks of irrelevant code, but I didn't strive to understand the inner
workings of the hack.

my contribution is at the beginning (under "plan9 defines") and at the
end -- main() and eresized().  those are clean from any gcc buggery :)

andrey

ps: oh, and the glenda drawing code is mine too.