mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-18 15:26:31 +00:00
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:
@@ -266,7 +266,8 @@ XXX this optimization temporarily disabled, see comment above
|
||||
module_info_next_lambda_count(ModuleInfo0, LambdaCount,
|
||||
ModuleInfo1),
|
||||
string__int_to_string(LambdaCount, LambdaCountStr),
|
||||
string__append("__LambdaGoal__", LambdaCountStr, PName),
|
||||
string__append("__LambdaGoal__", LambdaCountStr, PName0),
|
||||
string__append(ModuleName, PName0, PName),
|
||||
PredName = unqualified(PName),
|
||||
list__length(AllArgVars, Arity),
|
||||
map__apply_to_list(AllArgVars, VarTypes, ArgTypes),
|
||||
|
||||
Reference in New Issue
Block a user