Get pragma's line code

2006-10-12 Thread Matteo Fioroni
Hi, I must get the informations (position in the file, file where #pragma was found, text that follow the #pragma in the line) of pragma's line code in C/C++ code. For do that I think that it's a good idea using the C/C++ gcc preprocessor. How can I patch the gcc so it can execute a my function

Get C/C++ Preprocessor Tokens

2006-10-05 Thread Matteo Fioroni
Hi, I need to get the C/C++ Preprocessor tokens for perform some operations on them. How can I write a program interface the Preprocessor and get the token that it analyze? Tnaks for help. Matteo. __ Do You Yahoo!? Poco spazio e tanto spam? Yahoo!

How can I interface myself with the C preprocessor?

2006-10-02 Thread Matteo Fioroni
Hi, I need to write a program that can interface itself with the C preprocessor. On the Internet I've found a lot of documentation, but all on the C compiler and other layer of Gcc (SAT ecc.). I have to use the preprocessor to retrieve the inforfations about "#pragmas" in the C code. I think that