[m-rev.] diff: fix stdlib compilation in erlang grade

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Jan 3 04:23:24 AEDT 2011


Branches: main, 11.01 (if needed)

library/type_desc.m:
 	Undo the removal of the import for the erlang_rtti_implementation
 	module.
 	(The above module is flagged as unused by --warn-unused-imports in C
 	grades, but it shouldn't be.  This is a known problem,
 	--warn-unused-imports erroneously ignores Mercury clauses if there is a
 	matching foreign_proc for a predicate.)

Julien.

Index: library/type_desc.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/library/type_desc.m,v
retrieving revision 1.70
diff -u -r1.70 type_desc.m
--- library/type_desc.m	30 Dec 2010 11:18:04 -0000	1.70
+++ library/type_desc.m	2 Jan 2011 17:16:38 -0000
@@ -236,6 +236,8 @@
  :- import_module require.
  :- import_module string.

+:- use_module erlang_rtti_implementation.
+
  :- pragma foreign_decl("C", "
  #include ""mercury_heap.h"" /* for MR_incr_hp_msg() etc. */
  #include ""mercury_misc.h"" /* for MR_fatal_error() */


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