unicorn/qemu/qobject
Markus Armbruster f89de73110
qdict qlist: Make most helper macros functions
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
2018-03-08 08:30:10 -05:00
..
Makefile.objs qlit: move qlit from check-qjson to qobject/ 2018-03-07 17:08:17 -05:00
qbool.c
qdict.c qdict qlist: Make most helper macros functions 2018-03-08 08:30:10 -05:00
qlist.c qdict qlist: Make most helper macros functions 2018-03-08 08:30:10 -05:00
qlit.c qlit: Tighten QLit list vs QList comparison 2018-03-07 21:10:40 -05:00
qnull.c qapi: Separate type QNull from QObject 2018-03-07 16:43:51 -05:00
qnum.c Include qapi/error.h exactly where needed 2018-03-07 12:26:38 -05:00
qobject.c qdict qlist: Make most helper macros functions 2018-03-08 08:30:10 -05:00
qstring.c