Commit f6a73036b614de95261dafe7885e5975a1ae8cd2

Thomas de Grivel 2023-11-03T14:27:52

() -> (void)

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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
diff --git a/test/array_test.c b/test/array_test.c
index f282c79..350d3be 100644
--- a/test/array_test.c
+++ b/test/array_test.c
@@ -42,13 +42,13 @@
     str_clean(&str);						       \
   } while(0)
 
-void array_test ();
+void array_test (void);
 TEST_CASE_PROTOTYPE(array_data);
 TEST_CASE_PROTOTYPE(array_init_clean);
 TEST_CASE_PROTOTYPE(array_init_1_clean);
 TEST_CASE_PROTOTYPE(array_inspect);
 
-void array_test ()
+void array_test (void)
 {
   TEST_CASE_RUN(array_init_clean);
   TEST_CASE_RUN(array_init_1_clean);
diff --git a/test/bool_test.c b/test/bool_test.c
index 31e7447..a08343b 100644
--- a/test/bool_test.c
+++ b/test/bool_test.c
@@ -27,11 +27,11 @@
     str_clean(&str);						       \
   } while (0)
 
-void bool_test ();
+void bool_test (void);
 TEST_CASE_PROTOTYPE(bool_compat);
 TEST_CASE_PROTOTYPE(bool_inspect);
 
-void bool_test ()
+void bool_test (void)
 {
   TEST_CASE_RUN(bool_compat);
   TEST_CASE_RUN(bool_inspect);
diff --git a/test/buf_file_test.c b/test/buf_file_test.c
index fdad6c2..e5a6692 100644
--- a/test/buf_file_test.c
+++ b/test/buf_file_test.c
@@ -14,13 +14,13 @@
 #include "../libc3/buf_file.h"
 #include "test.h"
 
-void buf_file_test ();
+void buf_file_test (void);
 TEST_CASE_PROTOTYPE(buf_file_open_r_close);
 TEST_CASE_PROTOTYPE(buf_file_open_r_refill);
 TEST_CASE_PROTOTYPE(buf_file_open_w_close);
 TEST_CASE_PROTOTYPE(buf_file_open_w_flush);
 
-void buf_file_test ()
+void buf_file_test (void)
 {
   TEST_CASE_RUN(buf_file_open_r_close);
   TEST_CASE_RUN(buf_file_open_r_refill);
diff --git a/test/buf_inspect_test.c b/test/buf_inspect_test.c
index a68a45a..f941da9 100644
--- a/test/buf_inspect_test.c
+++ b/test/buf_inspect_test.c
@@ -179,7 +179,7 @@
     buf_clean(&buf);                                                   \
   } while (0)
 
-void buf_inspect_test ();
+void buf_inspect_test (void);
 TEST_CASE_PROTOTYPE(buf_inspect_array);
 TEST_CASE_PROTOTYPE(buf_inspect_bool);
 TEST_CASE_PROTOTYPE(buf_inspect_character);
@@ -191,7 +191,7 @@ TEST_CASE_PROTOTYPE(buf_inspect_str);
 TEST_CASE_PROTOTYPE(buf_inspect_str_character);
 TEST_CASE_PROTOTYPE(buf_inspect_tag);
 
-void buf_inspect_test ()
+void buf_inspect_test (void)
 {
   TEST_CASE_RUN(buf_inspect_array);
   TEST_CASE_RUN(buf_inspect_bool);
diff --git a/test/buf_parse_test.c b/test/buf_parse_test.c
index 7721b02..f5741ae 100644
--- a/test/buf_parse_test.c
+++ b/test/buf_parse_test.c
@@ -666,7 +666,7 @@ TEST_CASE_PROTOTYPE(buf_parse_sym);
 TEST_CASE_PROTOTYPE(buf_parse_tag);
 TEST_CASE_PROTOTYPE(buf_parse_tuple);
 
-void buf_parse_test ()
+void buf_parse_test (void)
 {
   TEST_CASE_RUN(buf_parse_array);
   TEST_CASE_RUN(buf_parse_bool);
diff --git a/test/buf_test.c b/test/buf_test.c
index ce88e0c..93c2c67 100644
--- a/test/buf_test.c
+++ b/test/buf_test.c
@@ -174,7 +174,7 @@ TEST_CASE_PROTOTYPE(buf_write_u32);
 TEST_CASE_PROTOTYPE(buf_write_u64);
 TEST_CASE_PROTOTYPE(buf_xfer);
 
-void buf_test ()
+void buf_test (void)
 {
   TEST_CASE_RUN(buf_init_clean);
   TEST_CASE_RUN(buf_new_delete);
diff --git a/test/call_test.c b/test/call_test.c
index 4a29a13..7089e3d 100644
--- a/test/call_test.c
+++ b/test/call_test.c
@@ -35,11 +35,11 @@
     str_clean(&result);						       \
   } while (0)
 
-void call_test ();
+void call_test (void);
 TEST_CASE_PROTOTYPE(call_init_1);
 TEST_CASE_PROTOTYPE(call_inspect);
 
-void call_test ()
+void call_test (void)
 {
   TEST_CASE_RUN(call_init_1);
   TEST_CASE_RUN(call_inspect);
diff --git a/test/cfn_test.c b/test/cfn_test.c
index 5aaf7df..eec0d58 100644
--- a/test/cfn_test.c
+++ b/test/cfn_test.c
@@ -28,9 +28,9 @@ TEST_CASE_PROTOTYPE(cfn_link);
 TEST_CASE_PROTOTYPE(cfn_prep_cif);
 
 /* 3 */
-void cfn_test ();
+void cfn_test (void);
 
-void cfn_test ()
+void cfn_test (void)
 {
   TEST_CASE_RUN(cfn_init_clean);
   TEST_CASE_RUN(cfn_copy);
diff --git a/test/character_test.c b/test/character_test.c
index 8cac8ed..987d39b 100644
--- a/test/character_test.c
+++ b/test/character_test.c
@@ -23,7 +23,7 @@ TEST_CASE_PROTOTYPE(character_is_uppercase);
 TEST_CASE_PROTOTYPE(character_utf8);
 TEST_CASE_PROTOTYPE(character_utf8_size);
 
-void character_test ()
+void character_test (void)
 {
   TEST_CASE_RUN(character_1);
   TEST_CASE_RUN(character_is_digit);
diff --git a/test/compare_test.c b/test/compare_test.c
index f853260..902a7f2 100644
--- a/test/compare_test.c
+++ b/test/compare_test.c
@@ -47,7 +47,7 @@ TEST_CASE_PROTOTYPE(compare_str);
 TEST_CASE_PROTOTYPE(compare_tag);
 TEST_CASE_PROTOTYPE(compare_tuple);
 
-void compare_test ()
+void compare_test (void)
 {
   TEST_CASE_RUN(compare_bool);
   TEST_CASE_RUN(compare_character);
diff --git a/test/env_test.c b/test/env_test.c
index ce10e5e..90a0f69 100644
--- a/test/env_test.c
+++ b/test/env_test.c
@@ -19,13 +19,13 @@
 #include "../libc3/tag.h"
 #include "test.h"
 
-void env_test ();
+void env_test (void);
 TEST_CASE_PROTOTYPE(env_eval_call);
 TEST_CASE_PROTOTYPE(env_eval_equal_tag);
 TEST_CASE_PROTOTYPE(env_eval_tag);
 TEST_CASE_PROTOTYPE(env_init_clean);
 
-void env_test ()
+void env_test (void)
 {
   TEST_CASE_RUN(env_init_clean);
   TEST_CASE_RUN(env_eval_equal_tag);
diff --git a/test/fact_test.c b/test/fact_test.c
index fa705bc..a45b3ba 100644
--- a/test/fact_test.c
+++ b/test/fact_test.c
@@ -26,11 +26,11 @@
     str_clean(&str);						       \
   } while (0)
 
-void fact_test ();
+void fact_test (void);
 TEST_CASE_PROTOTYPE(fact_init);
 TEST_CASE_PROTOTYPE(fact_inspect);
 
-void fact_test ()
+void fact_test (void)
 {
   TEST_CASE_RUN(fact_init);
   TEST_CASE_RUN(fact_inspect);
diff --git a/test/facts_cursor_test.c b/test/facts_cursor_test.c
index 64e3e92..5c8170e 100644
--- a/test/facts_cursor_test.c
+++ b/test/facts_cursor_test.c
@@ -16,11 +16,11 @@
 #include "fact_test.h"
 #include "test.h"
 
-void facts_cursor_test ();
+void facts_cursor_test (void);
 TEST_CASE_PROTOTYPE(facts_cursor_init);
 TEST_CASE_PROTOTYPE(facts_cursor_next);
 
-void facts_cursor_test ()
+void facts_cursor_test (void)
 {
   TEST_CASE_RUN(facts_cursor_init);
   TEST_CASE_RUN(facts_cursor_next);
diff --git a/test/facts_test.c b/test/facts_test.c
index 0ec7708..131f4db 100644
--- a/test/facts_test.c
+++ b/test/facts_test.c
@@ -20,7 +20,7 @@
 #include "fact_test.h"
 #include "test.h"
 
-void facts_test ();
+void facts_test (void);
 TEST_CASE_PROTOTYPE(facts_add);
 TEST_CASE_PROTOTYPE(facts_dump_file);
 TEST_CASE_PROTOTYPE(facts_find);
@@ -33,7 +33,7 @@ TEST_CASE_PROTOTYPE(facts_open_file);
 TEST_CASE_PROTOTYPE(facts_remove);
 TEST_CASE_PROTOTYPE(facts_save);
 
-void facts_test ()
+void facts_test (void)
 {
   TEST_CASE_RUN(facts_init_clean);
   TEST_CASE_RUN(facts_new_delete);
diff --git a/test/facts_with_test.c b/test/facts_with_test.c
index 9186e8b..978b4e7 100644
--- a/test/facts_with_test.c
+++ b/test/facts_with_test.c
@@ -18,11 +18,11 @@
 #include "tag_test.h"
 #include "test.h"
 
-void facts_with_test ();
+void facts_with_test (void);
 TEST_CASE_PROTOTYPE(facts_with_);
 TEST_CASE_PROTOTYPE(facts_with_tags);
 
-void facts_with_test ()
+void facts_with_test (void)
 {
   TEST_CASE_RUN(facts_with_tags);
   TEST_CASE_RUN(facts_with_);
diff --git a/test/fn_test.c b/test/fn_test.c
index e3e229e..cdc2ecc 100644
--- a/test/fn_test.c
+++ b/test/fn_test.c
@@ -22,9 +22,9 @@
 
 TEST_CASE_PROTOTYPE(fn_init_1);
 
-void fn_test ();
+void fn_test (void);
 
-void fn_test ()
+void fn_test (void)
 {
   TEST_CASE_RUN(fn_init_1);
 }
diff --git a/test/ident_test.c b/test/ident_test.c
index 037cd74..c7f4d24 100644
--- a/test/ident_test.c
+++ b/test/ident_test.c
@@ -42,12 +42,12 @@
     test_context(NULL);                                                \
   } while (0)
 
-void ident_test ();
+void ident_test (void);
 TEST_CASE_PROTOTYPE(ident_character_is_reserved);
 TEST_CASE_PROTOTYPE(ident_first_character_is_reserved);
 TEST_CASE_PROTOTYPE(ident_inspect);
 
-void ident_test ()
+void ident_test (void)
 {
   TEST_CASE_RUN(ident_inspect);
   TEST_CASE_RUN(ident_first_character_is_reserved);
diff --git a/test/libc3_test.c b/test/libc3_test.c
index 51fd8e9..308875c 100644
--- a/test/libc3_test.c
+++ b/test/libc3_test.c
@@ -13,31 +13,31 @@
 #include "../libc3/c3.h"
 #include "test.h"
 
-void array_test ();
-void bool_test ();
-void buf_file_test ();
-void buf_inspect_test ();
-void buf_parse_test ();
-void buf_test ();
-void call_test ();
-void character_test ();
-void compare_test ();
-void env_test ();
-void fact_test ();
-void facts_test ();
-void facts_cursor_test ();
-void facts_with_test ();
-void fn_test ();
-void ident_test ();
-void list_test ();
-void set__fact_test ();
-void set__tag_test ();
-void skiplist__fact_test ();
-void str_test ();
-void sym_test ();
-void tag_test ();
-void tuple_test ();
-void types_test ();
+void array_test (void);
+void bool_test (void);
+void buf_file_test (void);
+void buf_inspect_test (void);
+void buf_parse_test (void);
+void buf_test (void);
+void call_test (void);
+void character_test (void);
+void compare_test (void);
+void env_test (void);
+void fact_test (void);
+void facts_test (void);
+void facts_cursor_test (void);
+void facts_with_test (void);
+void fn_test (void);
+void ident_test (void);
+void list_test (void);
+void set__fact_test (void);
+void set__tag_test (void);
+void skiplist__fact_test (void);
+void str_test (void);
+void sym_test (void);
+void tag_test (void);
+void tuple_test (void);
+void types_test (void);
 
 int main (int argc, char **argv)
 {
diff --git a/test/list_test.c b/test/list_test.c
index 5875993..eaac8f7 100644
--- a/test/list_test.c
+++ b/test/list_test.c
@@ -39,11 +39,11 @@
     test_context(NULL);                                                \
   } while (0)
 
-void list_test ();
+void list_test (void);
 TEST_CASE_PROTOTYPE(list_1);
 TEST_CASE_PROTOTYPE(list_inspect);
 
-void list_test ()
+void list_test (void)
 {
   TEST_CASE_RUN(list_1);
   TEST_CASE_RUN(list_inspect);
diff --git a/test/set__fact_test.c b/test/set__fact_test.c
index 6fdb445..c03b89f 100644
--- a/test/set__fact_test.c
+++ b/test/set__fact_test.c
@@ -74,14 +74,14 @@
     test_context(NULL);                                                \
   } while (0)
 
-void set__fact_test ();
+void set__fact_test (void);
 TEST_CASE_PROTOTYPE(set__fact_add);
 TEST_CASE_PROTOTYPE(set__fact_cursor);
 TEST_CASE_PROTOTYPE(set__fact_init_clean);
 TEST_CASE_PROTOTYPE(set__fact_remove);
 TEST_CASE_PROTOTYPE(set__fact_resize);
 
-void set__fact_test ()
+void set__fact_test (void)
 {
   TEST_CASE_RUN(set__fact_init_clean);
   TEST_CASE_RUN(set__fact_add);
diff --git a/test/set__tag_test.c b/test/set__tag_test.c
index ce65bf3..e6990b4 100644
--- a/test/set__tag_test.c
+++ b/test/set__tag_test.c
@@ -95,14 +95,14 @@
     test_context(NULL);                                                \
   } while (0)
 
-void set__tag_test ();
+void set__tag_test (void);
 TEST_CASE_PROTOTYPE(set__tag_add);
 TEST_CASE_PROTOTYPE(set__tag_cursor);
 TEST_CASE_PROTOTYPE(set__tag_init_clean);
 TEST_CASE_PROTOTYPE(set__tag_remove);
 TEST_CASE_PROTOTYPE(set__tag_resize);
 
-void set__tag_test ()
+void set__tag_test (void)
 {
   TEST_CASE_RUN(set__tag_init_clean);
   TEST_CASE_RUN(set__tag_add);
diff --git a/test/skiplist__fact_test.c b/test/skiplist__fact_test.c
index d51aa73..96b064c 100644
--- a/test/skiplist__fact_test.c
+++ b/test/skiplist__fact_test.c
@@ -50,13 +50,13 @@
     test_context(NULL);                                                \
   } while (0)
 
-void skiplist__fact_test ();
+void skiplist__fact_test (void);
 TEST_CASE_PROTOTYPE(skiplist__fact_find);
 TEST_CASE_PROTOTYPE(skiplist__fact_insert);
 TEST_CASE_PROTOTYPE(skiplist__fact_new_delete);
 TEST_CASE_PROTOTYPE(skiplist__fact_remove);
 
-void skiplist__fact_test ()
+void skiplist__fact_test (void)
 {
   TEST_CASE_RUN(skiplist__fact_new_delete);
   TEST_CASE_RUN(skiplist__fact_insert);
diff --git a/test/str_test.c b/test/str_test.c
index f7aff4f..5b6b3d8 100644
--- a/test/str_test.c
+++ b/test/str_test.c
@@ -79,7 +79,7 @@ TEST_CASE_PROTOTYPE(str_to_ident);
 TEST_CASE_PROTOTYPE(str_to_sym);
 
 
-void str_test ()
+void str_test (void)
 {
   TEST_CASE_RUN(str_init_clean);
   TEST_CASE_RUN(str_init_dup);
diff --git a/test/sym_test.c b/test/sym_test.c
index 0ae0689..36d2747 100644
--- a/test/sym_test.c
+++ b/test/sym_test.c
@@ -43,7 +43,7 @@ TEST_CASE_PROTOTYPE(sym_1);
 const s_sym * sym_test_1_test (const s8 *p);
 TEST_CASE_PROTOTYPE(sym_inspect);
 
-void sym_test ()
+void sym_test (void)
 {
   TEST_CASE_RUN(sym_1);
   TEST_CASE_RUN(sym_inspect);
diff --git a/test/tag_test.c b/test/tag_test.c
index d69b683..1127ea5 100644
--- a/test/tag_test.c
+++ b/test/tag_test.c
@@ -23,11 +23,11 @@
             (expected));                                               \
   } while (0)
 
-void tag_test ();
+void tag_test (void);
 TEST_CASE_PROTOTYPE(tag_hash_u64);
 TEST_CASE_PROTOTYPE(tag_init_1);
 
-void tag_test ()
+void tag_test (void)
 {
   TEST_CASE_RUN(tag_init_1);
   TEST_CASE_RUN(tag_hash_u64);
diff --git a/test/tuple_test.c b/test/tuple_test.c
index 997d8ed..27cd644 100644
--- a/test/tuple_test.c
+++ b/test/tuple_test.c
@@ -72,14 +72,14 @@
     test_context(NULL);                                                \
   } while (0)
 
-void tuple_test ();
+void tuple_test (void);
 TEST_CASE_PROTOTYPE(tuple_init_1);
 TEST_CASE_PROTOTYPE(tuple_init_clean);
 TEST_CASE_PROTOTYPE(tuple_inspect);
 TEST_CASE_PROTOTYPE(tuple_new_1);
 TEST_CASE_PROTOTYPE(tuple_new_delete);
 
-void tuple_test ()
+void tuple_test (void)
 {
   TEST_CASE_RUN(tuple_init_clean);
   TEST_CASE_RUN(tuple_new_delete);
diff --git a/test/types_test.c b/test/types_test.c
index d185dce..0271c93 100644
--- a/test/types_test.c
+++ b/test/types_test.c
@@ -13,10 +13,10 @@
 #include "../libc3/types.h"
 #include "test.h"
 
-void types_test ();
+void types_test (void);
 TEST_CASE_PROTOTYPE(types_sizeof);
 
-void types_test ()
+void types_test (void)
 {
   TEST_CASE_RUN(types_sizeof);
 }