diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-07 00:37:38 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-07 00:37:38 +0400 |
commit | 653f939ac56ad27468318e4b9913f23d31105098 (patch) | |
tree | 4b706607d42ee7ff4cb64081519ea35ff10ec57b /source/kit_test | |
parent | 89b41695439cf5729d2fee343af2ee6f86c0310d (diff) | |
download | kit-653f939ac56ad27468318e4b9913f23d31105098.zip |
bix _Bool
Diffstat (limited to 'source/kit_test')
-rw-r--r-- | source/kit_test/run_tests.c | 4 | ||||
-rw-r--r-- | source/kit_test/test.h | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/source/kit_test/run_tests.c b/source/kit_test/run_tests.c index 19fea96..a4ebd12 100644 --- a/source/kit_test/run_tests.c +++ b/source/kit_test/run_tests.c @@ -5,7 +5,7 @@ struct kit_tests_list kit_tests_list = { 0 }; -static void report(int i, char const *file, int line, _Bool ok) { +static void report(int i, char const *file, int line, int ok) { int const n = kit_tests_list.tests[i].assertions++; kit_tests_list.tests[i].file[n] = file; @@ -23,7 +23,7 @@ static long long sec_to_ms(long long sec) { enum code_value { white, yellow, red, green }; -static void color_code(_Bool term_color, int c) { +static void color_code(int term_color, int c) { if (term_color) { if (c == white) printf("\x1b[37m"); diff --git a/source/kit_test/test.h b/source/kit_test/test.h index f53ab88..365c43c 100644 --- a/source/kit_test/test.h +++ b/source/kit_test/test.h @@ -24,8 +24,7 @@ extern "C" { # define KIT_TEST_STRING_SIZE 0x100 #endif -typedef void (*kit_test_report)(int, char const *file, int line, - _Bool); +typedef void (*kit_test_report)(int, char const *file, int line, int); typedef void (*kit_test_function)(int, kit_test_report); struct kit_test_case { @@ -34,7 +33,7 @@ struct kit_test_case { int assertions; char const *file[KIT_TEST_ASSERTIONS_LIMIT]; int line[KIT_TEST_ASSERTIONS_LIMIT]; - _Bool status[KIT_TEST_ASSERTIONS_LIMIT]; + int status[KIT_TEST_ASSERTIONS_LIMIT]; }; struct kit_tests_list { |