-Original Message-
From: Alastair Reid [mailto:[EMAIL PROTECTED]]
Sent: 02 July 2002 18:34
To: Ian Lynagh
Cc: [EMAIL PROTECTED]
Subject: Re: More C interfacing issues
Firstly, some ncurses calls return a *WINDOW and others take one as
an argument but you never actually
Curious: how does green card know that getxy is a macro and that x
and y are out parameters... do you have to tell it?
More or less. GreenCard definitions are of the form of the form:
%fun foo :: type
...
%call arbitrary C code to invoke foo
...
GreenCard fills in the obvious
Alastair Reid wrote:
[...] 3 wrapper functions more or less like this:
static int x;
static int y;
void wrap_getyx(WINDOW *win) { getyx(win,x,y); }
int getx(void) { return x; }
int gety(void) { return y; }
[...]
Uh, oh! Don't even try this if you ever want to be
On Tue, Jul 02, 2002 at 06:34:02PM +0100, Alastair Reid wrote:
Firstly, some ncurses calls return a *WINDOW and others take one as
an argument but you never actually look at the contents of one
yourself. I have defined data Window = Window and am using Ptr
Window for the types of these.