preprocessing

Issues with building PROC application using Oracle 10g 64 bit

Hi All, I am trying to build my PRO* C application in 32 bit mode using Oracle 10g 64 bit on Solaris SPARC platform. Can someone tell me what settings has to be made inorder to successfully compiler and create an executable? Currently when i switch my LD_LIBRARY_PATH=$ORACLE_HOME/lib32, proc fails with the following error ld.so.1: pr...

How to "interleave" C/C++ souce with my string (only inside functions at appropriate places)?

For example, there is the source: void func1() { func3(); if(qqq) { func2(); } func4( ); } It should be transformed to: void func1() { MYMACRO func3(); MYMACRO if(qqq) { MYMACRO func2(); MYMACRO } MYMACRO func4( ); MYMACRO } I.e. to insert "MYMACRO\n" at the end of each line...