mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
qapi: Mechanically convert FOO_lookup[...] to FOO_str(...)
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1503564371-26090-14-git-send-email-armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
5b5f825d44
commit
977c736f80
45 changed files with 121 additions and 121 deletions
|
|
@ -385,7 +385,7 @@ static void test_visitor_in_enum(TestInputVisitorData *data,
|
|||
for (i = 0; i < ENUM_ONE__MAX; i++) {
|
||||
EnumOne res = -1;
|
||||
|
||||
v = visitor_input_test_init(data, "%s", EnumOne_lookup[i]);
|
||||
v = visitor_input_test_init(data, "%s", EnumOne_str(i));
|
||||
|
||||
visit_type_EnumOne(v, NULL, &res, &error_abort);
|
||||
g_assert_cmpint(i, ==, res);
|
||||
|
|
@ -699,7 +699,7 @@ static void test_native_list_integer_helper(TestInputVisitorData *data,
|
|||
}
|
||||
}
|
||||
g_string_append_printf(gstr_union, "{ 'type': '%s', 'data': [ %s ] }",
|
||||
UserDefNativeListUnionKind_lookup[kind],
|
||||
UserDefNativeListUnionKind_str(kind),
|
||||
gstr_list->str);
|
||||
v = visitor_input_test_init_raw(data, gstr_union->str);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue