X-Original-To: pgsql-interfaces@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6B9E9474E5C for ; Fri, 21 Feb 2003 02:14:43 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 34979-02 for ; Fri, 21 Feb 2003 02:14:32 -0500 (EST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by postgresql.org (Postfix) with ESMTP id BD86F474E61 for ; Fri, 21 Feb 2003 02:14:32 -0500 (EST) Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 18m7OC-0007o3-00; Fri, 21 Feb 2003 08:14:32 +0100 Received: from [80.142.147.236] (helo=fam-meskes.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 18m7OC-000864-00; Fri, 21 Feb 2003 08:14:32 +0100 Received: from feivel.fam-meskes.de (feivel.fam-meskes.de [172.26.14.7]) by fam-meskes.de (Postfix) with ESMTP id 8EF7710EF69; Fri, 21 Feb 2003 08:14:29 +0100 (CET) Received: by feivel.fam-meskes.de (Postfix, from userid 1000) id 3F00A85C05; Fri, 21 Feb 2003 08:14:29 +0100 (CET) Date: Fri, 21 Feb 2003 08:14:29 +0100 From: Michael Meskes To: Mike Alford Cc: pgsql-interfaces@postgresql.org Subject: Re: ECPG include problem Message-ID: <20030221071429.GG7378@feivel.fam-meskes.de> Mail-Followup-To: Mike Alford , pgsql-interfaces@postgresql.org References: <200302192220.RAA22200@smtp.syscon-intl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302192220.RAA22200@smtp.syscon-intl.com> User-Agent: Mutt/1.5.3i X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/93 X-Sequence-Number: 3714 On Wed, Feb 19, 2003 at 05:24:45PM +0000, Mike Alford wrote: > everything is fine. Apparently the preprocessing that Ingres did is not > happening in Postgres. There are over 2000 lines in db2.h, mostly with > constants defined in db1.h. Is there something simple I am overlooking, or > an option to epcg that could allow db2.h to be preprocessed before it is > included? Ingres preprocessor does parse C and CPP code as well, ecpg does not. It only parses stuff after an exec sql keyword is found. The only way for you get this going is to use "exec sql define" instead of "#define" as the former is parsed an honored by ecpg. Of course you could as well try running cpp over the files before but that won't always work. Michael -- Michael Meskes Email: Michael@Fam-Meskes.De ICQ: 179140304 Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!