Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 04-19-2005, 04:13 AM   #1 (permalink)
 
Newb Techie

Join Date: Apr 2005

Posts: 1

uditkr

Thumbs up Preprocessing

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
uditkr is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On