1tst output{ 2 int main() 3 { 4 printf("\n"); 5 printf("#define CC_ASCII 1 /* ISO-8859-1 */\n"); 6 printf("#define CC_EBCDIC_E 2 /* Xopen dd(1) EBCDIC */\n"); 7 printf("#define CC_EBCDIC_I 3 /* Xopen dd(1) IBM */\n"); 8 printf("#define CC_EBCDIC_O 4 /* IBM-1047 mvs OpenEdition */\n"); 9 printf("#define CC_EBCDIC_S 5 /* Siemens posix-bc */\n"); 10 printf("#define CC_EBCDIC_H 6 /* IBM-37 AS/400 */\n"); 11 printf("#define CC_EBCDIC_M 7 /* IBM mvs cobol */\n"); 12 printf("#define CC_EBCDIC_U 8 /* microfocus cobol */\n"); 13 printf("\n"); 14 printf("#define CC_MAPS 8 /* number of code maps */\n"); 15 printf("\n"); 16 printf("#define CC_EBCDIC CC_EBCDIC_E\n"); 17 printf("#define CC_EBCDIC1 CC_EBCDIC_E\n"); 18 printf("#define CC_EBCDIC2 CC_EBCDIC_I\n"); 19 printf("#define CC_EBCDIC3 CC_EBCDIC_O\n"); 20 printf("\n"); 21 switch ('~') 22 { 23 case 0137: 24 printf("#define CC_NATIVE CC_EBCDIC_E /* native character code */\n"); 25 break; 26 case 0176: 27 printf("#define CC_NATIVE CC_ASCII /* native character code */\n"); 28 break; 29 case 0241: 30 switch ('\n') 31 { 32 case 0025: 33 printf("#define CC_NATIVE CC_EBCDIC_O /* native character code */\n"); 34 break; 35 default: 36 switch ('[') 37 { 38 case 0272: 39 printf("#define CC_NATIVE CC_EBCDIC_H /* native character code */\n"); 40 break; 41 default: 42 printf("#define CC_NATIVE CC_EBCDIC_I /* native character code */\n"); 43 break; 44 } 45 break; 46 } 47 break; 48 case 0377: 49 printf("#define CC_NATIVE CC_EBCDIC_S /* native character code */\n"); 50 break; 51 default: 52 switch ('A') 53 { 54 case 0301: 55 printf("#define CC_NATIVE CC_EBCDIC_O /* native character code */\n"); 56 break; 57 default: 58 printf("#define CC_NATIVE CC_ASCII /* native character code */\n"); 59 break; 60 } 61 break; 62 } 63 if ('A' == 0101) 64 { 65 printf("#define CC_ALIEN CC_EBCDIC /* alien character code */\n\n"); 66 printf("#define CC_bel 0007 /* bel character */\n"); 67 printf("#define CC_esc 0033 /* esc character */\n"); 68 printf("#define CC_sub 0032 /* sub character */\n"); 69 printf("#define CC_vt 0013 /* vt character */\n"); 70 } 71 else 72 { 73 printf("#define CC_ALIEN CC_ASCII /* alien character code */\n\n"); 74 printf("#define CC_bel 0057 /* bel character */\n"); 75 printf("#define CC_esc 0047 /* esc character */\n"); 76 printf("#define CC_sub 0077 /* sub character */\n"); 77 printf("#define CC_vt 0013 /* vt character */\n"); 78 } 79 return 0; 80 } 81}end 82