[m-rev.] diff: delete macros we don't generate anymore

Zoltan Somogyi zs at cs.mu.OZ.AU
Mon Mar 27 16:05:31 AEDT 2006


runtime/mercury_misc.h:
runtime/mercury_stack_layout.h:
	Remove the macros that we don't generate anymore. This completes the
	bootstrap of the diff that reorganized the handling of static cells
	to use arrays instead of individual variables.

cvs diff: Diffing .
cvs diff: Diffing analysis
cvs diff: Diffing bindist
cvs diff: Diffing boehm_gc
cvs diff: Diffing boehm_gc/Mac_files
cvs diff: Diffing boehm_gc/cord
cvs diff: Diffing boehm_gc/cord/private
cvs diff: Diffing boehm_gc/doc
cvs diff: Diffing boehm_gc/include
cvs diff: Diffing boehm_gc/include/private
cvs diff: Diffing boehm_gc/tests
cvs diff: Diffing browser
cvs diff: Diffing bytecode
cvs diff: Diffing compiler
cvs diff: Diffing compiler/notes
cvs diff: Diffing debian
cvs diff: Diffing debian/patches
cvs diff: Diffing deep_profiler
cvs diff: Diffing deep_profiler/notes
cvs diff: Diffing doc
cvs diff: Diffing extras
cvs diff: Diffing extras/cgi
cvs diff: Diffing extras/complex_numbers
cvs diff: Diffing extras/complex_numbers/samples
cvs diff: Diffing extras/complex_numbers/tests
cvs diff: Diffing extras/concurrency
cvs diff: Diffing extras/curs
cvs diff: Diffing extras/curs/samples
cvs diff: Diffing extras/curses
cvs diff: Diffing extras/curses/sample
cvs diff: Diffing extras/dynamic_linking
cvs diff: Diffing extras/error
cvs diff: Diffing extras/gator
cvs diff: Diffing extras/gator/generations
cvs diff: Diffing extras/gator/generations/1
cvs diff: Diffing extras/graphics
cvs diff: Diffing extras/graphics/easyx
cvs diff: Diffing extras/graphics/easyx/samples
cvs diff: Diffing extras/graphics/mercury_glut
cvs diff: Diffing extras/graphics/mercury_opengl
cvs diff: Diffing extras/graphics/mercury_tcltk
cvs diff: Diffing extras/graphics/samples
cvs diff: Diffing extras/graphics/samples/calc
cvs diff: Diffing extras/graphics/samples/gears
cvs diff: Diffing extras/graphics/samples/maze
cvs diff: Diffing extras/graphics/samples/pent
cvs diff: Diffing extras/lazy_evaluation
cvs diff: Diffing extras/lex
cvs diff: Diffing extras/lex/samples
cvs diff: Diffing extras/lex/tests
cvs diff: Diffing extras/logged_output
cvs diff: Diffing extras/moose
cvs diff: Diffing extras/moose/samples
cvs diff: Diffing extras/moose/tests
cvs diff: Diffing extras/morphine
cvs diff: Diffing extras/morphine/non-regression-tests
cvs diff: Diffing extras/morphine/scripts
cvs diff: Diffing extras/morphine/source
cvs diff: Diffing extras/odbc
cvs diff: Diffing extras/posix
cvs diff: Diffing extras/quickcheck
cvs diff: Diffing extras/quickcheck/tutes
cvs diff: Diffing extras/references
cvs diff: Diffing extras/references/samples
cvs diff: Diffing extras/references/tests
cvs diff: Diffing extras/solver_types
cvs diff: Diffing extras/solver_types/library
cvs diff: Diffing extras/stream
cvs diff: Diffing extras/trailed_update
cvs diff: Diffing extras/trailed_update/samples
cvs diff: Diffing extras/trailed_update/tests
cvs diff: Diffing extras/windows_installer_generator
cvs diff: Diffing extras/windows_installer_generator/sample
cvs diff: Diffing extras/windows_installer_generator/sample/images
cvs diff: Diffing extras/xml
cvs diff: Diffing extras/xml/samples
cvs diff: Diffing extras/xml_stylesheets
cvs diff: Diffing java
cvs diff: Diffing java/runtime
cvs diff: Diffing library
cvs diff: Diffing mdbcomp
cvs diff: Diffing profiler
cvs diff: Diffing robdd
cvs diff: Diffing runtime
Index: runtime/mercury_misc.h
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_misc.h,v
retrieving revision 1.26
diff -u -b -r1.26 mercury_misc.h
--- runtime/mercury_misc.h	21 Mar 2006 02:33:40 -0000	1.26
+++ runtime/mercury_misc.h	24 Mar 2006 16:53:34 -0000
@@ -54,92 +54,10 @@
 #define	MR_COMMON_NAME(cellnum)					\
 	MR_PASTE2(mercury_common_, cellnum)
 
-#define	MR_COMMON(cellnum)					\
-	((MR_Word *) &MR_COMMON_NAME(cellnum))
-
 #define	MR_XCOMMON(typenum, cellnum)				\
 	((MR_Word *) &MR_COMMON_NAME(typenum)[cellnum])
 
-#define	MR_TAG_COMMON(tag, cellnum)				\
-	(MR_mkword(MR_mktag(tag), MR_COMMON(cellnum)))
-
 #define	MR_TAG_XCOMMON(tag, typenum, cellnum)			\
 	(MR_mkword(MR_mktag(tag), MR_XCOMMON(typenum, cellnum)))
-
-#define	MR_DEF_COMMON1(typenum,c1)				\
-	static const struct MR_COMMON_TYPE(typenum)		\
-		MR_COMMON_NAME(c1);
-#define	MR_DEF_COMMON2(typenum,c1,c2)				\
-	static const struct MR_COMMON_TYPE(typenum)		\
-		MR_COMMON_NAME(c1),				\
-		MR_COMMON_NAME(c2);
-#define	MR_DEF_COMMON3(typenum,c1,c2,c3)			\
-	static const struct MR_COMMON_TYPE(typenum)		\
-		MR_COMMON_NAME(c1),				\
-		MR_COMMON_NAME(c2),				\
-		MR_COMMON_NAME(c3);
-#define	MR_DEF_COMMON4(typenum,c1,c2,c3,c4)			\
-	static const struct MR_COMMON_TYPE(typenum)		\
-		MR_COMMON_NAME(c1),				\
-		MR_COMMON_NAME(c2),				\
-		MR_COMMON_NAME(c3),				\
-		MR_COMMON_NAME(c4);
-#define	MR_DEF_COMMON5(typenum,c1,c2,c3,c4,c5)			\
-	static const struct MR_COMMON_TYPE(typenum)		\
-		MR_COMMON_NAME(c1),				\
-		MR_COMMON_NAME(c2),				\
-		MR_COMMON_NAME(c3),				\
-		MR_COMMON_NAME(c4),				\
-		MR_COMMON_NAME(c5);
-#define	MR_DEF_COMMON6(typenum,c1,c2,c3,c4,c5,c6)		\
-	static const struct MR_COMMON_TYPE(typenum)		\
-		MR_COMMON_NAME(c1),				\
-		MR_COMMON_NAME(c2),				\
-		MR_COMMON_NAME(c3),				\
-		MR_COMMON_NAME(c4),				\
-		MR_COMMON_NAME(c5),				\
-		MR_COMMON_NAME(c6);
-#define	MR_DEF_COMMON7(typenum,c1,c2,c3,c4,c5,c6,c7)		\
-	static const struct MR_COMMON_TYPE(typenum)		\
-		MR_COMMON_NAME(c1),				\
-		MR_COMMON_NAME(c2),				\
-		MR_COMMON_NAME(c3),				\
-		MR_COMMON_NAME(c4),				\
-		MR_COMMON_NAME(c5),				\
-		MR_COMMON_NAME(c6),				\
-		MR_COMMON_NAME(c7);
-#define	MR_DEF_COMMON8(typenum,c1,c2,c3,c4,c5,c6,c7,c8)		\
-	static const struct MR_COMMON_TYPE(typenum)		\
-		MR_COMMON_NAME(c1),				\
-		MR_COMMON_NAME(c2),				\
-		MR_COMMON_NAME(c3),				\
-		MR_COMMON_NAME(c4),				\
-		MR_COMMON_NAME(c5),				\
-		MR_COMMON_NAME(c6),				\
-		MR_COMMON_NAME(c7),				\
-		MR_COMMON_NAME(c8);
-#define	MR_DEF_COMMON9(typenum,c1,c2,c3,c4,c5,c6,c7,c8,c9)	\
-	static const struct MR_COMMON_TYPE(typenum)		\
-		MR_COMMON_NAME(c1),				\
-		MR_COMMON_NAME(c2),				\
-		MR_COMMON_NAME(c3),				\
-		MR_COMMON_NAME(c4),				\
-		MR_COMMON_NAME(c5),				\
-		MR_COMMON_NAME(c6),				\
-		MR_COMMON_NAME(c7),				\
-		MR_COMMON_NAME(c8),				\
-		MR_COMMON_NAME(c9);
-#define	MR_DEF_COMMON10(typenum,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10)	\
-	static const struct MR_COMMON_TYPE(typenum)		\
-		MR_COMMON_NAME(c1),				\
-		MR_COMMON_NAME(c2),				\
-		MR_COMMON_NAME(c3),				\
-		MR_COMMON_NAME(c4),				\
-		MR_COMMON_NAME(c5),				\
-		MR_COMMON_NAME(c6),				\
-		MR_COMMON_NAME(c7),				\
-		MR_COMMON_NAME(c8),				\
-		MR_COMMON_NAME(c9),				\
-		MR_COMMON_NAME(c10);
 
 #endif /* not MERCURY_MISC_H */
Index: runtime/mercury_stack_layout.h
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_stack_layout.h,v
retrieving revision 1.97
diff -u -b -r1.97 mercury_stack_layout.h
--- runtime/mercury_stack_layout.h	21 Mar 2006 02:33:41 -0000	1.97
+++ runtime/mercury_stack_layout.h	24 Mar 2006 16:55:04 -0000
@@ -454,44 +454,22 @@
 #define	MR_DEF_LLT(e, ln, port, num, path, vc, lt, vn, tv)		\
 	MR_DEF_LL_GEN(e, ln, port, MR_TRUE, num, path, vc, lt, vn, tv)
 
-#define	MR_DEF_LLCCC(e, ln, port, num, path, vc, lt, vn, tv)		\
-	MR_DEF_LL_GEN(e, ln, port, MR_FALSE, num, path, vc,		\
-		&MR_PASTE2(mercury_common_, lt),			\
-		&MR_PASTE2(mercury_common_, vn),			\
-		&MR_PASTE2(mercury_common_, tv))
-
 #define	MR_DEF_LLXCCC(e, ln, port, num, path, vc, ltt, ltc, vnt, vnc, tvt, tvc)\
 	MR_DEF_LL_GEN(e, ln, port, MR_FALSE, num, path, vc,		\
 		MR_XCOMMON(ltt, ltc),					\
 		MR_XCOMMON(vnt, vnc),					\
 		MR_XCOMMON(tvt, tvc))
 
-#define	MR_DEF_LLCC0(e, ln, port, num, path, vc, lt, vn)		\
-	MR_DEF_LL_GEN(e, ln, port, MR_FALSE, num, path, vc,		\
-		&MR_PASTE2(mercury_common_, lt),			\
-		&MR_PASTE2(mercury_common_, vn), 0)			\
-
 #define	MR_DEF_LLXCC0(e, ln, port, num, path, vc, ltt, ltc, vnt, vnc)	\
 	MR_DEF_LL_GEN(e, ln, port, MR_FALSE, num, path, vc,		\
 		MR_XCOMMON(ltt, ltc),					\
 		MR_XCOMMON(vnt, vnc), 0)
 
-#define	MR_DEF_LLTCCC(e, ln, port, num, path, vc, lt, vn, tv)		\
-	MR_DEF_LL_GEN(e, ln, port, MR_TRUE, num, path, vc,		\
-		&MR_PASTE2(mercury_common_, lt),			\
-		&MR_PASTE2(mercury_common_, vn),			\
-		&MR_PASTE2(mercury_common_, tv))
-
 #define	MR_DEF_LLTXCCC(e, ln, port, num, path, vc, ltt, ltc, vnt, vnc, tvt,tvc)\
 	MR_DEF_LL_GEN(e, ln, port, MR_TRUE, num, path, vc,		\
 		MR_XCOMMON(ltt, ltc),					\
 		MR_XCOMMON(vnt, vnc),					\
 		MR_XCOMMON(tvt, tvc))
-
-#define	MR_DEF_LLTCC0(e, ln, port, num, path, vc, lt, vn)		\
-	MR_DEF_LL_GEN(e, ln, port, MR_TRUE, num, path, vc,		\
-		&MR_PASTE2(mercury_common_, lt),			\
-		&MR_PASTE2(mercury_common_, vn), 0)
 
 #define	MR_DEF_LLTXCC0(e, ln, port, num, path, vc, ltt, ltc, vnt, vnc)	\
 	MR_DEF_LL_GEN(e, ln, port, MR_TRUE, num, path, vc,		\
cvs diff: Diffing runtime/GETOPT
cvs diff: Diffing runtime/machdeps
cvs diff: Diffing samples
cvs diff: Diffing samples/c_interface
cvs diff: Diffing samples/c_interface/c_calls_mercury
cvs diff: Diffing samples/c_interface/cplusplus_calls_mercury
cvs diff: Diffing samples/c_interface/mercury_calls_c
cvs diff: Diffing samples/c_interface/mercury_calls_cplusplus
cvs diff: Diffing samples/c_interface/mercury_calls_fortran
cvs diff: Diffing samples/c_interface/simpler_c_calls_mercury
cvs diff: Diffing samples/c_interface/simpler_cplusplus_calls_mercury
cvs diff: Diffing samples/diff
cvs diff: Diffing samples/muz
cvs diff: Diffing samples/rot13
cvs diff: Diffing samples/solutions
cvs diff: Diffing samples/tests
cvs diff: Diffing samples/tests/c_interface
cvs diff: Diffing samples/tests/c_interface/c_calls_mercury
cvs diff: Diffing samples/tests/c_interface/cplusplus_calls_mercury
cvs diff: Diffing samples/tests/c_interface/mercury_calls_c
cvs diff: Diffing samples/tests/c_interface/mercury_calls_cplusplus
cvs diff: Diffing samples/tests/c_interface/mercury_calls_fortran
cvs diff: Diffing samples/tests/c_interface/simpler_c_calls_mercury
cvs diff: Diffing samples/tests/c_interface/simpler_cplusplus_calls_mercury
cvs diff: Diffing samples/tests/diff
cvs diff: Diffing samples/tests/muz
cvs diff: Diffing samples/tests/rot13
cvs diff: Diffing samples/tests/solutions
cvs diff: Diffing samples/tests/toplevel
cvs diff: Diffing scripts
cvs diff: Diffing slice
cvs diff: Diffing tests
cvs diff: Diffing tests/benchmarks
cvs diff: Diffing tests/debugger
cvs diff: Diffing tests/debugger/declarative
cvs diff: Diffing tests/dppd
cvs diff: Diffing tests/general
cvs diff: Diffing tests/general/accumulator
cvs diff: Diffing tests/general/string_format
cvs diff: Diffing tests/general/structure_reuse
cvs diff: Diffing tests/grade_subdirs
cvs diff: Diffing tests/hard_coded
cvs diff: Diffing tests/hard_coded/exceptions
cvs diff: Diffing tests/hard_coded/purity
cvs diff: Diffing tests/hard_coded/sub-modules
cvs diff: Diffing tests/hard_coded/typeclasses
cvs diff: Diffing tests/invalid
cvs diff: Diffing tests/invalid/purity
cvs diff: Diffing tests/misc_tests
cvs diff: Diffing tests/mmc_make
cvs diff: Diffing tests/mmc_make/lib
cvs diff: Diffing tests/recompilation
cvs diff: Diffing tests/tabling
cvs diff: Diffing tests/term
cvs diff: Diffing tests/trailing
cvs diff: Diffing tests/valid
cvs diff: Diffing tests/warnings
cvs diff: Diffing tools
cvs diff: Diffing trace
cvs diff: Diffing util
cvs diff: Diffing vim
cvs diff: Diffing vim/after
cvs diff: Diffing vim/ftplugin
cvs diff: Diffing vim/syntax
--------------------------------------------------------------------------
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