small changes, added LIST, Makefile and .distr
This commit is contained in:
parent
94db19641a
commit
bb48507f58
4 changed files with 19 additions and 1 deletions
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…
Reference in a new issue