Commit Graph

4 Commits

Author SHA1 Message Date
Zoltan Somogyi
4865f11503 Update programming style. 2020-10-04 13:20:42 +11:00
Zoltan Somogyi
33eb3028f5 Clean up the tests in half the test directories.
tests/accumulator/*.m:
tests/analysis_*/*.m:
tests/benchmarks*/*.m:
tests/debugger*/*.{m,exp,inp}:
tests/declarative_debugger*/*.{m,exp,inp}:
tests/dppd*/*.m:
tests/exceptions*/*.m:
tests/general*/*.m:
tests/grade_subdirs*/*.m:
tests/hard_coded*/*.m:
    Make these tests use four-space indentation, and ensure that
    each module is imported on its own line. (I intend to use the latter
    to figure out which subdirectories' tests can be executed in parallel.)

    These changes usually move code to different lines. For the debugger tests,
    specify the new line numbers in .inp files and expect them in .exp files.
2015-02-14 20:14:03 +11:00
Peter Wang
7f62f7d8fa On the Java backend, a functor with the same name and arity as its type is
Branches: main, 10.04

On the Java backend, a functor with the same name and arity as its type is
given an extra "Mr_" prefix to distinguish it.  The Java implementation of
construct needs to account for the extra prefix; it does now.

library/rtti_implementation.m:
        As above.

tests/hard_coded/construct_mangle.exp:
tests/hard_coded/construct_mangle.m:
        Extend this test case.

        Add another name mangling problem, to be fixed some other time.
2010-09-30 03:16:23 +00:00
Peter Wang
4459a2e9ac The implementation of construct/3 for Java needs to take into account name
Branches: main

The implementation of construct/3 for Java needs to take into account name
mangling of module and functor names.

library/rtti_implementation.m:
        Replicate the name mangling algorithm in the construct implementation
        for Java.

compiler/prog_foreign.m:
        Add a forwarding comment if the name mangling algorithm changes.

tests/hard_coded/Mmakefile:
tests/hard_coded/construct_mangle.exp:
tests/hard_coded/construct_mangle.m:
        Add test case.
2009-08-07 06:14:29 +00:00