[m-rev.] trivial diff: add MR_ prefixes in samples/c_interface

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Feb 6 20:01:06 AEDT 2002


Estimated hours taken: 0.25
Branches: main

samples/c_interface/c_calls_mercury/c_main.c:
samples/c_interface/cplusplus_calls_mercury/cpp_main.cc:
samples/c_interface/simpler_c_calls_mercury/main.c:
samples/c_interface/simpler_cplusplus_calls_mercury/main.cc:
	Add missing `MR_' prefixes.

Workspace: /home/earth/fjh/ws-earth4/mercury
Index: samples/c_interface/c_calls_mercury/c_main.c
===================================================================
RCS file: /home/mercury1/repository/mercury/samples/c_interface/c_calls_mercury/c_main.c,v
retrieving revision 1.4
diff -u -d -r1.4 c_main.c
--- samples/c_interface/c_calls_mercury/c_main.c	8 Aug 2000 06:02:51 -0000	1.4
+++ samples/c_interface/c_calls_mercury/c_main.c	6 Feb 2002 08:56:25 -0000
@@ -80,7 +80,7 @@
 		printf("[]");
 	} else {
 		printf("[");
-		printf("%ld", (long) list_head(list));
+		printf("%ld", (long) MR_list_head(list));
 		list = MR_list_tail(list);
 		while (!MR_list_is_empty(list)) {
 			printf(", %ld", (long) MR_list_head(list));
Index: samples/c_interface/cplusplus_calls_mercury/cpp_main.cc
===================================================================
RCS file: /home/mercury1/repository/mercury/samples/c_interface/cplusplus_calls_mercury/cpp_main.cc,v
retrieving revision 1.3
diff -u -d -r1.3 cpp_main.cc
--- samples/c_interface/cplusplus_calls_mercury/cpp_main.cc	8 Aug 2000 06:02:52 -0000	1.3
+++ samples/c_interface/cplusplus_calls_mercury/cpp_main.cc	6 Feb 2002 08:56:29 -0000
@@ -80,7 +80,7 @@
 		printf("[]");
 	} else {
 		printf("[");
-		printf("%ld", (long) list_head(list));
+		printf("%ld", (long) MR_list_head(list));
 		list = MR_list_tail(list);
 		while (!MR_list_is_empty(list)) {
 			printf(", %ld", (long) MR_list_head(list));
Index: samples/c_interface/simpler_c_calls_mercury/main.c
===================================================================
RCS file: /home/mercury1/repository/mercury/samples/c_interface/simpler_c_calls_mercury/main.c,v
retrieving revision 1.1
diff -u -d -r1.1 main.c
--- samples/c_interface/simpler_c_calls_mercury/main.c	21 Dec 2001 06:37:40 -0000	1.1
+++ samples/c_interface/simpler_c_calls_mercury/main.c	6 Feb 2002 08:57:51 -0000
@@ -9,7 +9,7 @@
 
 int main(int argc, char **argv) {
 	char dummy;
-	Integer value;
+	MR_Integer value;
 	MercuryList list;
 	int exit_status;
 
@@ -96,7 +96,7 @@
 		printf("[]");
 	} else {
 		printf("[");
-		printf("%ld", (long) list_head(list));
+		printf("%ld", (long) MR_list_head(list));
 		list = MR_list_tail(list);
 		while (!MR_list_is_empty(list)) {
 			printf(", %ld", (long) MR_list_head(list));
Index: samples/c_interface/simpler_cplusplus_calls_mercury/main.cc
===================================================================
RCS file: /home/mercury1/repository/mercury/samples/c_interface/simpler_cplusplus_calls_mercury/main.cc,v
retrieving revision 1.1
diff -u -d -r1.1 main.cc
--- samples/c_interface/simpler_cplusplus_calls_mercury/main.cc	21 Dec 2001 06:37:46 -0000	1.1
+++ samples/c_interface/simpler_cplusplus_calls_mercury/main.cc	6 Feb 2002 08:58:02 -0000
@@ -98,7 +98,7 @@
 		printf("[]");
 	} else {
 		printf("[");
-		printf("%ld", (long) list_head(list));
+		printf("%ld", (long) MR_list_head(list));
 		list = MR_list_tail(list);
 		while (!list_is_empty(list)) {
 			printf(", %ld", (long) MR_list_head(list));
-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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