| 1 |
/* |
| 2 |
* These are changes needed for the MVS/XA version of dvips 5.497 |
| 3 |
* November20, 1992. |
| 4 |
* This was derived by Peter K. Schilling - DESY - from "dvipscms.h" |
| 5 |
* written by J. Hafner, E. Blanz and M. Flickner of IBM Research, |
| 6 |
* Almaden Research Center. |
| 7 |
* The changes to the rest of the code can be found by searching for |
| 8 |
* "MVSXA". |
| 9 |
*/ |
| 10 |
extern char *malloc(); |
| 11 |
/* |
| 12 |
* Added ascii to ebcdic conversion table for MVSXA. |
| 13 |
* Only for the printable characters. This is used by DVIPS. |
| 14 |
*/ |
| 15 |
char ascii2ebcdic[256] = { |
| 16 |
0, 1, 2, 3, 53, 45, 46, 47, |
| 17 |
22, 5, 37, 11, 12, 64, 14, 15, |
| 18 |
16, 17, 18, 19, 60, 61, 50, 38, |
| 19 |
24, 25, 63, 39,111,111,111,111, |
| 20 |
64, 90,127,123, 91,108, 80,125, |
| 21 |
77, 93, 92, 78,107, 96, 75, 97, |
| 22 |
240,241,242,243,244,245,246,247, |
| 23 |
248,249,122, 94, 76,126,110,111, |
| 24 |
124,193,194,195,196,197,198,199, |
| 25 |
200,201,209,210,211,212,213,214, |
| 26 |
215,216,217,226,227,228,229,230, |
| 27 |
231,232,233,173,224,189, 95,109, |
| 28 |
121,129,130,131,132,133,134,135, |
| 29 |
136,137,145,146,147,148,149,150, |
| 30 |
151,152,153,162,163,164,165,166, |
| 31 |
167,168,169,192, 79,208,161, 7, |
| 32 |
128,129,130,131,132,133,134,135, |
| 33 |
136,137,138,139,140,141,142,143, |
| 34 |
144,145,146,147,148,149,150,151, |
| 35 |
152,153,154,155,156,157,158,159, |
| 36 |
160,161,162,163,164,165,166,167, |
| 37 |
168,169,170,171,172,173,174,175, |
| 38 |
176,177,178,179,180,181,182,183, |
| 39 |
184,185,186,187,188,189,190,191, |
| 40 |
192,193,194,195,196,197,198,199, |
| 41 |
200,201,202,203,204,205,206,207, |
| 42 |
208,209,210,211,212,213,214,215, |
| 43 |
216,217,218,219,220,221,222,223, |
| 44 |
224,225,226,227,228,229,230,231, |
| 45 |
232,233,234,235,236,237,238,239, |
| 46 |
240,241,242,243,244,245,246,247, |
| 47 |
248,249,250,251,252,253,254,255 |
| 48 |
}; |
| 49 |
/* |
| 50 |
* Added ebcdic to ascii conversion table for MVSXA. |
| 51 |
* Only for the printable characters. This inverts the |
| 52 |
* table above and is used by AFM2TFM. |
| 53 |
*/ |
| 54 |
char ebcdic2ascii[256] = { |
| 55 |
0, 1, 2, 3, 4, 9, 6,127, |
| 56 |
8, 9, 10, 11, 12, 13, 14, 15, |
| 57 |
16, 17, 18, 19, 20, 21, 8, 23, |
| 58 |
24, 25, 26, 27, 28, 29, 30, 31, |
| 59 |
32, 33, 34, 35, 36, 10, 23, 27, |
| 60 |
40, 41, 42, 43, 44, 5, 6, 7, |
| 61 |
48, 49, 22, 51, 52, 4, 54, 55, |
| 62 |
56, 57, 58, 59, 20, 21, 62, 26, |
| 63 |
32, 65, 66, 67, 68, 69, 70, 71, |
| 64 |
72, 73, 74, 46, 60, 40, 43,124, |
| 65 |
38, 81, 82, 83, 84, 85, 86, 87, |
| 66 |
88, 89, 33, 36, 42, 41, 59, 94, |
| 67 |
45, 47, 98, 99,100,101,102,103, |
| 68 |
104,105,124, 44, 37, 95, 62, 63, |
| 69 |
112,113,114,115,116,117,118,119, |
| 70 |
120, 96, 58, 35, 64, 39, 61, 34, |
| 71 |
128, 97, 98, 99,100,101,102,103, |
| 72 |
104,105,138,123,140,141,142,143, |
| 73 |
144,106,107,108,109,110,111,112, |
| 74 |
113,114,154,125,156,157,158,159, |
| 75 |
160,161,115,116,117,118,119,120, |
| 76 |
121,122,170,171,172, 91,174,175, |
| 77 |
176,177,178,179,180,181,182,183, |
| 78 |
184,185,186,187,188, 93,190,191, |
| 79 |
192, 65, 66, 67, 68, 69, 70, 71, |
| 80 |
72, 73,202,203,204,205,206,207, |
| 81 |
208, 74, 75, 76, 77, 78, 79, 80, |
| 82 |
81, 82,218,219,220,221,222,223, |
| 83 |
92,225, 83, 84, 85, 86, 87, 88, |
| 84 |
89, 90,234,235,236,237,238,239, |
| 85 |
48, 49, 50, 51, 52, 53, 54, 55, |
| 86 |
56, 57,250,251,252,253,254,255 |
| 87 |
}; |
| 88 |
|
| 89 |
/* |
| 90 |
* access.c for MVSXA |
| 91 |
*/ |
| 92 |
int access (path, amode) |
| 93 |
char *path; |
| 94 |
int amode; |
| 95 |
{ |
| 96 |
return(1); |
| 97 |
} |