@@ -0,0 +1,3 @@
+LIST
+Makefile
+assert.c
@@ -0,0 +1 @@
@@ -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:
@@ -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();
}