Is there any way to get the C precompiler to interpret JUST the #defines in a piece of source code and output a file? I don't want the various line # references and include file jazz. The man pages lead me to believe that the precompiler won't do this, and experiments have failed. Is there any way to do this? Some other utility that will do this? Am I forced to write code to handle this?
( I'm writing some code that will be going into Oracles proC precompiler, but it does NOT interpret my #defines prior to doing its thing. )
e.g.
I have a
#define BORK bork,bork,bork
main()
{
char bork = 'C';
printf("bork %c;%c;%c",BORK):
return(1);
}
I want the output to just be
main()
{
char bork = 'C';
printf("bork %c;%c;%c",bork,bork,bork):
return(1);
}
Thanks in advance
MT