qemu-e2k/qobject
Markus Armbruster 15280c360e 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.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180201111846.21846-10-armbru@redhat.com>
2018-02-09 13:52:15 +01:00
..
Makefile.objs qlit: move qlit from check-qjson to qobject/ 2017-09-04 13:09:11 +02:00
json-lexer.c json: learn to parse uint64 numbers 2017-06-20 14:31:31 +02:00
json-parser.c qdict qlist: Make most helper macros functions 2018-02-09 13:52:15 +01:00
json-streamer.c json-streamer: fix double-free on exiting during a parse 2016-07-12 18:31:27 +02:00
qbool.c qapi: Add qobject_is_equal() 2017-11-17 18:21:30 +01:00
qdict.c qdict qlist: Make most helper macros functions 2018-02-09 13:52:15 +01:00
qjson.c qdict qlist: Make most helper macros functions 2018-02-09 13:52:15 +01:00
qlist.c qdict qlist: Make most helper macros functions 2018-02-09 13:52:15 +01:00
qlit.c qdict qlist: Make most helper macros functions 2018-02-09 13:52:15 +01:00
qnull.c qapi: Add qobject_is_equal() 2017-11-17 18:21:30 +01:00
qnum.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
qobject.c qdict qlist: Make most helper macros functions 2018-02-09 13:52:15 +01:00
qstring.c qapi: Add qobject_is_equal() 2017-11-17 18:21:30 +01:00