summaryrefslogtreecommitdiffstats
path: root/include/qemu/fprintf-fn.h
diff options
context:
space:
mode:
authorMarkus Armbruster2019-04-17 21:18:05 +0200
committerMarkus Armbruster2019-04-18 22:18:59 +0200
commitede9a8a656c992deecce45f8175985dd81cc6be9 (patch)
tree83f13e3180d7aca21bed07e1632a162c0b6a00f2 /include/qemu/fprintf-fn.h
parentdisas: Rename include/disas/bfd.h back to include/disas/dis-asm.h (diff)
downloadqemu-ede9a8a656c992deecce45f8175985dd81cc6be9.tar.gz
qemu-ede9a8a656c992deecce45f8175985dd81cc6be9.tar.xz
qemu-ede9a8a656c992deecce45f8175985dd81cc6be9.zip
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>
Diffstat (limited to 'include/qemu/fprintf-fn.h')
-rw-r--r--include/qemu/fprintf-fn.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/qemu/fprintf-fn.h b/include/qemu/fprintf-fn.h
deleted file mode 100644
index 9068a960b3..0000000000
--- a/include/qemu/fprintf-fn.h
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- * Typedef for fprintf-alike function pointers.
- *
- * This work is licensed under the terms of the GNU GPL, version 2 or later.
- * See the COPYING file in the top-level directory.
- */
-
-#ifndef QEMU_FPRINTF_FN_H
-#define QEMU_FPRINTF_FN_H
-
-typedef int (*fprintf_function)(FILE *f, const char *fmt, ...)
- GCC_FMT_ATTR(2, 3);
-
-#endif