|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ T e ┃
Length: 628 (0x274) Types: TextFile Names: »error.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/multivol/error.c«
#include <stdio.h> extern int errno; extern char *O_name; /*VARARGS1*/ fatal(fmt, arg1, arg2, arg3) char *fmt; int arg1, arg2, arg3; { warning(fmt, arg1, arg2, arg3); #ifdef DEBUG abort(); #else exit(1); #endif } sfatal(str) char *str; { swarning(str); #ifdef DEBUG abort(); #else exit(1); #endif } /*VARARGS1*/ warning(fmt, arg1, arg2, arg3) char *fmt; int arg1, arg2, arg3; { fprintf(stderr, "%s: ", O_name); fprintf(stderr, fmt, arg1, arg2, arg3); fprintf(stderr, "\n"); } swarning(str) char *str; { #ifdef DEBUG fprintf(stderr, "(%d) ", errno); #endif fprintf(stderr, "%s: ", O_name); perror(str); }