Changeset 4b54bd9 in mainline for uspace/lib/pcut/src/list.c


Ignore:
Timestamp:
2018-09-12T13:23:03Z (6 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3da0ee4
Parents:
275530a4
Message:

Update PCUT to latest revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/src/list.c

    r275530a4 r4b54bd9  
    3232 */
    3333
     34#pragma warning(push, 0)
    3435#include <assert.h>
    3536#include <stdlib.h>
     37#pragma warning(pop)
     38
    3639#include "internal.h"
    3740#include <pcut/pcut.h>
     
    4346 * @return First item with actual content or NULL on end of list.
    4447 */
    45 pcut_item_t *pcut_get_real_next(pcut_item_t *item)
    46 {
     48pcut_item_t *pcut_get_real_next(pcut_item_t *item) {
    4749        if (item == NULL) {
    4850                return NULL;
     
    6567 * @return First item with actual content or NULL on end of list.
    6668 */
    67 pcut_item_t *pcut_get_real(pcut_item_t *item)
    68 {
     69pcut_item_t *pcut_get_real(pcut_item_t *item) {
    6970        if (item == NULL) {
    7071                return NULL;
     
    8384 * @param nested Head of the nested list.
    8485 */
    85 static void inline_nested_lists(pcut_item_t *nested)
    86 {
     86static void inline_nested_lists(pcut_item_t *nested) {
    8787        pcut_item_t *first;
    8888
     
    111111 * @param first List head.
    112112 */
    113 static void set_ids(pcut_item_t *first)
    114 {
     113static void set_ids(pcut_item_t *first) {
    115114        int id = 1;
    116115        pcut_item_t *it;
     
    135134 * @param first Head of the list.
    136135 */
    137 static void detect_skipped_tests(pcut_item_t *first)
    138 {
     136static void detect_skipped_tests(pcut_item_t *first) {
    139137        pcut_item_t *it;
    140138
     
    172170 * @return Head of the fixed list.
    173171 */
    174 pcut_item_t *pcut_fix_list_get_real_head(pcut_item_t *last)
    175 {
     172pcut_item_t *pcut_fix_list_get_real_head(pcut_item_t *last) {
    176173        pcut_item_t *next, *it;
    177174
     
    201198 * @return Number of tests.
    202199 */
    203 int pcut_count_tests(pcut_item_t *it)
    204 {
     200int pcut_count_tests(pcut_item_t *it) {
    205201        int count = 0;
    206202        while (it != NULL) {
Note: See TracChangeset for help on using the changeset viewer.