Re: preprosessor help

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: viksa verma <vverma(at)installs(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: preprosessor help
Date: 2002-08-11 15:30:00
Message-ID: 20020811153000.GA31078@feivel.fam-meskes.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 24, 2002 at 04:32:09PM -0400, viksa verma wrote:
> Hi,
> I need to define this statement
> 'EXEC SQL DEFINE MAX 10;' in one file(include/const.h) and need to include
> it in another(./test.pcg) which has the following code.
> EXEC SQL BEGIN DECLARE SECTION;
> char t[MAX];
> EXEC SQL END DECLARE SECTION;
> How and where in the code do I include this file.

Just add

EXEC SQL INCLUDE const;

before the declare section.

Michael
--
Michael Meskes
Michael(at)Fam-Meskes(dot)De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Cornelia Boenigk 2002-08-11 15:57:37 Re: lo_import
Previous Message Bruce Momjian 2002-08-11 05:11:17 Re: little psql additions