[m-rev.] for review: add is_list/4 and list_base/3 to opengl binding

Julien Fischer juliensf at students.cs.mu.OZ.AU
Wed Jan 14 17:45:24 AEDT 2004


On Wed, 14 Jan 2004, Fergus Henderson wrote:

> On 14-Jan-2004, Julien Fischer <juliensf at students.cs.mu.OZ.AU> wrote:
> >
> > extras/graphics/mercury_opengl/mogl.m:
> > 	Add bindings for glIsList() and glListBase().
> >...
> > +:- pragma foreign_proc("C",
> > +	is_list(L::in, R::out, IO0::di, IO::uo),
> > +	[may_call_mercury, promise_pure],
> > +"
> > +	if(glIsList((GLuint) L))
> > +		R = ML_bool_return_yes();
> > +	else
> > +		R = ML_bool_return_no();
>
> s/if(/if (/
>
> Add curly braces (see our C coding guidelines).
>
Done.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list