From: eck Date: Mon, 18 Dec 1989 14:44:38 +0000 (+0000) Subject: small changes, added LIST, Makefile and .distr X-Git-Tag: release-5-5~2000 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=bb48507f58cfdcfb2fcbde384615b2b2cdb3e4be;p=ack.git small changes, added LIST, Makefile and .distr --- 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(); }