Commit 53bc514e authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Added extra code to external class skeletons to reset 'out' parameters +...


Added extra code to external class skeletons to reset 'out' parameters + removed warning in generated code (bug 568899)
Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
Change-Id: I8c9ee720edd183711f709ad4c08629894747e1ed
parent 24642393
......@@ -8033,12 +8033,16 @@ namespace Ttcn {
Free(body);
}
else if (in_class && my_scope->get_scope_class()->is_external()) {
char* out_par_str = enable_set_bound_out_param ? memptystr() :
fp_list->generate_code_set_unbound(memptystr());
target->source.methods = mputprintf(target->source.methods,
"%s %s::%s(%s)\n"
"{\n\n"
"{\n"
"%s\n"
"}\n\n", return_type_str,
my_scope->get_scope_class()->get_id()->get_name().c_str(),
genname_str, formal_par_list);
genname_str, formal_par_list, out_par_str);
Free(out_par_str);
}
Free(formal_par_list);
......
......@@ -6891,7 +6891,7 @@ error:
{
expression_struct expr;
Code::init_expr(&expr);
ref_pard->generate_code_const_ref(&expr);
ref_pard->generate_code(&expr);
str=Code::merge_free_expr(str, &expr);
return str;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment