Browse Source

small changes, added LIST, Makefile and .distr

eck 34 years ago
parent
commit
e9b080e13a

+ 3 - 0
lang/cem/libcc.ansi/assert/.distr

@@ -0,0 +1,3 @@
+LIST
+Makefile
+assert.c

+ 1 - 0
lang/cem/libcc.ansi/assert/LIST

@@ -0,0 +1 @@
+assert.c

+ 11 - 0
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:

+ 4 - 1
lang/cem/libcc.ansi/assert/assert.c

@@ -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();
 }