[m-dev.] trivial diff: fix c_header_code bug in benchmarking.m

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Apr 11 21:33:15 AEST 2000


Estimated hours taken: 0.25

library/benchmarking.m:
	Fix a bug: the ML_benchmarking_dummy_word variable
	was being defined in pragma c_header_code.
	The fix is to just declare it in pragma c_header_code
	and define it in pragma c_code.

Workspace: /home/pgrad/fjh/ws/hg
Index: library/benchmarking.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/benchmarking.m,v
retrieving revision 1.32
diff -u -d -r1.32 benchmarking.m
--- library/benchmarking.m	2000/03/10 01:21:30	1.32
+++ library/benchmarking.m	2000/04/11 11:30:18
@@ -615,6 +615,9 @@
 */
 
 :- pragma c_header_code("
+	extern volatile Word ML_benchmarking_dummy_word;
+").
+:- pragma c_code("
 	volatile Word ML_benchmarking_dummy_word;
 ").
 
-- 
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