Commit Graph

14 Commits

Author SHA1 Message Date
Julien Fischer
b55c2ad6a8 Delete trailing whitespace.
extras/graphics/samples/calc/calc.m:
    As above.
2020-10-02 17:29:54 +10:00
Julien Fischer
e7010327d9 Delete references to picreg.
browser/interactive_query.m:
extras/dynamic_linking/Mmakefile:
extras/graphics/mercury_glut/Mmakefile:
extras/graphics/mercury_glut/Mmakefile.MacOSX:
extras/graphics/samples/calc/Makefile:
extras/graphics/samples/gears/Mmakefile:
extras/graphics/samples/maze/Mmakefile:
extras/graphics/samples/pent/Mmakefile:
extras/morphine/non-regression-tests/Mmakefile:
extras/morphine/source/collect.op:
    As above.
2016-04-26 14:03:04 +10:00
Zoltan Somogyi
d33273d033 Tell vim not to expand tabs in Makefiles.
This file-specific setting will override a default setting of expandtabs
in $HOME/.vimrc.

*/Makefile:
*/Mmakefile:
    As above.

tests/hard_coded/.gitignore:
    Don't ignore the purity subdir. This ignore must have been left over
    from when purity.m was a test in hard_coded, not hard_coded/purity,
    and it ignored an executable, not a directory.
2015-01-08 22:07:29 +11:00
Julien Fischer
2e226e3daf Cleanups and minor fixes for the mtcltk calculator example.
Estimated hours taken: 0.3
Branches: main, release

Cleanups and minor fixes for the mtcltk calculator example.

extras/graphics/samples/calc/calc.m:
	Conform to recent changes in the standard library.

	Convert to 4-space indentation.

	Use state variables for threading the I/O state.

	Other formatting and style fixes.
2006-04-21 05:45:47 +00:00
Ian MacLarty
61c38eba2f Port the Tcl/Tk binding to Mac OS X.
Estimated hours taken: 5
Branches: main and 0.12

Port the Tcl/Tk binding to Mac OS X.

extras/graphics/mercury_tcltk/HOWTO:
	Remove the remark about interior pointers since it is no longer
	applicable.

extras/graphics/mercury_tcltk/Mmakefile:
	Try to link with tcl/tk 8.4 by default.

extras/graphics/mercury_tcltk/Mmakefile.MacOSX:
	Mmakefile for Mac OS X.

extras/graphics/mercury_tcltk/README:
	Mention Mmakefile.MacOSX.

extras/graphics/mercury_tcltk/mtcltk.m:
	Include the headers from a different location on Mac OS X.

extras/graphics/samples/calc/Mmakefile.MacOSX:
	Add a Mmakefile to compile the Tcl/Tk example on Mac OS X.

extras/graphics/samples/calc/README:
	Add a README.

extras/graphics/samples/calc/calc.m:
	Add spaces around some of the characters on the buttons, so that they
	are visible in Mac OS X.
2005-08-15 04:11:43 +00:00
Julien Fischer
32f148898d Fix up this Mmakefile so that the calculator example builds
Estimated hours taken: 0.1
Branches: main

extras/graphics/samples/calc/Mmakefile:
	Fix up this Mmakefile so that the calculator example builds
	in place on our current machines.
2005-08-10 09:12:16 +00:00
Julien Fischer
15b576701c Remove dependency between mercury_opengl and mercury_tcltk by making
Estimated hours taken: 14.
Branches: main.

Remove dependency between mercury_opengl and mercury_tcltk by making
mtogl a separate library.

Modify togl so that it works with Tcl/Tk 8.0.5
(XXX It doesn't work (easily) with versions of Tcl/Tk greater than 8.0,
 we probably ought to consider using togl 1.6 at some point).

Make a number of small changes (mainly adding casts and missing MR_* prefixes)
to prevent compiler warnings.

extras/graphics/README:
	Mention the `mtogl' package.

extras/graphics/mercury_opengl/mercury_opengl.m:
extras/graphics/mercury_opengl/mglu.m:
extras/graphics/mercury_opengl/mogl.m:
	Remove mtogl from mercury_opengl package.
	Define quadric using pragma foreign_type
	Add some missing MR_* prefixes.

extras/graphics/mercury_opengl/mtogl:
	Remove references to header files that are no longer generated
	by the compiler.
	Use the new foreign language interface.
	Add some missing MR_* prefixes.

extras/graphics/mercury_opengl/togl.c:
	Allow the use of tk version 8.0.5
extras/graphics/mercury_opengl/tkInt8.0p5.h:
	New file.  (This is a part of tk)

extras/graphics/mercury_opengl/Mmakefile:
	Update mmakefile to reflect above changes.

extras/graphics/mercury_opengl/README:
	Mention mtogl.

extras/graphics/samples/calc/calc.m:
	Add some missing underscores; this prevents compiler warnings
	when compiling with intermodule-optimization enabled.

extras/graphics/samples/maze/Mmakefile:
extras/graphics/samples/pent/Mmakefile:
	Update mmakefiles to reflect above changes.
2003-08-13 05:54:33 +00:00
Simon Taylor
da2e0433c6 Use C2INITARGS or MLFLAGS instead of C2INITFLAGS.
Estimated hours taken: 0.25
Branches: main

bytecode/Mmakefile:
compiler/Mmakefile:
extras/aditi/Mmakefile:
extras/curses/sample/Mmakefile:
extras/graphics/samples/calc/Mmakefile:
extras/graphics/samples/maze/Mmakefile:
extras/graphics/samples/pent/Mmakefile:
extras/morphine/non-regression-tests/Mmakefile:
samples/c_interface/simpler_c_calls_mercury/Mmakefile:
samples/c_interface/simpler_cplusplus_calls_mercury/Mmakefile:
tests/benchmarks/Mmakefile:
tests/debugger/Mmakefile:
tests/debugger/declarative/Mmakefile:
tests/hard_coded/Mmakefile:
	Use C2INITARGS or MLFLAGS instead of C2INITFLAGS.
2001-12-19 15:08:30 +00:00
Fergus Henderson
b67e8963a1 Apply some improvements to extras/graphics
Estimated hours taken: 0.5 (plus unknown by original contributor)
Branches: main

Apply some improvements to extras/graphics
from Holger Krug <hkrug@rationalizer.com>.

extras/graphics/mercury_tcltk/mtk.m:
	Fix a bug: LVALUE_CAST renamed to MR_LVALUE_CAST.

extras/graphics/mercury_tcltk/mtk.m:
	Provide access to the root window.

extras/graphics/samples/calc/calc.m:
	Only create on top-level window.
2001-07-16 10:21:52 +00:00
Tyson Dowd
037e0a752f Clean up samples to use the library versions of the graphics
Estimated hours taken: 3

samples/calc/Mmakefile:
samples/maze/Mmakefile:
samples/maze/globals.m:
samples/maze/maze.m:
	Clean up samples to use the library versions of the graphics
	packages.
1998-09-06 08:22:10 +00:00
Fergus Henderson
87788d9f14 Rename Mmake' as Mmakefile', since using the name `Mmake'
Estimated hours taken: 0.25

*/Mmake:
	Rename `Mmake' as `Mmakefile', since using the name `Mmake'
	causes problems on case-insensitive file systems.
1997-09-29 17:56:36 +00:00
Thomas Conway
8d79000cf8 Place various bits of sample code in the public domain.
Estimated hours taken: 0.1

Place various bits of sample code in the public domain.

extras/complex_numbers/samples/fft.m:
extras/graphics/samples/calc/calc.m:
extras/graphics/samples/maze/maze.m:
samples/ultra_sub.m:
	place the source in the public domain.
1997-09-11 22:08:56 +00:00
Fergus Henderson
04b720630b Update the copyright messages so that (a) they contain the correct years
and (b) they say "Copyright (C) ... _The_ University of Melbourne".
1997-07-27 15:09:59 +00:00
Thomas Conway
1d7dce07a2 A sample program for the Tcl/Tk stuff.
Estimated hours taken: somewhere between 1 and 100

graphics/samples/calc:
	A sample program for the Tcl/Tk stuff.
1997-07-18 05:04:11 +00:00