diff options
-rw-r--r-- | locale.c | 15 | ||||
-rw-r--r-- | signal.c | 22 | ||||
-rw-r--r-- | stdbool.c | 4 | ||||
-rw-r--r-- | stddef.c | 8 |
4 files changed, 24 insertions, 25 deletions
@@ -2,17 +2,16 @@ #include <limits.h> #include "test.h" -static int locale_categories[] = { - LC_ALL, - LC_COLLATE, - LC_CTYPE, - LC_MONETARY, - LC_NUMERIC, -}; - void test_locale_h(void) { struct lconv *lc; + int locale_categories[] = { + LC_ALL, + LC_COLLATE, + LC_CTYPE, + LC_MONETARY, + LC_NUMERIC, + }; testing_header("locale.h"); @@ -1,19 +1,19 @@ #include <signal.h> #include "test.h" -static sig_atomic_t sig_atomic; - -static int signals[] = { - SIGABRT, - SIGFPE, - SIGILL, - SIGINT, - SIGSEGV, - SIGTERM, -}; - void test_signal_h(void) { + sig_atomic_t sig_atomic; + + int signals[] = { + SIGABRT, + SIGFPE, + SIGILL, + SIGINT, + SIGSEGV, + SIGTERM, + }; + testing_header("signal.h"); test_distinct(signals); @@ -2,10 +2,10 @@ #include <stdbool.h> #include "test.h" -static bool b; - void test_stdbool_h(void) { + bool b; + testing_header("stdbool.h"); test_true(true); @@ -1,12 +1,12 @@ #include <stddef.h> #include "test.h" -static ptrdiff_t ptrdiff; -static size_t size; -static wchar_t wchar; - void test_stddef_h(void) { + ptrdiff_t ptrdiff; + size_t size; + wchar_t wchar; + struct s { char a; char b; |