Files
mercury/samples/c_interface
Simon Taylor 319df48866 Remove the RM_C mmake variable, which controlled whether the intermediate
Estimated hours taken: 0.5
Branches: main

Remove the RM_C mmake variable, which controlled whether the intermediate
`.c' files were removed (now they never are).

The implementation was buggy (it didn't work with parallel makes), and
made it difficult to avoid always recompiling the `.c' file with smart
recompilation.

Mmake.common.in:
configure.in:
README.AIX:
bindist/bindist.build_vars.in:
bindist/bindist.configure.in:
scripts/Mmake.vars.in:
scripts/Mmake.rules:
compiler/modules.m:
tools/bootcheck:
tools/binary_step:
*/Mmakefile:
	Remove references to RM_C, DEFAULT_RM_C and LIBRARY_RM_C.

compiler/modules.m:
	The `.o' and `.pic_o' file now depends only on the `.c' file,
	not on everthing the `.c' file depends on. The extra dependencies
	were only needed because the intermediate `.c' file could
	be removed by RM_C. This change is needed to avoid recompiling
	unchanged `.c' files with smart recompilation.
2001-05-18 14:23:59 +00:00
..

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.