small changes, added LIST, Makefile and .distr
This commit is contained in:
parent
31739ec27c
commit
e9b080e13a
3
lang/cem/libcc.ansi/assert/.distr
Normal file
3
lang/cem/libcc.ansi/assert/.distr
Normal file
@ -0,0 +1,3 @@
|
||||
LIST
|
||||
Makefile
|
||||
assert.c
|
||||
1
lang/cem/libcc.ansi/assert/LIST
Normal file
1
lang/cem/libcc.ansi/assert/LIST
Normal file
@ -0,0 +1 @@
|
||||
assert.c
|
||||
11
lang/cem/libcc.ansi/assert/Makefile
Normal file
11
lang/cem/libcc.ansi/assert/Makefile
Normal file
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user