[m-dev.] trivial diff: bytecode.m: eliminate LLDS dependency

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Apr 17 20:51:31 AEST 2000


Estimated hours taken: 0.25

compiler/bytecode.m:
	Eliminate a dependency on the LLDS: use c_util__output_quoted_string
	rather than llds_out__output_c_quoted_string (which just calls
	c_util__output_quoted_string anyway).

Workspace: /home/pgrad/fjh/ws/hg
Index: compiler/bytecode.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/bytecode.m,v
retrieving revision 1.39
diff -u -d -r1.39 bytecode.m
--- compiler/bytecode.m	1999/07/10 07:19:50	1.39
+++ compiler/bytecode.m	2000/04/17 10:50:43
@@ -129,7 +129,7 @@
 
 :- implementation.
 
-:- import_module bytecode_data, hlds_pred, prog_out, llds_out.
+:- import_module bytecode_data, hlds_pred, prog_out, c_util.
 :- import_module library, int, string, require.
 
 :- pred bytecode__version(int::out) is det.
@@ -1089,10 +1089,10 @@
 
 debug_cstring(Str) -->
 	io__write_char('"'),
-	output_c_quoted_string(Str),
+	c_util__output_quoted_string(Str),
+	io__write_char('"'),
 	% XXX: We need the trailing space in case something follows
 	% the string as a bytecode argument. This is not very elegant.
-	io__write_char('"'),
 	io__write_char(' ').
 
 :- pred debug_string(string, io__state, io__state).

-- 
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"
PGP: finger fjh at 128.250.37.3        |     -- 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