Re: C code in Pro*C code

 
kunal_ascs
New Member

C code in Proc Code

Can anyone tell me. is there any way that we can make our c code such that proc compiler doesn't compile it but after compilation their respective C code compile fine with this statement include in the code automatically... i.e if we want that any particular line can not be processed by pro *c comipler but compile fine by C compiler. is there any flag that we can prefix or postfix available or can we made some special type of block of code for this....
2 REPLIES 2
OldSchool
Honored Contributor

Re: C code in Proc Code

"....e if we want that any particular line can not be processed by pro *c comipler but compile fine by C compiler...."

ProC isn't a compiler. It's a preprocessor. It function is to convert embedded SQL statements in to conventional C to call Oracle's library.

Perhaps an actual example of the code would be helpful (if you have such) as it should only act on the embedded SQL and not care about the rest.
Dennis Handly
Acclaimed Contributor

Re: C code in Pro*C code

(Your subject is confusing should use the actual name of Pro*C and not jam it together to look like "proc".)

>if we want that any particular line can not be processed by pro*c compiler but compile fine by C compiler.

Perhaps you should be asking Oracle this question?