[m-rev.] for review: update C data passing conventions for tuples

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Aug 21 16:45:05 AEST 2007


Estimated hours taken: 0.1
Branches: main

Update the C data passing conventions in the reference manual since
the signautres of C functions generated by `foreign_export' pragmas
have changed, if they involve tuple types.

doc/reference_manual.texi:
 	Describe `MR_Tuple' in the the C data passing conventions.

Julien.

Index: reference_manual.texi
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/doc/reference_manual.texi,v
retrieving revision 1.406
diff -u -r1.406 reference_manual.texi
--- reference_manual.texi	20 Aug 2007 03:36:17 -0000	1.406
+++ reference_manual.texi	21 Aug 2007 06:42:28 -0000
@@ -6621,6 +6621,11 @@
  declaration (@pxref{Using foreign types from Mercury}) will be passed as
  the corresponding C type.

+Mercury tuple types are passed as @samp{MR_Tuple}, which in the current
+implementation is a typedef for a pointer of type @samp{void *} if
+ at samp{--high-level-code} is enabled, and a typedef for @samp{MR_Word}
+otherwise.
+
  Mercury variables of any other type
  are passed as a @samp{MR_Word}, which in the current implementation
  is a typedef for an unsigned type whose size is the same size as a pointer.

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list