Commit Graph

18 Commits

Author SHA1 Message Date
Fergus Henderson
dc919accb8 Add an example of interfacing to Fortran code from Mercury.
samples/c_interface/mercury_calls_fortran/*:
	Add an example of interfacing to Fortran code from Mercury.
1998-05-19 10:13:59 +00:00
Fergus Henderson
2c4bd735b4 Add comment "This source file is hereby placed in the public domain".
Estimated hours taken: 0.25

samples/*:
	Add comment "This source file is hereby placed in the public domain".
1997-09-10 11:01:12 +00:00
Fergus Henderson
7d46fde7f3 Update to use the new mercury_init() and mercury_terminate()
samples/c_interface/simpler_c_calls_mercury/README:
samples/c_interface/simpler_c_calls_mercury/c_main.c:
samples/c_interface/simpler_c_calls_mercury/mercury_lib.m:
samples/c_interface/simpler_cplusplus_calls_mercury/README:
samples/c_interface/simpler_cplusplus_calls_mercury/cpp_main.cc:
samples/c_interface/simpler_cplusplus_calls_mercury/mercury_lib.m:
	Update to use the new mercury_init() and mercury_terminate()
	functions.
1997-09-06 13:04:32 +00:00
Fergus Henderson
f5af5c9b20 Update to use the new mercury_init() and mercury_terminate()
Estimated hours taken: 1

samples/c_interface/simpler_c_calls_mercury/README:
samples/c_interface/simpler_c_calls_mercury/c_main.c:
samples/c_interface/simpler_c_calls_mercury/mercury_lib.m:
samples/c_interface/simpler_cplusplus_calls_mercury/README:
samples/c_interface/simpler_cplusplus_calls_mercury/cpp_main.cc:
samples/c_interface/simpler_cplusplus_calls_mercury/mercury_lib.m:
	Update to use the new mercury_init() and mercury_terminate()
	functions.
1997-09-06 13:03:58 +00:00
Fergus Henderson
cb3e03212c Add new directory with new files README, c_main.c, Mmakefile,
samples/c_interface/simpler_c_calls_mercury:
	Add new directory with new files README, c_main.c, Mmakefile,
	and mercury_lib.m.  These files demonstrate how to interface
	to C using a C main() top-level rather than with a Mercury
	main/2 top-level.

samples/c_interface/simpler_cplusplus_calls_mercury:
	Same as above, but using C++ rather than C.
1997-07-25 03:55:51 +00:00
Fergus Henderson
9aaa21696f Add new directory with new files README, c_main.c, Mmakefile,
Estimated hours taken: 3

samples/c_interface/simpler_c_calls_mercury:
	Add new directory with new files README, c_main.c, Mmakefile,
	and mercury_lib.m.  These files demonstrate how to interface
	to C using a C main() top-level rather than with a Mercury
	main/2 top-level.

samples/c_interface/simpler_cplusplus_calls_mercury:
	Same as above, but using C++ rather than C.
1997-07-25 03:55:18 +00:00
Fergus Henderson
ddb73722b9 Rename all the Mmake' files as Mmakefile'. This is necessary to
avoid confusion between `Mmake' and `mmake' on case-insensitive file
systems.
1997-02-13 21:38:45 +00:00
Fergus Henderson
53aa3ff948 The #include of "mercury_lib.h" should be the first #include,
Estimated hours taken: 0.25

samples/c_calls_mercury/c_main.c:
	The #include of "mercury_lib.h" should be the first #include,
	because that includes "imp.h" which may define global
	register variables that need to be declared before any
	inline functions in other header files.
1997-02-01 13:54:05 +00:00
Fergus Henderson
d988e8c82e Add an example of Mercury calling C++ code.
Estimated hours taken: 0.25

samples/c_interface/mercury_calls_cplusplus/*:
	Add an example of Mercury calling C++ code.
1997-01-31 19:04:47 +00:00
Fergus Henderson
0b1322d17c Add an example of C++ code caling Mercury code.
Estimated hours taken: 0.5

samples/cplusplus_calls_mercury/*:
	Add an example of C++ code caling Mercury code.
1997-01-31 18:57:02 +00:00
Fergus Henderson
4d4fb31484 Add a .cvsignore file.
Estimated hours taken: 0.1

samples/c_interface/mercury_calls_c:
	Add a .cvsignore file.
1997-01-17 07:58:16 +00:00
Fergus Henderson
b060c3897f Add a .cvsignore file to get CVS to ignore automatically-generated
Estimated hours taken: 0.1

samples/c_interface/c_calls_mercury:
	Add a .cvsignore file to get CVS to ignore automatically-generated
	files.
1997-01-17 07:55:45 +00:00
Fergus Henderson
fedf4f472d Update now that exporting semidet procedures works.
Estimated hours taken: 0.5

samples/c_interface/c_calls_mercury:
	Update now that exporting semidet procedures works.
	Add some examples of exporting functions.
1996-12-20 17:50:20 +00:00
Fergus Henderson
aadb280399 Remove the line "MCFLAGS=--no-optimize-dead-procs # XXX work-around
Estimated hours taken: 0.25

samples/c_interface/c_calls_mercury/Mmake:
	Remove the line "MCFLAGS=--no-optimize-dead-procs # XXX work-around
	for compiler bug", since the bug it refers to has been fixed.
1996-12-14 20:35:42 +00:00
Fergus Henderson
78896d77ca Add another example of the use of the C interface.
Estimated hours taken: 0.25

samples/c_interface/short_example.m:
	Add another example of the use of the C interface.
1996-06-11 04:37:09 +00:00
Fergus Henderson
fb0c3822aa Add a new directory containing an example of the use of the
Estimated hours taken: 0.5

samples/c_interface/c_calls_mercury/*:
	Add a new directory containing an example of the use of the
	C interface.
1996-06-11 04:35:25 +00:00
Fergus Henderson
4c540ddb7b Add missing #include to suppress compiler warning.
Estimated hours taken: 0.1

samples/C_Interface/mercury_calls_c/c_main.c:
	Add missing #include to suppress compiler warning.
1996-06-11 03:55:16 +00:00
Fergus Henderson
553a278171 Add an example of using the Mercury->C interface.
Estimated hours taken: 0.5

samples/C_interface/c_calls_mercury/*:
	Add an example of using the Mercury->C interface.
1996-05-25 07:18:14 +00:00