From bb48507f58cfdcfb2fcbde384615b2b2cdb3e4be Mon Sep 17 00:00:00 2001 From: eck Date: Mon, 18 Dec 1989 14:44:38 +0000 Subject: [PATCH] small changes, added LIST, Makefile and .distr --- lang/cem/libcc.ansi/assert/.distr | 3 +++ lang/cem/libcc.ansi/assert/LIST | 1 + lang/cem/libcc.ansi/assert/Makefile | 11 +++++++++++ lang/cem/libcc.ansi/assert/assert.c | 5 ++++- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 lang/cem/libcc.ansi/assert/.distr create mode 100644 lang/cem/libcc.ansi/assert/LIST create mode 100644 lang/cem/libcc.ansi/assert/Makefile diff --git a/lang/cem/libcc.ansi/assert/.distr b/lang/cem/libcc.ansi/assert/.distr new file mode 100644 index 000000000..fc78f0f4e --- /dev/null +++ b/lang/cem/libcc.ansi/assert/.distr @@ -0,0 +1,3 @@ +LIST +Makefile +assert.c diff --git a/lang/cem/libcc.ansi/assert/LIST b/lang/cem/libcc.ansi/assert/LIST new file mode 100644 index 000000000..87515cc41 --- /dev/null +++ b/lang/cem/libcc.ansi/assert/LIST @@ -0,0 +1 @@ +assert.c diff --git a/lang/cem/libcc.ansi/assert/Makefile b/lang/cem/libcc.ansi/assert/Makefile new file mode 100644 index 000000000..3c9fa5987 --- /dev/null +++ b/lang/cem/libcc.ansi/assert/Makefile @@ -0,0 +1,11 @@ +CFLAGS=-L -LIB + +.SUFFIXES: .o .e .c + +.e.o: + $(CC) $(CFLAGS) -c -o $@ $*.e + +clean: + rm -rf assert.o OLIST + +assert.o: diff --git a/lang/cem/libcc.ansi/assert/assert.c b/lang/cem/libcc.ansi/assert/assert.c index 90e4bcd76..fb88c392c 100644 --- a/lang/cem/libcc.ansi/assert/assert.c +++ b/lang/cem/libcc.ansi/assert/assert.c @@ -3,10 +3,13 @@ */ /* $Header$ */ +#include #include +#include -void _bad_assertion(const char *expr, const char *file, int line) { +void __bad_assertion(const char *expr, const char *file, int line) { fprintf(stderr,"Assertion \"%s\" failed, file \"%s\", line %d\n", expr, file, line); + abort(); } -- 2.34.1