[m-rev.] tcltk updates

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Dec 23 00:19:09 AEDT 2003


Estimated hours taken: 0.75
Branches: main

Some minor updates to the tcl/tk interface.

extras/graphics/mercury_tcltk/HOWTO:
	Mention that you can set the GC_ALL_INTERIOR_POINTERS environment
	variable as an alternative to recompiling libgc.a with
	-DALL_INTERIOR_POINTERS.

	Fix some documentation rot: do rebuild with -DALL_INTERIOR_POINTERS,
	you now need to set GC_GRADE=gc when running make in the boehm_gc
	directory.

extras/graphics/mercury_tcltk/Mmakefile:
	Add an "install" target.

Workspace: /home/jupiter/fjh/ws-jupiter/mercury
Index: extras/graphics/mercury_tcltk/HOWTO
===================================================================
RCS file: /home/mercury1/repository/mercury/extras/graphics/mercury_tcltk/HOWTO,v
retrieving revision 1.2
diff -u -d -r1.2 HOWTO
--- extras/graphics/mercury_tcltk/HOWTO	9 Apr 1999 05:35:59 -0000	1.2
+++ extras/graphics/mercury_tcltk/HOWTO	22 Dec 2003 13:17:34 -0000
@@ -6,13 +6,16 @@
 fully documented in any way, but if you know Tcl/Tk, you shouldn't
 have any problems.
 
-The main tricky thing is that it is *CRUCIAL* that you link with a
+The main tricky thing is that it is *CRUCIAL* that you enable recognition
+of interior pointers in the garbage collection library.  The simplest
+way to do this is to set the GC_ALL_INTERIOR_POINTERS environment variable
+before running your program.  Another alternative is to link with a
 version of the garbage collection library (libgc.a or libgc.so) which
 has been compiled with `-DALL_INTERIOR_POINTERS'.  You can create
 this by typing the commands
 
 	make clean
-	make libgc.a libgc.so EXTRA_CFLAGS=-DALL_INTERIOR_POINTERS
+	make libgc.a libgc.so GC_GRADE=gc EXTRA_CFLAGS=-DALL_INTERIOR_POINTERS
 
 in the boehm_gc directory of the Mercury compiler source distribution.
 
Index: extras/graphics/mercury_tcltk/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/extras/graphics/mercury_tcltk/Mmakefile,v
retrieving revision 1.3
diff -u -d -r1.3 Mmakefile
--- extras/graphics/mercury_tcltk/Mmakefile	1 Aug 2003 14:00:21 -0000	1.3
+++ extras/graphics/mercury_tcltk/Mmakefile	22 Dec 2003 13:04:17 -0000
@@ -18,3 +18,4 @@
 
 depend: mercury_tcltk.depend
 
+install: libmercury_tcltk.install
-- 
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