Commit Graph

8 Commits

Author SHA1 Message Date
Fabrice Nicol
ffee6ac229 Fix type error in easyx sample scribble.
extras/graphics/easyx/samples.m:
    Fix type error in first argument of predicate 'sm'.
2022-01-12 15:51:59 +11:00
Mark Brown
d465fa53cb Update the COPYING.LIB file and references to it.
Discussion of these changes can be found on the Mercury developers
mailing list archives from June 2018.

COPYING.LIB:
    Add a special linking exception to the LGPL.

*:
    Update references to COPYING.LIB.

    Clean up some minor errors that have accumulated in copyright
    messages.
2018-06-09 17:43:12 +10:00
Peter Wang
9d23694a25 Thread I/O state through time routines that depend on the time zone.
library/time.m:
	Deprecate non-pure functions `localtime/1' and `mktime/1'.
	They depend on the current time zone, which depends on the
	environment that the program is running in, and may also be
	changed at run time (e.g. by setting the environment variable
	"TZ").

	Add replacement predicates `localtime/4' and `mktime/4' that
	thread the I/O state.

	Deprecate the non-pure function `ctime/1'.  It does not seem
	necessary to add a pure replacement for it, being a minor
	convenience at best.

	Try to clarify some documentation.

library/calendar.m:
	Conform to above changes.

tests/hard_coded/dst_test.m:
tests/hard_coded/time_test.m
	Conform to above changes.

	Update code style.

extras/curs/samples/nibbles.m:
extras/graphics/easyx/samples/bounce.m:
extras/graphics/easyx/samples/mclock.m:
extras/log4m/log4m.m:
	Conform to above changes.

NEWS:
	Announce changes.
2016-06-06 23:14:29 +10:00
Sebastian Godelet
a302f20eae fix extras/graphics/ examples
Replace all occurances of index0_det with det_index0 to make these examples
compatible with recent versions of Mercury.

extras/graphics/easyx/samples/bounce.m:
extras/graphics/mercury_allegro/examples/exspline.m:
extras/graphics/mercury_allegro/samples/demo/aster.m:
extras/graphics/mercury_allegro/samples/speed/view.m:
    As above.
2014-02-27 16:58:43 +11:00
Sebastian Godelet
f9899940b7 Add .gitignore files to the extras/ directory
extras/.gitignore:
    Mercury ignores the --use-{grade}-subdir dir
    Mercury/** for git 1.8+ this recursively ignores all build files
    ignoring *.mh and *.init files
    *.err output files
    lib*.{dll|so|a|dylib} ignores target compiler library output
    *.jar ignores the Java grade output
    *.exe for Windows executables

extras/dynamic_linking/.gitignore:
    ignoring the copy of dl.m, name_mangle.m
    ignoring hello lib and dl_test* executables

extras/moose/samples/.gitignore:
    ignoring cgram.m small.m alpha.m expr.m which are
    generated from the .moo grammar files

extras/graphics/mercury_cairo/samples/.gitignore:
    ignoring *.png output and all executables

extras/**/.gitignore:
    In each sample/test/example folder the linux executable/test
    output is ignored
2014-02-27 16:58:43 +11:00
Julien Fischer
f4589b4ab3 Fix some minor compilation problems in the extras distribution.
Estimated hours taken: 0.5
Branches: main, release

Fix some minor compilation problems in the extras distribution.

extras/curses/user.m:
extras/graphics/easyx/samples/bounce.m:
extras/graphics/easyx/samples/scribble.m:
	Conform to recent changes in the standard library.

extras/moose/samples/try_alpha.m:
extras/moose/samples/try_expr.m:
	Replace use of ':' as a module qualifier.
2006-05-31 06:29:11 +00:00
Ralph Becket
45a982f5df Fixed a latency bug in the easyx interface.
Estimated hours taken: 1
Branches: main

Fixed a latency bug in the easyx interface.  One has to tell the
Xlib XSync function to discard any pending events in the input queue
in order to avoid noticable event processing lag in applications with a high
refresh rate.

easyx.m:
	Moved the import of xlib to the implementation section (xlib is
	not used in the interface.)

	Added easyx.sync/3.

xlib.m:
	Changed xlib.sync/1 to discard any events waiting in the input queue.

samples/bounce.m:
	Now uses easyx.sync/3 rather than easyx.flush/3, which dramatically
	improves responsiveness.
2004-09-29 23:42:03 +00:00
Ralph Becket
56880878b2 A low-level wrapper around Xlib and a higher level graphics library suitable
Estimated hours taken: 30
Branches: main

A low-level wrapper around Xlib and a higher level graphics library suitable
for implementing simple interactive graphical programs.

extras/graphics/easyx:
extras/graphics/easyx/README:
extras/graphics/easyx/easyx.m:
extras/graphics/easyx/xlib.m:
extras/graphics/easyx/samples:
extras/graphics/easyx/samples/bounce.m:
extras/graphics/easyx/samples/mclock.m:
extras/graphics/easyx/samples/moveball.m:
extras/graphics/easyx/samples/scribble.m:
extras/graphics/easyx/samples/testeasyx.m:
        Added.
2004-09-28 02:10:41 +00:00