Files
mercury/samples/c_interface/README
Julien Fischer 008e7795f2 Add an example of how to use a stand-alone interface to the samples.
Estimated hours taken: 8
Branches: main

Add an example of how to use a stand-alone interface to the samples.

samples/c_interface/standalone_c/Makefile:
samples/c_interface/standalone_c/c_main.c:
samples/c_interface/standalone_c/c_main.exp:
samples/c_interface/standalone_c/mercury_lib.m:
	New files.  An annotated example of how to use a stand-alone interface.

samples/c_interface/README:
	Mention the new example.
2007-02-22 06:52:32 +00:00

31 lines
1.1 KiB
Plaintext

This directory contains some examples of mixed Mercury/C programs using
the C interface.
short_example.m A short example of Mercury code calling C.
mercury_calls_c A detailed example of Mercury code
calling C code.
c_calls_mercury A detailed example of C code calling
Mercury code.
mercury_calls_cplusplus A detailed example of Mercury code
calling C++ code.
cplusplus_calls_mercury A detailed example of C++ code calling
Mercury code.
mercury_calls_fortran This directory contains a detailed
example of Mercury code calling Fortran code.
simpler_c_calls_mercury A simpler example of C code calling Mercury.
simpler_cplusplus_calls_mercury A simpler example of C++ code calling
Mercury.
standalone_c Another example of C code calling Mercury
code this time use the compiler's
`--generate-standalone-interface' option.