Skip to content
Snippets Groups Projects
Commit d646bfaa authored by Erwan Jahier's avatar Erwan Jahier
Browse files

Change the way struct type des are printed.

e.g., instead of

        type toto = toto { ... };

we now print

        type toto = struct { ... };
parent 00d2f89b
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ and string_def_of_type_eff = function
None -> ""
| Some ce -> " (" ^ (string_of_const_eff ce) ^ ")"
in
(Ident.string_of_long name)^
"struct " ^
(List.fold_left (f "; ") (f "" " {" (List.hd fl)) (List.tl fl)) ^ "}"
| Any -> "a"
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment