Re: Define on VARCHAR
From: Andrew Finkenstadt <andy_at_vistachrome.com>
Date: Sat, 17 Jul 1993 00:01:55 GMT
Message-ID: <CAA838.KsC_at_vistachrome.com>
Date: Sat, 17 Jul 1993 00:01:55 GMT
Message-ID: <CAA838.KsC_at_vistachrome.com>
ucrudy_at_socrates.umd.edu (Rudy Zulkarnain) writes:
>I was wondering is there any other ways to substitute the length of
>a VARCHAR variable with a MACRO?
Yes.
>I am using ORACLE 6 and PROC*C.
>Example:
>VARCHAR document[40]
>is there any ways to say something like these?
>#define DOC_LEN 40
>VARCHAR document[DOC_LEN]
>Thanks in advance,
>Rudy
Check out 'm4', but make sure you don't have any index words in the Pro*C program.
The primary problem is that Pro*C is not a C language interpreter. The other problem is that it is not a C preprocessing function. And it expects things to be only in its format. (It's been a long day, hope that made sense.)
Andy
-- Andrew Finkenstadt | andy_at_{homes.com,vistachrome.com,genie.geis.com} Systems Analyst | Vista-Chrome, Homes & Land Publishing Corporation | 1600 Capital Circle SW, Tallahassee Florida 32310 +1 904-575-0189 | GEnie Postmaster, Unix & Internet RoundTables SysopReceived on Sat Jul 17 1993 - 02:01:55 CEST