[m-rev.] for review: merge foreign_type pragma on to the main branch

Peter Ross peter.ross at miscrit.be
Thu Nov 1 00:31:46 AEDT 2001


On Wed, Oct 31, 2001 at 11:57:58PM +1100, Fergus Henderson wrote:
> On 22-Oct-2001, Peter Ross <peter.ross at miscrit.be> wrote:
> > @@ -588,6 +590,10 @@
> >  	;	mlds__native_float_type
> >  	;	mlds__native_char_type
> >  
> > +		% This is a type of the MLDS target language.  Currently
> > +		% this is only used by the il backend.
> > +	;	mlds__foreign_type(sym_name, string)
> 
> What is the meaning of the two fields here?
> 
> A comment would help.
> 

===================================================================


Estimated hours taken: 0.1
Branches: main

compiler/mlds.m:
    Add a comment describing the fields of mlds__foreign_type.

Index: mlds.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mlds.m,v
retrieving revision 1.73
diff -u -r1.73 mlds.m
--- mlds.m	25 Oct 2001 08:35:36 -0000	1.73
+++ mlds.m	31 Oct 2001 13:30:15 -0000
@@ -602,7 +602,10 @@
 
 		% This is a type of the MLDS target language.  Currently
 		% this is only used by the il backend.
-	;	mlds__foreign_type(sym_name, string)
+	;	mlds__foreign_type(
+			sym_name,	% structured name representing the type
+			string		% location of the type (ie assembly)
+		)
 
 		% MLDS types defined using mlds__class_defn
 	;	mlds__class_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