[m-dev.] For review: new extras package - curses binding
Robert Ernst Johann JESCHOFNIK
rejj at cat.cs.mu.OZ.AU
Fri Jan 14 17:13:42 AEDT 2000
On Fri, 14 Jan 2000, David Overton wrote:
> On Fri, 14 Jan, 2000 at 03:40:54PM EST, Robert Ernst Johann JESCHOFNIK wrote:
> > +
> > + % Initilise curses. This is used by curse.m, and should not be called by the
> > + % programmer.
>
> What is curse.m? I don't see that mentioned anywhere else.
Oops, I renamed that to `user.m' after writing that comment - I'll go fix
that now..
>
> > +
> > +:- pragma c_code(init(IO0::di, IO::uo), "
> > +{
> > + WINDOW *w;
> > + w = initscr();
> > + noecho();
> > + cbreak();
> > + keypad(w, TRUE);
> > + IO = IO0;
> > +}
> > +").
>
> You should add `[will_not_call_mercury]' to most of your `pragma c_code's.
Sure.
rob
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list