Hi Guys .
I want to remove all #ifdef from my code . I mean I want to remove all conditional code by running some script But My requirement does not allow me to expand the #defines and Header file .
Once I did with only preprocessing than I got the huge code (Having the Header Files and replaced #defines)
For examples if Following is the code before running the script
#include "stdio.h"
#define XX x+10;
main()
{
#ifdef XX
int x;
XX;
#else
int x,y;
XX;
y=x+10;
#endif
}
if I run only preprocessor on the code the the following is the output
/* A large that is present is STDIO.H*/
#define XX x+10;
main()
{
int x,y;
x+10;
y=x+10;
}
Rather than this I want the following output
#include "stdio.h"
#define XX x+10;
main()
{
int x,y;
XX;
y=x+10;
}
Could you please tell me , Is there some script available to do or not and how to do this .
I hope preprossor will not solve the purpose :-(
Thanks for your Help
Regards
Udit