Changeset 4b54bd9 in mainline for uspace/lib/pcut/src/list.c
- Timestamp:
- 2018-09-12T13:23:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3da0ee4
- Parents:
- 275530a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/src/list.c
r275530a4 r4b54bd9 32 32 */ 33 33 34 #pragma warning(push, 0) 34 35 #include <assert.h> 35 36 #include <stdlib.h> 37 #pragma warning(pop) 38 36 39 #include "internal.h" 37 40 #include <pcut/pcut.h> … … 43 46 * @return First item with actual content or NULL on end of list. 44 47 */ 45 pcut_item_t *pcut_get_real_next(pcut_item_t *item) 46 { 48 pcut_item_t *pcut_get_real_next(pcut_item_t *item) { 47 49 if (item == NULL) { 48 50 return NULL; … … 65 67 * @return First item with actual content or NULL on end of list. 66 68 */ 67 pcut_item_t *pcut_get_real(pcut_item_t *item) 68 { 69 pcut_item_t *pcut_get_real(pcut_item_t *item) { 69 70 if (item == NULL) { 70 71 return NULL; … … 83 84 * @param nested Head of the nested list. 84 85 */ 85 static void inline_nested_lists(pcut_item_t *nested) 86 { 86 static void inline_nested_lists(pcut_item_t *nested) { 87 87 pcut_item_t *first; 88 88 … … 111 111 * @param first List head. 112 112 */ 113 static void set_ids(pcut_item_t *first) 114 { 113 static void set_ids(pcut_item_t *first) { 115 114 int id = 1; 116 115 pcut_item_t *it; … … 135 134 * @param first Head of the list. 136 135 */ 137 static void detect_skipped_tests(pcut_item_t *first) 138 { 136 static void detect_skipped_tests(pcut_item_t *first) { 139 137 pcut_item_t *it; 140 138 … … 172 170 * @return Head of the fixed list. 173 171 */ 174 pcut_item_t *pcut_fix_list_get_real_head(pcut_item_t *last) 175 { 172 pcut_item_t *pcut_fix_list_get_real_head(pcut_item_t *last) { 176 173 pcut_item_t *next, *it; 177 174 … … 201 198 * @return Number of tests. 202 199 */ 203 int pcut_count_tests(pcut_item_t *it) 204 { 200 int pcut_count_tests(pcut_item_t *it) { 205 201 int count = 0; 206 202 while (it != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.