Commit Graph

4 Commits

Author SHA1 Message Date
Fergus Henderson
aa985ccb0a Various bug fixes and enhancements to var.m and other stuff in
Estimated hours taken: 6

Various bug fixes and enhancements to var.m and other stuff in
extras/trailed_update.

extras/trailed_update/var.m:
	Add code to detect floundering.
	Change the code for debug_freeze/3 to avoid a floundering warning.
	Add new predicates debug_freeze/4 (to go with debug_freeze/3)
	and dump_var/3.
	Fix a bug in freeze/3 (higher-order terms are monomorphic, so
	there is no need to explicitly pass type-infos when calling them).
	Fix a bug in wakeup_delayed_goals/2 (we need to set the binding
	to ground _before_ waking up the goals).

extras/trailed_update/Mmakefile:
	Add `ML = ml --mercury-libs shared', so that it will work on Linux.

extras/trailed_update/samples/Mmakefile:
	Make it work with shared libraries on Linux.

extras/trailed_update/samples/tests.m:
extras/trailed_update/samples/tests.exp:
	Some test cases for var.m.

extras/trailed_update/tr_store.m:
	Add a prototype for ML_compare_typeinfo().

extras/trailed_update/unsafe.m:
	Change the C code for unsafe_perform_io to match the new
	interface for exported Mercury procedures that do I/O --
	there is no longer any need to pass dummy io__state arguments
	in the C code.
1997-10-06 18:46:58 +00:00
Fergus Henderson
ad39659e3a New file. A backtrackable version of library/store.m.
Estimated hours taken: 1

extras/trailed_update/tr_store.m:
	New file.  A backtrackable version of library/store.m.

extras/trailed_update/tr_array.m:
	Delete the `mui_' and `mdi_' prefixes on predicate names.
	This was done for consistency with tr_store.m.

extras/trailed_update/trailed_update.m:
	Add tr_store.m to the list of modules in the `trailed_update'
	library.

extras/trailed_update/.cvsignore:
	Ignore .c and .h files.
1997-09-26 15:28:07 +00:00
Fergus Henderson
dc011f7cdf s/MR_trail_value_at_address/MR_trail_current_value/
Estimated hours taken: 0.1

extras/trailed_update/tr_array.m:
	s/MR_trail_value_at_address/MR_trail_current_value/
	since the function has been renamed.
1997-09-20 06:46:22 +00:00
Fergus Henderson
4d56169c56 New file. This file contains support for backtrackable destructive
Estimated hours taken: 2

extras/trailed_update/tr_array.m:
	New file.  This file contains support for backtrackable destructive
	update on arrays.
1997-09-11 06:55:06 +00:00