Thread: ECPG & Mac OS X

ECPG & Mac OS X

From
"Richard Connamacher"
Date:
I was looking through the docs, ECPG looks like a great tool for developing client
applications.

Anyone know if it's possible to set it up for use with Objective C in XCode on Mac OS X?
XCode allows you to set your own custom build tool, which I could replace with a shell script
that calls ecpg, saves a converted file, which it then passes that on to gcc. What I don't know
if if this'll screw up any of XCode's IDE features - such as, will line numbers of errors
reported by gcc match up with line numbers in the source file, which XCode uses to hilite
lines with errors?

Also, anyone know if it can parse Objective C files? They're basically identical to c language
files, with two added constructs: method calls, which are surrounded by brackets:

     String *helloText = [String stringWithCString:"Hello"];

and objective c directives, which all begin with a '@':

     String *moreHelloText = @"Hello again";

Will this conflict with ecpg's ability to parse a file?

Thanks,
Rich

Re: ECPG & Mac OS X

From
Michael Meskes
Date:
On Wed, Sep 15, 2004 at 01:28:14AM -0400, Richard Connamacher wrote:
> Also, anyone know if it can parse Objective C files? They're basically identical to c language
> files, with two added constructs: method calls, which are surrounded by brackets:
> ...

It depends where these constructs are used. If they are used inside an
SQL declare section it will probably cause trouble as ecpg does not know
them.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!