mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
qapi/qlist: Add qlist_append_null() macro
Besides the macro itself, this patch also adds a corresponding Coccinelle rule. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Message-id: 20171114180128.17076-3-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
84be629d55
commit
254bf807e5
2 changed files with 6 additions and 0 deletions
|
@ -41,4 +41,7 @@ expression Obj, E;
|
|||
|
|
||||
- qlist_append(Obj, qstring_from_str(E));
|
||||
+ qlist_append_str(Obj, E);
|
||||
|
|
||||
- qlist_append(Obj, qnull());
|
||||
+ qlist_append_null(Obj);
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue