[m-dev.] diff: fix macros call with wrong arity (#129156)

Tyson Dowd trd at cs.mu.OZ.AU
Thu Jan 18 15:18:15 AEDT 2001


Hi,

This should fix the bug that fjh reported about these macros.

I will commit this on both branches.

===================================================================


Estimated hours taken: 0.5

runtime/mercury_mcpp.h:
	Fix some (unused) macros that have the wrong arity.

Index: runtime/mercury_mcpp.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_mcpp.h,v
retrieving revision 1.5
diff -u -r1.5 mercury_mcpp.h
--- runtime/mercury_mcpp.h	2001/01/14 03:45:11	1.5
+++ runtime/mercury_mcpp.h	2001/01/18 04:13:40
@@ -180,7 +180,7 @@
     MR_CLASS_INIT_END(m, MR_PASTE5(__, type_ctor_info_, n, _, a), MR_PASTE4(type_ctor_init_, n, _, a))
 
 #define MR_DEFINE_BUILTIN_TYPE_CTOR_INFO_PRED(m, n, a, cr, u, c)	\
-    MR_DEFINE_BUILTIN_TYPE_CTOR_INFO_FULL(m, m, n, a, cr, u, c)
+    MR_DEFINE_BUILTIN_TYPE_CTOR_INFO_FULL(m, n, a, cr, u, c)
 
 #define MR_DEFINE_BUILTIN_TYPE_CTOR_INFO(m, n, a, cr)		\
     MR_DEFINE_BUILTIN_TYPE_CTOR_INFO_FULL(m, n, a, cr,		\
@@ -188,7 +188,7 @@
 	MR_PASTE7(mercury::, m, ::do_compare__, n, _, a, _0))  
 
 #define MR_DEFINE_BUILTIN_TYPE_CTOR_INFO_UNUSED(n, a, cr)       \
-    MR_DEFINE_BUILTIN_TYPE_CTOR_INFO_FULL(builtin, , n, a, cr,  \
+    MR_DEFINE_BUILTIN_TYPE_CTOR_INFO_FULL(builtin, n, a, cr,  \
 	mercury__unused_0_0,					\
 	mercury__unused_0_0)
 


-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
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