mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 09:35:40 +00:00
Include qapi/qmp/qdict.h exactly where needed
This cleanup makes the number of objects depending on qapi/qmp/qdict.h drop from 4550 (out of 4743) to 368 in my "build everything" tree. For qapi/qmp/qobject.h, the number drops from 4552 to 390. While there, separate #include from file comment with a blank line. Backports commit 452fcdbc49c59884c8c284268d64baa24fea11e1 from qemu
This commit is contained in:
parent
1496dddeab
commit
6a71ff06ca
|
@ -207,6 +207,7 @@ fdef.write(mcgen('''
|
|||
#include "%(prefix)sqapi-event.h"
|
||||
#include "%(prefix)sqapi-visit.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qobject-output-visitor.h"
|
||||
#include "qapi/qmp-event.h"
|
||||
|
||||
|
@ -214,7 +215,6 @@ fdef.write(mcgen('''
|
|||
prefix=prefix))
|
||||
|
||||
fdecl.write(mcgen('''
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "%(prefix)sqapi-types.h"
|
||||
|
||||
''',
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "sysemu/cpus.h"
|
||||
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qerror.h"
|
||||
|
||||
#include "qapi-visit.h"
|
||||
|
|
Loading…
Reference in a new issue