Add the module name to name of LambdaGoal predicates.

Estimated hours taken: 0.2

Add the module name to name of LambdaGoal predicates.

compiler/lambda.m:
	Prepend the module name to __LambdaGoal__, as name clashes
	occur with native gc (because static symbols become global).
This commit is contained in:
Tyson Dowd
1996-01-12 06:29:32 +00:00
parent 9997048d32
commit 20013e0829

View File

@@ -266,7 +266,8 @@ XXX this optimization temporarily disabled, see comment above
module_info_next_lambda_count(ModuleInfo0, LambdaCount, module_info_next_lambda_count(ModuleInfo0, LambdaCount,
ModuleInfo1), ModuleInfo1),
string__int_to_string(LambdaCount, LambdaCountStr), string__int_to_string(LambdaCount, LambdaCountStr),
string__append("__LambdaGoal__", LambdaCountStr, PName), string__append("__LambdaGoal__", LambdaCountStr, PName0),
string__append(ModuleName, PName0, PName),
PredName = unqualified(PName), PredName = unqualified(PName),
list__length(AllArgVars, Arity), list__length(AllArgVars, Arity),
map__apply_to_list(AllArgVars, VarTypes, ArgTypes), map__apply_to_list(AllArgVars, VarTypes, ArgTypes),