/* (c) 1979 Regents of the University of California */
* Routine error is called from onemt when a runtime error occurs.
* Its argument is the internal number of the error which occurred.
puts("Argument to chr out of range\n");
puts("Floating divide by zero\n");
puts("Floating point overflow\n");
puts("Call to procedure halt\n");
puts("Reference through a nil pointer\n");
ferror("Tried to read past eof");
ferror("Attempt to read, but open for writing");
ferror("Attempt to write, but open for reading");
puts("Too many digits in number\n");
puts("Negative argument to sqrt\n");
puts("Panic: stack not empty between statements\n");
puts("Subscript out of range\n");
puts("Reference to an inactive file\n");
puts("Non-positive argument to ln\n");
puts("Panic: bad op code\n");
puts("Bad data found on integer read\n");
puts("Bad data found on real read\n");
puts("Panic: active frame not found in goto\n");
puts("Label not found in case\n");
puts("Ran out of memory\n");
puts("Panic: bad arg to alloc\n");
puts("Constructed set argument exceeds set bounds\n");
puts("Argument to argv out of range\n");
puts("Bad i to pack(a,i,z)\n");
puts("Bad i to unpack(z,a,i)\n");
puts("Value out of range\n");
puts("Assertion failed\n");
ferror("Integer number too large");
puts("Statement count limit exceeded\n");
puts("Runtime stack overflow\n");
puts("Panic: unknown error\n");
sep
= perrno
== EINTR
? "\n\tInterrupted at " : "\n\tError at ";
while (--i
&& *cp
!= ' ');
pwrite(O_WRIT2
, 2, lino
-cp
->pint
, 0);
pwrite(O_WRIT2
, 2, lino
, 0);
if (mydp
<= &display
[1]) {
puts("Execution terminated abnormally\n");
pwrite(O_WRIT4
, 2, stcnt
, 0);
pwrite(O_WRIT82
, (2 << 3) | 2, l
/ HZ
+ 0.005, 0, 2);
puts(" seconds cpu time\n");
puts("Execution terminated\n");