Estimated hours taken: 1
Fix a quoting bug that caused the compiler to generate `.opt' files
containing syntax errors.
compiler/mercury_to_mercury.m:
compiler/hlds_out.m:
Fix some more quoting problems: it was not properly quoting
certain subterms when they occurred immediately before the final
`.' at the end of a term.
tests/valid/intermod_quote2.m:
Add some regression tests for the above bug fix.
tests/valid/Mmakefile:
Fix a bug in the Mmakefile that meant that the intermod_quote
test didn't work properly when --use-subdirs was enabled.
Estimated hours taken: 0.5
Fix a bug with quoting of module-qualified terms in .opt files.
Add a test case for this bug.
compiler/hlds_out.m:
Add a version of `hlds_out__write_functor' which has a
`needs_quotes' argument. Call this new predicate from
`hlds_out__write_qualified_functor' to ensure that functors
are properly quoted after the `:'.
compiler/mercury_to_mercury.m:
Export `mercury_output_term/6' so it can be called by
`hlds_out__write_functor/7'.
tests/valid/Mmakefile:
Add the new test case.
tests/valid/intermod_quote.m:
tests/valid/intermod_quote2.m:
New test case for this bug.