mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 06:16:00 +01:00
Remove use of FOREACH macros
This commit is contained in:
parent
6170d701dc
commit
63c8c3f3e9
1 changed files with 24 additions and 27 deletions
|
@ -523,13 +523,10 @@ handle_method_call(GDBusConnection* UNUSED(connection), const gchar* UNUSED(send
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void json_document_info_add_node(JsonBuilder* builder, girara_tree_node_t* index) {
|
||||||
json_document_info_add_node(JsonBuilder* builder, girara_tree_node_t* index)
|
|
||||||
{
|
|
||||||
girara_list_t* list = girara_node_get_children(index);
|
girara_list_t* list = girara_node_get_children(index);
|
||||||
|
for (size_t idx = 0; idx != girara_list_size(list); ++idx) {
|
||||||
GIRARA_LIST_FOREACH_BODY(
|
girara_tree_node_t* node = girara_list_nth(list, idx);
|
||||||
list, girara_tree_node_t*, node, do {
|
|
||||||
zathura_index_element_t* index_element = girara_node_get_data(node);
|
zathura_index_element_t* index_element = girara_node_get_data(node);
|
||||||
|
|
||||||
json_builder_begin_object(builder);
|
json_builder_begin_object(builder);
|
||||||
|
@ -553,7 +550,7 @@ json_document_info_add_node(JsonBuilder* builder, girara_tree_node_t* index)
|
||||||
json_builder_end_array(builder);
|
json_builder_end_array(builder);
|
||||||
}
|
}
|
||||||
json_builder_end_object(builder);
|
json_builder_end_object(builder);
|
||||||
} while (0););
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static GVariant*
|
static GVariant*
|
||||||
|
|
Loading…
Reference in a new issue