/* Copyright (c) 1979 Regents of the University of California */
static char sccsid
[] = "@(#)error.c 1.1 8/27/80";
* Panic is called when impossible
* (supposedly, anyways) situations
* Panic messages should be short
* as they do not go to the message
printf("Snark (%s) line=%d\n", s
, line
);
printf("Snark (%s) line=%d, yyline=%d\n", s
, line
, yyline
);
abort () ; /* die horribly */
Perror( "Snark in pi1", s
);
Perror( "Snark in pi", s
);
char errbuf
[256]; /* was extern. why? ...pbk */
if (errpfx
== 'w' && opt('w') != 0) {
for (i
= line
; i
>= 10; i
/= 10)
printf(" %c - ", errpfx
);
printf("%c %d - ", errpfx
, line
);
char *lastname
, printed
, hadsome
;
* this yysetfile for PI1 only.
* the real yysetfile is in yyput.c
printf("%s %s:\n" , myctime( &tvec
) , name
);