cons-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automatically preprocessing certain C files


From: Gary Oberbrunner
Subject: Automatically preprocessing certain C files
Date: Wed, 22 Aug 2001 13:38:07 -0400

Some of my C files should be run through a special pre-preprocessor and I'm
wondering if it's possible to do this automatically in cons.

Since cons is already scanning my .c files, it seems like the scanner could
be extended (by taking an optional code ref or something) that would let me
detect the need for my special preprocessor.  Then having done that, I'd
want to use a different rule for those files to create a temp.c file for
them and then use the regular C rule on the temp file -- but how could I do
that?  Overload the C builder function or something?  (It would be nice to
avoid a separate environment, that way any time anyone adds one of these
directives they don't have to futz with the Conscript.)

If this turns out to be hard, I'll just make users specify it directly in
the Conscript file, not a big deal.

. . . . . . . . . . . . . . . . . . . . . . . . .
Gary Oberbrunner                address@hidden
GenArts, Inc.                   Tel: 617-492-2888
8 Clinton Street                Fax: 617-492-2852
Cambridge, MA 02139 USA         http://web.genarts.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]