ecpg: use of #defines

From: James Thompson <jamest(at)math(dot)ksu(dot)edu>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: ecpg: use of #defines
Date: 1999-02-20 16:22:09
Message-ID: Pine.LNX.4.10.9902201017420.897-100000@hobbes.math.ksu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hello,

In my exec sql begin declare section i have items like

char uid_result[31];

which I tried to replace last night with
char uid_result[UID_LEN];

and I placed #define UID_LEN 31 in a .h file

I changed my #include with a exec sql include to include the .h file

The parser didn't like the char uid_result[UID_LEN] line

I'm pretty sure I understand the mechanics of this, cpp hasn't run and
UID_LEN is an invalid value.

Is there a workaround? Other than hard coding the 31

Thanks

->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson 138 Cardwell Hall Manhattan, Ks 66506 785-532-0561
Kansas State University Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Michael Meskes 1999-02-20 16:52:58 Re: [INTERFACES] ecpg: use of #defines
Previous Message Christof Klaiber 1999-02-20 14:39:09 Newbie: Access to PostgreSQL from Windows 3.11