Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fix TCompLoop printing being stateful" #160

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/cil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4624,16 +4624,13 @@ class plainCilPrinterClass =
self#pAttrs comp.cattr
else begin
H.add donecomps comp.ckey (); (* Add it before we do the fields *)
let doc = dprintf "TComp(@[%s %s,@?%a,@?%a,@?%a@])"
dprintf "TComp(@[%s %s,@?%a,@?%a,@?%a@])"
(if comp.cstruct then "struct" else "union") comp.cname
(docList ~sep:(chr ',' ++ break)
(fun f -> dprintf "%s : %a" f.fname self#pOnlyType f.ftype))
comp.cfields
self#pAttrs comp.cattr
self#pAttrs a
in
H.remove donecomps comp.ckey; (* Remove it after we do the fields, so printer doesn't have global state *)
doc
end
| TBuiltin_va_list a ->
dprintf "TBuiltin_va_list(%a)" self#pAttrs a
Expand Down
Loading