diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 00:10:16 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 00:10:16 -0500 |
| commit | 54c81c3b7f90a576135c46ded5328e6b34ad1deb (patch) | |
| tree | 2a3040d241188a1eb84abe000b0bb2f48530e5ef /src | |
| parent | 1ed155971e7a2dbb84756255cb7474ff5c1c9b17 (diff) | |
remove extraneous #undef directives
Diffstat (limited to 'src')
| -rw-r--r-- | src/fenv/fegetround.c | 2 | ||||
| -rw-r--r-- | src/math/copysign.c | 2 | ||||
| -rw-r--r-- | src/signal/signal.c | 2 | ||||
| -rw-r--r-- | src/stdio/fgets.c | 1 | ||||
| -rw-r--r-- | src/stdio/fopen.c | 1 | ||||
| -rw-r--r-- | src/stdio/getchar.c | 1 | ||||
| -rw-r--r-- | src/stdio/tmpfile.c | 1 | ||||
| -rw-r--r-- | src/stdlib/abort.c | 2 | ||||
| -rw-r--r-- | src/stdlib/div.c | 1 | ||||
| -rw-r--r-- | src/stdlib/rand.c | 1 | ||||
| -rw-r--r-- | src/string/strcat.c | 1 | ||||
| -rw-r--r-- | src/string/strchr.c | 1 | ||||
| -rw-r--r-- | src/string/strcpy.c | 1 | ||||
| -rw-r--r-- | src/string/strncpy.c | 1 | ||||
| -rw-r--r-- | src/string/strpbrk.c | 1 | ||||
| -rw-r--r-- | src/string/strstr.c | 1 | ||||
| -rw-r--r-- | src/string/strtok.c | 1 | ||||
| -rw-r--r-- | src/time/clock.c | 1 |
18 files changed, 0 insertions, 22 deletions
diff --git a/src/fenv/fegetround.c b/src/fenv/fegetround.c index 6aa133b7..03389e63 100644 --- a/src/fenv/fegetround.c +++ b/src/fenv/fegetround.c @@ -1,8 +1,6 @@ #include <fenv.h> #include "_safety.h" -#undef fegetround - int fegetround(void) { SIGNAL_SAFE(0); diff --git a/src/math/copysign.c b/src/math/copysign.c index 21ad6701..31675ad5 100644 --- a/src/math/copysign.c +++ b/src/math/copysign.c @@ -4,8 +4,6 @@ #include "_tgmath.h" #include <math.h> -#undef copysign - TYPE TGFN(copysign)(TYPE x, TYPE y) { SIGNAL_SAFE(0); diff --git a/src/signal/signal.c b/src/signal/signal.c index 4172c6da..927025ee 100644 --- a/src/signal/signal.c +++ b/src/signal/signal.c @@ -16,8 +16,6 @@ #define sigaction(_sig, _act, _oact, _size) __scall4(sigaction, _sig, _act, _oact, _size) #define SA_RESTART 0x10000000 #define SA_RESTORER 0x04000000 -#undef SIG_DFL -#define SIG_DFL ((void (*)(int)) 0) void (*signal(int sig, void (*func)(int)))(int) { diff --git a/src/stdio/fgets.c b/src/stdio/fgets.c index 8e7bf449..195e724a 100644 --- a/src/stdio/fgets.c +++ b/src/stdio/fgets.c @@ -1,6 +1,5 @@ #include <stdio.h> #include "_stdio.h" -#undef fgets /** read a string of characters from a file stream **/ diff --git a/src/stdio/fopen.c b/src/stdio/fopen.c index b62491bc..e2ff7efc 100644 --- a/src/stdio/fopen.c +++ b/src/stdio/fopen.c @@ -2,7 +2,6 @@ #include <stdio.h> #include <stdlib.h> #include "_stdio.h" -#undef fopen /** open a file stream **/ diff --git a/src/stdio/getchar.c b/src/stdio/getchar.c index faee8889..21f333f2 100644 --- a/src/stdio/getchar.c +++ b/src/stdio/getchar.c @@ -1,6 +1,5 @@ #include <stdio.h> #include "_stdio.h" -#undef getchar /** read a character from stdin **/ diff --git a/src/stdio/tmpfile.c b/src/stdio/tmpfile.c index f19bbdcf..94f2ecff 100644 --- a/src/stdio/tmpfile.c +++ b/src/stdio/tmpfile.c @@ -1,6 +1,5 @@ #include <stdio.h> #include "_stdio.h" -#undef tmpfile /** open a temporary file stream **/ diff --git a/src/stdlib/abort.c b/src/stdlib/abort.c index ed762be7..3b17842a 100644 --- a/src/stdlib/abort.c +++ b/src/stdlib/abort.c @@ -2,8 +2,6 @@ #include <signal.h> #include "_stdlib.h" -#undef abort - /** cause abnormal program termination **/ _Noreturn void abort(void) diff --git a/src/stdlib/div.c b/src/stdlib/div.c index 8d515ec6..3cb2df78 100644 --- a/src/stdlib/div.c +++ b/src/stdlib/div.c @@ -1,6 +1,5 @@ #include <stdlib.h> #include "_stdlib.h" -#undef div /** calculate quotient and remainder **/ diff --git a/src/stdlib/rand.c b/src/stdlib/rand.c index 588522a7..a68dc046 100644 --- a/src/stdlib/rand.c +++ b/src/stdlib/rand.c @@ -1,5 +1,4 @@ #include "_stdlib.h" -#undef rand /** get a pseudo-random number **/ int rand(void) diff --git a/src/string/strcat.c b/src/string/strcat.c index 547eac3e..5f5da102 100644 --- a/src/string/strcat.c +++ b/src/string/strcat.c @@ -1,6 +1,5 @@ #include <string.h> #include "_safety.h" -#undef strcat /** concatenate strings **/ char * strcat(char * restrict s1, const char * restrict s2) diff --git a/src/string/strchr.c b/src/string/strchr.c index 5793743b..92557030 100644 --- a/src/string/strchr.c +++ b/src/string/strchr.c @@ -1,6 +1,5 @@ #include <string.h> #include "_safety.h" -#undef strchr /** string search **/ diff --git a/src/string/strcpy.c b/src/string/strcpy.c index aa567374..1faf6409 100644 --- a/src/string/strcpy.c +++ b/src/string/strcpy.c @@ -1,6 +1,5 @@ #include <string.h> #include "_safety.h" -#undef strcpy /** copy string **/ diff --git a/src/string/strncpy.c b/src/string/strncpy.c index 94fcc2f5..2b4c40d1 100644 --- a/src/string/strncpy.c +++ b/src/string/strncpy.c @@ -1,6 +1,5 @@ #include <string.h> #include "_safety.h" -#undef strncpy /** copy bounded string **/ diff --git a/src/string/strpbrk.c b/src/string/strpbrk.c index 2d2a95b4..714c282a 100644 --- a/src/string/strpbrk.c +++ b/src/string/strpbrk.c @@ -1,6 +1,5 @@ #include <string.h> #include "_safety.h" -#undef strpbrk /** count matching characters **/ diff --git a/src/string/strstr.c b/src/string/strstr.c index d4f26f37..fa5db853 100644 --- a/src/string/strstr.c +++ b/src/string/strstr.c @@ -1,6 +1,5 @@ #include <string.h> #include "_safety.h" -#undef strstr /** search for substring **/ diff --git a/src/string/strtok.c b/src/string/strtok.c index a1ddeadc..69b7fcc8 100644 --- a/src/string/strtok.c +++ b/src/string/strtok.c @@ -1,6 +1,5 @@ #include <string.h> #include "_safety.h" -#undef strtok /** split string into tokens **/ diff --git a/src/time/clock.c b/src/time/clock.c index 47fdd847..a1ccc29d 100644 --- a/src/time/clock.c +++ b/src/time/clock.c @@ -1,6 +1,5 @@ #include <time.h> #include "_safety.h" -#undef clock /** get processor time **/ |
