mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 17:45:29 +00:00
f89de73110
The macro expansions of qdict_put_TYPE() and qlist_append_TYPE() need qbool.h, qnull.h, qnum.h and qstring.h to compile. We include qnull.h and qnum.h in the headers, but not qbool.h and qstring.h. Works, because we include those wherever the macros get used. Open-coding these helpers is of dubious value. Turn them into functions and drop the includes from the headers. This cleanup makes the number of objects depending on qapi/qmp/qnum.h from 4551 (out of 4743) to 46 in my "build everything" tree. For qapi/qmp/qnull.h, the number drops from 4552 to 21. Backports commit 15280c360e54a65e2c7be1a47bfbe41dce1ef986 from qemu |
||
---|---|---|
.. | ||
Makefile.objs | ||
qbool.c | ||
qdict.c | ||
qlist.c | ||
qlit.c | ||
qnull.c | ||
qnum.c | ||
qobject.c | ||
qstring.c |