[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 05/15] qapi: Use IGNORE_ERRORS instead of NULL on gene
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [RFC 05/15] qapi: Use IGNORE_ERRORS instead of NULL on generated code |
Date: |
Tue, 13 Jun 2017 13:53:03 -0300 |
Signed-off-by: Eduardo Habkost <address@hidden>
---
scripts/qapi-commands.py | 6 +++---
scripts/qapi-types.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py
index 1943de4852..afa58915ba 100644
--- a/scripts/qapi-commands.py
+++ b/scripts/qapi-commands.py
@@ -75,7 +75,7 @@ static void qmp_marshal_output_%(c_name)s(%(c_type)s ret_in,
QObject **ret_out,
error_propagate(errp, err);
visit_free(v);
v = qapi_dealloc_visitor_new();
- visit_type_%(c_name)s(v, "unused", &ret_in, NULL);
+ visit_type_%(c_name)s(v, "unused", &ret_in, IGNORE_ERRORS);
visit_free(v);
}
''',
@@ -162,7 +162,7 @@ out:
''')
if have_args:
- visit_members = ('visit_type_%s_members(v, &arg, NULL);'
+ visit_members = ('visit_type_%s_members(v, &arg, IGNORE_ERRORS);'
% arg_type.c_name())
else:
visit_members = ''
@@ -173,7 +173,7 @@ out:
ret += mcgen('''
v = qapi_dealloc_visitor_new();
- visit_start_struct(v, NULL, NULL, 0, NULL);
+ visit_start_struct(v, NULL, NULL, 0, IGNORE_ERRORS);
%(visit_members)s
visit_end_struct(v, NULL);
visit_free(v);
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
index 814ac672be..ab78fa56e9 100644
--- a/scripts/qapi-types.py
+++ b/scripts/qapi-types.py
@@ -157,7 +157,7 @@ void qapi_free_%(c_name)s(%(c_name)s *obj)
}
v = qapi_dealloc_visitor_new();
- visit_type_%(c_name)s(v, NULL, &obj, NULL);
+ visit_type_%(c_name)s(v, NULL, &obj, IGNORE_ERRORS);
visit_free(v);
}
''',
--
2.11.0.259.g40922b1
- [Qemu-devel] [RFC 00/15] Error API: Flag errors in *errp even if errors are being ignored, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 02/15] error: New IGNORE_ERRORS macro, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 01/15] tests: Test cases for error API, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 03/15] Add qapi/error.h includes on files that will need it, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 05/15] qapi: Use IGNORE_ERRORS instead of NULL on generated code,
Eduardo Habkost <=
- [Qemu-devel] [RFC 06/15] test-qapi-util: Use IGNORE_ERRORS instead of NULL, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 08/15] error: New ERR_IS_* macros for checking Error** values, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 07/15] Manual changes to use IGNORE_ERRORS instead of NULL, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 10/15] test-qapi-util: Use ERR_IS_* macros, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 11/15] Manual changes to use ERR_IS_* macros, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 09/15] [coccinelle] Use ERR_IS_* macros, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 12/15] error: Make IGNORED_ERRORS not a NULL pointer, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 13/15] rdma: Simplify var declaration to avoid confusing Coccinelle, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 04/15] [coccinelle] Use IGNORE_ERRORS instead of NULL as errp argument, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 14/15] [coccinelle] Eliminate unnecessary local_err/error_propagate() usage, Eduardo Habkost, 2017/06/13