[m-dev.] trivial diff: fix gcc warning in MLDS grades

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Oct 21 22:21:31 AEDT 2000


Estimated hours taken: 0.5

runtime/mercury_wrapper.h:
	Fix a type error in MLDS grades: the parameters to
	MR_io_print_to_cur_stream and MR_io_print_to_stream that
	represent polymorphically typed arguments in Mercury should
	have type `MR_Box' rather than `MR_Word'.

Workspace: /home/pgrad/fjh/ws/hg
Index: runtime/mercury_wrapper.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_wrapper.h,v
retrieving revision 1.35
diff -u -d -r1.35 mercury_wrapper.h
--- runtime/mercury_wrapper.h	2000/10/11 03:00:51	1.35
+++ runtime/mercury_wrapper.h	2000/10/21 11:13:59
@@ -76,8 +76,8 @@
 extern	void		(*MR_io_stderr_stream)(MR_Word *);
 extern	void		(*MR_io_stdout_stream)(MR_Word *);
 extern	void		(*MR_io_stdin_stream)(MR_Word *);
-extern	void		(*MR_io_print_to_cur_stream)(MR_Word, MR_Word);
-extern	void		(*MR_io_print_to_stream)(MR_Word, MR_Word, MR_Word);
+extern	void		(*MR_io_print_to_cur_stream)(MR_Word, MR_Box);
+extern	void		(*MR_io_print_to_stream)(MR_Word, MR_Word, MR_Box);
 
 extern	void		(*address_of_mercury_init_io)(void);
 extern	void		(*address_of_init_modules)(void);

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
                                    |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list