OSDN Git Service

wwww
[proj16/16.git] / src / lib / exmm / emmret.h
1 // AJR notes: some of these are not used by the emm code\r
2 \r
3 // Cut this out as emmret.h\r
4 \r
5 /*      File:       EmmRet.h\r
6  *      Module:     All Modules\r
7  *      Author(s):  Chris Somers\r
8  *      Date:       May 8, 1992\r
9  *      Version:    V.1.0\r
10  */\r
11 \r
12 #ifndef _EMM_RETURNS_DEF\r
13 #define _EMM_RETURNS_DEF 1\r
14 \r
15 /* Module return values */\r
16 \r
17 /* Return Values */\r
18 \r
19 #define     START                8\r
20 #define     END                  7\r
21 #define     MOVABORT             6\r
22 #define     PRN_COMPLETE         5\r
23 #define     PRN_PROGRESS         4\r
24 #define     INCOMPLETE           3\r
25 #define     HAVEROOM             2\r
26 #define     SUCCESS              1\r
27 #define     TRUE                 1\r
28 #define     YES                  1\r
29 #define     FALSE                0\r
30 #define     NO                   0\r
31 #define     NOTREADY             0\r
32 #define     NO_DATA              0\r
33 #define     NONE                -1\r
34 \r
35 /* Start of Recoverable error codes */\r
36 \r
37 #define     NO_SPACE            -1001\r
38 #define     NOTPOLLING          -1002\r
39 #define     ALREADYDONE         -1003\r
40 #define     NO_PRN_DEV          -1004\r
41 #define     OUTF_PAPER          -1005\r
42 #define     NO_VIDEO            -1006\r
43 #define     TIMEOUT             -1007\r
44 #define     FILENOPEN           -1008\r
45 #define     ABORT_REQ           -1009\r
46 #define     DEV_IOERR           -1010\r
47 \r
48 #define     MAXRERR                10\r
49 #define     RECOVERABLE         -1999   /* all above errors are recoverable */\r
50 \r
51 /* Start of Threadfatal error codes */\r
52 \r
53 #define     NOT_OPEN            -2001\r
54 #define     NOT_ATTACHED        -2002\r
55 #define     NO_CONNECTION       -2003\r
56 #define     INSUFF_MEM          -2004\r
57 #define     NR_TIMEOUT          -2005\r
58 \r
59 #define     MAXTERR                 5\r
60 #define     THREADFATAL         -2999   /* above errors force task to cancel */\r
61 \r
62 /* Start of Systemfatal error codes */\r
63 \r
64 #define     BAD_TASKNUM         -3001\r
65 #define     BAD_HANDLE          -3002\r
66 #define     BAD_HARDWARE        -3003\r
67 #define     INVALIDACTION       -3004\r
68 #define     NOFREEITEMS         -3005\r
69 #define     NO_MEMORY           -3006\r
70 #define     NO_EMS              -3007\r
71 #define     VALUE_OUTF_RANGE    -3008\r
72 #define     BAD_MODE            -3009\r
73 #define     NO_PALETTE          -3010\r
74 #define     BAD_DISPPAGE        -3011\r
75 #define     NO_TSR              -3012\r
76 #define     BUFTOOSMALL         -3013\r
77 #define     BAD_NAME            -3014\r
78 #define     BAD_DISPHW          -3015\r
79 #define     NO_FLOPPY           -3016\r
80 \r
81 #define     MAXSERR                16\r
82 #define     SYSTEMFATAL         -3999   /* above errors are fatal to system */\r
83 \r
84 #endif\r