[m-rev.] trivial diff: change .mh header guards
Peter Wang
wangp at students.cs.mu.OZ.AU
Thu Dec 1 19:21:11 AEDT 2005
Estimated hours taken: 0.1
compiler/export.m:
Change the header guards for .mh files from FOO_H to FOO_MH.
This avoids a conflict where foo.m needs to #include <foo.h>
but foo.h already uses a header guard called FOO_H.
Index: compiler/export.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/export.m,v
retrieving revision 1.94
diff -u -r1.94 export.m
--- compiler/export.m 28 Nov 2005 02:30:18 -0000 1.94
+++ compiler/export.m 1 Dec 2005 08:01:48 -0000
@@ -629,7 +629,7 @@
"*/\n"], !IO),
MangledModuleName = sym_name_mangle(ModuleName),
string__to_upper(MangledModuleName, UppercaseModuleName),
- string__append(UppercaseModuleName, "_H", GuardMacroName),
+ string__append(UppercaseModuleName, "_MH", GuardMacroName),
io__write_strings([
"#ifndef ", GuardMacroName, "\n",
"#define ", GuardMacroName, "\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