]>
cvs.zerfleddert.de Git - micropolis/blob - src/tcl/panic.c
4 * Source code for the "panic" library procedure for Tcl;
5 * individual applications will probably override this with
6 * an application-specific panic procedure.
8 * Copyright 1988-1991 Regents of the University of California
9 * Permission to use, copy, modify, and distribute this
10 * software and its documentation for any purpose and without
11 * fee is hereby granted, provided that the above copyright
12 * notice appears in all copies. The University of California
13 * makes no representations about the suitability of this
14 * software for any purpose. It is provided "as is" without
15 * express or implied warranty.
19 static char rcsid
[] = "$Header: /user6/ouster/tcl/RCS/panic.c,v 1.3 91/10/10 11:25:51 ouster Exp $ SPRITE (Berkeley)";
27 *----------------------------------------------------------------------
31 * Print an error message and kill the process.
37 * The process dies, entering the debugger if possible.
39 *----------------------------------------------------------------------
42 /* VARARGS ARGSUSED */
45 char *format
, /* Format string, suitable for passing to
47 va_list argList
/* Variable argument list. */
50 char *arg1
, *arg2
, *arg3
; /* Additional arguments (variable in number)
51 * to pass to fprintf. */
52 char *arg4
, *arg5
, *arg6
, *arg7
, *arg8
;
54 arg1
= va_arg(argList
, char *);
55 arg2
= va_arg(argList
, char *);
56 arg3
= va_arg(argList
, char *);
57 arg4
= va_arg(argList
, char *);
58 arg5
= va_arg(argList
, char *);
59 arg6
= va_arg(argList
, char *);
60 arg7
= va_arg(argList
, char *);
61 arg8
= va_arg(argList
, char *);
63 (void) fprintf(stderr
, format
, arg1
, arg2
, arg3
, arg4
, arg5
, arg6
,
65 (void) fflush(stderr
);
71 char *format
, /* Format string, suitable for passing to
78 va_start(argList
, format
);
79 panicVA(format
, argList
);