libcdsb/tests/src/list/plug.h

26 lines
949 B
C
Raw Normal View History

2022-06-02 22:23:01 +03:00
/* This software is licensed by the MIT License, see LICENSE file */
/* Copyright © 2022 Gregory Lirent */
2022-06-05 18:31:19 +03:00
#include "../../../include/extra/list.h"
2022-06-02 22:23:01 +03:00
#include "../../include/random.h"
#include "../../include/test.h"
#include "../../include/time.h"
2022-06-05 18:31:19 +03:00
#include "../../../src/__internal/vnode.h"
2022-06-09 11:39:37 +03:00
extern void list_print(list_t* x, const char* prefix, unsigned int hpos);
extern void list_info (list_t* x, unsigned int hpos);
2022-06-02 22:23:01 +03:00
2022-06-09 11:39:37 +03:00
extern void list_push_random(list_t* x, _Bool silent, unsigned int hpos);
extern void list_remove_random(list_t* x, _Bool silent, unsigned int hpos);
2022-06-02 22:23:01 +03:00
2022-06-09 11:39:37 +03:00
extern void visual_push(list_t* x, size_t n);
extern void visual_sort(list_t* x);
extern void visual_remove(list_t* x);
2022-06-05 18:31:19 +03:00
2022-06-09 11:39:37 +03:00
extern void visual_push2(list_t* x0, size_t n0, list_t* x1, size_t n1);
extern void visual_remove2(list_t* x0, list_t* x1);
extern void visual_sort2(list_t* x0, list_t* x1);
extern void visual_extend(list_t* x, list_t* s);