ECPG & Mac OS X

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard Connamacher

    ECPG & Mac OS X

    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 stringWithCStri ng:"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

    ---------------------------(end of broadcast)---------------------------
    TIP 7: don't forget to increase your free space map settings

  • Michael Meskes

    #2
    Re: ECPG & Mac OS X

    On Wed, Sep 15, 2004 at 01:28:14AM -0400, Richard Connamacher wrote:[color=blue]
    > 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:
    > ...[/color]

    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.o rg
    Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

    ---------------------------(end of broadcast)---------------------------
    TIP 7: don't forget to increase your free space map settings

    Comment

    Working...