[m-rev.] [dotnet-foreign] diff: fix submodules problem
Peter Ross
peter.ross at miscrit.be
Wed Apr 11 19:00:28 AEST 2001
Hi,
===================================================================
Estimated hours taken: 0.5
Branches: dotnet-foreign
compiler/mlds_to_ilasm.m:
Fix a problem where incorrect names where being output for
submodules.
Index: mlds_to_ilasm.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mlds_to_ilasm.m,v
retrieving revision 1.8
diff -u -r1.8 mlds_to_ilasm.m
--- mlds_to_ilasm.m 2001/02/20 07:52:19 1.8
+++ mlds_to_ilasm.m 2001/04/11 08:58:10
@@ -181,7 +181,8 @@
"#include ""mercury_mcpp.h""\n",
"#using ""mercury_mcpp.dll""\n",
"#using ""mercury_il.dll""\n",
- "#using """, ModuleNameStr, ".dll""\n",
+ "#using """, string__replace_all(ModuleNameStr, ":", "."),
+ ".dll""\n",
% XXX We have to use the mercury namespace, as
% llds_out still generates some of the code used in the
@@ -207,7 +208,9 @@
ForeignCode),
io__write_strings([
- "\n__gc public class ", ModuleNameStr, "__c_code\n",
+ "\n__gc public class ",
+ string__replace_all(ModuleNameStr, ":", "__"),
+ "__c_code\n",
"{\n",
"public:\n"]),
--------------------------------------------------------------------------
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