Commit Graph

3 Commits

Author SHA1 Message Date
Fergus Henderson
2bf6b45696 Another fix to make things work with my change to
Estimated hours taken: 0.1

Another fix to make things work with my change to
ensure that the declarations and definitions for data constants
specify the same linkage (extern or static).

tests/valid/intermod_lambda.m:
	Add definitions for types which were declared but not defined.
1998-09-04 10:12:42 +00:00
Simon Taylor
5294c35b1f Use the declared argmodes or procedures when gathering modes to put
Estimated hours taken: 0.1

compiler/intermod.m
        Use the declared argmodes or procedures when gathering modes to put
        into .opt files, since these are the modes that are written to the
        .opt file.

tests/valid/intermod_lambda.m
tests/valid/intermod_lambda2.m
        Updated these to act as a regression test.
1997-05-24 02:20:18 +00:00
Simon Taylor
d6d49f1333 Fix an abort reported by Peter Schachte, which was caused by
Estimated hours taken: 0.5

Fix an abort reported by Peter Schachte, which was caused by
hlds_module:get_pred_id_and_proc_id attempting to resolve overloading
on a predicate from a `.opt' file, while the code to resolve overloading
in typecheck.m does not attempt to match against predicates declared
in `.opt' files since all calls to such predicates should be module
qualified in the `.opt' file.

compiler/hlds_module.m
        If a predicate call is module qualified, there is no overloading
        to resolve, so don't check the argument types.

tests/valid/Mmake
tests/valid/intermod_lambda.m
tests/valid/intermod_lambda2.m
        Added a regression test.
1997-04-02 05:30:26 +00:00