mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 13:23:47 +00:00
Estimated hours taken: 1 Branches: main Fix a bug in the hlc grades where generated C function names were not being mangled correctly. The generated function names contained the Mercury module name verbatim, which meant that if the Mercury module name wasn't a valid C identifier, then the generated C code would be invalid. compiler/mlds_to_c.m: Mangle function names in generated high level C code. tests/general/Mmakefile: tests/general/hlc_name_mangling-helper-module.m: tests/general/hlc_name_mangling.exp: tests/general/hlc_name_mangling.m: Add a regression test.
2 lines
4 B
Plaintext
2 lines
4 B
Plaintext
foo
|