Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: __FILE__ variable in C

Re: __FILE__ variable in C

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Wed, 09 Feb 2000 13:51:57 -0500
Message-ID: <1od3asgt77c9u972mlbr07n7qu6trlq9fi@4ax.com>


A copy of this was sent to Stephane L <domosoft_at_my-deja.com> (if that email address didn't require changing) On Wed, 09 Feb 2000 16:21:06 GMT, you wrote:

>
>
>Is someone know if there is something equivalent to __LINE__ C
>variables in the ORACLE precompiler ? Because when I use this variable
>the system show the line in the .c file (of course) But what I need
>it's the line in the .pc file. And I don't want to keep all my .c file
>in the server.
>

Use:

lines=yes

in the pro*c precompile command line. That way, pro*c will inject

#line <.pc linenumber> "<filename>.pc"

directives into the generated C code to 'fix' the line numbers

>Oracle version 8i.
>Computer AIX 4.3
>
>Thanks
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.

--
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'... Current article is "Part I of V, Autonomous Transactions" updated June 21'st  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Wed Feb 09 2000 - 12:51:57 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US