small changes, added LIST, Makefile and .distr
authoreck <none@none>
Mon, 18 Dec 1989 14:44:38 +0000 (14:44 +0000)
committereck <none@none>
Mon, 18 Dec 1989 14:44:38 +0000 (14:44 +0000)
lang/cem/libcc.ansi/assert/.distr [new file with mode: 0644]
lang/cem/libcc.ansi/assert/LIST [new file with mode: 0644]
lang/cem/libcc.ansi/assert/Makefile [new file with mode: 0644]
lang/cem/libcc.ansi/assert/assert.c

diff --git a/lang/cem/libcc.ansi/assert/.distr b/lang/cem/libcc.ansi/assert/.distr
new file mode 100644 (file)
index 0000000..fc78f0f
--- /dev/null
@@ -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 (file)
index 0000000..87515cc
--- /dev/null
@@ -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 (file)
index 0000000..3c9fa59
--- /dev/null
@@ -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:
index 90e4bcd..fb88c39 100644 (file)
@@ -3,10 +3,13 @@
  */
 /* $Header$ */
 
+#include       <assert.h>
 #include       <stdio.h>
+#include       <stdlib.h>
 
-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();
 }