ecpg: use of #defines
От | James Thompson |
---|---|
Тема | ecpg: use of #defines |
Дата | |
Msg-id | Pine.LNX.4.10.9902201017420.897-100000@hobbes.math.ksu.edu обсуждение исходный текст |
Ответ на | Newbie: Access to PostgreSQL from Windows 3.11 (Christof Klaiber <ut2h@rz.uni-karlsruhe.de>) |
Ответы |
Re: [INTERFACES] ecpg: use of #defines
|
Список | 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 ->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
В списке pgsql-interfaces по дате отправления: