unicorn/qemu/include/qapi
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
..
qmp qdict qlist: Make most helper macros functions 2018-03-08 08:30:10 -05:00
clone-visitor.h qapi: New QAPI_CLONE_MEMBERS() 2018-03-03 17:36:02 -05:00
dealloc-visitor.h qapi: Add new visit_free() function 2018-02-25 01:05:41 -05:00
error.h error: error_setg_errno(): errno gets preserved 2018-03-01 23:38:25 -05:00
qobject-input-visitor.h qapi: merge QInt and QFloat in QNum 2018-03-03 18:16:28 -05:00
qobject-output-visitor.h qapi: merge QInt and QFloat in QNum 2018-03-03 18:16:28 -05:00
string-input-visitor.h string-input-visitor: Favor new visit_free() function 2018-02-25 01:08:04 -05:00
visitor-impl.h qapi: Use QNull for a more regular visit_type_null() 2018-03-07 16:50:16 -05:00
visitor.h qapi: Use QNull for a more regular visit_type_null() 2018-03-07 16:50:16 -05:00