-
Notifications
You must be signed in to change notification settings - Fork 19
/
test_m_list.c
56 lines (54 loc) · 1.69 KB
/
test_m_list.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include <stdio.h>
#include "omxd.h"
static void print_now_next(char **now_next)
{
printf("---\n");
if (now_next == NULL)
return;
printf("- %s\n", now_next[0] == NULL ? "~" : now_next[0]);
printf("- %s\n", now_next[1] == NULL ? "~" : now_next[1]);
}
int main(void)
{
I_root = 0;
logfd = 2;
loglevel = 1;
print_now_next(m_list("X", NULL));
print_now_next(m_list("i", "/foo/1"));
print_now_next(m_list("a", "/foo/2"));
print_now_next(m_list("A", "/foo/3"));
print_now_next(m_list("A", "/spam/1"));
print_now_next(m_list("A", "/spam/2"));
print_now_next(m_list("x", NULL));
print_now_next(m_list("A", "/blabla/1"));
print_now_next(m_list("A", "/blabla/2"));
print_now_next(m_list("A", "/bar/1"));
print_now_next(m_list("A", "/bar/2"));
print_now_next(m_list("n", NULL));
print_now_next(m_list("N", NULL));
print_now_next(m_list("N", NULL));
print_now_next(m_list("d", NULL));
print_now_next(m_list("D", NULL));
print_now_next(m_list("I", "/insert/this/now"));
print_now_next(m_list("L", "/insert/this/after"));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("j", NULL));
print_now_next(m_list("u", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("g", "0"));
print_now_next(m_list("e", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
print_now_next(m_list("n", NULL));
return 0;
}