Fixed output structure allocation in C backend

This commit is contained in:
Adrien Guatto 2010-07-07 14:44:18 +02:00
parent c123000eef
commit 0712378133

View file

@ -530,9 +530,10 @@ let fun_def_of_step_fun name obj_env mem objs sf =
(** Out vars for function calls *)
let out_vars =
List.map (fun obj -> out_var_name_of_objn (shortname obj.cls),
Cty_id ((cname_of_name (shortname obj.cls)) ^ "_out"))
(List.filter (fun obj -> not (is_op obj.cls)) objs) in
unique
(List.map (fun obj -> out_var_name_of_objn (shortname obj.cls),
Cty_id ((cname_of_name (shortname obj.cls)) ^ "_out"))
(List.filter (fun obj -> not (is_op obj.cls)) objs)) in
(** Controllable variables valuations *)
let use_ctrlr, ctrlr_calls =