/* 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 <cedar/InstallationSupport.h> #include <cedar/CedarExtra.h> 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); }