diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-16 18:06:53 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-16 18:06:53 -0400 |
commit | 37f35c82fab1cb2c1203678e622c83dc2ba58f83 (patch) | |
tree | c96c14513eb5bded7003493d2207f1828167d587 | |
parent | 48d2528a5b7b031111fa24c53ca28d3ddc436a79 (diff) |
adjust to new file names
-rw-r--r-- | src/_syscall.h | 2 | ||||
-rw-r--r-- | src/locale/_locale.h | 14 | ||||
-rw-r--r-- | src/math/__fpclassify.c | 8 | ||||
-rw-r--r-- | src/math/_tgmath.h | 22 | ||||
-rw-r--r-- | src/stdio/L_ctermid.h | 1 | ||||
-rw-r--r-- | src/stdio/L_cuserid.h | 1 | ||||
-rw-r--r-- | src/stdio/P_tmpdir.h | 1 | ||||
-rw-r--r-- | src/stdio/__printf.c | 12 | ||||
-rw-r--r-- | src/stdlib/strtod.c | 4 |
9 files changed, 29 insertions, 36 deletions
diff --git a/src/_syscall.h b/src/_syscall.h index ca47048a..aa97fadf 100644 --- a/src/_syscall.h +++ b/src/_syscall.h @@ -3,7 +3,7 @@ #include <errno.h> #ifndef ENOSYS -#include "errno/ENOSYS.c" +#include "errno/ENOSYS.h" #endif #define SYSCALL(_name, _type, _err, _a1, _a2, _a3, _a4, _a5, _a6) \ diff --git a/src/locale/_locale.h b/src/locale/_locale.h index 3ca6c546..dc4706fa 100644 --- a/src/locale/_locale.h +++ b/src/locale/_locale.h @@ -5,31 +5,31 @@ #include <limits.h> #ifndef LC_ALL_MASK -#include "LC_ALL_MASK.c" +#include "LC_ALL_MASK.h" #endif #ifndef LC_COLLATE_MASK -#include "LC_COLLATE_MASK.c" +#include "LC_COLLATE_MASK.h" #endif #ifndef LC_CTYPE_MASK -#include "LC_CTYPE_MASK.c" +#include "LC_CTYPE_MASK.h" #endif #ifndef LC_NUMERIC_MASK -#include "LC_NUMERIC_MASK.c" +#include "LC_NUMERIC_MASK.h" #endif #ifndef LC_TIME_MASK -#include "LC_TIME_MASK.c" +#include "LC_TIME_MASK.h" #endif #ifndef LC_MESSAGES_MASK -#include "LC_MESSAGES_MASK.c" +#include "LC_MESSAGES_MASK.h" #endif #ifndef LC_MONETARY_MASK -#include "LC_MONETARY_MASK.c" +#include "LC_MONETARY_MASK.h" #endif struct __locale_t { diff --git a/src/math/__fpclassify.c b/src/math/__fpclassify.c index ca3ef493..8331bd41 100644 --- a/src/math/__fpclassify.c +++ b/src/math/__fpclassify.c @@ -2,14 +2,6 @@ #include <math.h> #include "_tgmath.h" -#if ! defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L -#include "FP_INFINITE.c" -#include "FP_NAN.c" -#include "FP_NORMAL.c" -#include "FP_SUBNORMAL.c" -#include "FP_ZERO.c" -#endif - int TGFN(__fpclassify)(TYPE x) { (void)x; diff --git a/src/math/_tgmath.h b/src/math/_tgmath.h index 0d6c9551..1feea423 100644 --- a/src/math/_tgmath.h +++ b/src/math/_tgmath.h @@ -34,34 +34,38 @@ #define TGHUGE HUGE_VAL #ifndef FP_ZERO -#include "FP_ZERO.c" +#include "FP_ZERO.h" #endif #ifndef FP_INFINITE -#include "FP_INFINITE.c" +#include "FP_INFINITE.h" #endif #ifndef FP_NAN -#include "FP_NAN.c" +#include "FP_NAN.h" +#endif + +#ifndef FP_NORMAL +#include "FP_NORMAL.h" #endif #ifndef NAN -#include "NAN.c" +#include "NAN.h" #endif #ifndef INFINITY -#include "INFINITY.c" +#include "INFINITY.h" #endif #undef feraiseexcept #define feraiseexcept(_) #ifndef fpclassify -#include "fpclassify.c" +#include "fpclassify.h" #endif #ifndef signbit -#include "signbit.c" +#include "signbit.h" #endif #ifndef copysign @@ -69,11 +73,11 @@ #endif #ifndef M_PI -#include "M_PI.c" +#include "M_PI.h" #endif #ifndef M_PI_2 -#include "M_PI_2.c" +#include "M_PI_2.h" #endif #endif diff --git a/src/stdio/L_ctermid.h b/src/stdio/L_ctermid.h index f280b586..6a4510df 100644 --- a/src/stdio/L_ctermid.h +++ b/src/stdio/L_ctermid.h @@ -1,4 +1,3 @@ -#include <stdio.h> #define L_ctermid (255) /* POSIX(1) diff --git a/src/stdio/L_cuserid.h b/src/stdio/L_cuserid.h index 27425cac..cbec2ab8 100644 --- a/src/stdio/L_cuserid.h +++ b/src/stdio/L_cuserid.h @@ -1,4 +1,3 @@ -#include <stdio.h> #define L_cuserid (255) /* POSIX(1,200112) diff --git a/src/stdio/P_tmpdir.h b/src/stdio/P_tmpdir.h index 9ff77865..b41d9627 100644 --- a/src/stdio/P_tmpdir.h +++ b/src/stdio/P_tmpdir.h @@ -1,4 +1,3 @@ -#include <stdio.h> #define P_tmpdir "/tmp" /* XOPEN(4) diff --git a/src/stdio/__printf.c b/src/stdio/__printf.c index 38dd012b..7da38752 100644 --- a/src/stdio/__printf.c +++ b/src/stdio/__printf.c @@ -1,18 +1,18 @@ #include "stdio.h" #include "_stdio.h" #include "stddef.h" -#include "wctype/wint_t.c" -#include "wctype/wctrans_t.c" +#include "wctype/wint_t.h" +#include "wctype/wctrans_t.h" #include "wchar.h" #include "inttypes.h" #include "unistd.h" #include "stdlib.h" #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199909L -#include "stdint/intmax_t.c" -#include "stdint/uintmax_t.c" -#include "stdint/intptr_t.c" -#include "stdint/UINTMAX_MAX.c" +#include "stdint/intmax_t.h" +#include "stdint/uintmax_t.h" +#include "stdint/intptr_t.h" +#include "stdint/UINTMAX_MAX.h" #define strtoumax __strtoumax #include "inttypes/strtoumax.c" #endif diff --git a/src/stdlib/strtod.c b/src/stdlib/strtod.c index 20907ef8..32ffa973 100644 --- a/src/stdlib/strtod.c +++ b/src/stdlib/strtod.c @@ -5,11 +5,11 @@ #include <stdlib.h> #ifndef INFINITY -#include "math/INFINITY.c" +#include "math/INFINITY.h" #endif #ifndef NAN -#include "math/NAN.c" +#include "math/NAN.h" #endif /** convert string to floating-point **/ |