Files
mercury/extras/dynamic_linking/dl_test.exp
Fergus Henderson f576b8e658 Fix a bug with the building of closures for the MLDS back-end:
Estimated hours taken: 3

extras/dynamic_linking/dl.m:
	Fix a bug with the building of closures for the MLDS back-end:
	the wrapper procedure in the closure gets passed the closure
	as an extra argument, so we can't just use the address return
	from dlsym() in the closure.  Instead, we need to put the
	address of a wrapper procedure in the closure, and have the
	wrapper procedure call the real procedure, passing it all
	the arguments passed to the wrapper *except* for the closure
	argument.

extras/dynamic_linking/Mmakefile:
extras/dynamic_linking/dl_test.m:
extras/dynamic_linking/dl_test2.m:
extras/dynamic_linking/dl_test.exp:
extras/dynamic_linking/dl_test2.exp:
	Move the test case that the MLDS grades don't handle into a
	separate file.  Add a new test for passing integer arguments.
2001-01-11 05:05:29 +00:00

3 lines
27 B
Plaintext