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

Julien Fischer juliensf at cs.mu.OZ.AU
Mon Dec 6 18:03:45 AEDT 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.
+
 Mercury variables of a type for which there is a C @samp{pragma foreign_type}
 declaration (@pxref{Using foreign types from Mercury}) will be passed as
 the corresponding C type.

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