[m-rev.] for review: document how to mainpulate bool values in C

Ralph Becket rafe at cs.mu.OZ.AU
Tue Dec 7 11:38:43 AEDT 2004


Julien Fischer, Monday,  6 December 2004:
> 
> Estimated hours taken: 0.5
> Branches: main
> 
> doc/reference_manual.texi:
> 	Document how to pass values of type bool.bool to
> 	and from C code.
> 
> Julien.
> 
> Workspace: /home/earth/juliensf/ws49
> Index: doc/reference_manual.texi
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/doc/reference_manual.texi,v
> retrieving revision 1.298
> diff -u -r1.298 reference_manual.texi
> --- doc/reference_manual.texi	29 Sep 2004 16:52:16 -0000	1.298
> +++ doc/reference_manual.texi	6 Dec 2004 06:55:51 -0000
> @@ -7441,6 +7441,10 @@
>  @code{string} are passed to and from C as C variables whose type is
>  given by the corresponding typedef.
> 
> +For the Mercury standard library type @samp{bool.bool}, there is a
> +corresponding C type, @code{MR_bool}.  C code can refer to the boolean
> +values @samp{yes} and @samp{no}, as @code{MR_YES} and @code{MR_NO} respectively.
> +

Can I suggest s/values/data constructors/ to make it completely obvious
what that these C macros denote?

Also, that last line is more than 78 characters long.

Otherwise that's fine.

-- Ralph
--------------------------------------------------------------------------
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