J
Jim Ford
I have a single C file with the following code:
int f2()
{
/* Blah-blah */
}
int f1()
{
/* Blah-blah */
f2() ;
/* Reblah-blah */
}
Is it possible, by means of the C processor, to arrange things in such a
way that, after preprocessing, the int f1() and int f2() lines will be
replaced by int F1(), int F2(), respectively, whereas the invocation to
f2() from f1() (F1(), after the replacement) will remain unchanged? That
is, after preprocessing we would have
int F2()
{
/* Preprocessed blah-blah */
}
int F1()
{
/* Preprocessed blah-blah */
f2() ;
/* Preprocessed reblah-blah */
}
All the necessary preprocessor directives would have to be in a file to
be included at the top of this one here.
int f2()
{
/* Blah-blah */
}
int f1()
{
/* Blah-blah */
f2() ;
/* Reblah-blah */
}
Is it possible, by means of the C processor, to arrange things in such a
way that, after preprocessing, the int f1() and int f2() lines will be
replaced by int F1(), int F2(), respectively, whereas the invocation to
f2() from f1() (F1(), after the replacement) will remain unchanged? That
is, after preprocessing we would have
int F2()
{
/* Preprocessed blah-blah */
}
int F1()
{
/* Preprocessed blah-blah */
f2() ;
/* Preprocessed reblah-blah */
}
All the necessary preprocessor directives would have to be in a file to
be included at the top of this one here.