[m-dev.] diff: fix missing `import_module' declarations

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Feb 8 22:15:13 AEDT 2001


For both the main and release branches...

Estimated hours taken: 2

compiler/globals.m:
compiler/mode_errors.m:
compiler/mode_info.m:
compiler/transform_llds.m:
compiler/vn_order.m:
compiler/vn_verify.m:
samples/diff/globals.m:
	Add missing `import_module' statements in the interface section.
	(The current version of the compiler doesn't detect these errors.
	I have a fix for that bug, but I plan to commit it separately.)

Workspace: /home/hg/fjh/mercury
Index: compiler/globals.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/globals.m,v
retrieving revision 1.40
diff -u -d -r1.40 globals.m
--- compiler/globals.m	2001/01/29 01:54:08	1.40
+++ compiler/globals.m	2001/02/03 23:13:59
@@ -17,7 +17,7 @@
 
 :- interface.
 :- import_module options, trace_params, prog_data.
-:- import_module bool, getopt, list.
+:- import_module bool, getopt, list, io.
 
 :- type globals.
 
@@ -183,7 +183,7 @@
 :- implementation.
 
 :- import_module exprn_aux.
-:- import_module map, std_util, io, require.
+:- import_module map, std_util, require.
 
 	% XXX we should probably just convert to lower case and then
 	% test against known strings.
Index: compiler/mode_errors.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mode_errors.m,v
retrieving revision 1.68
diff -u -d -r1.68 mode_errors.m
--- compiler/mode_errors.m	2001/01/17 01:42:06	1.68
+++ compiler/mode_errors.m	2001/01/19 06:16:28
@@ -19,7 +19,8 @@
 
 :- import_module hlds_data, hlds_pred, hlds_module, hlds_goal.
 :- import_module prog_data, mode_info, (inst).
-:- import_module bool, set, assoc_list, list.
+
+:- import_module bool, set, assoc_list, list, io.
 
 %-----------------------------------------------------------------------------%
 
@@ -184,8 +185,9 @@
 
 :- import_module hlds_out.
 :- import_module mode_info, mode_util, prog_out, mercury_to_mercury.
-:- import_module options, globals, varset, term.
-:- import_module int, map, io, term_io.
+:- import_module options, globals.
+
+:- import_module int, map, term_io, varset, term.
 :- import_module std_util, require.
 
 	% just dispatch on the diffferent sorts of mode errors
Index: compiler/mode_info.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mode_info.m,v
retrieving revision 1.59
diff -u -d -r1.59 mode_info.m
--- compiler/mode_info.m	2001/01/17 01:42:07	1.59
+++ compiler/mode_info.m	2001/01/19 06:16:29
@@ -18,7 +18,7 @@
 
 :- import_module hlds_module, hlds_pred, hlds_goal, hlds_data, instmap.
 :- import_module prog_data, mode_errors, delay_info, (inst).
-:- import_module map, list, set, bool, assoc_list, std_util.
+:- import_module map, list, set, bool, assoc_list, std_util, io.
 
 :- interface.
 
Index: compiler/transform_llds.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/transform_llds.m,v
retrieving revision 1.7
diff -u -d -r1.7 transform_llds.m
--- compiler/transform_llds.m	2000/10/31 02:15:47	1.7
+++ compiler/transform_llds.m	2000/12/22 03:57:32
@@ -22,7 +22,7 @@
 
 :- interface.
 
-:- import_module llds.
+:- import_module llds, io.
 
 :- pred transform_llds(c_file, c_file, io__state, io__state).
 :- mode transform_llds(in, out, di, uo) is det.
Index: compiler/vn_order.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/vn_order.m,v
retrieving revision 1.52
diff -u -d -r1.52 vn_order.m
--- compiler/vn_order.m	2000/10/13 04:05:29	1.52
+++ compiler/vn_order.m	2000/12/22 03:56:09
@@ -15,7 +15,7 @@
 :- interface.
 
 :- import_module llds, vn_type, vn_table.
-:- import_module bool, list, std_util.
+:- import_module bool, list, std_util, io.
 
 :- type order_result	--->	success(vn_tables, list(vn_node))
 			;	failure(maybe(label)).
Index: compiler/vn_verify.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/vn_verify.m,v
retrieving revision 1.27
diff -u -d -r1.27 vn_verify.m
--- compiler/vn_verify.m	2000/10/13 04:05:32	1.27
+++ compiler/vn_verify.m	2000/12/22 03:56:43
@@ -14,7 +14,7 @@
 
 :- interface.
 
-:- import_module vn_type, vn_table, llds.
+:- import_module vn_type, vn_table, llds, io.
 :- import_module list, bool.
 
 :- pred vn_verify__ok(list(instruction), instr, bool, bool,
Index: samples/diff/globals.m
===================================================================
RCS file: /home/mercury1/repository/mercury/samples/diff/globals.m,v
retrieving revision 1.2
diff -u -d -r1.2 globals.m
--- samples/diff/globals.m	1998/09/21 06:46:32	1.2
+++ samples/diff/globals.m	2000/12/14 09:16:38
@@ -18,6 +18,7 @@
 :- interface.
 :- import_module options, diff_out.
 :- import_module getopt, bool, int, string, list.
+:- import_module io.
 
 :- type globals.
 

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- 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