* list = eina_list_append(list, my_data);
* if (eina_error_get())
* {
- * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
- * exit(-1);
+ * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
+ * exit(-1);
* }
* @endcode
*
* list = eina_list_prepend(list, my_data);
* if (eina_error_get())
* {
- * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
- * exit(-1);
+ * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
+ * exit(-1);
* }
* @endcode
*
* list = eina_list_append(list, relative_member);
* if (eina_error_get())
* {
- * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
- * exit(-1);
+ * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
+ * exit(-1);
* }
* list = eina_list_append_relative(list, my_data, relative_member);
* if (eina_error_get())
* {
- * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
- * exit(-1);
+ * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
+ * exit(-1);
* }
* @endcode
*
* list = eina_list_append(list, relative_member);
* if (eina_error_get_error())
* {
- * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
- * exit(-1);
+ * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
+ * exit(-1);
* }
* list = eina_list_prepend_relative(list, my_data, relative_member);
* if (eina_error_get())
* {
- * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
- * exit(-1);
+ * fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n");
+ * exit(-1);
* }
* @endcode
*
*
* EINA_LIST_FOREACH(list, l, data)
* {
- * if (data == my_data)
- * {
- * list = eina_list_remove_list(list, l);
- * break;
- * }
+ * if (data == my_data)
+ * {
+ * list = eina_list_remove_list(list, l);
+ * break;
+ * }
* }
* @endcode
*
*
* EINA_LIST_FOREACH(list, l, data)
* {
- * if (data == my_data)
- * {
- * list = eina_list_promote_list(list, l);
- * break;
- * }
+ * if (data == my_data)
+ * {
+ * list = eina_list_promote_list(list, l);
+ * break;
+ * }
* }
* @endcode
*
*
* EINA_LIST_FOREACH(list, l, data)
* {
- * if (data == my_data)
- * {
- * list = eina_list_demote_list(list, l);
- * break;
- * }
+ * if (data == my_data)
+ * {
+ * list = eina_list_demote_list(list, l);
+ * break;
+ * }
* }
* @endcode
*
* // EINA_LIST_FOREACH_SAFE will be used to free elements that match "key".
*
* EINA_LIST_FOREACH_SAFE(list, l, l_next, data)
- * if (strcmp(data, "key") == 0) {
- * free(data);
- * list = eina_list_remove_list(list, l);
- * }
+ * if (strcmp(data, "key") == 0)
+ * {
+ * free(data);
+ * list = eina_list_remove_list(list, l);
+ * }
* @endcode
*
* @warning @p list must be a pointer to the first element of the list.
* // EINA_LIST_REVERSE_FOREACH_SAFE will be used to free elements that match "key".
*
* EINA_LIST_REVERSE_FOREACH_SAFE(list, l, l_prev, data)
- * if (strcmp(data, "key") == 0) {
- * free(data);
- * list = eina_list_remove_list(list, l);
- * }
+ * if (strcmp(data, "key") == 0)
+ * {
+ * free(data);
+ * list = eina_list_remove_list(list, l);
+ * }
* @endcode
*
* @warning @p list must be a pointer to the first element of the list.