[m-rev.] diff: define MR_HIGHLEVEL_DATA at beginning of C# file
Peter Ross
pro at missioncriticalit.com
Thu Nov 13 20:47:06 AEDT 2003
Hi,
===================================================================
Estimated hours taken: 0.1
Branches: main
compiler/mlds_to_managed.m:
Define MR_HIGHLEVEL_DATA, when necessary, at the beginning of
the C# file as we do for MC++.
Index: compiler/mlds_to_managed.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mlds_to_managed.m,v
retrieving revision 1.8
diff -u -r1.8 mlds_to_managed.m
--- compiler/mlds_to_managed.m 15 Mar 2003 03:09:02 -0000 1.8
+++ compiler/mlds_to_managed.m 13 Nov 2003 09:38:30 -0000
@@ -157,6 +157,13 @@
io::di, io::uo) is det.
output_language_specific_header_code(csharp, _ModuleName, _Imports) -->
+ get_il_data_rep(DataRep),
+ ( { DataRep = il_data_rep(yes, _) } ->
+ io__write_string("#define MR_HIGHLEVEL_DATA\n")
+ ;
+ []
+ ),
+
io__write_strings([
% XXX We may be able to drop the mercury namespace soon,
% as there doesn't appear to be any llds generated code
--
Peter Ross
Software Engineer (Work) +32 2 757 10 15
Mission Critical (Mobile) +32 485 482 559
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list