* Copyright (c) 1980 The Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)error.c 5.3 (Berkeley) %G%";
* pi - Pascal interpreter code translator
* Charles Haley, Bill Joy UCB
* Version 1.2 January 1979
* pxp - Pascal execution profiler
* Version 1.2 January 1979
* Panic is called when impossible
* (supposedly, anyways) situations
* Panic messages should be short
* as they do not go to the message
fprintf(stderr
, "Snark (%s) line=%d yyline=%d\n", s
, line
, yyline
);
Perror( "Snark in pxp", s
);
Perror( "Snark in pi", s
);
if (errpfx
== 'w' && opt('w') != 0) {
for (i
= line
; i
>= 10; i
/= 10)
printf(" %c - ", errpfx
);
fprintf(stderr
, "%c %d - ", errpfx
, line
);
fprintf(stderr
, a1
, a2
, a3
, a4
);