list 527 daemons/controld/controld_execd.c GString *list = NULL; list 566 daemons/controld/controld_execd.c if (list == NULL) { list 568 daemons/controld/controld_execd.c pcmk__add_word(&list, 256, " "); list 570 daemons/controld/controld_execd.c pcmk__add_word(&list, 0, param->rap_name); list 590 daemons/controld/controld_execd.c if (list != NULL) { list 592 daemons/controld/controld_execd.c pcmk__add_word(&list, 0, " "); list 594 daemons/controld/controld_execd.c return list; list 601 daemons/controld/controld_execd.c GString *list = NULL; list 614 daemons/controld/controld_execd.c list = build_parameter_list(op, metadata, ra_param_reloadable, list 624 daemons/controld/controld_execd.c list = build_parameter_list(op, metadata, ra_param_unique, &restart); list 635 daemons/controld/controld_execd.c (list == NULL)? "" : (const char *) list->str); list 638 daemons/controld/controld_execd.c if ((list != NULL) && (list->len > 0)) { list 639 daemons/controld/controld_execd.c crm_trace("%s: %s, %s", op->rsc_id, digest, (const char *) list->str); list 644 daemons/controld/controld_execd.c if (list != NULL) { list 645 daemons/controld/controld_execd.c g_string_free(list, TRUE); list 655 daemons/controld/controld_execd.c GString *list = NULL; list 666 daemons/controld/controld_execd.c list = build_parameter_list(op, metadata, ra_param_private, &secure); list 668 daemons/controld/controld_execd.c if (list != NULL) { list 670 daemons/controld/controld_execd.c crm_xml_add(update, XML_LRM_ATTR_OP_SECURE, (const char *) list->str); list 673 daemons/controld/controld_execd.c crm_trace("%s: %s, %s", op->rsc_id, digest, (const char *) list->str); list 674 daemons/controld/controld_execd.c g_string_free(list, TRUE); list 88 daemons/controld/controld_remote_ra.c static GList *fail_all_monitor_cmds(GList * list); list 954 daemons/controld/controld_remote_ra.c fail_all_monitor_cmds(GList * list) list 960 daemons/controld/controld_remote_ra.c for (gIter = list; gIter != NULL; gIter = gIter->next) { list 976 daemons/controld/controld_remote_ra.c list = g_list_remove(list, cmd); list 982 daemons/controld/controld_remote_ra.c return list; list 986 daemons/controld/controld_remote_ra.c remove_cmd(GList * list, const char *action, guint interval_ms) list 991 daemons/controld/controld_remote_ra.c for (gIter = list; gIter != NULL; gIter = gIter->next) { list 1000 daemons/controld/controld_remote_ra.c list = g_list_remove(list, cmd); list 1003 daemons/controld/controld_remote_ra.c return list; list 342 daemons/execd/cts-exec-helper.c lrmd_list_t *list = NULL; list 345 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, options.class, options.provider); list 349 daemons/execd/cts-exec-helper.c for (iter = list; iter != NULL; iter = iter->next) { list 352 daemons/execd/cts-exec-helper.c lrmd_list_freeall(list); list 359 daemons/execd/cts-exec-helper.c lrmd_list_t *list = NULL; list 362 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, options.type, &list); list 366 daemons/execd/cts-exec-helper.c for (iter = list; iter != NULL; iter = iter->next) { list 369 daemons/execd/cts-exec-helper.c lrmd_list_freeall(list); list 377 daemons/execd/cts-exec-helper.c lrmd_list_t *list = NULL; list 380 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_standards(lrmd_conn, &list); list 384 daemons/execd/cts-exec-helper.c for (iter = list; iter != NULL; iter = iter->next) { list 387 daemons/execd/cts-exec-helper.c lrmd_list_freeall(list); list 281 daemons/fenced/cts-fence-helper.c single_test(st->cmds->list(st, st_opts, "test-id", NULL, 1), "list", 1, 0); list 353 daemons/fenced/cts-fence-helper.c rc = st->cmds->list(st, st_opts, "test-id", &tmp, 10); list 1904 daemons/fenced/fenced_commands.c list_to_string(GList *list, const char *delim, gboolean terminate_with_delim) list 1906 daemons/fenced/fenced_commands.c int max = g_list_length(list); list 1912 daemons/fenced/fenced_commands.c for (gIter = list; gIter != NULL; gIter = gIter->next) { list 1922 daemons/fenced/fenced_commands.c for (gIter = list; gIter != NULL; gIter = gIter->next) { list 2393 daemons/fenced/fenced_commands.c xmlNode *list = NULL; list 2407 daemons/fenced/fenced_commands.c list = create_xml_node(NULL, __func__); list 2408 daemons/fenced/fenced_commands.c crm_xml_add(list, F_STONITH_TARGET, query->target); list 2421 daemons/fenced/fenced_commands.c dev = create_xml_node(list, F_STONITH_DEVICE); list 2467 daemons/fenced/fenced_commands.c crm_xml_add_int(list, F_STONITH_AVAILABLE_DEVICES, available_devices); list 2477 daemons/fenced/fenced_commands.c if (list != NULL) { list 2478 daemons/fenced/fenced_commands.c crm_log_xml_trace(list, "Add query results"); list 2479 daemons/fenced/fenced_commands.c add_message_xml(query->reply, F_STONITH_CALLDATA, list); list 2492 daemons/fenced/fenced_commands.c free_xml(list); list 297 include/crm/common/internal.h pcmk__list_of_1(GList *list) list 299 include/crm/common/internal.h return list && (list->next == NULL); list 304 include/crm/common/internal.h pcmk__list_of_multiple(GList *list) list 306 include/crm/common/internal.h return list && (list->next != NULL); list 36 include/crm/common/nvpair.h GSList *pcmk_sort_nvpairs(GSList *list); list 38 include/crm/common/nvpair.h void pcmk_nvpairs2xml_attrs(GSList *list, xmlNode *xml); list 40 include/crm/common/strings_internal.h void pcmk__add_separated_word(GString **list, size_t init_size, list 155 include/crm/common/strings_internal.h pcmk__add_word(GString **list, size_t init_size, const char *word) list 157 include/crm/common/strings_internal.h return pcmk__add_separated_word(list, init_size, word, " "); list 246 include/crm/pengine/internal.h pe_node_t *native_location(const pe_resource_t *rsc, GList **list, int current); list 373 include/crm/pengine/internal.h extern void node_list_exclude(GHashTable * list, GList *list2, gboolean merge_scores); list 375 include/crm/pengine/internal.h GHashTable *pe__node_list2table(GList *list); list 295 include/crm/stonith-ng.h int (*list)(stonith_t *stonith, int call_options, const char *id, list 25 include/pcmki/pcmki_sched_utils.h GList *pcmk__copy_node_list(const GList *list, bool reset); list 439 lib/cib/cib_client.c GList *list = cib->notify_list; list 441 lib/cib/cib_client.c while (list != NULL) { list 442 lib/cib/cib_client.c cib_notify_client_t *client = g_list_nth_data(list, 0); list 444 lib/cib/cib_client.c list = g_list_remove(list, client); list 146 lib/common/nvpair.c pcmk_sort_nvpairs(GSList *list) list 148 lib/common/nvpair.c return g_slist_sort(list, pcmk__compare_nvpair); list 201 lib/common/nvpair.c pcmk_nvpairs2xml_attrs(GSList *list, xmlNode *xml) list 203 lib/common/nvpair.c g_slist_foreach(list, pcmk__nvpair_add_xml_attr, xml); list 703 lib/common/strings.c pcmk__add_separated_word(GString **list, size_t init_size, const char *word, list 706 lib/common/strings.c CRM_ASSERT(list != NULL); list 712 lib/common/strings.c if (*list == NULL) { list 714 lib/common/strings.c *list = g_string_sized_new(init_size); list 716 lib/common/strings.c *list = g_string_new(NULL); list 720 lib/common/strings.c if ((*list)->len == 0) { list 729 lib/common/strings.c g_string_append(*list, separator); list 730 lib/common/strings.c g_string_append(*list, word); list 17 lib/common/tests/strings/pcmk__add_word_test.c GString *list = NULL; list 19 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_word(&list, 16, "hello"); list 20 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_word(&list, 16, "world"); list 21 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, "hello world"), 0); list 22 lib/common/tests/strings/pcmk__add_word_test.c g_string_free(list, TRUE); list 28 lib/common/tests/strings/pcmk__add_word_test.c GString *list = NULL; list 30 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_word(&list, 0, "hello"); list 31 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_word(&list, 0, "world"); list 32 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, "hello world"), 0); list 33 lib/common/tests/strings/pcmk__add_word_test.c g_string_free(list, TRUE); list 39 lib/common/tests/strings/pcmk__add_word_test.c GString *list = NULL; list 41 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_word(&list, 0, "hello"); list 42 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_word(&list, 0, NULL); list 43 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_word(&list, 0, ""); list 44 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, "hello"), 0); list 45 lib/common/tests/strings/pcmk__add_word_test.c g_string_free(list, TRUE); list 51 lib/common/tests/strings/pcmk__add_word_test.c GString *list = NULL; list 53 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_separated_word(&list, 32, "hello", NULL); list 54 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_separated_word(&list, 32, "world", NULL); list 55 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_separated_word(&list, 32, "I am a unit test", NULL); list 56 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, list 58 lib/common/tests/strings/pcmk__add_word_test.c g_string_free(list, TRUE); list 64 lib/common/tests/strings/pcmk__add_word_test.c GString *list = NULL; list 66 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_separated_word(&list, 32, "hello", ","); list 67 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_separated_word(&list, 32, "world", ","); list 68 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_separated_word(&list, 32, "I am a unit test", ","); list 69 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, list 71 lib/common/tests/strings/pcmk__add_word_test.c g_string_free(list, TRUE); list 77 lib/common/tests/strings/pcmk__add_word_test.c GString *list = NULL; list 79 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_separated_word(&list, 32, "hello", ", "); list 80 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_separated_word(&list, 32, "world", ", "); list 81 lib/common/tests/strings/pcmk__add_word_test.c pcmk__add_separated_word(&list, 32, "I am a unit test", ", "); list 82 lib/common/tests/strings/pcmk__add_word_test.c assert_int_equal(strcmp((const char *) list->str, list 84 lib/common/tests/strings/pcmk__add_word_test.c g_string_free(list, TRUE); list 26 lib/common/tests/strings/pcmk__str_in_list_test.c GList *list = NULL; list 28 lib/common/tests/strings/pcmk__str_in_list_test.c list = g_list_prepend(list, (gpointer) "xxx"); list 30 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list(NULL, list, pcmk__str_none)); list 31 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list(NULL, list, pcmk__str_null_matches)); list 32 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list("", list, pcmk__str_none)); list 33 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list("", list, pcmk__str_null_matches)); list 35 lib/common/tests/strings/pcmk__str_in_list_test.c g_list_free(list); list 40 lib/common/tests/strings/pcmk__str_in_list_test.c GList *list = NULL; list 42 lib/common/tests/strings/pcmk__str_in_list_test.c list = g_list_prepend(list, (gpointer) "*"); list 43 lib/common/tests/strings/pcmk__str_in_list_test.c list = g_list_append(list, (gpointer) "more"); list 45 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list("xxx", list, pcmk__str_star_matches)); list 46 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list("yyy", list, pcmk__str_star_matches)); list 47 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list("XXX", list, pcmk__str_star_matches|pcmk__str_casei)); list 48 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list("", list, pcmk__str_star_matches)); list 50 lib/common/tests/strings/pcmk__str_in_list_test.c g_list_free(list); list 55 lib/common/tests/strings/pcmk__str_in_list_test.c GList *list = NULL; list 57 lib/common/tests/strings/pcmk__str_in_list_test.c list = g_list_prepend(list, (gpointer) "*"); list 59 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list("xxx", list, pcmk__str_none)); list 60 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list("yyy", list, pcmk__str_none)); list 61 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list("XXX", list, pcmk__str_casei)); list 62 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list("", list, pcmk__str_none)); list 63 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list(NULL, list, pcmk__str_star_matches)); list 65 lib/common/tests/strings/pcmk__str_in_list_test.c g_list_free(list); list 70 lib/common/tests/strings/pcmk__str_in_list_test.c GList *list = NULL; list 72 lib/common/tests/strings/pcmk__str_in_list_test.c list = g_list_prepend(list, (gpointer) "xxx"); list 73 lib/common/tests/strings/pcmk__str_in_list_test.c list = g_list_prepend(list, (gpointer) "yyy"); list 74 lib/common/tests/strings/pcmk__str_in_list_test.c list = g_list_prepend(list, (gpointer) "zzz"); list 76 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list("xxx", list, pcmk__str_none)); list 77 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list("XXX", list, pcmk__str_casei)); list 78 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list("yyy", list, pcmk__str_none)); list 79 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list("YYY", list, pcmk__str_casei)); list 80 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list("zzz", list, pcmk__str_none)); list 81 lib/common/tests/strings/pcmk__str_in_list_test.c assert_true(pcmk__str_in_list("ZZZ", list, pcmk__str_casei)); list 83 lib/common/tests/strings/pcmk__str_in_list_test.c g_list_free(list); list 88 lib/common/tests/strings/pcmk__str_in_list_test.c GList *list = NULL; list 90 lib/common/tests/strings/pcmk__str_in_list_test.c list = g_list_prepend(list, (gpointer) "xxx"); list 91 lib/common/tests/strings/pcmk__str_in_list_test.c list = g_list_prepend(list, (gpointer) "yyy"); list 93 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list("xx", list, pcmk__str_none)); list 94 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list("XXX", list, pcmk__str_none)); list 95 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list("zzz", list, pcmk__str_none)); list 96 lib/common/tests/strings/pcmk__str_in_list_test.c assert_false(pcmk__str_in_list("zzz", list, pcmk__str_casei)); list 98 lib/common/tests/strings/pcmk__str_in_list_test.c g_list_free(list); list 176 lib/fencing/st_client.c char *list = NULL; list 191 lib/fencing/st_client.c int rc = stonith_api->cmds->list(stonith_api, st_opt_sync_call, STONITH_WATCHDOG_ID, &list, 0); list 192 lib/fencing/st_client.c if ((rc != pcmk_ok) || (list == NULL)) { list 203 lib/fencing/st_client.c } else if (list[0] == '\0') { list 206 lib/fencing/st_client.c GList *targets = stonith__parse_targets(list); list 210 lib/fencing/st_client.c free(list); list 419 lib/fencing/st_client.c GString *list = NULL; list 443 lib/fencing/st_client.c pcmk__add_separated_word(&list, 1024, device_list->value, ","); list 446 lib/fencing/st_client.c if (list != NULL) { list 447 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_DEVICES, (const char *) list->str); list 448 lib/fencing/st_client.c g_string_free(list, TRUE); list 1853 lib/fencing/st_client.c new_stonith->cmds->list = stonith_api_list; list 90 lib/lrmd/lrmd_alerts.c is_target_alert(char **list, const char *value) list 97 lib/lrmd/lrmd_alerts.c if (list == NULL) { list 101 lib/lrmd/lrmd_alerts.c target_list_num = g_strv_length(list); list 104 lib/lrmd/lrmd_alerts.c if (strcmp(list[cnt], value) == 0) { list 17 lib/lrmd/lrmd_output.c default_list(pcmk__output_t *out, lrmd_list_t *list, const char *title) { list 22 lib/lrmd/lrmd_output.c for (iter = list; iter != NULL; iter = iter->next) { list 27 lib/lrmd/lrmd_output.c lrmd_list_freeall(list); list 32 lib/lrmd/lrmd_output.c xml_list(pcmk__output_t *out, lrmd_list_t *list, const char *ele) { list 35 lib/lrmd/lrmd_output.c for (iter = list; iter != NULL; iter = iter->next) { list 39 lib/lrmd/lrmd_output.c lrmd_list_freeall(list); list 46 lib/lrmd/lrmd_output.c lrmd_list_t *list = va_arg(args, lrmd_list_t *); list 52 lib/lrmd/lrmd_output.c return xml_list(out, list, "provider"); list 58 lib/lrmd/lrmd_output.c lrmd_list_t *list = va_arg(args, lrmd_list_t *); list 61 lib/lrmd/lrmd_output.c return default_list(out, list, "Providers"); list 67 lib/lrmd/lrmd_output.c lrmd_list_t *list = va_arg(args, lrmd_list_t *); list 79 lib/lrmd/lrmd_output.c return xml_list(out, list, "agent"); list 85 lib/lrmd/lrmd_output.c lrmd_list_t *list = va_arg(args, lrmd_list_t *); list 92 lib/lrmd/lrmd_output.c rc = default_list(out, list, title); list 100 lib/lrmd/lrmd_output.c lrmd_list_t *list = va_arg(args, lrmd_list_t *); list 111 lib/lrmd/lrmd_output.c return xml_list(out, list, "provider"); list 117 lib/lrmd/lrmd_output.c lrmd_list_t *list = va_arg(args, lrmd_list_t *); list 120 lib/lrmd/lrmd_output.c return default_list(out, list, "Providers"); list 126 lib/lrmd/lrmd_output.c lrmd_list_t *list = va_arg(args, lrmd_list_t *); list 128 lib/lrmd/lrmd_output.c return default_list(out, list, "Standards"); list 483 lib/pacemaker/libpacemaker_private.h void pcmk__order_after_each(pe_action_t *after, GList *list); list 401 lib/pacemaker/pcmk_fence.c rc = st->cmds->list(st, st_opts, device_id, &lists, timeout/1000); list 71 lib/pacemaker/pcmk_output.c GList *list = rsc->rsc_location; list 74 lib/pacemaker/pcmk_output.c for (lpc = list; lpc != NULL; lpc = lpc->next) { list 520 lib/pacemaker/pcmk_output.c GList *list = rsc->rsc_location; list 523 lib/pacemaker/pcmk_output.c for (lpc = list; lpc != NULL; lpc = lpc->next) { list 92 lib/pacemaker/pcmk_sched_allocate.c GList *list = pe__resource_actions(rsc, node, CRM_OP_CLEAR_FAILCOUNT, TRUE); list 94 lib/pacemaker/pcmk_sched_allocate.c if (list != NULL) { list 95 lib/pacemaker/pcmk_sched_allocate.c g_list_free(list); list 500 lib/pacemaker/pcmk_sched_allocate.c add_nondc_fencing(GList *list, pe_action_t *action, pe_working_set_t *data_set) list 503 lib/pacemaker/pcmk_sched_allocate.c && (list != NULL)) { list 509 lib/pacemaker/pcmk_sched_allocate.c order_actions((pe_action_t *) list->data, action, pe_order_optional); list 511 lib/pacemaker/pcmk_sched_allocate.c return g_list_prepend(list, action); list 95 lib/pacemaker/pcmk_sched_nodes.c pcmk__copy_node_list(const GList *list, bool reset) list 99 lib/pacemaker/pcmk_sched_nodes.c for (const GList *gIter = list; gIter != NULL; gIter = gIter->next) { list 1192 lib/pacemaker/pcmk_sched_ordering.c GList *list = find_actions(rsc->actions, original_key, NULL); list 1194 lib/pacemaker/pcmk_sched_ordering.c if (list == NULL) { list 1202 lib/pacemaker/pcmk_sched_ordering.c list = find_actions(rsc->actions, key, NULL); list 1209 lib/pacemaker/pcmk_sched_ordering.c return list; list 1421 lib/pacemaker/pcmk_sched_ordering.c pcmk__order_after_each(pe_action_t *after, GList *list) list 1425 lib/pacemaker/pcmk_sched_ordering.c for (GList *iter = list; iter != NULL; iter = iter->next) { list 879 lib/pacemaker/pcmk_sched_promotable.c GList *list = NULL; list 889 lib/pacemaker/pcmk_sched_promotable.c chosen = instance->fns->location(instance, &list, FALSE); list 890 lib/pacemaker/pcmk_sched_promotable.c if (pcmk__list_of_multiple(list)) { list 894 lib/pacemaker/pcmk_sched_promotable.c g_list_free(list); list 104 lib/pengine/clone.c node_list_to_str(const GList *list) list 108 lib/pengine/clone.c for (const GList *iter = list; iter != NULL; iter = iter->next) { list 410 lib/pengine/clone.c short_print(const char *list, const char *prefix, const char *type, list 417 lib/pengine/clone.c if (!pcmk__str_empty(list)) { list 421 lib/pengine/clone.c status_print("%s%s: [ %s ]%s", prefix, type, list, suffix); list 708 lib/pengine/clone.c GList *list = g_hash_table_get_values(rsc->allowed_nodes); list 715 lib/pengine/clone.c if (list == NULL) { list 719 lib/pengine/clone.c list = g_hash_table_get_values(rsc->known_on); list 722 lib/pengine/clone.c list = g_list_sort(list, pe__cmp_node_name); list 723 lib/pengine/clone.c for (nIter = list; nIter != NULL; nIter = nIter->next) { list 730 lib/pengine/clone.c g_list_free(list); list 1011 lib/pengine/clone.c GList *list = g_hash_table_get_values(rsc->allowed_nodes); list 1019 lib/pengine/clone.c if (list == NULL) { list 1023 lib/pengine/clone.c list = g_hash_table_get_values(rsc->known_on); list 1026 lib/pengine/clone.c list = g_list_sort(list, pe__cmp_node_name); list 1027 lib/pengine/clone.c for (nIter = list; nIter != NULL; nIter = nIter->next) { list 1055 lib/pengine/clone.c g_list_free(list); list 1059 lib/pengine/clone.c GList *list = sorted_hash_table_values(stopped); list 1063 lib/pengine/clone.c for (GList *status_iter = list; status_iter != NULL; status_iter = status_iter->next) { list 1079 lib/pengine/clone.c g_list_free(list); list 1068 lib/pengine/native.c native_location(const pe_resource_t *rsc, GList **list, int current) list 1100 lib/pengine/native.c if (list) { list 1106 lib/pengine/native.c if (*list == NULL || pe_find_node_id(*list, node->details->id) == NULL) { list 1107 lib/pengine/native.c *list = g_list_append(*list, node); list 116 lib/pengine/pe_notif.c get_node_names(GList *list, GString **all_node_names, GString **host_node_names) list 125 lib/pengine/pe_notif.c for (GList *iter = list; iter != NULL; iter = iter->next) { list 173 lib/pengine/pe_notif.c notify_entries_to_strings(GList *list, GString **rsc_names, list 187 lib/pengine/pe_notif.c list = g_list_sort(list, compare_notify_entries); list 189 lib/pengine/pe_notif.c for (GList *gIter = list; gIter != NULL; gIter = gIter->next) { list 228 lib/pengine/pe_notif.c return list; list 354 lib/pengine/rules.c xmlNode *list = nvpair_list; list 357 lib/pengine/rules.c name = crm_element_name(list->children); list 359 lib/pengine/rules.c list = list->children; list 362 lib/pengine/rules.c for (an_attr = pcmk__xe_first_child(list); an_attr != NULL; list 108 lib/pengine/utils.c node_list_exclude(GHashTable * hash, GList *list, gboolean merge_scores) list 112 lib/pengine/utils.c GList *gIter = list; list 120 lib/pengine/utils.c other_node = pe_find_node_id(list, node->details->id); list 151 lib/pengine/utils.c pe__node_list2table(GList *list) list 156 lib/pengine/utils.c for (GList *gIter = list; gIter != NULL; gIter = gIter->next) { list 216 lib/pengine/utils.c GList *list = g_list_sort(g_hash_table_get_values(nodes), list 219 lib/pengine/utils.c for (GList *gIter = list; gIter != NULL; gIter = gIter->next) { list 225 lib/pengine/utils.c g_list_free(list); list 478 lib/pengine/utils.c GList *list = NULL; list 507 lib/pengine/utils.c list = lh_action->actions_after; list 508 lib/pengine/utils.c list = g_list_prepend(list, wrapper); list 509 lib/pengine/utils.c lh_action->actions_after = list; list 514 lib/pengine/utils.c list = rh_action->actions_before; list 515 lib/pengine/utils.c list = g_list_prepend(list, wrapper); list 516 lib/pengine/utils.c rh_action->actions_before = list; list 1363 lib/services/services_linux.c GList *list = NULL; list 1370 lib/services/services_linux.c return list; list 1406 lib/services/services_linux.c list = g_list_append(list, strdup(namelist[lpc]->d_name)); list 1412 lib/services/services_linux.c return list; list 343 libltdl/loaders/preopen.c symlist_chain *list; list 348 libltdl/loaders/preopen.c for (list = preloaded_symlists; list; list = list->next) list 351 libltdl/loaders/preopen.c if ((originator && STREQ (list->symlist->name, originator)) list 352 libltdl/loaders/preopen.c || (!originator && STREQ (list->symlist->name, "@PROGRAM@"))) list 361 libltdl/loaders/preopen.c while ((symbol = &list->symlist[++idx])->name != 0) list 346 maint/gnulib/lib/bitset.c bitset_bindex list[BITSET_LIST_SIZE]; list 356 maint/gnulib/lib/bitset.c while ((num = bitset_list (src, list, BITSET_LIST_SIZE, &next))) list 92 maint/gnulib/lib/bitset.h bitset_bindex list[BITSET_LIST_SIZE]; list 323 maint/gnulib/lib/bitset.h && (ITER.num = bitset_list (BSET, ITER.list, \ list 326 maint/gnulib/lib/bitset.h ITER.i < ITER.num && ((INDEX) = ITER.list[ITER.i], 1); \ list 343 maint/gnulib/lib/bitset.h && (ITER.num = bitset_list_reverse (BSET, ITER.list, \ list 346 maint/gnulib/lib/bitset.h ITER.i < ITER.num && ((INDEX) = ITER.list[ITER.i], 1); \ list 49 maint/gnulib/lib/bitset/array.c abitset_small_list (bitset src, bitset_bindex *list, list 69 maint/gnulib/lib/bitset/array.c list[count++] = bitno + pos; list 73 maint/gnulib/lib/bitset/array.c list[count++] = bitno + pos; list 123 maint/gnulib/lib/bitset/array.c abitset_list_reverse (bitset src, bitset_bindex *list, list 152 maint/gnulib/lib/bitset/array.c list[count++] = bitoff + pos; list 173 maint/gnulib/lib/bitset/array.c abitset_list (bitset src, bitset_bindex *list, list 214 maint/gnulib/lib/bitset/array.c list[count++] = bitno + pos; list 235 maint/gnulib/lib/bitset/array.c list[count++] = bitoff + pos; list 239 maint/gnulib/lib/bitset/array.c list[count++] = bitoff + pos; list 152 maint/gnulib/lib/bitset/base.h bitset_bindex (*list) (bitset, bitset_bindex *, bitset_bindex, list 275 maint/gnulib/lib/bitset/base.h (BSET)->b.vtable->list (BSET, LIST, NUM, NEXT) list 559 maint/gnulib/lib/bitset/list.c lbitset_list_reverse (bitset bset, bitset_bindex *list, list 615 maint/gnulib/lib/bitset/list.c list[count++] = bitoff + pos; list 643 maint/gnulib/lib/bitset/list.c lbitset_list (bitset bset, bitset_bindex *list, list 694 maint/gnulib/lib/bitset/list.c list[count++] = bitno + pos; list 726 maint/gnulib/lib/bitset/list.c list[count++] = bitno + pos; list 733 maint/gnulib/lib/bitset/list.c list[count++] = bitno + pos; list 742 maint/gnulib/lib/bitset/list.c list[count++] = bitno + pos; list 758 maint/gnulib/lib/bitset/list.c list[count++] = bitno + pos; list 572 maint/gnulib/lib/bitset/stats.c bitset_stats_list (bitset bset, bitset_bindex *list, list 575 maint/gnulib/lib/bitset/stats.c bitset_bindex count = BITSET_LIST_ (bset->s.bset, list, num, next); list 614 maint/gnulib/lib/bitset/stats.c bitset_stats_list_reverse (bitset bset, bitset_bindex *list, list 617 maint/gnulib/lib/bitset/stats.c return BITSET_LIST_REVERSE_ (bset->s.bset, list, num, next); list 529 maint/gnulib/lib/bitset/table.c tbitset_list_reverse (bitset bset, bitset_bindex *list, list 571 maint/gnulib/lib/bitset/table.c list[count++] = bitoff + pos; list 598 maint/gnulib/lib/bitset/table.c tbitset_list (bitset bset, bitset_bindex *list, list 627 maint/gnulib/lib/bitset/table.c list[count++] = bitno + pos; list 664 maint/gnulib/lib/bitset/table.c list[count++] = bitno + pos; list 671 maint/gnulib/lib/bitset/table.c list[count++] = bitno + pos; list 680 maint/gnulib/lib/bitset/table.c list[count++] = bitno + pos; list 695 maint/gnulib/lib/bitset/table.c list[count++] = bitno + pos; list 152 maint/gnulib/lib/bitset/vector.c vbitset_list_reverse (bitset src, bitset_bindex *list, list 182 maint/gnulib/lib/bitset/vector.c list[count++] = bitoff + pos; list 203 maint/gnulib/lib/bitset/vector.c vbitset_list (bitset src, bitset_bindex *list, list 248 maint/gnulib/lib/bitset/vector.c list[count++] = bitno + pos; list 269 maint/gnulib/lib/bitset/vector.c list[count++] = bitoff + pos; list 273 maint/gnulib/lib/bitset/vector.c list[count++] = bitoff + pos; list 373 maint/gnulib/lib/clean-temp-simple.c gl_list_t list = file_cleanup_list; list 374 maint/gnulib/lib/clean-temp-simple.c if (list != NULL) list 376 maint/gnulib/lib/clean-temp-simple.c gl_list_node_t node = gl_list_search (list, absolute_file_name); list 379 maint/gnulib/lib/clean-temp-simple.c char *old_string = (char *) gl_list_node_value (list, node); list 381 maint/gnulib/lib/clean-temp-simple.c gl_list_remove_node (list, node); list 300 maint/gnulib/lib/clean-temp.c gl_list_t list = tmpdir->files; list 303 maint/gnulib/lib/clean-temp.c node = gl_list_search (list, absolute_file_name); list 306 maint/gnulib/lib/clean-temp.c char *old_string = (char *) gl_list_node_value (list, node); list 308 maint/gnulib/lib/clean-temp.c gl_list_remove_node (list, node); list 347 maint/gnulib/lib/clean-temp.c gl_list_t list = tmpdir->subdirs; list 350 maint/gnulib/lib/clean-temp.c node = gl_list_search (list, absolute_dir_name); list 353 maint/gnulib/lib/clean-temp.c char *old_string = (char *) gl_list_node_value (list, node); list 355 maint/gnulib/lib/clean-temp.c gl_list_remove_node (list, node); list 413 maint/gnulib/lib/clean-temp.c gl_list_t list; list 419 maint/gnulib/lib/clean-temp.c list = tmpdir->files; list 420 maint/gnulib/lib/clean-temp.c iter = gl_list_iterator (list); list 426 maint/gnulib/lib/clean-temp.c gl_list_remove_node (list, node); list 433 maint/gnulib/lib/clean-temp.c list = tmpdir->subdirs; list 434 maint/gnulib/lib/clean-temp.c iter = gl_list_iterator (list); list 440 maint/gnulib/lib/clean-temp.c gl_list_remove_node (list, node); list 699 maint/gnulib/lib/clean-temp.c gl_list_t list = descriptors; list 700 maint/gnulib/lib/clean-temp.c if (list == NULL) list 706 maint/gnulib/lib/clean-temp.c gl_list_iterator_t iter = gl_list_iterator (list); list 732 maint/gnulib/lib/clean-temp.c gl_list_remove_node (list, node_to_free); list 761 maint/gnulib/lib/clean-temp.c gl_list_t list = descriptors; list 762 maint/gnulib/lib/clean-temp.c if (list == NULL) list 768 maint/gnulib/lib/clean-temp.c gl_list_iterator_t iter = gl_list_iterator (list); list 794 maint/gnulib/lib/clean-temp.c gl_list_remove_node (list, node_to_free); list 76 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##init (struct DYNARRAY_STRUCT *list); list 82 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##free (struct DYNARRAY_STRUCT *list); list 88 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##has_failed (const struct DYNARRAY_STRUCT *list); list 95 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##mark_failed (struct DYNARRAY_STRUCT *list); list 102 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##size (const struct DYNARRAY_STRUCT *list); list 110 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##begin (const struct DYNARRAY_STRUCT *list); list 118 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##end (const struct DYNARRAY_STRUCT *list); list 125 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##at (struct DYNARRAY_STRUCT *list, size_t index); list 133 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##add (struct DYNARRAY_STRUCT *list, list 142 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##emplace (struct DYNARRAY_STRUCT *list); list 151 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##resize (struct DYNARRAY_STRUCT *list, size_t size); list 157 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##remove_last (struct DYNARRAY_STRUCT *list); list 164 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##clear (struct DYNARRAY_STRUCT *list); list 176 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##finalize (struct DYNARRAY_STRUCT *list, list 189 maint/gnulib/lib/dynarray.h DYNARRAY_PREFIX##finalize (struct DYNARRAY_STRUCT *list, list 987 maint/gnulib/lib/fnmatch_loop.c } *list = NULL; list 988 maint/gnulib/lib/fnmatch_loop.c struct patternlist **lastp = &list; list 1078 maint/gnulib/lib/fnmatch_loop.c assert (list != NULL); list 1095 maint/gnulib/lib/fnmatch_loop.c if (FCT (list->str, string, rs, no_leading_period, list 1118 maint/gnulib/lib/fnmatch_loop.c while ((list = list->next) != NULL); list 1135 maint/gnulib/lib/fnmatch_loop.c if (FCT (STRCAT (list->str, p), string, string_end, list 1141 maint/gnulib/lib/fnmatch_loop.c while ((list = list->next) != NULL); list 1152 maint/gnulib/lib/fnmatch_loop.c for (runp = list; runp != NULL; runp = runp->next) list 1184 maint/gnulib/lib/fnmatch_loop.c while (list != NULL) list 1186 maint/gnulib/lib/fnmatch_loop.c struct patternlist *old = list; list 1187 maint/gnulib/lib/fnmatch_loop.c list = list->next; list 84 maint/gnulib/lib/gl_anyavltree_list2.h struct gl_list_impl *list = list 87 maint/gnulib/lib/gl_anyavltree_list2.h if (list == NULL) list 90 maint/gnulib/lib/gl_anyavltree_list2.h list->base.vtable = implementation; list 91 maint/gnulib/lib/gl_anyavltree_list2.h list->base.equals_fn = equals_fn; list 92 maint/gnulib/lib/gl_anyavltree_list2.h list->base.hashcode_fn = hashcode_fn; list 93 maint/gnulib/lib/gl_anyavltree_list2.h list->base.dispose_fn = dispose_fn; list 94 maint/gnulib/lib/gl_anyavltree_list2.h list->base.allow_duplicates = allow_duplicates; list 100 maint/gnulib/lib/gl_anyavltree_list2.h list->table_size = next_prime (estimate); list 101 maint/gnulib/lib/gl_anyavltree_list2.h if (size_overflow_p (xtimes (list->table_size, sizeof (gl_hash_entry_t)))) list 103 maint/gnulib/lib/gl_anyavltree_list2.h list->table = list 104 maint/gnulib/lib/gl_anyavltree_list2.h (gl_hash_entry_t *) calloc (list->table_size, sizeof (gl_hash_entry_t)); list 105 maint/gnulib/lib/gl_anyavltree_list2.h if (list->table == NULL) list 111 maint/gnulib/lib/gl_anyavltree_list2.h list->root = create_subtree_with_contents (count, contents); list 112 maint/gnulib/lib/gl_anyavltree_list2.h if (list->root == NULL) list 114 maint/gnulib/lib/gl_anyavltree_list2.h list->root->parent = NULL; list 119 maint/gnulib/lib/gl_anyavltree_list2.h if (add_nodes_to_buckets (list) < 0) list 124 maint/gnulib/lib/gl_anyavltree_list2.h list->root = NULL; list 126 maint/gnulib/lib/gl_anyavltree_list2.h return list; list 130 maint/gnulib/lib/gl_anyavltree_list2.h free_subtree (list->root); list 134 maint/gnulib/lib/gl_anyavltree_list2.h free (list->table); list 137 maint/gnulib/lib/gl_anyavltree_list2.h free (list); list 146 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (gl_list_t list, list 182 maint/gnulib/lib/gl_anyavltree_list2.h nodep = &list->root; list 411 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_remove_node_from_tree (gl_list_t list, gl_list_node_t node) list 423 maint/gnulib/lib/gl_anyavltree_list2.h list->root = child; list 439 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, child, -1, parent); list 451 maint/gnulib/lib/gl_anyavltree_list2.h list->root = child; list 467 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, child, -1, parent); list 524 maint/gnulib/lib/gl_anyavltree_list2.h list->root = subst; list 533 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, child, -1, subst_parent != node ? subst_parent : subst); list 538 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_nx_add_first (gl_list_t list, const void *elt) list 554 maint/gnulib/lib/gl_anyavltree_list2.h (list->base.hashcode_fn != NULL list 555 maint/gnulib/lib/gl_anyavltree_list2.h ? list->base.hashcode_fn (new_node->value) list 560 maint/gnulib/lib/gl_anyavltree_list2.h if (list->root == NULL) list 562 maint/gnulib/lib/gl_anyavltree_list2.h list->root = new_node; list 569 maint/gnulib/lib/gl_anyavltree_list2.h for (node = list->root; node->left != NULL; ) list 586 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, node, 1, node->parent); list 593 maint/gnulib/lib/gl_anyavltree_list2.h if (add_to_bucket (list, new_node) < 0) list 595 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_remove_node_from_tree (list, new_node); list 599 maint/gnulib/lib/gl_anyavltree_list2.h hash_resize_after_add (list); list 606 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_nx_add_last (gl_list_t list, const void *elt) list 622 maint/gnulib/lib/gl_anyavltree_list2.h (list->base.hashcode_fn != NULL list 623 maint/gnulib/lib/gl_anyavltree_list2.h ? list->base.hashcode_fn (new_node->value) list 628 maint/gnulib/lib/gl_anyavltree_list2.h if (list->root == NULL) list 630 maint/gnulib/lib/gl_anyavltree_list2.h list->root = new_node; list 637 maint/gnulib/lib/gl_anyavltree_list2.h for (node = list->root; node->right != NULL; ) list 654 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, node, 1, node->parent); list 661 maint/gnulib/lib/gl_anyavltree_list2.h if (add_to_bucket (list, new_node) < 0) list 663 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_remove_node_from_tree (list, new_node); list 667 maint/gnulib/lib/gl_anyavltree_list2.h hash_resize_after_add (list); list 674 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) list 692 maint/gnulib/lib/gl_anyavltree_list2.h (list->base.hashcode_fn != NULL list 693 maint/gnulib/lib/gl_anyavltree_list2.h ? list->base.hashcode_fn (new_node->value) list 724 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, node, 1, node->parent); list 730 maint/gnulib/lib/gl_anyavltree_list2.h if (add_to_bucket (list, new_node) < 0) list 732 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_remove_node_from_tree (list, new_node); list 736 maint/gnulib/lib/gl_anyavltree_list2.h hash_resize_after_add (list); list 743 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) list 761 maint/gnulib/lib/gl_anyavltree_list2.h (list->base.hashcode_fn != NULL list 762 maint/gnulib/lib/gl_anyavltree_list2.h ? list->base.hashcode_fn (new_node->value) list 793 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, node, 1, node->parent); list 799 maint/gnulib/lib/gl_anyavltree_list2.h if (add_to_bucket (list, new_node) < 0) list 801 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_remove_node_from_tree (list, new_node); list 805 maint/gnulib/lib/gl_anyavltree_list2.h hash_resize_after_add (list); list 46 maint/gnulib/lib/gl_anylinked_list2.h struct gl_list_impl *list = list 49 maint/gnulib/lib/gl_anylinked_list2.h if (list == NULL) list 52 maint/gnulib/lib/gl_anylinked_list2.h list->base.vtable = implementation; list 53 maint/gnulib/lib/gl_anylinked_list2.h list->base.equals_fn = equals_fn; list 54 maint/gnulib/lib/gl_anylinked_list2.h list->base.hashcode_fn = hashcode_fn; list 55 maint/gnulib/lib/gl_anylinked_list2.h list->base.dispose_fn = dispose_fn; list 56 maint/gnulib/lib/gl_anylinked_list2.h list->base.allow_duplicates = allow_duplicates; list 58 maint/gnulib/lib/gl_anylinked_list2.h list->table_size = 11; list 59 maint/gnulib/lib/gl_anylinked_list2.h list->table = list 60 maint/gnulib/lib/gl_anylinked_list2.h (gl_hash_entry_t *) calloc (list->table_size, sizeof (gl_hash_entry_t)); list 61 maint/gnulib/lib/gl_anylinked_list2.h if (list->table == NULL) list 64 maint/gnulib/lib/gl_anylinked_list2.h list->root.next = &list->root; list 65 maint/gnulib/lib/gl_anylinked_list2.h list->root.prev = &list->root; list 66 maint/gnulib/lib/gl_anylinked_list2.h list->count = 0; list 68 maint/gnulib/lib/gl_anylinked_list2.h return list; list 72 maint/gnulib/lib/gl_anylinked_list2.h free (list); list 85 maint/gnulib/lib/gl_anylinked_list2.h struct gl_list_impl *list = list 89 maint/gnulib/lib/gl_anylinked_list2.h if (list == NULL) list 92 maint/gnulib/lib/gl_anylinked_list2.h list->base.vtable = implementation; list 93 maint/gnulib/lib/gl_anylinked_list2.h list->base.equals_fn = equals_fn; list 94 maint/gnulib/lib/gl_anylinked_list2.h list->base.hashcode_fn = hashcode_fn; list 95 maint/gnulib/lib/gl_anylinked_list2.h list->base.dispose_fn = dispose_fn; list 96 maint/gnulib/lib/gl_anylinked_list2.h list->base.allow_duplicates = allow_duplicates; list 102 maint/gnulib/lib/gl_anylinked_list2.h list->table_size = next_prime (estimate); list 103 maint/gnulib/lib/gl_anylinked_list2.h if (size_overflow_p (xtimes (list->table_size, sizeof (gl_hash_entry_t)))) list 105 maint/gnulib/lib/gl_anylinked_list2.h list->table = list 106 maint/gnulib/lib/gl_anylinked_list2.h (gl_hash_entry_t *) calloc (list->table_size, sizeof (gl_hash_entry_t)); list 107 maint/gnulib/lib/gl_anylinked_list2.h if (list->table == NULL) list 111 maint/gnulib/lib/gl_anylinked_list2.h list->count = count; list 112 maint/gnulib/lib/gl_anylinked_list2.h tail = &list->root; list 124 maint/gnulib/lib/gl_anylinked_list2.h (list->base.hashcode_fn != NULL list 125 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (node->value) list 129 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, node) < 0) list 141 maint/gnulib/lib/gl_anylinked_list2.h tail->next = &list->root; list 142 maint/gnulib/lib/gl_anylinked_list2.h list->root.prev = tail; list 144 maint/gnulib/lib/gl_anylinked_list2.h return list; list 150 maint/gnulib/lib/gl_anylinked_list2.h for (node = tail; node != &list->root; ) list 159 maint/gnulib/lib/gl_anylinked_list2.h free (list->table); list 162 maint/gnulib/lib/gl_anylinked_list2.h free (list); list 167 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_size (gl_list_t list) list 169 maint/gnulib/lib/gl_anylinked_list2.h return list->count; list 173 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_node_value (_GL_ATTRIBUTE_MAYBE_UNUSED gl_list_t list, list 180 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_node_nx_set_value (_GL_ATTRIBUTE_MAYBE_UNUSED gl_list_t list, list 188 maint/gnulib/lib/gl_anylinked_list2.h (list->base.hashcode_fn != NULL list 189 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (elt) list 194 maint/gnulib/lib/gl_anylinked_list2.h remove_from_bucket (list, node); list 197 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, node) < 0) list 206 maint/gnulib/lib/gl_anylinked_list2.h list->count--; list 221 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_next_node (gl_list_t list, gl_list_node_t node) list 223 maint/gnulib/lib/gl_anylinked_list2.h return (node->next != &list->root ? node->next : NULL); list 227 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_previous_node (gl_list_t list, gl_list_node_t node) list 229 maint/gnulib/lib/gl_anylinked_list2.h return (node->prev != &list->root ? node->prev : NULL); list 233 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_first_node (gl_list_t list) list 235 maint/gnulib/lib/gl_anylinked_list2.h if (list->count > 0) list 236 maint/gnulib/lib/gl_anylinked_list2.h return list->root.next; list 242 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_last_node (gl_list_t list) list 244 maint/gnulib/lib/gl_anylinked_list2.h if (list->count > 0) list 245 maint/gnulib/lib/gl_anylinked_list2.h return list->root.prev; list 251 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_get_at (gl_list_t list, size_t position) list 253 maint/gnulib/lib/gl_anylinked_list2.h size_t count = list->count; list 262 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; list 269 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.prev; list 277 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_nx_set_at (gl_list_t list, size_t position, const void *elt) list 279 maint/gnulib/lib/gl_anylinked_list2.h size_t count = list->count; list 288 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; list 295 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.prev; list 303 maint/gnulib/lib/gl_anylinked_list2.h (list->base.hashcode_fn != NULL list 304 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (elt) list 309 maint/gnulib/lib/gl_anylinked_list2.h remove_from_bucket (list, node); list 312 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, node) < 0) list 321 maint/gnulib/lib/gl_anylinked_list2.h list->count--; list 336 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_search_from_to (gl_list_t list, size_t start_index, size_t end_index, list 339 maint/gnulib/lib/gl_anylinked_list2.h size_t count = list->count; list 347 maint/gnulib/lib/gl_anylinked_list2.h (list->base.hashcode_fn != NULL list 348 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (elt) list 350 maint/gnulib/lib/gl_anylinked_list2.h size_t bucket = hashcode % list->table_size; list 351 maint/gnulib/lib/gl_anylinked_list2.h gl_listelement_equals_fn equals = list->base.equals_fn; list 353 maint/gnulib/lib/gl_anylinked_list2.h if (!list->base.allow_duplicates) list 359 maint/gnulib/lib/gl_anylinked_list2.h for (node = (gl_list_node_t) list->table[bucket]; list 372 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; ; node = node->next) list 383 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.prev; ; node = node->prev) list 400 maint/gnulib/lib/gl_anylinked_list2.h for (node = (gl_list_node_t) list->table[bucket]; list 421 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; list 441 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; node != &list->root; node = node->next) list 448 maint/gnulib/lib/gl_anylinked_list2.h if (end_index < list->count) list 451 maint/gnulib/lib/gl_anylinked_list2.h end_index = list->count - end_index; list 452 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.prev; ; node = node->prev) list 464 maint/gnulib/lib/gl_anylinked_list2.h gl_listelement_equals_fn equals = list->base.equals_fn; list 465 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node = list->root.next; list 489 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index, list 492 maint/gnulib/lib/gl_anylinked_list2.h size_t count = list->count; list 503 maint/gnulib/lib/gl_anylinked_list2.h (list->base.hashcode_fn != NULL list 504 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (elt) list 506 maint/gnulib/lib/gl_anylinked_list2.h size_t bucket = hashcode % list->table_size; list 507 maint/gnulib/lib/gl_anylinked_list2.h gl_listelement_equals_fn equals = list->base.equals_fn; list 511 maint/gnulib/lib/gl_anylinked_list2.h if (!list->base.allow_duplicates) list 514 maint/gnulib/lib/gl_anylinked_list2.h for (node = (gl_list_node_t) list->table[bucket]; list 529 maint/gnulib/lib/gl_anylinked_list2.h for (node = (gl_list_node_t) list->table[bucket]; list 552 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; list 578 maint/gnulib/lib/gl_anylinked_list2.h for (; node->prev != &list->root; node = node->prev) list 587 maint/gnulib/lib/gl_anylinked_list2.h gl_listelement_equals_fn equals = list->base.equals_fn; list 589 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node = list->root.next; list 616 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_nx_add_first (gl_list_t list, const void *elt) list 627 maint/gnulib/lib/gl_anylinked_list2.h (list->base.hashcode_fn != NULL list 628 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (node->value) list 632 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, node) < 0) list 640 maint/gnulib/lib/gl_anylinked_list2.h node->prev = &list->root; list 641 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) node->next = list->root.next; list 643 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) list->root.next = node; list 644 maint/gnulib/lib/gl_anylinked_list2.h list->count++; list 647 maint/gnulib/lib/gl_anylinked_list2.h hash_resize_after_add (list); list 654 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_nx_add_last (gl_list_t list, const void *elt) list 665 maint/gnulib/lib/gl_anylinked_list2.h (list->base.hashcode_fn != NULL list 666 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (node->value) list 670 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, node) < 0) list 678 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) node->next = &list->root; list 679 maint/gnulib/lib/gl_anylinked_list2.h node->prev = list->root.prev; list 681 maint/gnulib/lib/gl_anylinked_list2.h list->root.prev = node; list 682 maint/gnulib/lib/gl_anylinked_list2.h list->count++; list 685 maint/gnulib/lib/gl_anylinked_list2.h hash_resize_after_add (list); list 692 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) list 703 maint/gnulib/lib/gl_anylinked_list2.h (list->base.hashcode_fn != NULL list 704 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (new_node->value) list 708 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, new_node) < 0) list 720 maint/gnulib/lib/gl_anylinked_list2.h list->count++; list 723 maint/gnulib/lib/gl_anylinked_list2.h hash_resize_after_add (list); list 730 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) list 741 maint/gnulib/lib/gl_anylinked_list2.h (list->base.hashcode_fn != NULL list 742 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (new_node->value) list 746 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, new_node) < 0) list 758 maint/gnulib/lib/gl_anylinked_list2.h list->count++; list 761 maint/gnulib/lib/gl_anylinked_list2.h hash_resize_after_add (list); list 768 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_nx_add_at (gl_list_t list, size_t position, const void *elt) list 770 maint/gnulib/lib/gl_anylinked_list2.h size_t count = list->count; list 784 maint/gnulib/lib/gl_anylinked_list2.h (list->base.hashcode_fn != NULL list 785 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (new_node->value) list 789 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, new_node) < 0) list 801 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; list 814 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; list 822 maint/gnulib/lib/gl_anylinked_list2.h list->count++; list 825 maint/gnulib/lib/gl_anylinked_list2.h hash_resize_after_add (list); list 832 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_remove_node (gl_list_t list, gl_list_node_t node) list 839 maint/gnulib/lib/gl_anylinked_list2.h remove_from_bucket (list, node); list 848 maint/gnulib/lib/gl_anylinked_list2.h list->count--; list 850 maint/gnulib/lib/gl_anylinked_list2.h if (list->base.dispose_fn != NULL) list 851 maint/gnulib/lib/gl_anylinked_list2.h list->base.dispose_fn (node->value); list 857 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_remove_at (gl_list_t list, size_t position) list 859 maint/gnulib/lib/gl_anylinked_list2.h size_t count = list->count; list 871 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; list 885 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; list 894 maint/gnulib/lib/gl_anylinked_list2.h remove_from_bucket (list, removed_node); list 896 maint/gnulib/lib/gl_anylinked_list2.h list->count--; list 898 maint/gnulib/lib/gl_anylinked_list2.h if (list->base.dispose_fn != NULL) list 899 maint/gnulib/lib/gl_anylinked_list2.h list->base.dispose_fn (removed_node->value); list 905 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_remove (gl_list_t list, const void *elt) list 907 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node = gl_linked_search_from_to (list, 0, list->count, elt); list 910 maint/gnulib/lib/gl_anylinked_list2.h return gl_linked_remove_node (list, node); list 916 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_list_free (gl_list_t list) list 918 maint/gnulib/lib/gl_anylinked_list2.h gl_listelement_dispose_fn dispose = list->base.dispose_fn; list 921 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; node != &list->root; ) list 930 maint/gnulib/lib/gl_anylinked_list2.h free (list->table); list 932 maint/gnulib/lib/gl_anylinked_list2.h free (list); list 938 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_iterator (gl_list_t list) list 942 maint/gnulib/lib/gl_anylinked_list2.h result.vtable = list->base.vtable; list 943 maint/gnulib/lib/gl_anylinked_list2.h result.list = list; list 944 maint/gnulib/lib/gl_anylinked_list2.h result.p = list->root.next; list 945 maint/gnulib/lib/gl_anylinked_list2.h result.q = &list->root; list 956 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_iterator_from_to (gl_list_t list, list 962 maint/gnulib/lib/gl_anylinked_list2.h if (!(start_index <= end_index && end_index <= list->count)) list 965 maint/gnulib/lib/gl_anylinked_list2.h result.vtable = list->base.vtable; list 966 maint/gnulib/lib/gl_anylinked_list2.h result.list = list; list 969 maint/gnulib/lib/gl_anylinked_list2.h n3 = list->count - end_index; list 978 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; list 992 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; list 997 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; list 1008 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; list 1051 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_sortedlist_search (gl_list_t list, gl_listelement_compar_fn compar, list 1056 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; node != &list->root; node = node->next) list 1069 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_sortedlist_search_from_to (gl_list_t list, list 1074 maint/gnulib/lib/gl_anylinked_list2.h size_t count = list->count; list 1076 maint/gnulib/lib/gl_anylinked_list2.h if (!(low <= high && high <= list->count)) list 1089 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; list 1096 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.prev; list 1117 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, list 1123 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next, index = 0; list 1124 maint/gnulib/lib/gl_anylinked_list2.h node != &list->root; list 1138 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_sortedlist_indexof_from_to (gl_list_t list, list 1143 maint/gnulib/lib/gl_anylinked_list2.h size_t count = list->count; list 1145 maint/gnulib/lib/gl_anylinked_list2.h if (!(low <= high && high <= list->count)) list 1159 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; list 1166 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.prev; list 1188 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_sortedlist_nx_add (gl_list_t list, gl_listelement_compar_fn compar, list 1193 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; node != &list->root; node = node->next) list 1195 maint/gnulib/lib/gl_anylinked_list2.h return gl_linked_nx_add_before (list, node, elt); list 1196 maint/gnulib/lib/gl_anylinked_list2.h return gl_linked_nx_add_last (list, elt); list 1200 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_sortedlist_remove (gl_list_t list, gl_listelement_compar_fn compar, list 1205 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; node != &list->root; node = node->next) list 1212 maint/gnulib/lib/gl_anylinked_list2.h return gl_linked_remove_node (list, node); list 89 maint/gnulib/lib/gl_anyrbtree_list2.h struct gl_list_impl *list = list 92 maint/gnulib/lib/gl_anyrbtree_list2.h if (list == NULL) list 95 maint/gnulib/lib/gl_anyrbtree_list2.h list->base.vtable = implementation; list 96 maint/gnulib/lib/gl_anyrbtree_list2.h list->base.equals_fn = equals_fn; list 97 maint/gnulib/lib/gl_anyrbtree_list2.h list->base.hashcode_fn = hashcode_fn; list 98 maint/gnulib/lib/gl_anyrbtree_list2.h list->base.dispose_fn = dispose_fn; list 99 maint/gnulib/lib/gl_anyrbtree_list2.h list->base.allow_duplicates = allow_duplicates; list 105 maint/gnulib/lib/gl_anyrbtree_list2.h list->table_size = next_prime (estimate); list 106 maint/gnulib/lib/gl_anyrbtree_list2.h if (size_overflow_p (xtimes (list->table_size, sizeof (gl_hash_entry_t)))) list 108 maint/gnulib/lib/gl_anyrbtree_list2.h list->table = list 109 maint/gnulib/lib/gl_anyrbtree_list2.h (gl_hash_entry_t *) calloc (list->table_size, sizeof (gl_hash_entry_t)); list 110 maint/gnulib/lib/gl_anyrbtree_list2.h if (list->table == NULL) list 126 maint/gnulib/lib/gl_anyrbtree_list2.h list->root = create_subtree_with_contents (bh, count, contents); list 127 maint/gnulib/lib/gl_anyrbtree_list2.h if (list->root == NULL) list 129 maint/gnulib/lib/gl_anyrbtree_list2.h list->root->parent = NULL; list 134 maint/gnulib/lib/gl_anyrbtree_list2.h if (add_nodes_to_buckets (list) < 0) list 139 maint/gnulib/lib/gl_anyrbtree_list2.h list->root = NULL; list 141 maint/gnulib/lib/gl_anyrbtree_list2.h return list; list 145 maint/gnulib/lib/gl_anyrbtree_list2.h free_subtree (list->root); list 149 maint/gnulib/lib/gl_anyrbtree_list2.h free (list->table); list 152 maint/gnulib/lib/gl_anyrbtree_list2.h free (list); list 228 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_add (gl_list_t list, gl_list_node_t node, gl_list_node_t parent) list 274 maint/gnulib/lib/gl_anyrbtree_list2.h grandparentp = &list->root; list 353 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_remove (gl_list_t list, gl_list_node_t child, gl_list_node_t parent) list 364 maint/gnulib/lib/gl_anyrbtree_list2.h parentp = &list->root; list 636 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_remove_node_from_tree (gl_list_t list, gl_list_node_t node) list 653 maint/gnulib/lib/gl_anyrbtree_list2.h list->root = child; list 670 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_remove (list, child, parent); list 685 maint/gnulib/lib/gl_anyrbtree_list2.h list->root = child; list 759 maint/gnulib/lib/gl_anyrbtree_list2.h list->root = subst; list 774 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_remove (list, child, list 781 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_nx_add_first (gl_list_t list, const void *elt) list 796 maint/gnulib/lib/gl_anyrbtree_list2.h (list->base.hashcode_fn != NULL list 797 maint/gnulib/lib/gl_anyrbtree_list2.h ? list->base.hashcode_fn (new_node->value) list 802 maint/gnulib/lib/gl_anyrbtree_list2.h if (list->root == NULL) list 805 maint/gnulib/lib/gl_anyrbtree_list2.h list->root = new_node; list 812 maint/gnulib/lib/gl_anyrbtree_list2.h for (node = list->root; node->left != NULL; ) list 827 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_add (list, new_node, node); list 834 maint/gnulib/lib/gl_anyrbtree_list2.h if (add_to_bucket (list, new_node) < 0) list 836 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_remove_node_from_tree (list, new_node); list 840 maint/gnulib/lib/gl_anyrbtree_list2.h hash_resize_after_add (list); list 847 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_nx_add_last (gl_list_t list, const void *elt) list 862 maint/gnulib/lib/gl_anyrbtree_list2.h (list->base.hashcode_fn != NULL list 863 maint/gnulib/lib/gl_anyrbtree_list2.h ? list->base.hashcode_fn (new_node->value) list 868 maint/gnulib/lib/gl_anyrbtree_list2.h if (list->root == NULL) list 871 maint/gnulib/lib/gl_anyrbtree_list2.h list->root = new_node; list 878 maint/gnulib/lib/gl_anyrbtree_list2.h for (node = list->root; node->right != NULL; ) list 893 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_add (list, new_node, node); list 900 maint/gnulib/lib/gl_anyrbtree_list2.h if (add_to_bucket (list, new_node) < 0) list 902 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_remove_node_from_tree (list, new_node); list 906 maint/gnulib/lib/gl_anyrbtree_list2.h hash_resize_after_add (list); list 913 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) list 928 maint/gnulib/lib/gl_anyrbtree_list2.h (list->base.hashcode_fn != NULL list 929 maint/gnulib/lib/gl_anyrbtree_list2.h ? list->base.hashcode_fn (new_node->value) list 953 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_add (list, new_node, node); list 959 maint/gnulib/lib/gl_anyrbtree_list2.h if (add_to_bucket (list, new_node) < 0) list 961 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_remove_node_from_tree (list, new_node); list 965 maint/gnulib/lib/gl_anyrbtree_list2.h hash_resize_after_add (list); list 972 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) list 987 maint/gnulib/lib/gl_anyrbtree_list2.h (list->base.hashcode_fn != NULL list 988 maint/gnulib/lib/gl_anyrbtree_list2.h ? list->base.hashcode_fn (new_node->value) list 1012 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_add (list, new_node, node); list 1018 maint/gnulib/lib/gl_anyrbtree_list2.h if (add_to_bucket (list, new_node) < 0) list 1020 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_remove_node_from_tree (list, new_node); list 1024 maint/gnulib/lib/gl_anyrbtree_list2.h hash_resize_after_add (list); list 28 maint/gnulib/lib/gl_anytree_list2.h struct gl_list_impl *list = (struct gl_list_impl *) malloc (sizeof (struct gl_list_impl)); list 30 maint/gnulib/lib/gl_anytree_list2.h if (list == NULL) list 33 maint/gnulib/lib/gl_anytree_list2.h list->base.vtable = implementation; list 34 maint/gnulib/lib/gl_anytree_list2.h list->base.equals_fn = equals_fn; list 35 maint/gnulib/lib/gl_anytree_list2.h list->base.hashcode_fn = hashcode_fn; list 36 maint/gnulib/lib/gl_anytree_list2.h list->base.dispose_fn = dispose_fn; list 37 maint/gnulib/lib/gl_anytree_list2.h list->base.allow_duplicates = allow_duplicates; list 39 maint/gnulib/lib/gl_anytree_list2.h list->table_size = 11; list 40 maint/gnulib/lib/gl_anytree_list2.h list->table = list 41 maint/gnulib/lib/gl_anytree_list2.h (gl_hash_entry_t *) calloc (list->table_size, sizeof (gl_hash_entry_t)); list 42 maint/gnulib/lib/gl_anytree_list2.h if (list->table == NULL) list 45 maint/gnulib/lib/gl_anytree_list2.h list->root = NULL; list 47 maint/gnulib/lib/gl_anytree_list2.h return list; list 51 maint/gnulib/lib/gl_anytree_list2.h free (list); list 57 maint/gnulib/lib/gl_anytree_list2.h gl_tree_size (gl_list_t list) list 59 maint/gnulib/lib/gl_anytree_list2.h return (list->root != NULL ? list->root->branch_size : 0); list 63 maint/gnulib/lib/gl_anytree_list2.h gl_tree_node_value (_GL_ATTRIBUTE_MAYBE_UNUSED gl_list_t list, list 70 maint/gnulib/lib/gl_anytree_list2.h gl_tree_node_nx_set_value (_GL_ATTRIBUTE_MAYBE_UNUSED gl_list_t list, list 77 maint/gnulib/lib/gl_anytree_list2.h (list->base.hashcode_fn != NULL list 78 maint/gnulib/lib/gl_anytree_list2.h ? list->base.hashcode_fn (elt) list 83 maint/gnulib/lib/gl_anytree_list2.h remove_from_bucket (list, node); list 86 maint/gnulib/lib/gl_anytree_list2.h if (add_to_bucket (list, node) < 0) list 91 maint/gnulib/lib/gl_anytree_list2.h gl_tree_remove_node_from_tree (list, node); list 106 maint/gnulib/lib/gl_anytree_list2.h gl_tree_next_node (_GL_ATTRIBUTE_MAYBE_UNUSED gl_list_t list, list 125 maint/gnulib/lib/gl_anytree_list2.h gl_tree_previous_node (_GL_ATTRIBUTE_MAYBE_UNUSED gl_list_t list, list 144 maint/gnulib/lib/gl_anytree_list2.h gl_tree_first_node (_GL_ATTRIBUTE_MAYBE_UNUSED gl_list_t list) list 146 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; list 157 maint/gnulib/lib/gl_anytree_list2.h gl_tree_last_node (_GL_ATTRIBUTE_MAYBE_UNUSED gl_list_t list) list 159 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; list 196 maint/gnulib/lib/gl_anytree_list2.h gl_tree_get_at (gl_list_t list, size_t position) list 198 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; list 208 maint/gnulib/lib/gl_anytree_list2.h gl_tree_nx_set_at (gl_list_t list, size_t position, const void *elt) list 210 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; list 220 maint/gnulib/lib/gl_anytree_list2.h (list->base.hashcode_fn != NULL list 221 maint/gnulib/lib/gl_anytree_list2.h ? list->base.hashcode_fn (elt) list 226 maint/gnulib/lib/gl_anytree_list2.h remove_from_bucket (list, node); list 229 maint/gnulib/lib/gl_anytree_list2.h if (add_to_bucket (list, node) < 0) list 234 maint/gnulib/lib/gl_anytree_list2.h gl_tree_remove_node_from_tree (list, node); list 251 maint/gnulib/lib/gl_anytree_list2.h gl_tree_search_from_to (gl_list_t list, size_t start_index, size_t end_index, list 255 maint/gnulib/lib/gl_anytree_list2.h && end_index <= (list->root != NULL ? list->root->branch_size : 0))) list 259 maint/gnulib/lib/gl_anytree_list2.h gl_listelement_equals_fn equals = list->base.equals_fn; list 261 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; list 362 maint/gnulib/lib/gl_anytree_list2.h gl_tree_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index, list 366 maint/gnulib/lib/gl_anytree_list2.h && end_index <= (list->root != NULL ? list->root->branch_size : 0))) list 370 maint/gnulib/lib/gl_anytree_list2.h gl_listelement_equals_fn equals = list->base.equals_fn; list 372 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; list 475 maint/gnulib/lib/gl_anytree_list2.h gl_tree_nx_add_at (gl_list_t list, size_t position, const void *elt) list 477 maint/gnulib/lib/gl_anytree_list2.h size_t count = (list->root != NULL ? list->root->branch_size : 0); list 483 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_nx_add_last (list, elt); list 485 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_nx_add_before (list, node_at (list->root, position), elt); list 489 maint/gnulib/lib/gl_anytree_list2.h gl_tree_remove_node (gl_list_t list, gl_list_node_t node) list 495 maint/gnulib/lib/gl_anytree_list2.h remove_from_bucket (list, node); list 498 maint/gnulib/lib/gl_anytree_list2.h gl_tree_remove_node_from_tree (list, node); list 500 maint/gnulib/lib/gl_anytree_list2.h if (list->base.dispose_fn != NULL) list 501 maint/gnulib/lib/gl_anytree_list2.h list->base.dispose_fn (node->value); list 507 maint/gnulib/lib/gl_anytree_list2.h gl_tree_remove_at (gl_list_t list, size_t position) list 509 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; list 515 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_remove_node (list, node); list 519 maint/gnulib/lib/gl_anytree_list2.h gl_tree_remove (gl_list_t list, const void *elt) list 521 maint/gnulib/lib/gl_anytree_list2.h if (list->root != NULL) list 524 maint/gnulib/lib/gl_anytree_list2.h gl_tree_search_from_to (list, 0, list->root->branch_size, elt); list 527 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_remove_node (list, node); list 535 maint/gnulib/lib/gl_anytree_list2.h gl_tree_list_free (gl_list_t list) list 538 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; list 564 maint/gnulib/lib/gl_anytree_list2.h if (list->base.dispose_fn != NULL) list 565 maint/gnulib/lib/gl_anytree_list2.h list->base.dispose_fn (node->value); list 574 maint/gnulib/lib/gl_anytree_list2.h free (list); list 582 maint/gnulib/lib/gl_anytree_list2.h gl_tree_iterator (gl_list_t list) list 587 maint/gnulib/lib/gl_anytree_list2.h result.vtable = list->base.vtable; list 588 maint/gnulib/lib/gl_anytree_list2.h result.list = list; list 590 maint/gnulib/lib/gl_anytree_list2.h node = list->root; list 607 maint/gnulib/lib/gl_anytree_list2.h gl_tree_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index) list 609 maint/gnulib/lib/gl_anytree_list2.h size_t count = (list->root != NULL ? list->root->branch_size : 0); list 615 maint/gnulib/lib/gl_anytree_list2.h result.vtable = list->base.vtable; list 616 maint/gnulib/lib/gl_anytree_list2.h result.list = list; list 618 maint/gnulib/lib/gl_anytree_list2.h result.p = (start_index < count ? node_at (list->root, start_index) : NULL); list 620 maint/gnulib/lib/gl_anytree_list2.h result.q = (end_index < count ? node_at (list->root, end_index) : NULL); list 668 maint/gnulib/lib/gl_anytree_list2.h gl_tree_sortedlist_search (gl_list_t list, gl_listelement_compar_fn compar, list 673 maint/gnulib/lib/gl_anytree_list2.h for (node = list->root; node != NULL; ) list 709 maint/gnulib/lib/gl_anytree_list2.h gl_tree_sortedlist_search_from_to (gl_list_t list, list 717 maint/gnulib/lib/gl_anytree_list2.h && high <= (list->root != NULL ? list->root->branch_size : 0))) list 721 maint/gnulib/lib/gl_anytree_list2.h for (node = list->root; node != NULL; ) list 791 maint/gnulib/lib/gl_anytree_list2.h gl_tree_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, list 797 maint/gnulib/lib/gl_anytree_list2.h for (node = list->root, position = 0; node != NULL; ) list 846 maint/gnulib/lib/gl_anytree_list2.h gl_tree_sortedlist_indexof_from_to (gl_list_t list, list 855 maint/gnulib/lib/gl_anytree_list2.h && high <= (list->root != NULL ? list->root->branch_size : 0))) list 859 maint/gnulib/lib/gl_anytree_list2.h for (node = list->root, position = 0; node != NULL; ) list 932 maint/gnulib/lib/gl_anytree_list2.h gl_tree_sortedlist_nx_add (gl_list_t list, gl_listelement_compar_fn compar, list 935 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; list 938 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_nx_add_first (list, elt); list 947 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_nx_add_after (list, node, elt); list 953 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_nx_add_before (list, node, elt); list 957 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_nx_add_before (list, node, elt); list 962 maint/gnulib/lib/gl_anytree_list2.h gl_tree_sortedlist_remove (gl_list_t list, gl_listelement_compar_fn compar, list 965 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = gl_tree_sortedlist_search (list, compar, elt); list 967 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_remove_node (list, node); list 100 maint/gnulib/lib/gl_anytreehash_list1.h add_to_bucket (gl_list_t list, gl_list_node_t new_node) list 102 maint/gnulib/lib/gl_anytreehash_list1.h size_t bucket = new_node->h.hashcode % list->table_size; list 105 maint/gnulib/lib/gl_anytreehash_list1.h if (list->base.allow_duplicates) list 109 maint/gnulib/lib/gl_anytreehash_list1.h gl_listelement_equals_fn equals = list->base.equals_fn; list 112 maint/gnulib/lib/gl_anytreehash_list1.h for (entryp = &list->table[bucket]; *entryp != NULL; entryp = &(*entryp)->hash_next) list 173 maint/gnulib/lib/gl_anytreehash_list1.h new_node->h.hash_next = list->table[bucket]; list 174 maint/gnulib/lib/gl_anytreehash_list1.h list->table[bucket] = &new_node->h; list 178 maint/gnulib/lib/gl_anytreehash_list1.h #define add_to_bucket(list,node) \ list 179 maint/gnulib/lib/gl_anytreehash_list1.h __builtin_expect ((add_to_bucket) (list, node), 0) list 188 maint/gnulib/lib/gl_anytreehash_list1.h remove_from_bucket (gl_list_t list, gl_list_node_t old_node) list 190 maint/gnulib/lib/gl_anytreehash_list1.h size_t bucket = old_node->h.hashcode % list->table_size; list 192 maint/gnulib/lib/gl_anytreehash_list1.h if (list->base.allow_duplicates) list 196 maint/gnulib/lib/gl_anytreehash_list1.h gl_listelement_equals_fn equals = list->base.equals_fn; list 199 maint/gnulib/lib/gl_anytreehash_list1.h for (entryp = &list->table[bucket]; ; entryp = &(*entryp)->hash_next) list 245 maint/gnulib/lib/gl_anytreehash_list1.h for (entryp = &list->table[bucket]; ; entryp = &(*entryp)->hash_next) list 264 maint/gnulib/lib/gl_anytreehash_list1.h add_nodes_to_buckets (gl_list_t list) list 267 maint/gnulib/lib/gl_anytreehash_list1.h gl_list_node_t node = list->root; list 295 maint/gnulib/lib/gl_anytreehash_list1.h (list->base.hashcode_fn != NULL list 296 maint/gnulib/lib/gl_anytreehash_list1.h ? list->base.hashcode_fn (node->value) list 298 maint/gnulib/lib/gl_anytreehash_list1.h if (add_to_bucket (list, node) < 0) list 337 maint/gnulib/lib/gl_anytreehash_list1.h remove_from_bucket (list, node); list 344 maint/gnulib/lib/gl_anytreehash_list1.h # define add_nodes_to_buckets(list) \ list 345 maint/gnulib/lib/gl_anytreehash_list1.h __builtin_expect ((add_nodes_to_buckets) (list), 0) list 21 maint/gnulib/lib/gl_anytreehash_list2.h gl_tree_search_from_to (gl_list_t list, size_t start_index, size_t end_index, list 25 maint/gnulib/lib/gl_anytreehash_list2.h && end_index <= (list->root != NULL ? list->root->branch_size : 0))) list 30 maint/gnulib/lib/gl_anytreehash_list2.h (list->base.hashcode_fn != NULL list 31 maint/gnulib/lib/gl_anytreehash_list2.h ? list->base.hashcode_fn (elt) list 33 maint/gnulib/lib/gl_anytreehash_list2.h size_t bucket = hashcode % list->table_size; list 34 maint/gnulib/lib/gl_anytreehash_list2.h gl_listelement_equals_fn equals = list->base.equals_fn; list 37 maint/gnulib/lib/gl_anytreehash_list2.h if (list->base.allow_duplicates) list 39 maint/gnulib/lib/gl_anytreehash_list2.h for (entry = list->table[bucket]; entry != NULL; entry = entry->hash_next) list 56 maint/gnulib/lib/gl_anytreehash_list2.h if (end_index == list->root->branch_size list 71 maint/gnulib/lib/gl_anytreehash_list2.h if (end_index == list->root->branch_size list 86 maint/gnulib/lib/gl_anytreehash_list2.h if (start_index == 0 && end_index == list->root->branch_size) list 104 maint/gnulib/lib/gl_anytreehash_list2.h for (entry = list->table[bucket]; entry != NULL; entry = entry->hash_next) list 111 maint/gnulib/lib/gl_anytreehash_list2.h if (start_index == 0 && end_index == list->root->branch_size) list 131 maint/gnulib/lib/gl_anytreehash_list2.h gl_tree_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index, list 135 maint/gnulib/lib/gl_anytreehash_list2.h gl_tree_search_from_to (list, start_index, end_index, elt); list 144 maint/gnulib/lib/gl_anytreehash_list2.h gl_tree_list_free (gl_list_t list) list 146 maint/gnulib/lib/gl_anytreehash_list2.h if (list->base.allow_duplicates) list 151 maint/gnulib/lib/gl_anytreehash_list2.h for (i = list->table_size; i > 0; ) list 153 maint/gnulib/lib/gl_anytreehash_list2.h gl_hash_entry_t entry = list->table[--i]; list 174 maint/gnulib/lib/gl_anytreehash_list2.h gl_list_node_t node = list->root; list 200 maint/gnulib/lib/gl_anytreehash_list2.h if (list->base.dispose_fn != NULL) list 201 maint/gnulib/lib/gl_anytreehash_list2.h list->base.dispose_fn (node->value); list 211 maint/gnulib/lib/gl_anytreehash_list2.h free (list->table); list 212 maint/gnulib/lib/gl_anytreehash_list2.h free (list); list 56 maint/gnulib/lib/gl_array_list.c struct gl_list_impl *list = list 59 maint/gnulib/lib/gl_array_list.c if (list == NULL) list 62 maint/gnulib/lib/gl_array_list.c list->base.vtable = implementation; list 63 maint/gnulib/lib/gl_array_list.c list->base.equals_fn = equals_fn; list 64 maint/gnulib/lib/gl_array_list.c list->base.hashcode_fn = hashcode_fn; list 65 maint/gnulib/lib/gl_array_list.c list->base.dispose_fn = dispose_fn; list 66 maint/gnulib/lib/gl_array_list.c list->base.allow_duplicates = allow_duplicates; list 67 maint/gnulib/lib/gl_array_list.c list->elements = NULL; list 68 maint/gnulib/lib/gl_array_list.c list->count = 0; list 69 maint/gnulib/lib/gl_array_list.c list->allocated = 0; list 71 maint/gnulib/lib/gl_array_list.c return list; list 82 maint/gnulib/lib/gl_array_list.c struct gl_list_impl *list = list 85 maint/gnulib/lib/gl_array_list.c if (list == NULL) list 88 maint/gnulib/lib/gl_array_list.c list->base.vtable = implementation; list 89 maint/gnulib/lib/gl_array_list.c list->base.equals_fn = equals_fn; list 90 maint/gnulib/lib/gl_array_list.c list->base.hashcode_fn = hashcode_fn; list 91 maint/gnulib/lib/gl_array_list.c list->base.dispose_fn = dispose_fn; list 92 maint/gnulib/lib/gl_array_list.c list->base.allow_duplicates = allow_duplicates; list 97 maint/gnulib/lib/gl_array_list.c list->elements = (const void **) malloc (count * sizeof (const void *)); list 98 maint/gnulib/lib/gl_array_list.c if (list->elements == NULL) list 100 maint/gnulib/lib/gl_array_list.c memcpy (list->elements, contents, count * sizeof (const void *)); list 103 maint/gnulib/lib/gl_array_list.c list->elements = NULL; list 104 maint/gnulib/lib/gl_array_list.c list->count = count; list 105 maint/gnulib/lib/gl_array_list.c list->allocated = count; list 107 maint/gnulib/lib/gl_array_list.c return list; list 110 maint/gnulib/lib/gl_array_list.c free (list); list 115 maint/gnulib/lib/gl_array_list.c gl_array_size (gl_list_t list) list 117 maint/gnulib/lib/gl_array_list.c return list->count; list 121 maint/gnulib/lib/gl_array_list.c gl_array_node_value (gl_list_t list, gl_list_node_t node) list 124 maint/gnulib/lib/gl_array_list.c if (!(index < list->count)) list 127 maint/gnulib/lib/gl_array_list.c return list->elements[index]; list 131 maint/gnulib/lib/gl_array_list.c gl_array_node_nx_set_value (gl_list_t list, gl_list_node_t node, list 135 maint/gnulib/lib/gl_array_list.c if (!(index < list->count)) list 138 maint/gnulib/lib/gl_array_list.c list->elements[index] = elt; list 143 maint/gnulib/lib/gl_array_list.c gl_array_next_node (gl_list_t list, gl_list_node_t node) list 146 maint/gnulib/lib/gl_array_list.c if (!(index < list->count)) list 150 maint/gnulib/lib/gl_array_list.c if (index < list->count) list 157 maint/gnulib/lib/gl_array_list.c gl_array_previous_node (gl_list_t list, gl_list_node_t node) list 160 maint/gnulib/lib/gl_array_list.c if (!(index < list->count)) list 170 maint/gnulib/lib/gl_array_list.c gl_array_first_node (gl_list_t list) list 172 maint/gnulib/lib/gl_array_list.c if (list->count > 0) list 179 maint/gnulib/lib/gl_array_list.c gl_array_last_node (gl_list_t list) list 181 maint/gnulib/lib/gl_array_list.c if (list->count > 0) list 182 maint/gnulib/lib/gl_array_list.c return INDEX_TO_NODE (list->count - 1); list 188 maint/gnulib/lib/gl_array_list.c gl_array_get_at (gl_list_t list, size_t position) list 190 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 195 maint/gnulib/lib/gl_array_list.c return list->elements[position]; list 199 maint/gnulib/lib/gl_array_list.c gl_array_nx_set_at (gl_list_t list, size_t position, const void *elt) list 201 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 206 maint/gnulib/lib/gl_array_list.c list->elements[position] = elt; list 211 maint/gnulib/lib/gl_array_list.c gl_array_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index, list 214 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 222 maint/gnulib/lib/gl_array_list.c gl_listelement_equals_fn equals = list->base.equals_fn; list 229 maint/gnulib/lib/gl_array_list.c if (equals (elt, list->elements[i])) list 242 maint/gnulib/lib/gl_array_list.c if (elt == list->elements[i]) list 254 maint/gnulib/lib/gl_array_list.c gl_array_search_from_to (gl_list_t list, size_t start_index, size_t end_index, list 257 maint/gnulib/lib/gl_array_list.c size_t index = gl_array_indexof_from_to (list, start_index, end_index, elt); list 264 maint/gnulib/lib/gl_array_list.c grow (gl_list_t list) list 270 maint/gnulib/lib/gl_array_list.c new_allocated = xtimes (list->allocated, 2); list 276 maint/gnulib/lib/gl_array_list.c memory = (const void **) realloc (list->elements, memory_size); list 280 maint/gnulib/lib/gl_array_list.c list->elements = memory; list 281 maint/gnulib/lib/gl_array_list.c list->allocated = new_allocated; list 286 maint/gnulib/lib/gl_array_list.c gl_array_nx_add_first (gl_list_t list, const void *elt) list 288 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 292 maint/gnulib/lib/gl_array_list.c if (count == list->allocated) list 293 maint/gnulib/lib/gl_array_list.c if (grow (list) < 0) list 295 maint/gnulib/lib/gl_array_list.c elements = list->elements; list 299 maint/gnulib/lib/gl_array_list.c list->count = count + 1; list 304 maint/gnulib/lib/gl_array_list.c gl_array_nx_add_last (gl_list_t list, const void *elt) list 306 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 308 maint/gnulib/lib/gl_array_list.c if (count == list->allocated) list 309 maint/gnulib/lib/gl_array_list.c if (grow (list) < 0) list 311 maint/gnulib/lib/gl_array_list.c list->elements[count] = elt; list 312 maint/gnulib/lib/gl_array_list.c list->count = count + 1; list 317 maint/gnulib/lib/gl_array_list.c gl_array_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) list 319 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 329 maint/gnulib/lib/gl_array_list.c if (count == list->allocated) list 330 maint/gnulib/lib/gl_array_list.c if (grow (list) < 0) list 332 maint/gnulib/lib/gl_array_list.c elements = list->elements; list 336 maint/gnulib/lib/gl_array_list.c list->count = count + 1; list 341 maint/gnulib/lib/gl_array_list.c gl_array_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) list 343 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 353 maint/gnulib/lib/gl_array_list.c if (count == list->allocated) list 354 maint/gnulib/lib/gl_array_list.c if (grow (list) < 0) list 356 maint/gnulib/lib/gl_array_list.c elements = list->elements; list 360 maint/gnulib/lib/gl_array_list.c list->count = count + 1; list 365 maint/gnulib/lib/gl_array_list.c gl_array_nx_add_at (gl_list_t list, size_t position, const void *elt) list 367 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 374 maint/gnulib/lib/gl_array_list.c if (count == list->allocated) list 375 maint/gnulib/lib/gl_array_list.c if (grow (list) < 0) list 377 maint/gnulib/lib/gl_array_list.c elements = list->elements; list 381 maint/gnulib/lib/gl_array_list.c list->count = count + 1; list 386 maint/gnulib/lib/gl_array_list.c gl_array_remove_node (gl_list_t list, gl_list_node_t node) list 388 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 398 maint/gnulib/lib/gl_array_list.c elements = list->elements; list 399 maint/gnulib/lib/gl_array_list.c if (list->base.dispose_fn != NULL) list 400 maint/gnulib/lib/gl_array_list.c list->base.dispose_fn (elements[position]); list 403 maint/gnulib/lib/gl_array_list.c list->count = count - 1; list 408 maint/gnulib/lib/gl_array_list.c gl_array_remove_at (gl_list_t list, size_t position) list 410 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 417 maint/gnulib/lib/gl_array_list.c elements = list->elements; list 418 maint/gnulib/lib/gl_array_list.c if (list->base.dispose_fn != NULL) list 419 maint/gnulib/lib/gl_array_list.c list->base.dispose_fn (elements[position]); list 422 maint/gnulib/lib/gl_array_list.c list->count = count - 1; list 427 maint/gnulib/lib/gl_array_list.c gl_array_remove (gl_list_t list, const void *elt) list 429 maint/gnulib/lib/gl_array_list.c size_t position = gl_array_indexof_from_to (list, 0, list->count, elt); list 433 maint/gnulib/lib/gl_array_list.c return gl_array_remove_at (list, position); list 437 maint/gnulib/lib/gl_array_list.c gl_array_list_free (gl_list_t list) list 439 maint/gnulib/lib/gl_array_list.c if (list->elements != NULL) list 441 maint/gnulib/lib/gl_array_list.c if (list->base.dispose_fn != NULL) list 443 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 447 maint/gnulib/lib/gl_array_list.c gl_listelement_dispose_fn dispose = list->base.dispose_fn; list 448 maint/gnulib/lib/gl_array_list.c const void **elements = list->elements; list 455 maint/gnulib/lib/gl_array_list.c free (list->elements); list 457 maint/gnulib/lib/gl_array_list.c free (list); list 463 maint/gnulib/lib/gl_array_list.c gl_array_iterator (gl_list_t list) list 467 maint/gnulib/lib/gl_array_list.c result.vtable = list->base.vtable; list 468 maint/gnulib/lib/gl_array_list.c result.list = list; list 469 maint/gnulib/lib/gl_array_list.c result.count = list->count; list 470 maint/gnulib/lib/gl_array_list.c result.p = list->elements + 0; list 471 maint/gnulib/lib/gl_array_list.c result.q = list->elements + list->count; list 481 maint/gnulib/lib/gl_array_list.c gl_array_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index) list 485 maint/gnulib/lib/gl_array_list.c if (!(start_index <= end_index && end_index <= list->count)) list 488 maint/gnulib/lib/gl_array_list.c result.vtable = list->base.vtable; list 489 maint/gnulib/lib/gl_array_list.c result.list = list; list 490 maint/gnulib/lib/gl_array_list.c result.count = list->count; list 491 maint/gnulib/lib/gl_array_list.c result.p = list->elements + start_index; list 492 maint/gnulib/lib/gl_array_list.c result.q = list->elements + end_index; list 505 maint/gnulib/lib/gl_array_list.c gl_list_t list = iterator->list; list 506 maint/gnulib/lib/gl_array_list.c if (iterator->count != list->count) list 508 maint/gnulib/lib/gl_array_list.c if (iterator->count != list->count + 1) list 521 maint/gnulib/lib/gl_array_list.c *nodep = INDEX_TO_NODE (p - list->elements); list 537 maint/gnulib/lib/gl_array_list.c gl_array_sortedlist_indexof_from_to (gl_list_t list, list 542 maint/gnulib/lib/gl_array_list.c if (!(low <= high && high <= list->count)) list 554 maint/gnulib/lib/gl_array_list.c int cmp = compar (list->elements[mid], elt); list 572 maint/gnulib/lib/gl_array_list.c int cmp2 = compar (list->elements[mid2], elt); list 596 maint/gnulib/lib/gl_array_list.c gl_array_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, list 599 maint/gnulib/lib/gl_array_list.c return gl_array_sortedlist_indexof_from_to (list, compar, 0, list->count, list 604 maint/gnulib/lib/gl_array_list.c gl_array_sortedlist_search_from_to (gl_list_t list, list 610 maint/gnulib/lib/gl_array_list.c gl_array_sortedlist_indexof_from_to (list, compar, low, high, elt); list 615 maint/gnulib/lib/gl_array_list.c gl_array_sortedlist_search (gl_list_t list, gl_listelement_compar_fn compar, list 619 maint/gnulib/lib/gl_array_list.c gl_array_sortedlist_indexof_from_to (list, compar, 0, list->count, elt); list 624 maint/gnulib/lib/gl_array_list.c gl_array_sortedlist_nx_add (gl_list_t list, gl_listelement_compar_fn compar, list 627 maint/gnulib/lib/gl_array_list.c size_t count = list->count; list 636 maint/gnulib/lib/gl_array_list.c int cmp = compar (list->elements[mid], elt); list 648 maint/gnulib/lib/gl_array_list.c return gl_array_nx_add_at (list, low, elt); list 652 maint/gnulib/lib/gl_array_list.c gl_array_sortedlist_remove (gl_list_t list, gl_listelement_compar_fn compar, list 655 maint/gnulib/lib/gl_array_list.c size_t index = gl_array_sortedlist_indexof (list, compar, elt); list 659 maint/gnulib/lib/gl_array_list.c return gl_array_remove_at (list, index); list 40 maint/gnulib/lib/gl_avltree_list.c extern void gl_avltree_list_check_invariants (gl_list_t list); list 65 maint/gnulib/lib/gl_avltree_list.c gl_avltree_list_check_invariants (gl_list_t list) list 67 maint/gnulib/lib/gl_avltree_list.c if (list->root != NULL) list 68 maint/gnulib/lib/gl_avltree_list.c (void) check_invariants (list->root, NULL); list 44 maint/gnulib/lib/gl_avltreehash_list.c #define CONTAINER_COUNT(list) \ list 45 maint/gnulib/lib/gl_avltreehash_list.c ((list)->root != NULL ? (list)->root->branch_size : 0) list 87 maint/gnulib/lib/gl_avltreehash_list.c gl_avltreehash_list_check_invariants (gl_list_t list) list 89 maint/gnulib/lib/gl_avltreehash_list.c if (list->root != NULL) list 90 maint/gnulib/lib/gl_avltreehash_list.c check_invariants (list->root, NULL); list 59 maint/gnulib/lib/gl_carray_list.c struct gl_list_impl *list = list 62 maint/gnulib/lib/gl_carray_list.c if (list == NULL) list 65 maint/gnulib/lib/gl_carray_list.c list->base.vtable = implementation; list 66 maint/gnulib/lib/gl_carray_list.c list->base.equals_fn = equals_fn; list 67 maint/gnulib/lib/gl_carray_list.c list->base.hashcode_fn = hashcode_fn; list 68 maint/gnulib/lib/gl_carray_list.c list->base.dispose_fn = dispose_fn; list 69 maint/gnulib/lib/gl_carray_list.c list->base.allow_duplicates = allow_duplicates; list 70 maint/gnulib/lib/gl_carray_list.c list->elements = NULL; list 71 maint/gnulib/lib/gl_carray_list.c list->offset = 0; list 72 maint/gnulib/lib/gl_carray_list.c list->count = 0; list 73 maint/gnulib/lib/gl_carray_list.c list->allocated = 0; list 75 maint/gnulib/lib/gl_carray_list.c return list; list 86 maint/gnulib/lib/gl_carray_list.c struct gl_list_impl *list = list 89 maint/gnulib/lib/gl_carray_list.c if (list == NULL) list 92 maint/gnulib/lib/gl_carray_list.c list->base.vtable = implementation; list 93 maint/gnulib/lib/gl_carray_list.c list->base.equals_fn = equals_fn; list 94 maint/gnulib/lib/gl_carray_list.c list->base.hashcode_fn = hashcode_fn; list 95 maint/gnulib/lib/gl_carray_list.c list->base.dispose_fn = dispose_fn; list 96 maint/gnulib/lib/gl_carray_list.c list->base.allow_duplicates = allow_duplicates; list 101 maint/gnulib/lib/gl_carray_list.c list->elements = (const void **) malloc (count * sizeof (const void *)); list 102 maint/gnulib/lib/gl_carray_list.c if (list->elements == NULL) list 104 maint/gnulib/lib/gl_carray_list.c memcpy (list->elements, contents, count * sizeof (const void *)); list 107 maint/gnulib/lib/gl_carray_list.c list->elements = NULL; list 108 maint/gnulib/lib/gl_carray_list.c list->offset = 0; list 109 maint/gnulib/lib/gl_carray_list.c list->count = count; list 110 maint/gnulib/lib/gl_carray_list.c list->allocated = count; list 112 maint/gnulib/lib/gl_carray_list.c return list; list 115 maint/gnulib/lib/gl_carray_list.c free (list); list 120 maint/gnulib/lib/gl_carray_list.c gl_carray_size (gl_list_t list) list 122 maint/gnulib/lib/gl_carray_list.c return list->count; list 126 maint/gnulib/lib/gl_carray_list.c gl_carray_node_value (gl_list_t list, gl_list_node_t node) list 131 maint/gnulib/lib/gl_carray_list.c if (!(index < list->count)) list 134 maint/gnulib/lib/gl_carray_list.c i = list->offset + index; list 135 maint/gnulib/lib/gl_carray_list.c if (i >= list->allocated) list 136 maint/gnulib/lib/gl_carray_list.c i -= list->allocated; list 137 maint/gnulib/lib/gl_carray_list.c return list->elements[i]; list 141 maint/gnulib/lib/gl_carray_list.c gl_carray_node_nx_set_value (gl_list_t list, gl_list_node_t node, list 147 maint/gnulib/lib/gl_carray_list.c if (!(index < list->count)) list 150 maint/gnulib/lib/gl_carray_list.c i = list->offset + index; list 151 maint/gnulib/lib/gl_carray_list.c if (i >= list->allocated) list 152 maint/gnulib/lib/gl_carray_list.c i -= list->allocated; list 153 maint/gnulib/lib/gl_carray_list.c list->elements[i] = elt; list 158 maint/gnulib/lib/gl_carray_list.c gl_carray_next_node (gl_list_t list, gl_list_node_t node) list 161 maint/gnulib/lib/gl_carray_list.c if (!(index < list->count)) list 165 maint/gnulib/lib/gl_carray_list.c if (index < list->count) list 172 maint/gnulib/lib/gl_carray_list.c gl_carray_previous_node (gl_list_t list, gl_list_node_t node) list 175 maint/gnulib/lib/gl_carray_list.c if (!(index < list->count)) list 185 maint/gnulib/lib/gl_carray_list.c gl_carray_first_node (gl_list_t list) list 187 maint/gnulib/lib/gl_carray_list.c if (list->count > 0) list 194 maint/gnulib/lib/gl_carray_list.c gl_carray_last_node (gl_list_t list) list 196 maint/gnulib/lib/gl_carray_list.c if (list->count > 0) list 197 maint/gnulib/lib/gl_carray_list.c return INDEX_TO_NODE (list->count - 1); list 203 maint/gnulib/lib/gl_carray_list.c gl_carray_get_at (gl_list_t list, size_t position) list 205 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 211 maint/gnulib/lib/gl_carray_list.c i = list->offset + position; list 212 maint/gnulib/lib/gl_carray_list.c if (i >= list->allocated) list 213 maint/gnulib/lib/gl_carray_list.c i -= list->allocated; list 214 maint/gnulib/lib/gl_carray_list.c return list->elements[i]; list 218 maint/gnulib/lib/gl_carray_list.c gl_carray_nx_set_at (gl_list_t list, size_t position, const void *elt) list 220 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 226 maint/gnulib/lib/gl_carray_list.c i = list->offset + position; list 227 maint/gnulib/lib/gl_carray_list.c if (i >= list->allocated) list 228 maint/gnulib/lib/gl_carray_list.c i -= list->allocated; list 229 maint/gnulib/lib/gl_carray_list.c list->elements[i] = elt; list 234 maint/gnulib/lib/gl_carray_list.c gl_carray_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index, list 237 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 245 maint/gnulib/lib/gl_carray_list.c gl_listelement_equals_fn equals = list->base.equals_fn; list 246 maint/gnulib/lib/gl_carray_list.c size_t allocated = list->allocated; list 249 maint/gnulib/lib/gl_carray_list.c i_end = list->offset + end_index; list 257 maint/gnulib/lib/gl_carray_list.c i = list->offset + start_index; list 263 maint/gnulib/lib/gl_carray_list.c if (equals (elt, list->elements[i])) list 264 maint/gnulib/lib/gl_carray_list.c return (i >= list->offset ? i : i + allocated) - list->offset; list 276 maint/gnulib/lib/gl_carray_list.c i = list->offset + start_index; list 282 maint/gnulib/lib/gl_carray_list.c if (elt == list->elements[i]) list 283 maint/gnulib/lib/gl_carray_list.c return (i >= list->offset ? i : i + allocated) - list->offset; list 296 maint/gnulib/lib/gl_carray_list.c gl_carray_search_from_to (gl_list_t list, size_t start_index, size_t end_index, list 299 maint/gnulib/lib/gl_carray_list.c size_t index = gl_carray_indexof_from_to (list, start_index, end_index, elt); list 306 maint/gnulib/lib/gl_carray_list.c grow (gl_list_t list) list 312 maint/gnulib/lib/gl_carray_list.c new_allocated = xtimes (list->allocated, 2); list 318 maint/gnulib/lib/gl_carray_list.c if (list->offset > 0 && list->count > 0) list 324 maint/gnulib/lib/gl_carray_list.c if (list->offset + list->count > list->allocated) list 326 maint/gnulib/lib/gl_carray_list.c memcpy (memory, &list->elements[list->offset], list 327 maint/gnulib/lib/gl_carray_list.c (list->allocated - list->offset) * sizeof (const void *)); list 328 maint/gnulib/lib/gl_carray_list.c memcpy (memory + (list->allocated - list->offset), list->elements, list 329 maint/gnulib/lib/gl_carray_list.c (list->offset + list->count - list->allocated) list 334 maint/gnulib/lib/gl_carray_list.c memcpy (memory, &list->elements[list->offset], list 335 maint/gnulib/lib/gl_carray_list.c list->count * sizeof (const void *)); list 336 maint/gnulib/lib/gl_carray_list.c if (list->elements != NULL) list 337 maint/gnulib/lib/gl_carray_list.c free (list->elements); list 341 maint/gnulib/lib/gl_carray_list.c memory = (const void **) realloc (list->elements, memory_size); list 346 maint/gnulib/lib/gl_carray_list.c list->elements = memory; list 347 maint/gnulib/lib/gl_carray_list.c list->offset = 0; list 348 maint/gnulib/lib/gl_carray_list.c list->allocated = new_allocated; list 353 maint/gnulib/lib/gl_carray_list.c gl_carray_nx_add_first (gl_list_t list, const void *elt) list 355 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 357 maint/gnulib/lib/gl_carray_list.c if (count == list->allocated) list 358 maint/gnulib/lib/gl_carray_list.c if (grow (list) < 0) list 360 maint/gnulib/lib/gl_carray_list.c list->offset = (list->offset == 0 ? list->allocated : list->offset) - 1; list 361 maint/gnulib/lib/gl_carray_list.c list->elements[list->offset] = elt; list 362 maint/gnulib/lib/gl_carray_list.c list->count = count + 1; list 367 maint/gnulib/lib/gl_carray_list.c gl_carray_nx_add_last (gl_list_t list, const void *elt) list 369 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 372 maint/gnulib/lib/gl_carray_list.c if (count == list->allocated) list 373 maint/gnulib/lib/gl_carray_list.c if (grow (list) < 0) list 375 maint/gnulib/lib/gl_carray_list.c i = list->offset + count; list 376 maint/gnulib/lib/gl_carray_list.c if (i >= list->allocated) list 377 maint/gnulib/lib/gl_carray_list.c i -= list->allocated; list 378 maint/gnulib/lib/gl_carray_list.c list->elements[i] = elt; list 379 maint/gnulib/lib/gl_carray_list.c list->count = count + 1; list 384 maint/gnulib/lib/gl_carray_list.c gl_carray_nx_add_at (gl_list_t list, size_t position, const void *elt) list 386 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 392 maint/gnulib/lib/gl_carray_list.c if (count == list->allocated) list 393 maint/gnulib/lib/gl_carray_list.c if (grow (list) < 0) list 395 maint/gnulib/lib/gl_carray_list.c elements = list->elements; list 401 maint/gnulib/lib/gl_carray_list.c list->offset = (list->offset == 0 ? list->allocated : list->offset) - 1; list 403 maint/gnulib/lib/gl_carray_list.c i2 = list->offset + position; list 404 maint/gnulib/lib/gl_carray_list.c if (i2 >= list->allocated) list 407 maint/gnulib/lib/gl_carray_list.c size_t i1 = list->allocated - 1; list 408 maint/gnulib/lib/gl_carray_list.c i2 -= list->allocated; list 409 maint/gnulib/lib/gl_carray_list.c for (i = list->offset; i < i1; i++) list 417 maint/gnulib/lib/gl_carray_list.c for (i = list->offset; i < i2; i++) list 427 maint/gnulib/lib/gl_carray_list.c i1 = list->offset + position; list 428 maint/gnulib/lib/gl_carray_list.c i3 = list->offset + count; list 429 maint/gnulib/lib/gl_carray_list.c if (i1 >= list->allocated) list 431 maint/gnulib/lib/gl_carray_list.c i1 -= list->allocated; list 432 maint/gnulib/lib/gl_carray_list.c i3 -= list->allocated; list 436 maint/gnulib/lib/gl_carray_list.c else if (i3 >= list->allocated) list 439 maint/gnulib/lib/gl_carray_list.c size_t i2 = list->allocated - 1; list 440 maint/gnulib/lib/gl_carray_list.c i3 -= list->allocated; list 454 maint/gnulib/lib/gl_carray_list.c list->count = count + 1; list 459 maint/gnulib/lib/gl_carray_list.c gl_carray_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) list 461 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 467 maint/gnulib/lib/gl_carray_list.c return gl_carray_nx_add_at (list, index, elt); list 471 maint/gnulib/lib/gl_carray_list.c gl_carray_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) list 473 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 479 maint/gnulib/lib/gl_carray_list.c return gl_carray_nx_add_at (list, index + 1, elt); list 483 maint/gnulib/lib/gl_carray_list.c gl_carray_remove_at (gl_list_t list, size_t position) list 485 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 492 maint/gnulib/lib/gl_carray_list.c elements = list->elements; list 498 maint/gnulib/lib/gl_carray_list.c i0 = list->offset; list 499 maint/gnulib/lib/gl_carray_list.c i2 = list->offset + position; list 500 maint/gnulib/lib/gl_carray_list.c if (i2 >= list->allocated) list 503 maint/gnulib/lib/gl_carray_list.c size_t i1 = list->allocated - 1; list 504 maint/gnulib/lib/gl_carray_list.c i2 -= list->allocated; list 505 maint/gnulib/lib/gl_carray_list.c if (list->base.dispose_fn != NULL) list 506 maint/gnulib/lib/gl_carray_list.c list->base.dispose_fn (elements[i2]); list 515 maint/gnulib/lib/gl_carray_list.c if (list->base.dispose_fn != NULL) list 516 maint/gnulib/lib/gl_carray_list.c list->base.dispose_fn (elements[i2]); list 522 maint/gnulib/lib/gl_carray_list.c list->offset = (i0 == list->allocated ? 0 : i0); list 529 maint/gnulib/lib/gl_carray_list.c i1 = list->offset + position; list 530 maint/gnulib/lib/gl_carray_list.c i3 = list->offset + count - 1; list 531 maint/gnulib/lib/gl_carray_list.c if (i1 >= list->allocated) list 533 maint/gnulib/lib/gl_carray_list.c i1 -= list->allocated; list 534 maint/gnulib/lib/gl_carray_list.c i3 -= list->allocated; list 535 maint/gnulib/lib/gl_carray_list.c if (list->base.dispose_fn != NULL) list 536 maint/gnulib/lib/gl_carray_list.c list->base.dispose_fn (elements[i1]); list 540 maint/gnulib/lib/gl_carray_list.c else if (i3 >= list->allocated) list 543 maint/gnulib/lib/gl_carray_list.c size_t i2 = list->allocated - 1; list 544 maint/gnulib/lib/gl_carray_list.c i3 -= list->allocated; list 545 maint/gnulib/lib/gl_carray_list.c if (list->base.dispose_fn != NULL) list 546 maint/gnulib/lib/gl_carray_list.c list->base.dispose_fn (elements[i1]); list 555 maint/gnulib/lib/gl_carray_list.c if (list->base.dispose_fn != NULL) list 556 maint/gnulib/lib/gl_carray_list.c list->base.dispose_fn (elements[i1]); list 561 maint/gnulib/lib/gl_carray_list.c list->count = count - 1; list 566 maint/gnulib/lib/gl_carray_list.c gl_carray_remove_node (gl_list_t list, gl_list_node_t node) list 568 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 574 maint/gnulib/lib/gl_carray_list.c return gl_carray_remove_at (list, index); list 578 maint/gnulib/lib/gl_carray_list.c gl_carray_remove (gl_list_t list, const void *elt) list 580 maint/gnulib/lib/gl_carray_list.c size_t position = gl_carray_indexof_from_to (list, 0, list->count, elt); list 584 maint/gnulib/lib/gl_carray_list.c return gl_carray_remove_at (list, position); list 588 maint/gnulib/lib/gl_carray_list.c gl_carray_list_free (gl_list_t list) list 590 maint/gnulib/lib/gl_carray_list.c if (list->elements != NULL) list 592 maint/gnulib/lib/gl_carray_list.c if (list->base.dispose_fn != NULL) list 594 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 598 maint/gnulib/lib/gl_carray_list.c gl_listelement_dispose_fn dispose = list->base.dispose_fn; list 599 maint/gnulib/lib/gl_carray_list.c const void **elements = list->elements; list 600 maint/gnulib/lib/gl_carray_list.c size_t i1 = list->offset; list 601 maint/gnulib/lib/gl_carray_list.c size_t i3 = list->offset + count - 1; list 603 maint/gnulib/lib/gl_carray_list.c if (i3 >= list->allocated) list 607 maint/gnulib/lib/gl_carray_list.c size_t i2 = list->allocated - 1; list 610 maint/gnulib/lib/gl_carray_list.c i3 -= list->allocated; list 625 maint/gnulib/lib/gl_carray_list.c free (list->elements); list 627 maint/gnulib/lib/gl_carray_list.c free (list); list 633 maint/gnulib/lib/gl_carray_list.c gl_carray_iterator (gl_list_t list) list 637 maint/gnulib/lib/gl_carray_list.c result.vtable = list->base.vtable; list 638 maint/gnulib/lib/gl_carray_list.c result.list = list; list 639 maint/gnulib/lib/gl_carray_list.c result.count = list->count; list 641 maint/gnulib/lib/gl_carray_list.c result.j = list->count; list 651 maint/gnulib/lib/gl_carray_list.c gl_carray_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index) list 655 maint/gnulib/lib/gl_carray_list.c if (!(start_index <= end_index && end_index <= list->count)) list 658 maint/gnulib/lib/gl_carray_list.c result.vtable = list->base.vtable; list 659 maint/gnulib/lib/gl_carray_list.c result.list = list; list 660 maint/gnulib/lib/gl_carray_list.c result.count = list->count; list 675 maint/gnulib/lib/gl_carray_list.c gl_list_t list = iterator->list; list 676 maint/gnulib/lib/gl_carray_list.c if (iterator->count != list->count) list 678 maint/gnulib/lib/gl_carray_list.c if (iterator->count != list->count + 1) list 688 maint/gnulib/lib/gl_carray_list.c size_t i = list->offset + iterator->i; list 689 maint/gnulib/lib/gl_carray_list.c if (i >= list->allocated) list 690 maint/gnulib/lib/gl_carray_list.c i -= list->allocated; list 691 maint/gnulib/lib/gl_carray_list.c *eltp = list->elements[i]; list 709 maint/gnulib/lib/gl_carray_list.c gl_carray_sortedlist_indexof_from_to (gl_list_t list, list 714 maint/gnulib/lib/gl_carray_list.c if (!(low <= high && high <= list->count)) list 729 maint/gnulib/lib/gl_carray_list.c i_mid = list->offset + mid; list 730 maint/gnulib/lib/gl_carray_list.c if (i_mid >= list->allocated) list 731 maint/gnulib/lib/gl_carray_list.c i_mid -= list->allocated; list 733 maint/gnulib/lib/gl_carray_list.c cmp = compar (list->elements[i_mid], elt); list 754 maint/gnulib/lib/gl_carray_list.c i_mid2 = list->offset + mid2; list 755 maint/gnulib/lib/gl_carray_list.c if (i_mid2 >= list->allocated) list 756 maint/gnulib/lib/gl_carray_list.c i_mid2 -= list->allocated; list 758 maint/gnulib/lib/gl_carray_list.c cmp2 = compar (list->elements[i_mid2], elt); list 782 maint/gnulib/lib/gl_carray_list.c gl_carray_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, list 785 maint/gnulib/lib/gl_carray_list.c return gl_carray_sortedlist_indexof_from_to (list, compar, 0, list->count, list 790 maint/gnulib/lib/gl_carray_list.c gl_carray_sortedlist_search_from_to (gl_list_t list, list 796 maint/gnulib/lib/gl_carray_list.c gl_carray_sortedlist_indexof_from_to (list, compar, low, high, elt); list 801 maint/gnulib/lib/gl_carray_list.c gl_carray_sortedlist_search (gl_list_t list, gl_listelement_compar_fn compar, list 805 maint/gnulib/lib/gl_carray_list.c gl_carray_sortedlist_indexof_from_to (list, compar, 0, list->count, elt); list 810 maint/gnulib/lib/gl_carray_list.c gl_carray_sortedlist_nx_add (gl_list_t list, gl_listelement_compar_fn compar, list 813 maint/gnulib/lib/gl_carray_list.c size_t count = list->count; list 825 maint/gnulib/lib/gl_carray_list.c i_mid = list->offset + mid; list 826 maint/gnulib/lib/gl_carray_list.c if (i_mid >= list->allocated) list 827 maint/gnulib/lib/gl_carray_list.c i_mid -= list->allocated; list 829 maint/gnulib/lib/gl_carray_list.c cmp = compar (list->elements[i_mid], elt); list 841 maint/gnulib/lib/gl_carray_list.c return gl_carray_nx_add_at (list, low, elt); list 845 maint/gnulib/lib/gl_carray_list.c gl_carray_sortedlist_remove (gl_list_t list, gl_listelement_compar_fn compar, list 848 maint/gnulib/lib/gl_carray_list.c size_t index = gl_carray_sortedlist_indexof (list, compar, elt); list 852 maint/gnulib/lib/gl_carray_list.c return gl_carray_remove_at (list, index); list 40 maint/gnulib/lib/gl_linkedhash_list.c #define CONTAINER_COUNT(list) (list)->count list 45 maint/gnulib/lib/gl_linkedhash_list.c add_to_bucket (gl_list_t list, gl_list_node_t node) list 47 maint/gnulib/lib/gl_linkedhash_list.c size_t bucket = node->h.hashcode % list->table_size; list 49 maint/gnulib/lib/gl_linkedhash_list.c node->h.hash_next = list->table[bucket]; list 50 maint/gnulib/lib/gl_linkedhash_list.c list->table[bucket] = &node->h; list 53 maint/gnulib/lib/gl_linkedhash_list.c #define add_to_bucket(list,node) ((add_to_bucket) (list, node), 0) list 57 maint/gnulib/lib/gl_linkedhash_list.c remove_from_bucket (gl_list_t list, gl_list_node_t node) list 59 maint/gnulib/lib/gl_linkedhash_list.c size_t bucket = node->h.hashcode % list->table_size; list 62 maint/gnulib/lib/gl_linkedhash_list.c for (p = &list->table[bucket]; ; p = &(*p)->hash_next) list 196 maint/gnulib/lib/gl_list.h extern size_t gl_list_size (gl_list_t list); list 199 maint/gnulib/lib/gl_list.h extern const void * gl_list_node_value (gl_list_t list, gl_list_node_t node); list 203 maint/gnulib/lib/gl_list.h extern void gl_list_node_set_value (gl_list_t list, gl_list_node_t node, list 207 maint/gnulib/lib/gl_list.h extern int gl_list_node_nx_set_value (gl_list_t list, gl_list_node_t node, list 212 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_next_node (gl_list_t list, gl_list_node_t node); list 216 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_previous_node (gl_list_t list, gl_list_node_t node); list 224 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_first_node (gl_list_t list); list 233 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_last_node (gl_list_t list); list 237 maint/gnulib/lib/gl_list.h extern const void * gl_list_get_at (gl_list_t list, size_t position); list 241 maint/gnulib/lib/gl_list.h extern const void * gl_list_get_first (gl_list_t list); list 245 maint/gnulib/lib/gl_list.h extern const void * gl_list_get_last (gl_list_t list); list 251 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_set_at (gl_list_t list, size_t position, list 255 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_nx_set_at (gl_list_t list, size_t position, list 262 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_set_first (gl_list_t list, const void *elt); list 265 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_nx_set_first (gl_list_t list, const void *elt); list 271 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_set_last (gl_list_t list, const void *elt); list 274 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_nx_set_last (gl_list_t list, const void *elt); list 278 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_search (gl_list_t list, const void *elt); list 283 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_search_from (gl_list_t list, size_t start_index, list 289 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_search_from_to (gl_list_t list, list 296 maint/gnulib/lib/gl_list.h extern size_t gl_list_indexof (gl_list_t list, const void *elt); list 301 maint/gnulib/lib/gl_list.h extern size_t gl_list_indexof_from (gl_list_t list, size_t start_index, list 307 maint/gnulib/lib/gl_list.h extern size_t gl_list_indexof_from_to (gl_list_t list, list 314 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_add_first (gl_list_t list, const void *elt); list 317 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_nx_add_first (gl_list_t list, const void *elt); list 322 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_add_last (gl_list_t list, const void *elt); list 325 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_nx_add_last (gl_list_t list, const void *elt); list 330 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_add_before (gl_list_t list, gl_list_node_t node, list 334 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_nx_add_before (gl_list_t list, list 341 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_add_after (gl_list_t list, gl_list_node_t node, list 345 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_nx_add_after (gl_list_t list, gl_list_node_t node, list 351 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_add_at (gl_list_t list, size_t position, list 355 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_nx_add_at (gl_list_t list, size_t position, list 360 maint/gnulib/lib/gl_list.h extern bool gl_list_remove_node (gl_list_t list, gl_list_node_t node); list 365 maint/gnulib/lib/gl_list.h extern bool gl_list_remove_at (gl_list_t list, size_t position); list 369 maint/gnulib/lib/gl_list.h extern bool gl_list_remove_first (gl_list_t list); list 373 maint/gnulib/lib/gl_list.h extern bool gl_list_remove_last (gl_list_t list); list 377 maint/gnulib/lib/gl_list.h extern bool gl_list_remove (gl_list_t list, const void *elt); list 383 maint/gnulib/lib/gl_list.h extern void gl_list_free (gl_list_t list); list 399 maint/gnulib/lib/gl_list.h gl_list_t list; list 411 maint/gnulib/lib/gl_list.h extern gl_list_iterator_t gl_list_iterator (gl_list_t list); list 417 maint/gnulib/lib/gl_list.h extern gl_list_iterator_t gl_list_iterator_from_to (gl_list_t list, list 448 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_sortedlist_search (gl_list_t list, list 460 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_sortedlist_search_from_to (gl_list_t list, list 471 maint/gnulib/lib/gl_list.h extern size_t gl_sortedlist_indexof (gl_list_t list, list 483 maint/gnulib/lib/gl_list.h extern size_t gl_sortedlist_indexof_from_to (gl_list_t list, list 493 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_sortedlist_add (gl_list_t list, list 498 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_sortedlist_nx_add (gl_list_t list, list 507 maint/gnulib/lib/gl_list.h extern bool gl_sortedlist_remove (gl_list_t list, list 529 maint/gnulib/lib/gl_list.h size_t (*size) (gl_list_t list); list 530 maint/gnulib/lib/gl_list.h const void * (*node_value) (gl_list_t list, gl_list_node_t node); list 531 maint/gnulib/lib/gl_list.h int (*node_nx_set_value) (gl_list_t list, gl_list_node_t node, list 533 maint/gnulib/lib/gl_list.h gl_list_node_t (*next_node) (gl_list_t list, gl_list_node_t node); list 534 maint/gnulib/lib/gl_list.h gl_list_node_t (*previous_node) (gl_list_t list, gl_list_node_t node); list 535 maint/gnulib/lib/gl_list.h gl_list_node_t (*first_node) (gl_list_t list); list 536 maint/gnulib/lib/gl_list.h gl_list_node_t (*last_node) (gl_list_t list); list 537 maint/gnulib/lib/gl_list.h const void * (*get_at) (gl_list_t list, size_t position); list 538 maint/gnulib/lib/gl_list.h gl_list_node_t (*nx_set_at) (gl_list_t list, size_t position, list 540 maint/gnulib/lib/gl_list.h gl_list_node_t (*search_from_to) (gl_list_t list, size_t start_index, list 542 maint/gnulib/lib/gl_list.h size_t (*indexof_from_to) (gl_list_t list, size_t start_index, list 544 maint/gnulib/lib/gl_list.h gl_list_node_t (*nx_add_first) (gl_list_t list, const void *elt); list 545 maint/gnulib/lib/gl_list.h gl_list_node_t (*nx_add_last) (gl_list_t list, const void *elt); list 546 maint/gnulib/lib/gl_list.h gl_list_node_t (*nx_add_before) (gl_list_t list, gl_list_node_t node, list 548 maint/gnulib/lib/gl_list.h gl_list_node_t (*nx_add_after) (gl_list_t list, gl_list_node_t node, list 550 maint/gnulib/lib/gl_list.h gl_list_node_t (*nx_add_at) (gl_list_t list, size_t position, list 552 maint/gnulib/lib/gl_list.h bool (*remove_node) (gl_list_t list, gl_list_node_t node); list 553 maint/gnulib/lib/gl_list.h bool (*remove_at) (gl_list_t list, size_t position); list 554 maint/gnulib/lib/gl_list.h bool (*remove_elt) (gl_list_t list, const void *elt); list 555 maint/gnulib/lib/gl_list.h void (*list_free) (gl_list_t list); list 557 maint/gnulib/lib/gl_list.h gl_list_iterator_t (*iterator) (gl_list_t list); list 558 maint/gnulib/lib/gl_list.h gl_list_iterator_t (*iterator_from_to) (gl_list_t list, list 565 maint/gnulib/lib/gl_list.h gl_list_node_t (*sortedlist_search) (gl_list_t list, list 568 maint/gnulib/lib/gl_list.h gl_list_node_t (*sortedlist_search_from_to) (gl_list_t list, list 573 maint/gnulib/lib/gl_list.h size_t (*sortedlist_indexof) (gl_list_t list, list 576 maint/gnulib/lib/gl_list.h size_t (*sortedlist_indexof_from_to) (gl_list_t list, list 580 maint/gnulib/lib/gl_list.h gl_list_node_t (*sortedlist_nx_add) (gl_list_t list, list 583 maint/gnulib/lib/gl_list.h bool (*sortedlist_remove) (gl_list_t list, list 630 maint/gnulib/lib/gl_list.h gl_list_size (gl_list_t list) list 632 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 633 maint/gnulib/lib/gl_list.h ->size (list); list 637 maint/gnulib/lib/gl_list.h gl_list_node_value (gl_list_t list, gl_list_node_t node) list 639 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 640 maint/gnulib/lib/gl_list.h ->node_value (list, node); list 644 maint/gnulib/lib/gl_list.h gl_list_node_nx_set_value (gl_list_t list, gl_list_node_t node, list 647 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 648 maint/gnulib/lib/gl_list.h ->node_nx_set_value (list, node, elt); list 652 maint/gnulib/lib/gl_list.h gl_list_next_node (gl_list_t list, gl_list_node_t node) list 654 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 655 maint/gnulib/lib/gl_list.h ->next_node (list, node); list 659 maint/gnulib/lib/gl_list.h gl_list_previous_node (gl_list_t list, gl_list_node_t node) list 661 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 662 maint/gnulib/lib/gl_list.h ->previous_node (list, node); list 666 maint/gnulib/lib/gl_list.h gl_list_first_node (gl_list_t list) list 668 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 669 maint/gnulib/lib/gl_list.h ->first_node (list); list 673 maint/gnulib/lib/gl_list.h gl_list_last_node (gl_list_t list) list 675 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 676 maint/gnulib/lib/gl_list.h ->last_node (list); list 680 maint/gnulib/lib/gl_list.h gl_list_get_at (gl_list_t list, size_t position) list 682 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 683 maint/gnulib/lib/gl_list.h ->get_at (list, position); list 687 maint/gnulib/lib/gl_list.h gl_list_get_first (gl_list_t list) list 689 maint/gnulib/lib/gl_list.h return gl_list_get_at (list, 0); list 693 maint/gnulib/lib/gl_list.h gl_list_get_last (gl_list_t list) list 695 maint/gnulib/lib/gl_list.h return gl_list_get_at (list, gl_list_size (list) - 1); list 699 maint/gnulib/lib/gl_list.h gl_list_nx_set_at (gl_list_t list, size_t position, const void *elt) list 701 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 702 maint/gnulib/lib/gl_list.h ->nx_set_at (list, position, elt); list 706 maint/gnulib/lib/gl_list.h gl_list_nx_set_first (gl_list_t list, const void *elt) list 708 maint/gnulib/lib/gl_list.h return gl_list_nx_set_at (list, 0, elt); list 712 maint/gnulib/lib/gl_list.h gl_list_nx_set_last (gl_list_t list, const void *elt) list 714 maint/gnulib/lib/gl_list.h return gl_list_nx_set_at (list, gl_list_size (list) - 1, elt); list 718 maint/gnulib/lib/gl_list.h gl_list_search (gl_list_t list, const void *elt) list 720 maint/gnulib/lib/gl_list.h size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); list 721 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 722 maint/gnulib/lib/gl_list.h ->search_from_to (list, 0, size, elt); list 726 maint/gnulib/lib/gl_list.h gl_list_search_from (gl_list_t list, size_t start_index, const void *elt) list 728 maint/gnulib/lib/gl_list.h size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); list 729 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 730 maint/gnulib/lib/gl_list.h ->search_from_to (list, start_index, size, elt); list 734 maint/gnulib/lib/gl_list.h gl_list_search_from_to (gl_list_t list, size_t start_index, size_t end_index, list 737 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 738 maint/gnulib/lib/gl_list.h ->search_from_to (list, start_index, end_index, elt); list 742 maint/gnulib/lib/gl_list.h gl_list_indexof (gl_list_t list, const void *elt) list 744 maint/gnulib/lib/gl_list.h size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); list 745 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 746 maint/gnulib/lib/gl_list.h ->indexof_from_to (list, 0, size, elt); list 750 maint/gnulib/lib/gl_list.h gl_list_indexof_from (gl_list_t list, size_t start_index, const void *elt) list 752 maint/gnulib/lib/gl_list.h size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); list 753 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 754 maint/gnulib/lib/gl_list.h ->indexof_from_to (list, start_index, size, elt); list 758 maint/gnulib/lib/gl_list.h gl_list_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index, list 761 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 762 maint/gnulib/lib/gl_list.h ->indexof_from_to (list, start_index, end_index, elt); list 766 maint/gnulib/lib/gl_list.h gl_list_nx_add_first (gl_list_t list, const void *elt) list 768 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 769 maint/gnulib/lib/gl_list.h ->nx_add_first (list, elt); list 773 maint/gnulib/lib/gl_list.h gl_list_nx_add_last (gl_list_t list, const void *elt) list 775 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 776 maint/gnulib/lib/gl_list.h ->nx_add_last (list, elt); list 780 maint/gnulib/lib/gl_list.h gl_list_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) list 782 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 783 maint/gnulib/lib/gl_list.h ->nx_add_before (list, node, elt); list 787 maint/gnulib/lib/gl_list.h gl_list_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) list 789 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 790 maint/gnulib/lib/gl_list.h ->nx_add_after (list, node, elt); list 794 maint/gnulib/lib/gl_list.h gl_list_nx_add_at (gl_list_t list, size_t position, const void *elt) list 796 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 797 maint/gnulib/lib/gl_list.h ->nx_add_at (list, position, elt); list 801 maint/gnulib/lib/gl_list.h gl_list_remove_node (gl_list_t list, gl_list_node_t node) list 803 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 804 maint/gnulib/lib/gl_list.h ->remove_node (list, node); list 808 maint/gnulib/lib/gl_list.h gl_list_remove_at (gl_list_t list, size_t position) list 810 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 811 maint/gnulib/lib/gl_list.h ->remove_at (list, position); list 815 maint/gnulib/lib/gl_list.h gl_list_remove_first (gl_list_t list) list 817 maint/gnulib/lib/gl_list.h size_t size = gl_list_size (list); list 819 maint/gnulib/lib/gl_list.h return gl_list_remove_at (list, 0); list 825 maint/gnulib/lib/gl_list.h gl_list_remove_last (gl_list_t list) list 827 maint/gnulib/lib/gl_list.h size_t size = gl_list_size (list); list 829 maint/gnulib/lib/gl_list.h return gl_list_remove_at (list, size - 1); list 835 maint/gnulib/lib/gl_list.h gl_list_remove (gl_list_t list, const void *elt) list 837 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 838 maint/gnulib/lib/gl_list.h ->remove_elt (list, elt); list 842 maint/gnulib/lib/gl_list.h gl_list_free (gl_list_t list) list 844 maint/gnulib/lib/gl_list.h ((const struct gl_list_impl_base *) list)->vtable->list_free (list); list 848 maint/gnulib/lib/gl_list.h gl_list_iterator (gl_list_t list) list 850 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 851 maint/gnulib/lib/gl_list.h ->iterator (list); list 855 maint/gnulib/lib/gl_list.h gl_list_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index) list 857 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 858 maint/gnulib/lib/gl_list.h ->iterator_from_to (list, start_index, end_index); list 875 maint/gnulib/lib/gl_list.h gl_sortedlist_search (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) list 877 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 878 maint/gnulib/lib/gl_list.h ->sortedlist_search (list, compar, elt); list 882 maint/gnulib/lib/gl_list.h gl_sortedlist_search_from_to (gl_list_t list, gl_listelement_compar_fn compar, size_t start_index, size_t end_index, const void *elt) list 884 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 885 maint/gnulib/lib/gl_list.h ->sortedlist_search_from_to (list, compar, start_index, end_index, list 890 maint/gnulib/lib/gl_list.h gl_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) list 892 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 893 maint/gnulib/lib/gl_list.h ->sortedlist_indexof (list, compar, elt); list 897 maint/gnulib/lib/gl_list.h gl_sortedlist_indexof_from_to (gl_list_t list, gl_listelement_compar_fn compar, size_t start_index, size_t end_index, const void *elt) list 899 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 900 maint/gnulib/lib/gl_list.h ->sortedlist_indexof_from_to (list, compar, start_index, end_index, list 905 maint/gnulib/lib/gl_list.h gl_sortedlist_nx_add (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) list 907 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 908 maint/gnulib/lib/gl_list.h ->sortedlist_nx_add (list, compar, elt); list 912 maint/gnulib/lib/gl_list.h gl_sortedlist_remove (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) list 914 maint/gnulib/lib/gl_list.h return ((const struct gl_list_impl_base *) list)->vtable list 915 maint/gnulib/lib/gl_list.h ->sortedlist_remove (list, compar, elt); list 40 maint/gnulib/lib/gl_rbtree_list.c extern void gl_rbtree_list_check_invariants (gl_list_t list); list 66 maint/gnulib/lib/gl_rbtree_list.c gl_rbtree_list_check_invariants (gl_list_t list) list 68 maint/gnulib/lib/gl_rbtree_list.c if (list->root != NULL) list 69 maint/gnulib/lib/gl_rbtree_list.c (void) check_invariants (list->root, NULL); list 44 maint/gnulib/lib/gl_rbtreehash_list.c #define CONTAINER_COUNT(list) \ list 45 maint/gnulib/lib/gl_rbtreehash_list.c ((list)->root != NULL ? (list)->root->branch_size : 0) list 88 maint/gnulib/lib/gl_rbtreehash_list.c gl_rbtreehash_list_check_invariants (gl_list_t list) list 90 maint/gnulib/lib/gl_rbtreehash_list.c if (list->root != NULL) list 91 maint/gnulib/lib/gl_rbtreehash_list.c check_invariants (list->root, NULL); list 70 maint/gnulib/lib/gl_sublist.c gl_sublist_size (gl_list_t list) list 72 maint/gnulib/lib/gl_sublist.c return list->end - list->start; list 76 maint/gnulib/lib/gl_sublist.c gl_sublist_node_value (gl_list_t list, gl_list_node_t node) list 79 maint/gnulib/lib/gl_sublist.c if (!(index < list->end - list->start)) list 82 maint/gnulib/lib/gl_sublist.c return gl_list_get_at (list->whole, list->start + index); list 86 maint/gnulib/lib/gl_sublist.c gl_sublist_node_nx_set_value (gl_list_t list, gl_list_node_t node, const void *elt) list 89 maint/gnulib/lib/gl_sublist.c if (!(index < list->end - list->start)) list 92 maint/gnulib/lib/gl_sublist.c if (gl_list_nx_set_at (list->whole, list->start + index, elt) == NULL) list 98 maint/gnulib/lib/gl_sublist.c gl_sublist_next_node (gl_list_t list, gl_list_node_t node) list 101 maint/gnulib/lib/gl_sublist.c size_t count = list->end - list->start; list 113 maint/gnulib/lib/gl_sublist.c gl_sublist_previous_node (gl_list_t list, gl_list_node_t node) list 116 maint/gnulib/lib/gl_sublist.c if (!(index < list->end - list->start)) list 126 maint/gnulib/lib/gl_sublist.c gl_sublist_first_node (gl_list_t list) list 128 maint/gnulib/lib/gl_sublist.c if (list->end > list->start) list 135 maint/gnulib/lib/gl_sublist.c gl_sublist_last_node (gl_list_t list) list 137 maint/gnulib/lib/gl_sublist.c size_t count = list->end - list->start; list 145 maint/gnulib/lib/gl_sublist.c gl_sublist_get_at (gl_list_t list, size_t position) list 147 maint/gnulib/lib/gl_sublist.c if (!(position < list->end - list->start)) list 150 maint/gnulib/lib/gl_sublist.c return gl_list_get_at (list->whole, list->start + position); list 154 maint/gnulib/lib/gl_sublist.c gl_sublist_nx_set_at (gl_list_t list, size_t position, const void *elt) list 156 maint/gnulib/lib/gl_sublist.c if (!(position < list->end - list->start)) list 159 maint/gnulib/lib/gl_sublist.c if (gl_list_nx_set_at (list->whole, list->start + position, elt) == NULL) list 165 maint/gnulib/lib/gl_sublist.c gl_sublist_search_from_to (gl_list_t list, size_t start_index, size_t end_index, list 168 maint/gnulib/lib/gl_sublist.c if (!(start_index <= end_index && end_index <= list->end - list->start)) list 173 maint/gnulib/lib/gl_sublist.c gl_list_indexof_from_to (list->whole, list 174 maint/gnulib/lib/gl_sublist.c list->start + start_index, list 175 maint/gnulib/lib/gl_sublist.c list->start + end_index, list 178 maint/gnulib/lib/gl_sublist.c return INDEX_TO_NODE (index - list->start); list 185 maint/gnulib/lib/gl_sublist.c gl_sublist_indexof_from_to (gl_list_t list, list 189 maint/gnulib/lib/gl_sublist.c if (!(start_index <= end_index && end_index <= list->end - list->start)) list 194 maint/gnulib/lib/gl_sublist.c gl_list_indexof_from_to (list->whole, list 195 maint/gnulib/lib/gl_sublist.c list->start + start_index, list 196 maint/gnulib/lib/gl_sublist.c list->start + end_index, list 199 maint/gnulib/lib/gl_sublist.c index -= list->start; list 205 maint/gnulib/lib/gl_sublist.c gl_sublist_nx_add_first (gl_list_t list, const void *elt) list 207 maint/gnulib/lib/gl_sublist.c if (gl_list_nx_add_at (list->whole, list->start, elt) == NULL) list 209 maint/gnulib/lib/gl_sublist.c list->end++; list 214 maint/gnulib/lib/gl_sublist.c gl_sublist_nx_add_last (gl_list_t list, const void *elt) list 216 maint/gnulib/lib/gl_sublist.c if (gl_list_nx_add_at (list->whole, list->end, elt) == NULL) list 218 maint/gnulib/lib/gl_sublist.c list->end++; list 219 maint/gnulib/lib/gl_sublist.c return INDEX_TO_NODE (list->end - list->start - 1); list 223 maint/gnulib/lib/gl_sublist.c gl_sublist_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) list 226 maint/gnulib/lib/gl_sublist.c if (!(position < list->end - list->start)) list 229 maint/gnulib/lib/gl_sublist.c if (gl_list_nx_add_at (list->whole, list->start + position, elt) == NULL) list 231 maint/gnulib/lib/gl_sublist.c list->end++; list 236 maint/gnulib/lib/gl_sublist.c gl_sublist_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) list 239 maint/gnulib/lib/gl_sublist.c if (!(position < list->end - list->start)) list 243 maint/gnulib/lib/gl_sublist.c if (gl_list_nx_add_at (list->whole, list->start + position, elt) == NULL) list 245 maint/gnulib/lib/gl_sublist.c list->end++; list 250 maint/gnulib/lib/gl_sublist.c gl_sublist_nx_add_at (gl_list_t list, size_t position, const void *elt) list 252 maint/gnulib/lib/gl_sublist.c if (!(position <= list->end - list->start)) list 255 maint/gnulib/lib/gl_sublist.c if (gl_list_nx_add_at (list->whole, list->start + position, elt) == NULL) list 257 maint/gnulib/lib/gl_sublist.c list->end++; list 262 maint/gnulib/lib/gl_sublist.c gl_sublist_remove_node (gl_list_t list, gl_list_node_t node) list 265 maint/gnulib/lib/gl_sublist.c if (!(index < list->end - list->start)) list 268 maint/gnulib/lib/gl_sublist.c return gl_list_remove_at (list->whole, list->start + index); list 272 maint/gnulib/lib/gl_sublist.c gl_sublist_remove_at (gl_list_t list, size_t position) list 274 maint/gnulib/lib/gl_sublist.c if (!(position < list->end - list->start)) list 277 maint/gnulib/lib/gl_sublist.c return gl_list_remove_at (list->whole, list->start + position); list 281 maint/gnulib/lib/gl_sublist.c gl_sublist_remove (gl_list_t list, const void *elt) list 284 maint/gnulib/lib/gl_sublist.c gl_list_indexof_from_to (list->whole, list->start, list->end, elt); list 288 maint/gnulib/lib/gl_sublist.c return gl_list_remove_at (list->whole, position); list 292 maint/gnulib/lib/gl_sublist.c gl_sublist_list_free (gl_list_t list) list 294 maint/gnulib/lib/gl_sublist.c free (list); list 300 maint/gnulib/lib/gl_sublist.c gl_sublist_iterator (gl_list_t list) list 302 maint/gnulib/lib/gl_sublist.c return gl_list_iterator_from_to (list->whole, list->start, list->end); list 306 maint/gnulib/lib/gl_sublist.c gl_sublist_iterator_from_to (gl_list_t list, list 309 maint/gnulib/lib/gl_sublist.c if (!(start_index <= end_index && end_index <= list->end - list->start)) list 312 maint/gnulib/lib/gl_sublist.c return gl_list_iterator_from_to (list->whole, list 313 maint/gnulib/lib/gl_sublist.c list->start + start_index, list 314 maint/gnulib/lib/gl_sublist.c list->start + end_index); list 335 maint/gnulib/lib/gl_sublist.c gl_sublist_sortedlist_search (gl_list_t list, list 340 maint/gnulib/lib/gl_sublist.c gl_sortedlist_indexof_from_to (list->whole, compar, list 341 maint/gnulib/lib/gl_sublist.c list->start, list->end, elt); list 343 maint/gnulib/lib/gl_sublist.c return INDEX_TO_NODE (index - list->start); list 349 maint/gnulib/lib/gl_sublist.c gl_sublist_sortedlist_search_from_to (gl_list_t list, list 356 maint/gnulib/lib/gl_sublist.c if (!(low <= high && high <= list->end - list->start)) list 361 maint/gnulib/lib/gl_sublist.c gl_sortedlist_indexof_from_to (list->whole, compar, list 362 maint/gnulib/lib/gl_sublist.c list->start + low, list->start + high, elt); list 364 maint/gnulib/lib/gl_sublist.c return INDEX_TO_NODE (index - list->start); list 370 maint/gnulib/lib/gl_sublist.c gl_sublist_sortedlist_indexof (gl_list_t list, list 375 maint/gnulib/lib/gl_sublist.c gl_sortedlist_indexof_from_to (list->whole, compar, list->start, list->end, list 378 maint/gnulib/lib/gl_sublist.c index -= list->start; list 383 maint/gnulib/lib/gl_sublist.c gl_sublist_sortedlist_indexof_from_to (gl_list_t list, list 390 maint/gnulib/lib/gl_sublist.c if (!(low <= high && high <= list->end - list->start)) list 394 maint/gnulib/lib/gl_sublist.c index = gl_sortedlist_indexof_from_to (list->whole, compar, list 395 maint/gnulib/lib/gl_sublist.c list->start + low, list->start + high, list 398 maint/gnulib/lib/gl_sublist.c index -= list->start; list 403 maint/gnulib/lib/gl_sublist.c gl_sublist_sortedlist_nx_add (gl_list_t list, list 414 maint/gnulib/lib/gl_sublist.c gl_sublist_sortedlist_remove (gl_list_t list, list 418 maint/gnulib/lib/gl_sublist.c size_t index = gl_sublist_sortedlist_indexof (list, compar, elt); list 422 maint/gnulib/lib/gl_sublist.c return gl_sublist_remove_at (list, index); list 469 maint/gnulib/lib/gl_sublist.c struct gl_list_impl *list = list 472 maint/gnulib/lib/gl_sublist.c if (list == NULL) list 475 maint/gnulib/lib/gl_sublist.c list->base.vtable = &gl_sublist_list_implementation; list 476 maint/gnulib/lib/gl_sublist.c list->base.equals_fn = whole_list->base.equals_fn; /* actually unused */ list 477 maint/gnulib/lib/gl_sublist.c list->base.hashcode_fn = whole_list->base.hashcode_fn; /* actually unused */ list 478 maint/gnulib/lib/gl_sublist.c list->base.dispose_fn = whole_list->base.dispose_fn; /* actually unused */ list 479 maint/gnulib/lib/gl_sublist.c list->base.allow_duplicates = whole_list->base.allow_duplicates; /* unused */ list 484 maint/gnulib/lib/gl_sublist.c list->whole = whole_list->whole; list 485 maint/gnulib/lib/gl_sublist.c list->start = whole_list->start + start_index; list 486 maint/gnulib/lib/gl_sublist.c list->end = whole_list->start + end_index; list 490 maint/gnulib/lib/gl_sublist.c list->whole = whole_list; list 491 maint/gnulib/lib/gl_sublist.c list->start = start_index; list 492 maint/gnulib/lib/gl_sublist.c list->end = end_index; list 495 maint/gnulib/lib/gl_sublist.c return list; list 55 maint/gnulib/lib/gl_xlist.h extern void gl_list_node_set_value (gl_list_t list, gl_list_node_t node, list 57 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_list_set_at (gl_list_t list, size_t position, list 59 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_list_set_first (gl_list_t list, const void *elt); list 60 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_list_set_last (gl_list_t list, const void *elt); list 61 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_list_add_first (gl_list_t list, const void *elt); list 62 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_list_add_last (gl_list_t list, const void *elt); list 63 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_list_add_before (gl_list_t list, gl_list_node_t node, list 65 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_list_add_after (gl_list_t list, gl_list_node_t node, list 67 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_list_add_at (gl_list_t list, size_t position, list 69 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_sortedlist_add (gl_list_t list, list 112 maint/gnulib/lib/gl_xlist.h gl_list_node_set_value (gl_list_t list, gl_list_node_t node, const void *elt) list 114 maint/gnulib/lib/gl_xlist.h int result = gl_list_node_nx_set_value (list, node, elt); list 120 maint/gnulib/lib/gl_xlist.h gl_list_set_at (gl_list_t list, size_t position, const void *elt) list 122 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_list_nx_set_at (list, position, elt); list 129 maint/gnulib/lib/gl_xlist.h gl_list_set_first (gl_list_t list, const void *elt) list 131 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_list_nx_set_first (list, elt); list 138 maint/gnulib/lib/gl_xlist.h gl_list_set_last (gl_list_t list, const void *elt) list 140 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_list_nx_set_last (list, elt); list 147 maint/gnulib/lib/gl_xlist.h gl_list_add_first (gl_list_t list, const void *elt) list 149 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_list_nx_add_first (list, elt); list 156 maint/gnulib/lib/gl_xlist.h gl_list_add_last (gl_list_t list, const void *elt) list 158 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_list_nx_add_last (list, elt); list 165 maint/gnulib/lib/gl_xlist.h gl_list_add_before (gl_list_t list, gl_list_node_t node, const void *elt) list 167 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_list_nx_add_before (list, node, elt); list 174 maint/gnulib/lib/gl_xlist.h gl_list_add_after (gl_list_t list, gl_list_node_t node, const void *elt) list 176 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_list_nx_add_after (list, node, elt); list 183 maint/gnulib/lib/gl_xlist.h gl_list_add_at (gl_list_t list, size_t position, const void *elt) list 185 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_list_nx_add_at (list, position, elt); list 192 maint/gnulib/lib/gl_xlist.h gl_sortedlist_add (gl_list_t list, gl_listelement_compar_fn compar, list 195 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_sortedlist_nx_add (list, compar, elt); list 159 maint/gnulib/lib/malloc/dynarray-skeleton.c # define DYNARRAY_SCRATCH(list) (list)->scratch list 161 maint/gnulib/lib/malloc/dynarray-skeleton.c # define DYNARRAY_SCRATCH(list) NULL list 181 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (free__array__) (struct DYNARRAY_STRUCT *list) list 184 maint/gnulib/lib/malloc/dynarray-skeleton.c if (list->u.dynarray_header.array != list->scratch) list 185 maint/gnulib/lib/malloc/dynarray-skeleton.c free (list->u.dynarray_header.array); list 187 maint/gnulib/lib/malloc/dynarray-skeleton.c free (list->u.dynarray_header.array); list 197 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (init) (struct DYNARRAY_STRUCT *list) list 199 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.used = 0; list 200 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.allocated = DYNARRAY_INITIAL_SIZE; list 201 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.array = DYNARRAY_SCRATCH (list); list 207 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_FREE (struct DYNARRAY_STRUCT *list) list 210 maint/gnulib/lib/malloc/dynarray-skeleton.c (list->u.dynarray_header.array, list->u.dynarray_header.used); list 211 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (free__array__) (list); list 212 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (init) (list); list 218 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (has_failed) (const struct DYNARRAY_STRUCT *list) list 220 maint/gnulib/lib/malloc/dynarray-skeleton.c return list->u.dynarray_header.allocated == __dynarray_error_marker (); list 227 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (mark_failed) (struct DYNARRAY_STRUCT *list) list 230 maint/gnulib/lib/malloc/dynarray-skeleton.c (list->u.dynarray_header.array, list->u.dynarray_header.used); list 231 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (free__array__) (list); list 232 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.array = DYNARRAY_SCRATCH (list); list 233 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.used = 0; list 234 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.allocated = __dynarray_error_marker (); list 241 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (size) (const struct DYNARRAY_STRUCT *list) list 243 maint/gnulib/lib/malloc/dynarray-skeleton.c return list->u.dynarray_header.used; list 250 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (at) (struct DYNARRAY_STRUCT *list, size_t index) list 252 maint/gnulib/lib/malloc/dynarray-skeleton.c if (__glibc_unlikely (index >= DYNARRAY_NAME (size) (list))) list 253 maint/gnulib/lib/malloc/dynarray-skeleton.c __libc_dynarray_at_failure (DYNARRAY_NAME (size) (list), index); list 254 maint/gnulib/lib/malloc/dynarray-skeleton.c return list->u.dynarray_header.array + index; list 262 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (begin) (struct DYNARRAY_STRUCT *list) list 264 maint/gnulib/lib/malloc/dynarray-skeleton.c return list->u.dynarray_header.array; list 272 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (end) (struct DYNARRAY_STRUCT *list) list 274 maint/gnulib/lib/malloc/dynarray-skeleton.c return list->u.dynarray_header.array + list->u.dynarray_header.used; list 279 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (add__) (struct DYNARRAY_STRUCT *list, DYNARRAY_ELEMENT item) list 282 maint/gnulib/lib/malloc/dynarray-skeleton.c (!__libc_dynarray_emplace_enlarge (&list->u.dynarray_abstract, list 283 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_SCRATCH (list), list 286 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (mark_failed) (list); list 291 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.array[list->u.dynarray_header.used++] = item; list 299 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (add) (struct DYNARRAY_STRUCT *list, DYNARRAY_ELEMENT item) list 302 maint/gnulib/lib/malloc/dynarray-skeleton.c if (DYNARRAY_NAME (has_failed) (list)) list 306 maint/gnulib/lib/malloc/dynarray-skeleton.c if (__glibc_unlikely (list->u.dynarray_header.used list 307 maint/gnulib/lib/malloc/dynarray-skeleton.c == list->u.dynarray_header.allocated)) list 309 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (add__) (list, item); list 314 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.array[list->u.dynarray_header.used++] = item; list 320 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (emplace__tail__) (struct DYNARRAY_STRUCT *list) list 323 maint/gnulib/lib/malloc/dynarray-skeleton.c = &list->u.dynarray_header.array[list->u.dynarray_header.used]; list 324 maint/gnulib/lib/malloc/dynarray-skeleton.c ++list->u.dynarray_header.used; list 335 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (emplace__) (struct DYNARRAY_STRUCT *list) list 338 maint/gnulib/lib/malloc/dynarray-skeleton.c (!__libc_dynarray_emplace_enlarge (&list->u.dynarray_abstract, list 339 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_SCRATCH (list), list 342 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (mark_failed) (list); list 345 maint/gnulib/lib/malloc/dynarray-skeleton.c return DYNARRAY_NAME (emplace__tail__) (list); list 359 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (emplace) (struct DYNARRAY_STRUCT *list) list 362 maint/gnulib/lib/malloc/dynarray-skeleton.c if (DYNARRAY_NAME (has_failed) (list)) list 366 maint/gnulib/lib/malloc/dynarray-skeleton.c if (__glibc_unlikely (list->u.dynarray_header.used list 367 maint/gnulib/lib/malloc/dynarray-skeleton.c == list->u.dynarray_header.allocated)) list 368 maint/gnulib/lib/malloc/dynarray-skeleton.c return (DYNARRAY_NAME (emplace__) (list)); list 369 maint/gnulib/lib/malloc/dynarray-skeleton.c return DYNARRAY_NAME (emplace__tail__) (list); list 378 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (resize) (struct DYNARRAY_STRUCT *list, size_t size) list 380 maint/gnulib/lib/malloc/dynarray-skeleton.c if (size > list->u.dynarray_header.used) list 385 maint/gnulib/lib/malloc/dynarray-skeleton.c size_t old_size = list->u.dynarray_header.used; list 386 maint/gnulib/lib/malloc/dynarray-skeleton.c ok = __libc_dynarray_resize (&list->u.dynarray_abstract, list 387 maint/gnulib/lib/malloc/dynarray-skeleton.c size, DYNARRAY_SCRATCH (list), list 392 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_ELEMENT_INIT (&list->u.dynarray_header.array[i]); list 398 maint/gnulib/lib/malloc/dynarray-skeleton.c (&list->u.dynarray_abstract, size, list 399 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_SCRATCH (list), sizeof (DYNARRAY_ELEMENT)); list 401 maint/gnulib/lib/malloc/dynarray-skeleton.c ok = __libc_dynarray_resize (&list->u.dynarray_abstract, list 402 maint/gnulib/lib/malloc/dynarray-skeleton.c size, DYNARRAY_SCRATCH (list), list 406 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (mark_failed) (list); list 413 maint/gnulib/lib/malloc/dynarray-skeleton.c (list->u.dynarray_header.array + size, list 414 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.used - size); list 415 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.used = size; list 423 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (remove_last) (struct DYNARRAY_STRUCT *list) list 426 maint/gnulib/lib/malloc/dynarray-skeleton.c if (list->u.dynarray_header.used > 0) list 428 maint/gnulib/lib/malloc/dynarray-skeleton.c size_t new_length = list->u.dynarray_header.used - 1; list 430 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_ELEMENT_FREE (&list->u.dynarray_header.array[new_length]); list 432 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.used = new_length; list 440 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (clear) (struct DYNARRAY_STRUCT *list) list 445 maint/gnulib/lib/malloc/dynarray-skeleton.c (list->u.dynarray_header.array, list->u.dynarray_header.used); list 446 maint/gnulib/lib/malloc/dynarray-skeleton.c list->u.dynarray_header.used = 0; list 459 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (finalize) (struct DYNARRAY_STRUCT *list, list 463 maint/gnulib/lib/malloc/dynarray-skeleton.c if (__libc_dynarray_finalize (&list->u.dynarray_abstract, list 464 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_SCRATCH (list), list 468 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (init) (list); list 475 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_FREE (list); list 491 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (finalize) (struct DYNARRAY_STRUCT *list, size_t *lengthp) list 494 maint/gnulib/lib/malloc/dynarray-skeleton.c if (__libc_dynarray_finalize (&list->u.dynarray_abstract, list 495 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_SCRATCH (list), list 499 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_NAME (init) (list); list 507 maint/gnulib/lib/malloc/dynarray-skeleton.c DYNARRAY_FREE (list); list 119 maint/gnulib/lib/malloc/dynarray.h __dynarray_error (struct dynarray_header *list) list 121 maint/gnulib/lib/malloc/dynarray.h return list->allocated == __dynarray_error_marker (); list 160 maint/gnulib/lib/malloc/dynarray.h bool __libc_dynarray_finalize (struct dynarray_header *list, void *scratch, list 30 maint/gnulib/lib/malloc/dynarray_emplace_enlarge.c __libc_dynarray_emplace_enlarge (struct dynarray_header *list, list 34 maint/gnulib/lib/malloc/dynarray_emplace_enlarge.c if (list->allocated == 0) list 49 maint/gnulib/lib/malloc/dynarray_emplace_enlarge.c new_allocated = list->allocated + list->allocated / 2 + 1; list 50 maint/gnulib/lib/malloc/dynarray_emplace_enlarge.c if (new_allocated <= list->allocated) list 62 maint/gnulib/lib/malloc/dynarray_emplace_enlarge.c if (list->array == scratch) list 66 maint/gnulib/lib/malloc/dynarray_emplace_enlarge.c if (new_array != NULL && list->array != NULL) list 67 maint/gnulib/lib/malloc/dynarray_emplace_enlarge.c memcpy (new_array, list->array, list->used * element_size); list 70 maint/gnulib/lib/malloc/dynarray_emplace_enlarge.c new_array = realloc (list->array, new_size); list 73 maint/gnulib/lib/malloc/dynarray_emplace_enlarge.c list->array = new_array; list 74 maint/gnulib/lib/malloc/dynarray_emplace_enlarge.c list->allocated = new_allocated; list 28 maint/gnulib/lib/malloc/dynarray_finalize.c __libc_dynarray_finalize (struct dynarray_header *list, list 32 maint/gnulib/lib/malloc/dynarray_finalize.c if (__dynarray_error (list)) list 36 maint/gnulib/lib/malloc/dynarray_finalize.c size_t used = list->used; list 43 maint/gnulib/lib/malloc/dynarray_finalize.c if (list->array != scratch) list 44 maint/gnulib/lib/malloc/dynarray_finalize.c free (list->array); list 54 maint/gnulib/lib/malloc/dynarray_finalize.c if (list->array != NULL) list 55 maint/gnulib/lib/malloc/dynarray_finalize.c memcpy (heap_array, list->array, allocation_size); list 56 maint/gnulib/lib/malloc/dynarray_finalize.c if (list->array != scratch) list 57 maint/gnulib/lib/malloc/dynarray_finalize.c free (list->array); list 30 maint/gnulib/lib/malloc/dynarray_resize.c __libc_dynarray_resize (struct dynarray_header *list, size_t size, list 34 maint/gnulib/lib/malloc/dynarray_resize.c if (size <= list->allocated) list 36 maint/gnulib/lib/malloc/dynarray_resize.c list->used = size; list 52 maint/gnulib/lib/malloc/dynarray_resize.c if (list->array == scratch) list 56 maint/gnulib/lib/malloc/dynarray_resize.c if (new_array != NULL && list->array != NULL) list 57 maint/gnulib/lib/malloc/dynarray_resize.c memcpy (new_array, list->array, list->used * element_size); list 60 maint/gnulib/lib/malloc/dynarray_resize.c new_array = realloc (list->array, new_size_bytes); list 63 maint/gnulib/lib/malloc/dynarray_resize.c list->array = new_array; list 64 maint/gnulib/lib/malloc/dynarray_resize.c list->allocated = size; list 65 maint/gnulib/lib/malloc/dynarray_resize.c list->used = size; list 27 maint/gnulib/lib/malloc/dynarray_resize_clear.c __libc_dynarray_resize_clear (struct dynarray_header *list, size_t size, list 30 maint/gnulib/lib/malloc/dynarray_resize_clear.c size_t old_size = list->used; list 31 maint/gnulib/lib/malloc/dynarray_resize_clear.c if (!__libc_dynarray_resize (list, size, scratch, element_size)) list 34 maint/gnulib/lib/malloc/dynarray_resize_clear.c char *array = list->array; list 96 maint/gnulib/lib/string-buffer.c va_list list) list 113 maint/gnulib/lib/string-buffer.c va_copy (list_copy, list); list 116 maint/gnulib/lib/string-buffer.c int ret = vsnprintf (buffer->data + buffer->length, room, formatstring, list); list 53 maint/gnulib/lib/string-buffer.h const char *formatstring, va_list list) list 113 maint/gnulib/tests/test-asyncsafe-linked_list-weak.c bag_from_list (gl_list_t list) list 119 maint/gnulib/tests/test-asyncsafe-linked_list-weak.c gl_list_iterator_t iter = gl_list_iterator (list); list 229 maint/gnulib/tests/test-asyncsafe-linked_list-weak.c store_change (uintptr_t x, gl_list_t list) list 234 maint/gnulib/tests/test-asyncsafe-linked_list-weak.c recent_bags[(recent_newest_index + 1) % NUM_RECENT_BAGS] = bag_from_list (list); list 27 maint/gnulib/tests/test-avltree_list.c extern void gl_avltree_list_check_invariants (gl_list_t list); list 29 maint/gnulib/tests/test-avltreehash_list.c extern void gl_avltreehash_list_check_invariants (gl_list_t list); list 27 maint/gnulib/tests/test-rbtree_list.c extern void gl_rbtree_list_check_invariants (gl_list_t list); list 29 maint/gnulib/tests/test-rbtreehash_list.c extern void gl_rbtreehash_list_check_invariants (gl_list_t list); list 1132 tools/crm_resource.c lrmd_list_t *list = NULL; list 1143 tools/crm_resource.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, agent_spec, provider); list 1146 tools/crm_resource.c rc = out->message(out, "agents-list", list, agent_spec, provider); list 1173 tools/crm_resource.c lrmd_list_t *list = NULL; list 1182 tools/crm_resource.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, agent_spec, &list); list 1185 tools/crm_resource.c rc = out->message(out, "alternatives-list", list, agent_spec); list 1193 tools/crm_resource.c rc = lrmd_conn->cmds->list_standards(lrmd_conn, &list); list 1196 tools/crm_resource.c rc = out->message(out, "standards-list", list); list 1204 tools/crm_resource.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, agent_spec, &list); list 1207 tools/crm_resource.c rc = out->message(out, "providers-list", list, agent_spec); list 561 tools/stonith_admin.c rc = st->cmds->list(st, st_opts, device, NULL, options.timeout);