From 653f939ac56ad27468318e4b9913f23d31105098 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Sun, 7 Aug 2022 00:37:38 +0400 Subject: bix _Bool --- source/kit_test/run_tests.c | 4 ++-- source/kit_test/test.h | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'source/kit_test') 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 { -- cgit v1.2.3