Files
mercury/tests/hard_coded/export_test.exp
David Jeffery a2c42a51af Change the place in which the "#include" for a module's ".h" file is placed
Estimated hours taken: 2

Change the place in which the "#include" for a module's ".h" file is placed
when a procedure has been exported. Previously, the #include appeared just
before the definitions of the C functions for the exports. This change puts
the include at the top of the generated C file.

This has the consequence that the exported function can be used from
pragma c_code declarations without explicitly including the .h file.

tests/hard_coded/export_test.*:
        A test for this bug fix.
1997-07-29 01:05:10 +00:00

2 lines
3 B
Plaintext