/* Copyright (c) 1979 Regents of the University of California */
static char sccsid
[] = "@(#)ERROR.c 1.1 10/29/80";
* Routine ERROR is called from the runtime library when a runtime error
* occurs. Its arguments are the internal number of the error which occurred,
* and an error specific piece of error data. The error file is constructed
* from errdata by the makefile using the editor script make.ed1.
fprintf(stderr
, "Argument to chr of %d is out of range\n"
fputs("Call to procedure halt\n",stderr
);
fputs("Pointer value out of legal range\n",stderr
);
fprintf(stderr
,"%s: Tried to read past end of file\n"
fprintf(stderr
,"%s: Attempt to read, but open for writing\n"
fprintf(stderr
,"%s: Attempt to write, but open for reading\n"
fprintf(stderr
,"%s: Close failed\n",errdata
.strngdat
);
fprintf(stderr
,"%s: Line limit exceeded\n",errdata
.strngdat
);
fprintf(stderr
,"Negative argument of %E to sqrt\n"
fprintf(stderr
,"%s: ",errdata
.strngdat
);
fputs("Reference to an inactive file\n",stderr
);
fputs("Could not write to ",stderr
);
perror(errdata
.strngdat
);
fputs("Could not open ",stderr
);
perror(errdata
.strngdat
);
fputs("Could not create ",stderr
);
perror(errdata
.strngdat
);
fputs("Could not remove ",stderr
);
perror(errdata
.strngdat
);
fputs("Could not reset ",stderr
);
perror(errdata
.strngdat
);
fprintf(stderr
,"%s: File name too long\n",errdata
.strngdat
);
fprintf(stderr
,"Non-positive argument of %E to ln\n"
fprintf(stderr
,"%s: Bad data found on integer read\n"
fprintf(stderr
,"%s: Bad data found on real read\n"
"Unknown name \"%s\" found on enumerated type read\n",
"Enumerated type value of %d is out of range on output\n",
fprintf(stderr
,"Negative format width: %d\n",errdata
.longdat
);
fputs("Active frame not found in non-local goto\n", stderr
);
fprintf(stderr
,"Label of %d not found in case\n"
fputs("Ran out of memory\n",stderr
);
fprintf(stderr
, "Range lower bound of %d out of set bounds\n",
fprintf(stderr
, "Range upper bound of %d out of set bounds\n",
fprintf(stderr
, "Value of %d out of set bounds\n",
"There were %d too few arguments to formal routine\n",
"There were %d too many arguments to formal routine\n",
fprintf(stderr
,"Argument to argv of %d is out of range\n"
fprintf(stderr
,"i = %d: Bad i to pack(a,i,z)\n"
fprintf(stderr
,"i = %d: Bad i to unpack(z,a,i)\n"
fprintf(stderr
,"Value of %d is out of range\n",errdata
.longdat
);
fprintf(stderr
,"Subscript value of %d is out of range\n"
fprintf(stderr
,"Assertion failed: %s\n",errdata
.strngdat
);
"Statement count limit exceeded, %d statements executed\n",
fputs("Panic: unknown error\n",stderr
);