Re: Pro*C & C-precompiler coexistence problem
From: Almut Herzog <al-her_at_sectra.se>
Date: 1996/03/29
Message-ID: <315B947D.79BC_at_sectra.se>#1/1
Date: 1996/03/29
Message-ID: <315B947D.79BC_at_sectra.se>#1/1
Suu Quan wrote:
>
> I would like to do this in my Pro*C
> #define LENGTH 23
> ...
> columnName varchar(LENGTH), ...
>
> instead of the infamous
> columnName varchar(23),
>
In Pro*C/C++ this is solved. From the manual:
" Release 2.1 of the Pro*C/C++ Precompiler incorporates a C parser and
preprocessor. Pro*C supports most C preprocessor directives. Some of the
things that you can do using the Pro*C preprocessor are
+ define constants and macros using the #define directive, and use the
defined entities to parameterize Pro*C datatype declarations, such as
VARCHAR
..."
-- Almut Herzog SECTRA Secure Transmission AB e-mail: al-her_at_sectra.se Teknikringen 2 voice: ++46 13 235221 583 30 Linkoping fax: ++46 13 212185Received on Fri Mar 29 1996 - 00:00:00 CET