C Precompiler/Preprocessor Source Code

Discussion in 'C++' started by Werner Nussbaumer, Mar 5, 2004.

  1. 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
     
    Werner Nussbaumer, Mar 5, 2004
    #1
    1. Advertising

  2. Werner Nussbaumer

    Rolf Magnus Guest

    Werner Nussbaumer wrote:

    > 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.
     
    Rolf Magnus, Mar 5, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Loane Sharp

    precompiler error

    Loane Sharp, Dec 26, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    479
    Loane Sharp
    Dec 26, 2004
  2. Suzanne Vogel
    Replies:
    2
    Views:
    2,619
    Suzanne Vogel
    Jun 26, 2003
  3. Martin Stich

    Precompiler question

    Martin Stich, Dec 2, 2003, in forum: C++
    Replies:
    7
    Views:
    409
    Chris Theis
    Dec 3, 2003
  4. Cronus
    Replies:
    1
    Views:
    676
    Paul Mensonides
    Jul 15, 2004
  5. JohnQ
    Replies:
    22
    Views:
    764
    JohnQ
    Jun 12, 2007
Loading...

Share This Page