made test functions static, simplified meson functions, added wrap file for cutils

AuthorKonata <konata@posteo.jp>
Date
Commit91ea31bd4c3c02aa254ba32fc3b2314e120ddbe0
Parent3f0120c
3 files changed, 8 insertions(+), 12 deletions(-)
Mmeson.build
@@ -2,8 +2,7 @@ project('simple-go', 'c')
22
33 CFLAGS = ['-std=c11', '-fstrict-aliasing', '-Wall', '-Wpedantic', '-Wextra', '-Wno-unused-parameter', '-Wconversion', '-Wstrict-aliasing', '-Wstrict-overflow=5']
44
5-cutils_sp = subproject('cutils')
6-dep = dependency('cutils', fallback : ['cutils', 'cutils_dep'])
5+cutils_dep = dependency('cutils', fallback : ['cutils', 'cutils_dep'])
76
87 subdir('include')
98 subdir('src')
Msrc/meson.build
@@ -1,7 +1,4 @@
1-cutils_sp = subproject('cutils')
2-dep = cutils_sp.get_variable('cutils_dep')
3-
41 src = ['simple-go.c', 'simple-gtp.c', 'simple-gtp-func.c']
52
6-executable('test_go', src + ['test.c'], include_directories : inc, dependencies : dep, c_args: CFLAGS )
7-executable('gtp-start', src + ['gtp-start.c'], include_directories : inc, dependencies : dep, c_args: CFLAGS )
3+executable('test_go', src + ['test.c'], include_directories : inc, dependencies : cutils_dep, c_args: CFLAGS )
4+executable('gtp-start', src + ['gtp-start.c'], include_directories : inc, dependencies : cutils_dep, c_args: CFLAGS )
Msrc/test.c
@@ -1,7 +1,7 @@
11 #include <simple-go/simple-go.h>
22 #include <simple-go/simple-gtp.h>
33
4-void test1(void)
4+static void test1(void)
55 {
66 puts("test1 running");
77 go_board* test_board = create_board(5);
@@ -33,7 +33,7 @@ void test1(void)
3333 puts("test1 finished");
3434 }
3535
36-void test2(void)
36+static void test2(void)
3737 {
3838 puts("test2 running");
3939 game_state* test_game = create_game(5, 0);
@@ -60,7 +60,7 @@ void test2(void)
6060 puts("test2 finished");
6161 }
6262
63-void test3(void)
63+static void test3(void)
6464 {
6565 puts("test3 running");
6666
@@ -124,7 +124,7 @@ void test3(void)
124124 puts("test3 finished");
125125 }
126126
127-void test4(void)
127+static void test4(void)
128128 {
129129 puts("test4 running");
130130
@@ -142,7 +142,7 @@ void test4(void)
142142 puts("test4 finished");
143143 }
144144
145-void test5(void)
145+static void test5(void)
146146 {
147147 puts("test5 running");
148148 game_state* game = create_game(19,0);