trivial diff: avoid warnings in tests/benchmarks

Zoltan Somogyi zs at cs.mu.OZ.AU
Tue Sep 15 17:17:22 AEST 1998


tests/benchmarks/*.m:
	Move the import of print_list.m from the interface to the
	implementation, where it belongs, to avoid warnings.

Zoltan.

cvs diff: Diffing .
Index: cqueens.m
===================================================================
RCS file: /home/mercury1/repository/tests/benchmarks/cqueens.m,v
retrieving revision 1.3
diff -u -u -r1.3 cqueens.m
--- cqueens.m	1996/01/15 16:34:36	1.3
+++ cqueens.m	1998/09/15 07:10:20
@@ -4,7 +4,7 @@
 
 :- interface.
 
-:- import_module list, int, io, printlist.
+:- import_module list, int, io.
 
 :- pred main(io__state, io__state).
 :- mode main(di, uo) is cc_multi.
@@ -13,6 +13,8 @@
 :- mode main1(out) is nondet.
 
 :- implementation.
+
+:- import_module printlist.
 
 main1(Out) :-	
 	data(Data),
Index: crypt.m
===================================================================
RCS file: /home/mercury1/repository/tests/benchmarks/crypt.m,v
retrieving revision 1.3
diff -u -u -r1.3 crypt.m
--- crypt.m	1996/01/15 16:34:38	1.3
+++ crypt.m	1998/08/19 07:06:38
@@ -19,7 +19,7 @@
 
 :- interface.
 
-:- import_module list, int, io, printlist.
+:- import_module list, int, io.
 
 :- pred main(io__state, io__state).
 :- mode main(di, uo) is cc_multi.
@@ -28,7 +28,7 @@
 :- mode main1(out) is nondet.
 
 :- implementation.
-:- import_module require.
+:- import_module require, printlist.
 
 main1(Out) :-	
 	crypt(Out).
Index: nrev.m
===================================================================
RCS file: /home/mercury1/repository/tests/benchmarks/nrev.m,v
retrieving revision 1.1
diff -u -u -r1.1 nrev.m
--- nrev.m	1995/04/22 16:55:57	1.1
+++ nrev.m	1998/09/15 07:11:28
@@ -8,7 +8,7 @@
 
 :- interface.
 
-:- import_module list, int, io, printlist.
+:- import_module list, int, io.
 
 :- pred main(io__state, io__state).
 :- mode main(di, uo) is det.
@@ -20,6 +20,8 @@
 :- mode main3(out, di, uo) is det.
 
 :- implementation.
+
+:- import_module print_list.
 
 main --> main3(_).
 
Index: primes.m
===================================================================
RCS file: /home/mercury1/repository/tests/benchmarks/primes.m,v
retrieving revision 1.1
diff -u -u -r1.1 primes.m
--- primes.m	1995/04/22 16:56:01	1.1
+++ primes.m	1998/08/19 07:12:57
@@ -2,7 +2,7 @@
 
 :- interface.
 
-:- import_module list, int, io, printlist.
+:- import_module list, int, io.
 
 :- pred main1(list(int)).
 :- mode main1(out) is det.
@@ -14,6 +14,8 @@
 :- mode main3(out, di, uo) is det.
 
 :- implementation.
+
+:- import_module printlist.
 
 main --> main3(_).
 
Index: qsort.m
===================================================================
RCS file: /home/mercury1/repository/tests/benchmarks/qsort.m,v
retrieving revision 1.1
diff -u -u -r1.1 qsort.m
--- qsort.m	1995/04/22 16:56:04	1.1
+++ qsort.m	1998/09/15 07:11:59
@@ -8,7 +8,7 @@
 
 :- interface.
 
-:- import_module list, int, printlist.
+:- import_module list, int.
 
 :- pred main1(list(int)).
 :- mode main1(out) is det.
@@ -20,6 +20,8 @@
 :- mode main3(out, di, uo) is det.
 
 :- implementation.
+
+:- import_module print_list.
 
 main --> main3(_).
 



More information about the developers mailing list