C preprocessor + WinHugs

Neil Mitchell ndmitchell at gmail.com
Sun Oct 30 15:30:10 EST 2005


> Hugs uses cpphs for preprocessing the libraries, so there should already
> be a copy in the distribution.
There is a copy of the source code, but not a compiled binary.

> > I've hacked together a basic implementation, the only
> > thing is that its a lot slower, mainly because its being run on every
> > single file which is completely unneeded.
>
> Are you using -F?  Actually the preprocessor is run twice on most files,
> due to the way Hugs handles imports.
>
Yes, I'm using -F, but with some additional tweaks because popen on
WinHugs without a console spawns an additional console window every
time it is run, which is most annoying, and plays havoc with the focus
of the window.

> None are terribly attractive (and they would only be for cpp).
>
I agree. Is there no other way to stop the preprocessor running on all
files, and restricting it to just those which are needed?


More information about the Cvs-hugs mailing list