/* Generated with C2C (Cedar To C)*/ /* Copyright (C) 1992 by Xerox Corporation. All rights reserved. */ /* time: December 16, 1992 11:12:00 am PST */ /* C2C version: October 7, 1992 (native) */ /* ref-counting: off */ /* file: XShowPixmap, module: XShowPixmap */ /* switches: bcfhklnouw */ #include #include static char versionStamp[] = "@(#)mob_version [2113359677,3075982100] XShowPixmap"; typedef unsigned word, *ptr; typedef unsigned char byte, *bPt; typedef unsigned short half, *hPt; typedef word (*fPt)(); typedef struct {word f0, f1, f2, f3, f4, f5, f6, f7;} W8; typedef struct {word f0, f1, f2;} W3; typedef struct {W8 f; W3 r;} W11; typedef struct {word f0, f1;} W2; typedef W3 *W3Pt; typedef struct {word f0, f1, f2, f3;} W4; typedef W4 *W4Pt; typedef struct {W8 f; word r;} W9; typedef W9 *W9Pt; typedef struct {W8 f; W8 r;} W16; typedef struct {W16 f; W4 r;} W20; typedef struct {word f0, f1, f2, f3, f4;} W5; typedef W5 *W5Pt; typedef struct {word f0, f1, f2, f3, f4, f5;} W6; #define SOURCE(p, l) /* source p, l */ #define MIN(cast, x, y) ( ( cast x) < ( cast y) ? (x) : (y) ) static void NoName_Q432(); static void XShowPixmap_P0(); static void XShowPixmapComm_P60(); static word NoName_Q492(); static word NoName_Q552(); static word GetStream_P168(); static word NoName_Q612(); static void NoName_Q672(); static void NoName_Q732(); static void NoName_Q792(); static struct {unsigned f; char r[16];} string1 = {851984, "\257\300\363\223\326\161\300\017\164\046\072\104\304\000\000"}; static struct {unsigned f; char r[24];} string2 = {1376277, "\007\000\001\002\007\020\001\002\000\007\036\002\004\003\002\004\014\016\015\003\001\000\000"}; static struct {unsigned f; char r[16];} string3 = {917520, "\216\257\300\363\223\326\161\300\017\164\046\072\104\350\000"}; static struct {unsigned f; char r[4];} string4 = {65537, "\001\000\000"}; static struct {unsigned f; char r[20];} string5 = {1048596, "Display a pixmap\000\000\000"}; static struct {unsigned f; char r[20];} string6 = {1245204, "file access problem"}; static struct {unsigned f; char r[16];} string7 = {851984, "bitmap format\000\000"}; static struct {unsigned f; char r[28];} string8 = {1638428, "please specify a filename\000\000"}; static struct {unsigned f; char r[12];} string9 = {720908, "XShowPixmap"}; static struct {unsigned f; char r[16];} string10 = {851984, "\257\300\175\367\117\075\300\267\127\303\024\100\164\000\000"}; static struct {unsigned f; char r[4];} string11 = {196611, "\004O\200"}; static struct {unsigned f; char r[16];} string12 = {851984, "\257\300\237\145\317\332\300\336\102\337\137\100\150\000\000"}; static struct {unsigned f; char r[16];} string13 = {851984, "\257\300\373\225\000\071\300\362\156\307\320\100\150\000\000"}; static struct {unsigned f; char r[16];} string14 = {851984, "\257\300\311\235\133\064\300\165\175\234\175\100\150\000\000"}; static struct {unsigned f; char r[16];} string15 = {851984, "\257\300\015\277\004\146\300\034\367\146\045\100\164\000\000"}; static struct {unsigned f; char r[16];} string16 = {851984, "\257\300\141\260\110\353\300\162\250\066\353\100\150\000\000"}; static struct {unsigned f; char r[16];} string17 = {851984, "\257\300\363\223\326\161\300\017\164\046\072\100\150\000\000"}; static struct {unsigned f; char r[16];} string18 = {851984, "\257\300\256\061\211\265\300\052\170\134\271\100\150\000\000"}; static struct {unsigned f; char r[16];} string19 = {851984, "\257\300\145\202\371\143\300\336\312\353\353\100\150\000\000"}; static struct {unsigned f; char r[16];} string20 = {851984, "\257\300\241\353\232\337\300\356\000\215\116\100\150\000\000"}; static struct { word f0[12]; word f12; word f13; word f14; word f15[2]; word f17; word f18; word f19; word f20; word f21; word f22; word f23[3]; word f26; word f27; word f28; word f29; word f30; word f31; word f32[2]; word f34; word f35; word f36; word f37; word f38; word f39; word f40[17]; } globalframe = { {0}, (word) XShowPixmapComm_P60, 0, (word) XShowPixmap_P0, {0}, (word) 2147483648, (word) 2147483648, (word) 2147483648, (word) 2147483648, (word) 2147483648, (word) 3, {0}, (word) 2147483648, (word) 2147483648, (word) 2147483648, (word) 2147483648, (word) 2147483648, (word) 3, {0}, (word) 2147483648, (word) 2147483648, (word) 2147483648, (word) 2147483648, (word) 2147483648, (word) 2147483647, {0} }; static void NoName_Q432() { register ptr gf_c080 = (ptr) &globalframe; word var_c16136; (* (( (ptr) gf_c080)+4) ) = (word) XR_GetTypeIndex((word) &string1, 0, (word) &string2); (* (( (ptr) gf_c080)+5) ) = (word) XR_GetTypeIndex((word) &string3, 0, (word) &string4); (* (ptr) (( (bPt) gf_c080)+28) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c080)+5) ), (word) &string5); (* (ptr) (( (bPt) gf_c080)+32) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c080)+5) ), (word) &string6); (* (ptr) (( (bPt) gf_c080)+36) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c080)+5) ), (word) &string7); (* (ptr) (( (bPt) gf_c080)+40) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c080)+5) ), (word) &string8); (* (ptr) (( (bPt) gf_c080)+44) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c080)+5) ), (word) &string9); (void) XR_DeclareGlobalFrame((word) "XShowPixmap", &globalframe, (word) XR_GetTypeIndex((word) &string10, 0, (word) &string11) , (word) (( (bPt) gf_c080)+56)/* var_c15208 */ ); var_c16136 = (word) XR_ImportInterface((word) "CBitmapReader", (word) XR_GetTypeIndexS((word) (&string12)), 2); (* (( (ptr) gf_c080)+50)/* var_c15656 */ ) = var_c16136; (void) XR_ImportProcS(var_c16136, 201588993); var_c16136 = (word) XR_ImportInterface((word) "Commander", (word) XR_GetTypeIndexS((word) (&string13)), 3); (* (( (ptr) gf_c080)+48)/* var_c15560 */ ) = var_c16136; (void) XR_ImportProcS(var_c16136, 1310725); var_c16136 = (word) XR_ImportInterface((word) "CommanderOps", (word) XR_GetTypeIndexS((word) (&string14)), 14); (* (( (ptr) gf_c080)+49)/* var_c15624 */ ) = var_c16136; (void) XR_ImportProcS(var_c16136, 67634178); var_c16136 = (word) XR_ImportInterface((word) "IO", (word) XR_GetTypeIndexS((word) (&string15)), 103); (* (( (ptr) gf_c080)+51)/* var_c15688 */ ) = var_c16136; (void) XR_ImportProcS(var_c16136, 530434); var_c16136 = (word) XR_ImportInterface((word) "PFS", (word) XR_GetTypeIndexS((word) (&string16)), 40); (* (( (ptr) gf_c080)+55)/* var_c16008 */ ) = var_c16136; (void) XR_ImportProcS(var_c16136, 67371265); (void) XR_ImportProcS(var_c16136, 71312136); var_c16136 = (word) XR_ImportInterface((word) "Rope", (word) XR_GetTypeIndexS((word) (&string17)), 43); (* (( (ptr) gf_c080)+56)/* var_c16040 */ ) = var_c16136; (void) XR_ImportProcS(var_c16136, 67373569); var_c16136 = (word) XR_ImportInterface((word) "XlBitmap", (word) XR_GetTypeIndexS((word) (&string18)), 14); (* (( (ptr) gf_c080)+52)/* var_c15752 */ ) = var_c16136; (void) XR_ImportProcS(var_c16136, 67371777); var_c16136 = (word) XR_ImportInterface((word) "XTkWidgets", (word) XR_GetTypeIndexS((word) (&string19)), 52); (* (( (ptr) gf_c080)+54)/* var_c15976 */ ) = var_c16136; (void) XR_ImportProcS(var_c16136, 2099460); (void) XR_ImportProcS(var_c16136, 72352268); var_c16136 = (word) XR_ImportInterface((word) "XTkBitmapScroller", (word) XR_GetTypeIndexS((word) (&string20)), 11); (* (( (ptr) gf_c080)+53)/* var_c15912 */ ) = var_c16136; (void) XR_ImportProcS(var_c16136, 1310980); (void) XR_ImportProcS(var_c16136, 70778885); } static void XShowPixmap_P0(formal_c026, formal_c025) word formal_c026; word formal_c025; { register ptr gf_c16168 = (ptr) &globalframe; /* XShowPixmap: */ SOURCE(126, 1419) /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ SOURCE(1475, 70) { word pd21; pd21 = (* (( (ptr) (* (( (ptr) gf_c16168)+48)/* var_c15560 */ ))+4) ); (void) ( *( (fPt) ((* (ptr) pd21 ))))((* (( (ptr) gf_c16168)+11) ), (word) (( (bPt) gf_c16168)+48)/* var_c15176 */ , (* ( ( (ptr) gf_c16168)+7) ), 0, 1, pd21); }; } static void XShowPixmapComm_P60(formal_c047, cmd_v4132) word formal_c047; word cmd_v4132; { W11 var_c16200; register ptr gf_c16232 = (ptr) &globalframe; word result_v4176; word msg_v4204; /* declaration of var_c15592 skipped */ /* XShowPixmapComm: */ SOURCE(280, 1191) { word tmpAddr22; tmpAddr22 = (word) (( (ptr) &var_c16200)+4)/* var_c15592 */ ; (* (ptr) tmpAddr22 ) = ( ((word) (fPt) GetStream_P168) ); (* (( (ptr) tmpAddr22) + 1) ) = 1; }; SOURCE(280, 1191) result_v4176 = 0; SOURCE(280, 1191) msg_v4204 = 0; SOURCE(321, 1150) SOURCE(323, 17) { W2 sz_v3048; word bm_v3076 = 0; word bmw_v3104 = 0; word shell_v3132 = 0; word sm_v3160 = 0; word fileName_v3188; /* declaration of s_v3216 skipped */ /* declaration of var_c01 skipped */ /* declaration of var_c02 skipped */ SOURCE(737, 52) { word pd23; pd23 = (* (( (ptr) (* (( (ptr) gf_c16232)+49)/* var_c15624 */ ))+8) ); fileName_v3188 = (word) ( *( (fPt) ((* (ptr) pd23 ))))(cmd_v4132, 0, pd23); }; SOURCE(791, 34) (* (( (ptr) &var_c16200)+6)/* s_v3216 */ ) = (word) GetStream_P168(fileName_v3188, (word) (( (bPt) &var_c16200)+16)/* var_c15592 */ ) ; SOURCE(827, 56) if (((* (( (ptr) &var_c16200)+6)/* s_v3216 */ ) == 0)) { SOURCE(841, 42) { word var_c038; var_c038 = (* (( (ptr) gf_c16232)+8) ); (void) XR_RaiseError((* (( (ptr) (* (( (ptr) gf_c16232)+49)/* var_c15624 */ ))+4) ), (word) &var_c038); }; }; SOURCE(885, 214) (* (( (ptr) &var_c16200)+7)/* var_c01 */ ) = (* (( (ptr) (* (( (ptr) gf_c16232)+50)/* var_c15656 */ ))+5) ); { word var_c05; { word var_c091; var_c091 = (word) &var_c16200; var_c05 = (word) XR_Enable(( ((word) (fPt) NoName_Q492) ), ( ((word) (fPt) NoName_Q732) ), var_c091); }; if ((var_c05 == 2)) { goto lab_L100001; }; }; sm_v3160 = (* (W3Pt) (( (ptr) &var_c16200)+8)/* var_c02 */ ).f0; SOURCE(1109, 11) { word pd24; pd24 = (* (( (ptr) (* (( (ptr) gf_c16232)+51)/* var_c15688 */ ))+28) ); (void) ( *( (fPt) ((* (ptr) pd24 ))))((* (( (ptr) &var_c16200)+6)/* s_v3216 */ ), 0, pd24); }; SOURCE(1122, 30) { word pd25; pd25 = (* (( (ptr) (* (( (ptr) gf_c16232)+52)/* var_c15752 */ ))+7) ); bm_v3076 = (word) ( *( (fPt) ((* (ptr) pd25 ))))(sm_v3160, pd25); }; SOURCE(1154, 47) { W2 var_c15784; word map_v15128; word var_c092; map_v15128 = sm_v3160; { W4 b_v9348; b_v9348 = (* (W4Pt) map_v15128 ); var_c15784.f0 = (b_v9348.f2 - b_v9348.f0); var_c15784.f1 = (b_v9348.f3 - b_v9348.f1); }; var_c092 = var_c15784.f1; sz_v3048.f0 = (MIN((int)(word), var_c092, 400)); }; SOURCE(1203, 48) { W2 var_c15848; word map_v15052; word var_c093; map_v15052 = sm_v3160; { W4 b_v15084; b_v15084 = (* (W4Pt) map_v15052 ); var_c15848.f0 = (b_v15084.f2 - b_v15084.f0); var_c15848.f1 = (b_v15084.f3 - b_v15084.f1); }; var_c093 = var_c15848.f0; sz_v3048.f1 = (MIN((int)(word), var_c093, 400)); }; SOURCE(1253, 60) { word pd26; pd26 = (* (( (ptr) (* (( (ptr) gf_c16232)+53)/* var_c15912 */ ))+4) ); bmw_v3104 = (word) ( *( (fPt) ((* (ptr) pd26 ))))((* (W9Pt) (( (ptr) gf_c16232)+16)/* var_c15272 */ ), 0, 0, 0, sz_v3048, pd26) ; }; SOURCE(1315, 36) { W2 var_c15944; var_c15944.f0 = 0; var_c15944.f1 = 0; { word pd27; pd27 = (* (( (ptr) (* (( (ptr) gf_c16232)+53)/* var_c15912 */ ))+5) ); (void) ( *( (fPt) ((* (ptr) pd27 ))))(bmw_v3104, bm_v3076, 1, var_c15944, pd27); }; }; SOURCE(1353, 66) { W20 var_c046; (* (W9Pt) (word) &var_c046 ) = (* (W9Pt) (( (ptr) gf_c16232)+25)/* var_c15336 */ ); (* (( (ptr) (word) &var_c046) + 9) ) = bmw_v3104; (* (( (ptr) (word) &var_c046) + 10) ) = fileName_v3188; (* (( (ptr) (word) &var_c046) + 11) ) = 0; (* (( (ptr) (word) &var_c046) + 12) ) = 0; (* (( (ptr) (word) &var_c046) + 13) ) = 0; (* (( (ptr) (word) &var_c046) + 14) ) = 0; (* (( (ptr) (word) &var_c046) + 15) ) = 0; (* (( (ptr) (word) &var_c046) + 16) ) = 0; (* (( (ptr) (word) &var_c046) + 17) ) = 1; (* (( (ptr) (word) &var_c046) + 18) ) = 1; (* (( (ptr) (word) &var_c046) + 19) ) = 1; { word pd28; pd28 = (* (( (ptr) (* (( (ptr) gf_c16232)+54)/* var_c15976 */ ))+6) ); shell_v3132 = (word) ( *( (fPt) ((* (ptr) pd28 ))))((word) (&var_c046), pd28); }; }; SOURCE(1421, 30) { word pd29; pd29 = (* (( (ptr) (* (( (ptr) gf_c16232)+54)/* var_c15976 */ ))+13) ); (void) ( *( (fPt) ((* (ptr) pd29 ))))(shell_v3132, (* (W5Pt) (( (ptr) gf_c16232)+34)/* var_c15400 */ ), 0, 1, pd29); }; }; goto lab_L100009; lab_L100001: ; lab_L100009: ; /* removed tail goto */ (* (ptr) formal_c047 ) = result_v4176; (* (( (ptr) formal_c047)+1) ) = msg_v4204; return; } static word NoName_Q492(formal_c083) word formal_c083; { SOURCE(885, 214) { word pd30; pd30 = (* (( (ptr) formal_c083)+7) ); (void) ( *( (fPt) ((* (ptr) pd30 ))))((word) (( (bPt) formal_c083)+32), (* (( (ptr) formal_c083)+6) ), pd30); }; return(0); } static word NoName_Q552(formal_c084) word formal_c084; { SOURCE(945, 25) { word pd31; pd31 = (* (( (ptr) formal_c084)+4) ); (void) ( *( (fPt) ((* (ptr) pd31 ))))((* (( (ptr) (* (ptr) formal_c084 ))+6) ), 0, pd31); }; return(0); } static word GetStream_P168(formal_c0102, formal_c16296) word formal_c0102; word formal_c16296; { W6 var_c16264; /* declaration of fileName_v3292 skipped */ /* declaration of s_v3336 skipped */ formal_c16296 = (formal_c16296 - 16); var_c16264.f4/* fileName_v3292 */ = formal_c0102; var_c16264.f0 = formal_c16296; /* GetStream: */ SOURCE(323, 17) SOURCE(323, 17) var_c16264.f5/* s_v3336 */ = 0; SOURCE(394, 219) { word var_c094; var_c094 = (word) &var_c16264; (void) (word) XR_Enable(( ((word) (fPt) NoName_Q612) ), ( ((word) (fPt) NoName_Q672) ), var_c094); }; SOURCE(323, 17) return(var_c16264.f5/* s_v3336 */ ); } static word NoName_Q612(formal_c087) word formal_c087; { register ptr gf_c086 = (ptr) &globalframe; SOURCE(454, 80) { word pd32; pd32 = (* (( (ptr) (* (( (ptr) gf_c086)+56)/* var_c16040 */ ))+14) ); if (( (int)(word) ( *( (fPt) ((* (ptr) pd32 ))))((* ((( (ptr) formal_c087)+4)) ), pd32) == (int)0)) { SOURCE(486, 48) { word var_c051; var_c051 = (* (( (ptr) gf_c086)+10) ); (void) XR_RaiseError((* (( (ptr) (* (( (ptr) gf_c086)+49)/* var_c15624 */ ))+4) ), (word) &var_c051); }; }; }; SOURCE(536, 77) { word var_c16072; { word pd33; pd33 = (* (( (ptr) (* (( (ptr) gf_c086)+55)/* var_c16008 */ ))+5) ); var_c16072 = (word) ( *( (fPt) ((* (ptr) pd33 ))))((* ((( (ptr) formal_c087)+4)) ), pd33); }; { W2 var_c16104; var_c16104.f0 = 4096; var_c16104.f1 = 2; { word pd34; pd34 = (* (( (ptr) (* (( (ptr) gf_c086)+55)/* var_c16008 */ ))+39) ); (* (( (ptr) formal_c087)+5) ) = (word) ( *( (fPt) ((* (ptr) pd34 ))))(var_c16072, 0, (* (W4Pt) (( (ptr) gf_c086)+39)/* var_c15464 */ ), 0, 0, (* (W5Pt) ( ( (ptr) gf_c086)+43)/* var_c15528 */ ) , 1, var_c16104, pd34); }; }; }; return(0); } static void NoName_Q672(formal_c060, formal_c200008, formal_c200009, formal_c200010, formal_c200011) word formal_c060; word formal_c200008; word formal_c200009; word formal_c200010; word formal_c200011; { register ptr gf_c088 = (ptr) &globalframe; if ((formal_c200009 == (* (( (ptr) (* (( (ptr) gf_c088)+55)/* var_c16008 */ ))+9) ))) { { W4 error_v12616; error_v12616 = (* (W4Pt) formal_c200011 ); SOURCE(414, 38) { word var_c059; var_c059 = error_v12616.f2; (void) XR_RaiseError((* (( (ptr) (* (( (ptr) gf_c088)+49)/* var_c15624 */ ))+4) ), (word) &var_c059); }; }; }; (* (ptr) formal_c060 ) = 0; (* (( (ptr) formal_c060)+1) ) = 0; return; } static void NoName_Q732(formal_c070, formal_c200000, formal_c200001, formal_c200002, formal_c200003) word formal_c070; word formal_c200000; word formal_c200001; word formal_c200002; word formal_c200003; { W5 var_c0101; register ptr gf_c089 = (ptr) &globalframe; var_c0101.f0 = formal_c200000; if ((formal_c200001 == (* (( (ptr) (* (( (ptr) gf_c089)+50)/* var_c15656 */ ))+4) ))) { { word explanation_v8224; explanation_v8224 = (* (ptr) formal_c200003 ); SOURCE(945, 25) { /* declaration of var_c03 skipped */ var_c0101.f4/* var_c03 */ = (* (( (ptr) (* (( (ptr) gf_c089)+51)/* var_c15688 */ ))+28) ); { word var_c04; { word var_c095; var_c095 = (word) &var_c0101; var_c04 = (word) XR_Enable(( ((word) (fPt) NoName_Q552) ), ( ((word) (fPt) NoName_Q792) ), var_c095); }; if ((var_c04 == 2)) { (* (ptr) formal_c070 ) = 2; (* (( (ptr) formal_c070)+1) ) = 2; return; }; }; }; SOURCE(983, 116) { word var_c15720; var_c15720 = explanation_v8224; if ((var_c15720 == 0)) { goto lab_L100006; }; { word tc35; if (((* (( (ptr) gf_c089)+4) ) == XR_GetReferentType(var_c15720))) { tc35 = (word) ((*(int*)var_c15720<0) == 0); } else { tc35 = (word) 0; }; if (tc35) { { word r_v3364; r_v3364 = var_c15720; SOURCE(1028, 22) { word var_c068; var_c068 = r_v3364; (void) XR_RaiseError((* (( (ptr) (* (( (ptr) gf_c089)+49)/* var_c15624 */ ))+4) ), (word) &var_c068); }; }; } else { lab_L100006: ; SOURCE(1063, 36) { word var_c069; var_c069 = (* (( (ptr) gf_c089)+9) ); (void) XR_RaiseError((* (( (ptr) (* (( (ptr) gf_c089)+49)/* var_c15624 */ ))+4) ), (word) &var_c069); }; }; }; }; }; }; (* (ptr) formal_c070 ) = 0; (* (( (ptr) formal_c070)+1) ) = 0; return; } static void NoName_Q792(formal_c079, formal_c200004, formal_c200005, formal_c200006, formal_c200007) word formal_c079; word formal_c200004; word formal_c200005; word formal_c200006; word formal_c200007; { register ptr gf_c090 = (ptr) &globalframe; if ((formal_c200005 == (* (( (ptr) (* (( (ptr) gf_c090)+51)/* var_c15688 */ ))+5) ))) { { word ec_v8768; word stream_v8796; word details_v8824; word msg_v8852; ec_v8768 = (* (ptr) formal_c200007 ); stream_v8796 = (* (( (ptr) formal_c200007)+1) ); details_v8824 = (* (( (ptr) formal_c200007)+2) ); msg_v8852 = (* (( (ptr) formal_c200007)+3) ); SOURCE(970, 10) (* (ptr) formal_c079 ) = 2; (* (( (ptr) formal_c079)+1) ) = 2; return; }; }; (* (ptr) formal_c079 ) = 0; (* (( (ptr) formal_c079)+1) ) = 0; return; } /* file: XShowPixmap, module: XShowPixmap, compiled at: December 16, 1992 11:11:58 am PST */ extern void XR_install_XShowPixmap() { NoName_Q432(); } extern void XR_run_XShowPixmap() { XR_Start(&globalframe); }