include: Move fprintf_function to disas/
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Apr 2019 19:18:05 +0000 (21:18 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 18 Apr 2019 20:18:59 +0000 (22:18 +0200)
commitede9a8a656c992deecce45f8175985dd81cc6be9
tree83f13e3180d7aca21bed07e1632a162c0b6a00f2
parent3979fca4b69fc31c372687cd0bb6950592f248bd
include: Move fprintf_function to disas/

The previous commits have eliminated fprintf_function outside
disassemblers, simplifying code and cleaning up the ugly type-punning
fprintf_function seems to attract.  Move fprintf_function to
include/disas/dis-asm.h to reduce the temptation to abuse it.

I considered renaming it to fprintf_ftype (reverting that part of
commit 6e2d864edf5, v0.14.0) to get us closer to binutils, but I
figure the fork is too distant to make this worthwhile.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190417191805.28198-18-armbru@redhat.com>
include/disas/dis-asm.h
include/qemu/fprintf-fn.h [deleted file]