| View previous topic :: View next topic |
| Author |
Message |
Werner Nussbaumer Guest
|
Posted: Fri Mar 05, 2004 1:03 pm Post subject: C Precompiler/Preprocessor Source Code |
|
|
Hi all
I'm searching for a C precompiler (preprocessor) source code. It
should read C code and output the precompiled C code. I found some
examples but none of them was able to handle boolean construct line
"#if (mode == 2) && (test == 1)" or defines like "#define test 5".
Any help is appresciated
Regards
Werner Nussbaumer
|
|
| Back to top |
|
 |
Rolf Magnus Guest
|
Posted: Fri Mar 05, 2004 1:11 pm Post subject: Re: C Precompiler/Preprocessor Source Code |
|
|
Werner Nussbaumer wrote:
| Quote: | Hi all
I'm searching for a C precompiler (preprocessor) source code. It
should read C code and output the precompiled C code. I found some
examples but none of them was able to handle boolean construct line
"#if (mode == 2) && (test == 1)" or defines like "#define test 5".
|
You might want to have a look at
http://gcc.gnu.org/projects/cpplib.html. It's the preprocessor library
of gcc and available as source code.
|
|
| Back to top |
|
 |
|