/* EC.h -- "CallSwat" error code bases
   Swinehart, June 30, 1982  9:03 AM
   Stewart, June 12, 1983  2:43 PM
*/

#define ecAllocate 0x1000	/* Allocation errors are ecAllocate+x */
    /*
	1	AddToZone of too-small or too-big block
	2 . . 13 in Alloc.c
	5	out of space
	22H	stack overflow
     */
#define ecQueue 0x2000
    /* Queue package errors are ecAllocate+x
	1	enqueue of 0 item
	2	unqueue of 0 item
    */
#define ecSignal 0x3000
   /* Signaller errors
	1	signal vector overflow
	2	signal not caught
	3	invalid signaller code
	4	signaller petard
    */
#define ecPup1  0x4000
  /* Pup package, level 1
	1	Out of PBI's
	10	failure of OpenLevel1Socket
	11      out of sockets
	19	Pup too long (in slc initialization)
	20	Pup too long (in slc driver)
	21	TeleDebug request
	100	Import failed
   */

#define ecNotImp 0x5000
  /* 
	1	illegal endcase
   */
#define ecInt 0x6000	/* interrupts */
  /* Interrupt package
	1	unknown SIO interrupt
	2	ch. B Ext/Status change
	3	ch. A Ext/Status change
	3	WDC error
  */
#define ecLarkImpl 0x7000
  /* Lark proper
	1	Ran out of eventCBs in event report
	2	buffer already in use (in larknet)
	3	lost transmit buffer
	4	transmit buffer late (DEBUG)
	5	Dequeue failure in CheckFromNet
	6	Multiple connect calls in progress
	21	CStringToRope error
	22	Unreasonable value in packet
	23	AgentInitialize error
	24	mod error in LarkNet
	25	mod error in PlayPackets
	26	failure in RecordEvent
	27	timeout in RecordEvent
  */
#define ecDebugger 0x8000
  /*
	1	Bad encryption parity
	2	No interrupt handler
	3	Negative WDC
	4	Stack overflow
	5	ecbwork could not be 0 at end of blt!
	6	ecbwork could not be 0 at interrupt!
	7	no Slave TC at encryption interrupt
	8	missing procedure in encryption
	12	missing procedure in encryption
	81xx	Unknown interrupt type X
  */