summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rwxr-xr-xdefs2d.awk16
-rw-r--r--locale.c8
-rw-r--r--locale.d7
-rw-r--r--locale.defs1
-rw-r--r--signal.c11
-rw-r--r--signal.d10
-rw-r--r--signal.defs2
8 files changed, 19 insertions, 45 deletions
diff --git a/Makefile b/Makefile
index 9933928..13f953f 100644
--- a/Makefile
+++ b/Makefile
@@ -19,11 +19,6 @@ TESTOBJS=main.o \
time.o \
test.o
-.SUFFIXES: .defs .d
-
-.defs.d:
- awk -f defs2d.awk $< > $@
-
testlibc: $(TESTOBJS) $(LIBDIR)/libc.a
$(CC) -o $@ $(TESTOBJS) $(LDFLAGS)
@@ -36,10 +31,10 @@ float.o: float.c test.h
inttypes.o: inttypes.c test.h
iso646.o: iso646.c test.h
limits.o: limits.c test.h
-locale.o: locale.c locale.d test.h
+locale.o: locale.c test.h
math.o: math.c test.h
setjmp.o: setjmp.c test.h
-signal.o: signal.c signal.d test.h
+signal.o: signal.c test.h
stdalign.o: stdalign.c test.h
stdard.o: stdarg.c test.h
stdatomic.o: stdatomic.c test.h
diff --git a/defs2d.awk b/defs2d.awk
deleted file mode 100755
index 23af3de..0000000
--- a/defs2d.awk
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/awk -f
-
-/type/ {
- printf("static %s a_%s;\n\n", $2, $2);
-}
-
-/distinct/ {
- printf("static int %s[] = {\n", $2);
- for (i = 3; i <= NF; i++) {
- #printf("#ifndef %s\n", $i);
- #printf("#error %s not defined\n", $i);
- #printf("#endif\n");
- printf("\t%s,\n", $i);
- }
- printf("};\n");
-}
diff --git a/locale.c b/locale.c
index 7ae3397..9714995 100644
--- a/locale.c
+++ b/locale.c
@@ -2,7 +2,13 @@
#include <limits.h>
#include "test.h"
-#include "locale.d"
+static int locale_categories[] = {
+ LC_ALL,
+ LC_COLLATE,
+ LC_CTYPE,
+ LC_MONETARY,
+ LC_NUMERIC,
+};
void test_locale_h(void)
{
diff --git a/locale.d b/locale.d
deleted file mode 100644
index 49ab136..0000000
--- a/locale.d
+++ /dev/null
@@ -1,7 +0,0 @@
-static int locale_categories[] = {
- LC_ALL,
- LC_COLLATE,
- LC_CTYPE,
- LC_MONETARY,
- LC_NUMERIC,
-};
diff --git a/locale.defs b/locale.defs
deleted file mode 100644
index 2cecc76..0000000
--- a/locale.defs
+++ /dev/null
@@ -1 +0,0 @@
-distinct locale_categories LC_ALL LC_COLLATE LC_CTYPE LC_MONETARY LC_NUMERIC LC_TIME
diff --git a/signal.c b/signal.c
index 13aa074..050534a 100644
--- a/signal.c
+++ b/signal.c
@@ -1,7 +1,16 @@
#include <signal.h>
#include "test.h"
-#include "signal.d"
+static sig_atomic_t sig_atomic;
+
+static int signals[] = {
+ SIGABRT,
+ SIGFPE,
+ SIGILL,
+ SIGINT,
+ SIGSEGV,
+ SIGTERM,
+};
void test_signal_h(void)
{
diff --git a/signal.d b/signal.d
deleted file mode 100644
index 87ca380..0000000
--- a/signal.d
+++ /dev/null
@@ -1,10 +0,0 @@
-static sig_atomic_t a_sig_atomic_t;
-
-static int signals[] = {
- SIGABRT,
- SIGFPE,
- SIGILL,
- SIGINT,
- SIGSEGV,
- SIGTERM,
-};
diff --git a/signal.defs b/signal.defs
deleted file mode 100644
index 5640f97..0000000
--- a/signal.defs
+++ /dev/null
@@ -1,2 +0,0 @@
-type sig_atomic_t
-distinct signals SIGABRT SIGFPE SIGILL SIGINT SIGSEGV SIGTERM