/* Generated with C2C (Cedar To C)*/ /* Copyright (C) 1992 by Xerox Corporation. All rights reserved. */ /* time: February 27, 1992 5:56:37 pm PST */ /* C2C version: October 16, 1990 (native) */ /* ref-counting: off */ /* file: TEditSelection2Impl, module: TEditSelection2Impl */ /* switches: bcfhklnouw */ #include #include static char versionStamp[] = "@(#)mob_version [4013370899,1186921808] TEditSelection2Impl"; 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;} W5; typedef struct {word f0, f1, f2, f3, f4, f5;} W6; typedef struct {word f0, f1, f2, f3, f4, f5, f6;} W7; typedef struct {word f0, f1, f2, f3, f4, f5, f6, f7;} W8; typedef struct {W8 f; word r;} W9; #define SOURCE(p, l) /* source p, l */ static void NoName_Q912(); static void TEditSelection2Impl_P0(); static word CaretVisible_P60(); static word NoName_Q972(); static word IsDown_P120(); static word NoName_Q1032(); static void ForceDown_P180(); static word NoName_Q1092(); static void ShowSelection_P240(); static word NoName_Q1152(); static void TakeDownForRedisplay_P300(); static word NoName_Q1212(); static void FixUpAfterDisplay_P360(); static word NoName_Q1272(); static word NoName_Q1332(); static void AdjustSelStates_P420(); static word NoName_Q1392(); static void TakeSelectionDown_P480(); static word NoName_Q1452(); static void TakeSelectionDownI_P540(); static void PutSelectionUp_P600(); static word NoName_Q1512(); static void PutSelectionUpI_P660(); static void NoName_Q1572(); static void NoName_Q1632(); static void NoName_Q1692(); static void NoName_Q1752(); static void NoName_Q1812(); static void NoName_Q1872(); static void NoName_Q1932(); static void NoName_Q1992(); static void NoName_Q2052(); static void NoName_Q2112(); static struct {unsigned f; char r[16];} string1 = {851984, "\257\300\357\067\056\023\300\106\276\375\120\100\164\000\000"}; static struct {unsigned f; char r[4];} string2 = {196611, "\004x\000"}; static struct {unsigned f; char r[16];} string3 = {851984, "\257\300\162\231\152\170\300\133\216\116\202\100\150\000\000"}; static struct {unsigned f; char r[12];} string4 = {1413833833, "tSelection"}; static struct {unsigned f; char r[16];} string5 = {851984, "\257\300\343\112\327\166\300\041\341\335\211\100\150\000\000"}; static struct { word f0[8]; word f8; word f9; word f10; word f11[5]; word f16; word f17; word f18; word f19; word f20; word f21; word f22; word f23; word f24; word f25; word f26; word f27; word f28; word f29; word f30; word f31; word f32; word f33; word f34; word f35; word f36; word f37; word f38; word f39[4]; } globalframe = { {0}, 1, 1, 1, {0}, (word) PutSelectionUpI_P660, 0, (word) PutSelectionUp_P600, 0, (word) TakeSelectionDownI_P540, 0, (word) TakeSelectionDown_P480, 0, (word) AdjustSelStates_P420, 0, (word) FixUpAfterDisplay_P360, 0, (word) TakeDownForRedisplay_P300, 0, (word) ShowSelection_P240, 0, (word) ForceDown_P180, 0, (word) IsDown_P120, 0, (word) CaretVisible_P60, 0, (word) TEditSelection2Impl_P0, {0} }; static void NoName_Q912() { register ptr gf_c0142 = (ptr) &globalframe; word var_c8328; (void) XR_DeclareGlobalFrame((word) "TEditSelection2Impl", &globalframe, (word) XR_GetTypeIndex((word) &string1, 0, (word) &string2) , (word) (( (bPt) gf_c0142)+152)/* var_c7848 */ ); var_c8328 = (word) XR_ImportInterface((word) "Carets", (word) XR_GetTypeIndexS((word) (&string3)), 5); (* (( (ptr) gf_c0142)+41)/* var_c8136 */ ) = var_c8328; (void) XR_ImportProcS(var_c8328, 1048580); var_c8328 = (word) XR_ImportInterface((word) &string4, (word) XR_GetTypeIndexS((word) (&string5)), 68); (* (( (ptr) gf_c0142)+40)/* var_c7880 */ ) = var_c8328; (void) XR_ImportProcS(var_c8328, 1057028); (void) XR_ImportProcS(var_c8328, 272385); (void) XR_ImportProcS(var_c8328, 526338); (void) XR_ImportProcS(var_c8328, 1058564); (void) XR_ImportProcS(var_c8328, 1581574); (void) XR_ImportProcS(var_c8328, 67110144); var_c8328 = (word) XR_ExportInterface((word) &string4, (word) XR_GetTypeIndexS((word) (&string5)), 68); (* (( (ptr) gf_c0142)+42)/* var_c8360 */ ) = var_c8328; (void) XR_ExportProcS(var_c8328, (word) (( (bPt) gf_c0142)+144)/* var_c7816 */ , 67114496); (void) XR_ExportProcS(var_c8328, (word) (( (bPt) gf_c0142)+136)/* var_c7784 */ , 67376897); (void) XR_ExportProcS(var_c8328, (word) (( (bPt) gf_c0142)+128)/* var_c7752 */ , 268289); (void) XR_ExportProcS(var_c8328, (word) (( (bPt) gf_c0142)+120)/* var_c7720 */ , 792835); (void) XR_ExportProcS(var_c8328, (word) (( (bPt) gf_c0142)+112)/* var_c7688 */ , 793091); (void) XR_ExportProcS(var_c8328, (word) (( (bPt) gf_c0142)+104)/* var_c7656 */ , 1055492); (void) XR_ExportProcS(var_c8328, (word) (( (bPt) gf_c0142)+96)/* var_c7624 */ , 269313); (void) XR_ExportProcS(var_c8328, (word) (( (bPt) gf_c0142)+88)/* var_c7592 */ , 793859); (void) XR_ExportProcS(var_c8328, (word) (( (bPt) gf_c0142)+72)/* var_c7528 */ , 794115); } static void TEditSelection2Impl_P0(formal_c038, formal_c037) word formal_c038; word formal_c037; { register ptr gf_c8392 = (ptr) &globalframe; /* TEditSelection2Impl: */ SOURCE(276, 4936) SOURCE(439, 48) /* moved to installation proc */ /* moved to installation proc */ /* moved to installation proc */ SOURCE(490, 28) { word pd6; pd6 = (* (( (ptr) (* (( (ptr) gf_c8392)+40)/* var_c7880 */ ))+9) ); (* (( (ptr) gf_c8392)+11)/* pSelUp_v2720 */ ) = (word) ( *( (fPt) ((* (ptr) pd6 ))))(pd6); }; SOURCE(556, 28) { word pd7; pd7 = (* (( (ptr) (* (( (ptr) gf_c8392)+40)/* var_c7880 */ ))+9) ); (* (( (ptr) gf_c8392)+12)/* sSelUp_v2748 */ ) = (word) ( *( (fPt) ((* (ptr) pd7 ))))(pd7); }; SOURCE(622, 28) { word pd8; pd8 = (* (( (ptr) (* (( (ptr) gf_c8392)+40)/* var_c7880 */ ))+9) ); (* (( (ptr) gf_c8392)+13)/* fSelUp_v2776 */ ) = (word) ( *( (fPt) ((* (ptr) pd8 ))))(pd8); }; } static word CaretVisible_P60() { W5 var_c8424; register ptr gf_c8456 = (ptr) &globalframe; /* declaration of var_c01 skipped */ word var_c3264; /* CaretVisible: */ SOURCE(717, 95) (void) (XR_MonitorEntry((word) (( (bPt) gf_c8456)+16)/* LOCK_v2580 */ )); SOURCE(768, 44) { word var_c02; { word var_c0182; var_c0182 = (word) &var_c8424; var_c02 = (word) XR_Enable(( ((word) (fPt) NoName_Q972) ), ( ((word) (fPt) NoName_Q2112) ), var_c0182); }; /* removed trivial cond node */ }; return(var_c8424.f4/* var_c01 */ ); } static word NoName_Q972(formal_c0146) word formal_c0146; { register ptr gf_c0145 = (ptr) &globalframe; SOURCE(791, 21) { word var_c7912; var_c7912 = (* (( (ptr) gf_c0145)+14)/* caretVisible_v2804 */ ); (void) (XR_MonitorExit((word) (( (bPt) gf_c0145)+16)/* LOCK_v2580 */ )); (* (( (ptr) formal_c0146)+4) ) = var_c7912; return(1); }; /* c2c skipped dead code */ } static word IsDown_P120(formal_c0212) word formal_c0212; { W6 var_c8488; /* declaration of id_v3324 skipped */ register ptr gf_c8520 = (ptr) &globalframe; /* declaration of var_c03 skipped */ word var_c3368; var_c8488.f4/* id_v3324 */ = formal_c0212; /* IsDown: */ SOURCE(818, 225) (void) (XR_MonitorEntry((word) (( (bPt) gf_c8520)+16)/* LOCK_v2580 */ )); SOURCE(881, 162) { word var_c04; { word var_c0183; var_c0183 = (word) &var_c8488; var_c04 = (word) XR_Enable(( ((word) (fPt) NoName_Q1032) ), ( ((word) (fPt) NoName_Q2052) ), var_c0183); }; /* removed trivial cond node */ }; return(var_c8488.f5/* var_c03 */ ); } static word NoName_Q1032(formal_c0149) word formal_c0149; { register ptr gf_c0148 = (ptr) &globalframe; SOURCE(904, 118) { word state_v4356; SOURCE(904, 118) { word var_c7944; var_c7944 = (* (( (ptr) formal_c0149)+4) ); switch (var_c7944) { case 0: state_v4356 = (* (( (ptr) gf_c0148)+8)/* pSelState_v2636 */ ); break; case 1: state_v4356 = (* (( (ptr) gf_c0148)+9)/* sSelState_v2664 */ ); break; case 2: state_v4356 = (* (( (ptr) gf_c0148)+10)/* fSelState_v2692 */ ); break; default: state_v4356 = ( XR_RaiseUnnamedError(), 0 ); break; }; }; SOURCE(1024, 19) (void) (XR_MonitorExit((word) (( (bPt) gf_c0148)+16)/* LOCK_v2580 */ )); (* (( (ptr) formal_c0149)+5) ) = (state_v4356 == 1); return(1); }; /* c2c skipped dead code */ } static void ForceDown_P180(formal_c0213) word formal_c0213; { W5 var_c8552; /* declaration of id_v3428 skipped */ register ptr gf_c8584 = (ptr) &globalframe; var_c8552.f4/* id_v3428 */ = formal_c0213; /* ForceDown: */ SOURCE(1049, 177) (void) (XR_MonitorEntry((word) (( (bPt) gf_c8584)+16)/* LOCK_v2580 */ )); SOURCE(1100, 126) { word var_c0184; var_c0184 = (word) &var_c8552; (void) (word) XR_Enable(( ((word) (fPt) NoName_Q1092) ), ( ((word) (fPt) NoName_Q1992) ), var_c0184); }; SOURCE(1049, 177) (void) (XR_MonitorExit((word) (( (bPt) gf_c8584)+16)/* LOCK_v2580 */ )); return; } static word NoName_Q1092(formal_c0152) word formal_c0152; { register ptr gf_c0151 = (ptr) &globalframe; SOURCE(1123, 103) { word var_c7976; var_c7976 = (* (( (ptr) formal_c0152)+4) ); switch (var_c7976) { case 0: SOURCE(1149, 16) (* (( (ptr) gf_c0151)+8)/* pSelState_v2636 */ ) = 1; break; case 1: SOURCE(1180, 16) (* (( (ptr) gf_c0151)+9)/* sSelState_v2664 */ ) = 1; break; case 2: SOURCE(1210, 16) (* (( (ptr) gf_c0151)+10)/* fSelState_v2692 */ ) = 1; break; default: SOURCE(1239, 5) (void) XR_RaiseUnnamedError(); break; }; }; return(0); } static void ShowSelection_P240(formal_c0214, formal_c0215, formal_c0216) word formal_c0214; word formal_c0215; word formal_c0216; { W7 var_c8616; /* declaration of id_v3488 skipped */ /* declaration of self_v3516 skipped */ /* declaration of context_v3544 skipped */ register ptr gf_c8648 = (ptr) &globalframe; var_c8616.f4/* id_v3488 */ = formal_c0214; var_c8616.f5/* self_v3516 */ = formal_c0215; var_c8616.f6/* context_v3544 */ = formal_c0216; /* ShowSelection: */ SOURCE(1250, 618) (void) (XR_MonitorEntry((word) (( (bPt) gf_c8648)+16)/* LOCK_v2580 */ )); SOURCE(1359, 509) { word var_c05; { word var_c0185; var_c0185 = (word) &var_c8616; var_c05 = (word) XR_Enable(( ((word) (fPt) NoName_Q1152) ), ( ((word) (fPt) NoName_Q1932) ), var_c0185); }; if ((var_c05 == 1)) { goto lab_L07; }; }; SOURCE(1250, 618) (void) (XR_MonitorExit((word) (( (bPt) gf_c8648)+16)/* LOCK_v2580 */ )); return; lab_L07: ; return; } static word NoName_Q1152(formal_c0155) word formal_c0155; { register ptr gf_c0154 = (ptr) &globalframe; SOURCE(1382, 102) { word sel_v4400; word selUp_v4428; SOURCE(1382, 102) { word var_c8008; var_c8008 = (* (( (ptr) formal_c0155)+4) ); switch (var_c8008) { case 0: sel_v4400 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c0154)+40)/* var_c7880 */ ))+4) ) ); break; case 1: sel_v4400 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c0154)+40)/* var_c7880 */ ))+5) ) ); break; case 2: sel_v4400 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c0154)+40)/* var_c7880 */ ))+6) ) ); break; default: sel_v4400 = ( XR_RaiseUnnamedError(), 0 ); break; }; }; SOURCE(1486, 110) { word var_c8040; var_c8040 = (* (( (ptr) formal_c0155)+4) ); switch (var_c8040) { case 0: selUp_v4428 = (* (( (ptr) gf_c0154)+11)/* pSelUp_v2720 */ ); break; case 1: selUp_v4428 = (* (( (ptr) gf_c0154)+12)/* sSelUp_v2748 */ ); break; case 2: selUp_v4428 = (* (( (ptr) gf_c0154)+13)/* fSelUp_v2776 */ ); break; default: selUp_v4428 = ( XR_RaiseUnnamedError(), 0 ); break; }; }; SOURCE(1598, 32) if (((* (ptr) sel_v4400 ) != (* (( (ptr) formal_c0155)+5) ))) { SOURCE(1624, 6) (void) (XR_MonitorExit((word) (( (bPt) gf_c0154)+16)/* LOCK_v2580 */ )); return(1); }; SOURCE(1632, 236) if (((* (( (ptr) sel_v4400)+10) ) == (* (( (ptr) sel_v4400)+19) ))) { SOURCE(1686, 43) (void) TakeSelectionDownI_P540((* (( (ptr) formal_c0155)+4) ), (* (( (ptr) formal_c0155)+5) ), (* (( (ptr) formal_c0155)+6) )); } else { SOURCE(1729, 139) if (((* (ptr) selUp_v4428 ) == (* (( (ptr) formal_c0155)+5) ))) { SOURCE(1755, 76) { word pd9; pd9 = (* (( (ptr) (* (( (ptr) gf_c0154)+40)/* var_c7880 */ ))+38) ); (void) ( *( (fPt) ((* (ptr) pd9 ))))((* (( (ptr) formal_c0155)+6) ), (* (( (ptr) formal_c0155)+5) ), selUp_v4428, sel_v4400, (* ( ( (ptr) formal_c0155)+4) ), (* (( (ptr) sel_v4400)+10) ), pd9); }; } else { SOURCE(1831, 37) (void) TakeSelectionDownI_P540((* (( (ptr) formal_c0155)+4) ), (* (( (ptr) formal_c0155)+5) ), (* (( (ptr) formal_c0155)+6) )); }; }; }; return(0); } static void TakeDownForRedisplay_P300(formal_c0217, formal_c0218, formal_c0219) word formal_c0217; word formal_c0218; word formal_c0219; { W7 var_c8680; /* declaration of id_v3604 skipped */ /* declaration of self_v3632 skipped */ /* declaration of context_v3660 skipped */ register ptr gf_c8712 = (ptr) &globalframe; var_c8680.f4/* id_v3604 */ = formal_c0217; var_c8680.f5/* self_v3632 */ = formal_c0218; var_c8680.f6/* context_v3660 */ = formal_c0219; /* TakeDownForRedisplay: */ SOURCE(1874, 545) (void) (XR_MonitorEntry((word) (( (bPt) gf_c8712)+16)/* LOCK_v2580 */ )); SOURCE(1989, 430) { word var_c06; { word var_c0186; var_c0186 = (word) &var_c8680; var_c06 = (word) XR_Enable(( ((word) (fPt) NoName_Q1212) ), ( ((word) (fPt) NoName_Q1872) ), var_c0186); }; if ((var_c06 == 1)) { goto lab_L09; }; }; SOURCE(1874, 545) (void) (XR_MonitorExit((word) (( (bPt) gf_c8712)+16)/* LOCK_v2580 */ )); return; lab_L09: ; return; } static word NoName_Q1212(formal_c0158) word formal_c0158; { register ptr gf_c0157 = (ptr) &globalframe; SOURCE(2012, 21) { word sel_v4472 = 0; word selUp_v4500 = 0; word state_v4528; SOURCE(2052, 201) { word var_c8072; var_c8072 = (* (( (ptr) formal_c0158)+4) ); switch (var_c8072) { case 0: SOURCE(2080, 10) sel_v4472 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c0157)+40)/* var_c7880 */ ))+4) ) ); SOURCE(2092, 17) state_v4528 = (* (( (ptr) gf_c0157)+8)/* pSelState_v2636 */ ); SOURCE(2111, 15) selUp_v4500 = (* (( (ptr) gf_c0157)+11)/* pSelUp_v2720 */ ); break; case 1: SOURCE(2144, 10) sel_v4472 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c0157)+40)/* var_c7880 */ ))+5) ) ); SOURCE(2156, 17) state_v4528 = (* (( (ptr) gf_c0157)+9)/* sSelState_v2664 */ ); SOURCE(2175, 15) selUp_v4500 = (* (( (ptr) gf_c0157)+12)/* sSelUp_v2748 */ ); break; case 2: SOURCE(2207, 10) sel_v4472 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c0157)+40)/* var_c7880 */ ))+6) ) ); SOURCE(2219, 17) state_v4528 = (* (( (ptr) gf_c0157)+10)/* fSelState_v2692 */ ); SOURCE(2238, 15) selUp_v4500 = (* (( (ptr) gf_c0157)+13)/* fSelUp_v2776 */ ); break; default: SOURCE(2267, 5) (void) XR_RaiseUnnamedError(); break; }; }; SOURCE(2274, 34) if (((* (ptr) selUp_v4500 ) != (* (( (ptr) formal_c0158)+5) ))) { SOURCE(2302, 6) (void) (XR_MonitorExit((word) (( (bPt) gf_c0157)+16)/* LOCK_v2580 */ )); return(1); }; SOURCE(2310, 54) if ((state_v4528 == 0)) { SOURCE(2327, 37) (void) TakeSelectionDownI_P540((* (( (ptr) formal_c0158)+4) ), (* (( (ptr) formal_c0158)+5) ), (* (( (ptr) formal_c0158)+6) )); }; SOURCE(2366, 53) (* (( (ptr) sel_v4472)+19) ) = 0; (* (( (ptr) sel_v4472)+10) ) = 0; }; return(0); } static void FixUpAfterDisplay_P360(formal_c0220, formal_c0221, formal_c0222, formal_c0223) word formal_c0220; word formal_c0221; word formal_c0222; word formal_c0223; { W9 var_c8744; /* declaration of id_v3720 skipped */ /* declaration of self_v3748 skipped */ /* declaration of context_v3776 skipped */ /* declaration of caret_v3804 skipped */ register ptr gf_c8776 = (ptr) &globalframe; (* (( (ptr) &var_c8744)+4)/* id_v3720 */ ) = formal_c0220; (* (( (ptr) &var_c8744)+5)/* self_v3748 */ ) = formal_c0221; (* (( (ptr) &var_c8744)+6)/* context_v3776 */ ) = formal_c0222; (* (( (ptr) &var_c8744)+7)/* caret_v3804 */ ) = formal_c0223; /* FixUpAfterDisplay: */ SOURCE(2425, 873) (void) (XR_MonitorEntry((word) (( (bPt) gf_c8776)+16)/* LOCK_v2580 */ )); SOURCE(2550, 748) { /* declaration of sel_v4572 skipped */ word var_c011; { word var_c0187; var_c0187 = (word) &var_c8744; var_c011 = (word) XR_Enable(( ((word) (fPt) NoName_Q1272) ), ( ((word) (fPt) NoName_Q1752) ), var_c0187); }; if ((var_c011 == 1)) { goto lab_L011; }; }; SOURCE(2425, 873) (void) (XR_MonitorExit((word) (( (bPt) gf_c8776)+16)/* LOCK_v2580 */ )); return; lab_L011: ; return; } static word NoName_Q1272(formal_c0161) word formal_c0161; { W7 var_c0205; register ptr gf_c0160 = (ptr) &globalframe; var_c0205.f0 = formal_c0161; SOURCE(2573, 21) { word selUp_v4600 = 0; word state_v4628; SOURCE(2573, 21) (* (( (ptr) formal_c0161)+8) ) = 0; SOURCE(2613, 201) { word var_c8104; var_c8104 = (* (( (ptr) formal_c0161)+4) ); switch (var_c8104) { case 0: SOURCE(2641, 10) (* (( (ptr) formal_c0161)+8) ) = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c0160)+40)/* var_c7880 */ ))+4) ) ); SOURCE(2653, 17) state_v4628 = (* (( (ptr) gf_c0160)+8)/* pSelState_v2636 */ ); SOURCE(2672, 15) selUp_v4600 = (* (( (ptr) gf_c0160)+11)/* pSelUp_v2720 */ ); break; case 1: SOURCE(2705, 10) (* (( (ptr) formal_c0161)+8) ) = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c0160)+40)/* var_c7880 */ ))+5) ) ); SOURCE(2717, 17) state_v4628 = (* (( (ptr) gf_c0160)+9)/* sSelState_v2664 */ ); SOURCE(2736, 15) selUp_v4600 = (* (( (ptr) gf_c0160)+12)/* sSelUp_v2748 */ ); break; case 2: SOURCE(2768, 10) (* (( (ptr) formal_c0161)+8) ) = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c0160)+40)/* var_c7880 */ ))+6) ) ); SOURCE(2780, 17) state_v4628 = (* (( (ptr) gf_c0160)+10)/* fSelState_v2692 */ ); SOURCE(2799, 15) selUp_v4600 = (* (( (ptr) gf_c0160)+13)/* fSelUp_v2776 */ ); break; default: SOURCE(2828, 5) (void) XR_RaiseUnnamedError(); break; }; }; SOURCE(2835, 32) if (((* (ptr) (* (( (ptr) formal_c0161)+8) ) ) != (* (( (ptr) formal_c0161)+5) ))) { SOURCE(2861, 6) (void) (XR_MonitorExit((word) (( (bPt) gf_c0160)+16)/* LOCK_v2580 */ )); return(1); }; SOURCE(2869, 146) SOURCE(2869, 146) { /* declaration of var_c07 skipped */ /* declaration of var_c08 skipped */ /* declaration of var_c09 skipped */ var_c0205.f4/* var_c07 */ = (0 == (* (( (ptr) (* (( (ptr) formal_c0161)+8) ))+10) )); var_c0205.f5/* var_c08 */ = (0 == (* (( (ptr) (* (( (ptr) formal_c0161)+8) ))+19) )); var_c0205.f6/* var_c09 */ = (* (( (ptr) (* (( (ptr) gf_c0160)+40)/* var_c7880 */ ))+43) ); { word var_c010; { word var_c0188; var_c0188 = (word) &var_c0205; var_c010 = (word) XR_Enable(( ((word) (fPt) NoName_Q1332) ), ( ((word) (fPt) NoName_Q1812) ), var_c0188); }; if ((var_c010 == 2)) { /* removed tail goto */ } else { if ((var_c010 == 1)) { return(1); }; }; }; }; SOURCE(3032, 34) (void) PutSelectionUpI_P660((* (( (ptr) formal_c0161)+4) ), (* (( (ptr) formal_c0161)+5) ), (* (( (ptr) formal_c0161)+6) )) ; SOURCE(3068, 230) if ( ( (0 != (* (( (ptr) formal_c0161)+7) )) ? ((* (ptr) (* (( (ptr) formal_c0161)+8) ) ) == (* (( (ptr) formal_c0161)+5) )) : 0 ) ) { SOURCE(3104, 15) { word pd10; pd10 = (* (( (ptr) (* (( (ptr) gf_c0160)+40)/* var_c7880 */ ))+44) ); (void) ( *( (fPt) ((* (ptr) pd10 ))))((* ((( (ptr) formal_c0161)+8)) ), pd10); }; SOURCE(3121, 62) if (((* (( (ptr) formal_c0161)+4) ) == 0)) { SOURCE(3140, 43) (* (( (ptr) gf_c0160)+14)/* caretVisible_v2804 */ ) = ( (int)(* (( (ptr) (* (( (ptr) formal_c0161)+8) ))+21) ) != (int)2147483647); }; SOURCE(3208, 90) { word pd11; pd11 = (* (( (ptr) (* (( (ptr) gf_c0160)+41)/* var_c8136 */ ))+4) ); (void) ( *( (fPt) ((* (ptr) pd11 ))))((* (( (ptr) formal_c0161)+5) ), (* (( (ptr) (* (( (ptr) formal_c0161)+8) ))+20) ), (* ( ( (ptr) (* (( (ptr) formal_c0161)+8) ))+21) ), ( ((* (( (ptr) formal_c0161)+4) ) == 0) ? 0 : 1 ) , pd11); }; }; }; return(0); } static word NoName_Q1332(formal_c0162) word formal_c0162; { SOURCE(2869, 146) { word pd12; pd12 = (* (( (ptr) formal_c0162)+6) ); (void) ( *( (fPt) ((* (ptr) pd12 ))))((* (( (ptr) (* (ptr) formal_c0162 ))+8) ), (* (( (ptr) (* (ptr) formal_c0162 ))+5) ), (* (( (ptr) formal_c0162)+4) ), (* (( (ptr) formal_c0162)+5) ), pd12); }; return(0); } static void AdjustSelStates_P420(formal_c0224) word formal_c0224; { W5 var_c8808; /* declaration of self_v3864 skipped */ register ptr gf_c8840 = (ptr) &globalframe; var_c8808.f4/* self_v3864 */ = formal_c0224; /* AdjustSelStates: */ SOURCE(3307, 275) (void) (XR_MonitorEntry((word) (( (bPt) gf_c8840)+16)/* LOCK_v2580 */ )); SOURCE(3375, 207) { word var_c0189; var_c0189 = (word) &var_c8808; (void) (word) XR_Enable(( ((word) (fPt) NoName_Q1392) ), ( ((word) (fPt) NoName_Q1692) ), var_c0189); }; SOURCE(3307, 275) (void) (XR_MonitorExit((word) (( (bPt) gf_c8840)+16)/* LOCK_v2580 */ )); return; } static word NoName_Q1392(formal_c0165) word formal_c0165; { register ptr gf_c0164 = (ptr) &globalframe; SOURCE(3398, 60) if ( ( ((* (( (ptr) gf_c0164)+8)/* pSelState_v2636 */ ) == 0) ? ((* (ptr) (* (( (ptr) gf_c0164)+11)/* pSelUp_v2720 */ ) ) == (* ( ( (ptr) formal_c0165)+4) )) : 0 ) ) { SOURCE(3442, 16) (* (( (ptr) gf_c0164)+8)/* pSelState_v2636 */ ) = 1; }; SOURCE(3460, 60) if ( ( ((* (( (ptr) gf_c0164)+9)/* sSelState_v2664 */ ) == 0) ? ((* (ptr) (* (( (ptr) gf_c0164)+12)/* sSelUp_v2748 */ ) ) == (* ( ( (ptr) formal_c0165)+4) )) : 0 ) ) { SOURCE(3504, 16) (* (( (ptr) gf_c0164)+9)/* sSelState_v2664 */ ) = 1; }; SOURCE(3522, 60) if ( ( ((* (( (ptr) gf_c0164)+10)/* fSelState_v2692 */ ) == 0) ? ((* (ptr) (* (( (ptr) gf_c0164)+13)/* fSelUp_v2776 */ ) ) == (* ( ( (ptr) formal_c0165)+4) )) : 0 ) ) { SOURCE(3566, 16) (* (( (ptr) gf_c0164)+10)/* fSelState_v2692 */ ) = 1; }; return(0); } static void TakeSelectionDown_P480(formal_c0225, formal_c0226, formal_c0227) word formal_c0225; word formal_c0226; word formal_c0227; { W7 var_c8872; /* declaration of id_v3924 skipped */ /* declaration of self_v3952 skipped */ /* declaration of context_v3980 skipped */ register ptr gf_c8904 = (ptr) &globalframe; var_c8872.f4/* id_v3924 */ = formal_c0225; var_c8872.f5/* self_v3952 */ = formal_c0226; var_c8872.f6/* context_v3980 */ = formal_c0227; /* TakeSelectionDown: */ SOURCE(3588, 172) (void) (XR_MonitorEntry((word) (( (bPt) gf_c8904)+16)/* LOCK_v2580 */ )); SOURCE(3700, 60) { word var_c0190; var_c0190 = (word) &var_c8872; (void) (word) XR_Enable(( ((word) (fPt) NoName_Q1452) ), ( ((word) (fPt) NoName_Q1632) ), var_c0190); }; SOURCE(3588, 172) (void) (XR_MonitorExit((word) (( (bPt) gf_c8904)+16)/* LOCK_v2580 */ )); return; } static word NoName_Q1452(formal_c0167) word formal_c0167; { SOURCE(3723, 37) (void) TakeSelectionDownI_P540((* (( (ptr) formal_c0167)+4) ), (* (( (ptr) formal_c0167)+5) ), (* (( (ptr) formal_c0167)+6) )); return(0); } static void TakeSelectionDownI_P540(id_v4040, self_v4068, context_v4096) word id_v4040; word self_v4068; word context_v4096; { register ptr gf_c8936 = (ptr) &globalframe; word selUp_v4672; word state_v4700; /* TakeSelectionDownI: */ SOURCE(3766, 598) SOURCE(3875, 110) { word var_c8168; var_c8168 = id_v4040; switch (var_c8168) { case 0: selUp_v4672 = (* (( (ptr) gf_c8936)+11)/* pSelUp_v2720 */ ); break; case 1: selUp_v4672 = (* (( (ptr) gf_c8936)+12)/* sSelUp_v2748 */ ); break; case 2: selUp_v4672 = (* (( (ptr) gf_c8936)+13)/* fSelUp_v2776 */ ); break; default: selUp_v4672 = ( XR_RaiseUnnamedError(), 0 ); break; }; }; SOURCE(3987, 118) { word var_c8200; var_c8200 = id_v4040; switch (var_c8200) { case 0: state_v4700 = (* (( (ptr) gf_c8936)+8)/* pSelState_v2636 */ ); break; case 1: state_v4700 = (* (( (ptr) gf_c8936)+9)/* sSelState_v2664 */ ); break; case 2: state_v4700 = (* (( (ptr) gf_c8936)+10)/* fSelState_v2692 */ ); break; default: state_v4700 = ( XR_RaiseUnnamedError(), 0 ); break; }; }; SOURCE(4107, 257) if ((state_v4700 != 1)) { SOURCE(4128, 34) if (((* (ptr) selUp_v4672 ) != self_v4068)) { SOURCE(4156, 6) return; }; SOURCE(4188, 71) if (((* (( (ptr) selUp_v4672)+22) ) != 0)) { SOURCE(4220, 39) { word pd13; pd13 = (* (( (ptr) (* (( (ptr) gf_c8936)+40)/* var_c7880 */ ))+37) ); (void) ( *( (fPt) ((* (ptr) pd13 ))))(context_v4096, self_v4068, selUp_v4672, id_v4040, pd13); }; }; SOURCE(4261, 103) { word var_c8232; var_c8232 = id_v4040; switch (var_c8232) { case 0: SOURCE(4287, 16) (* (( (ptr) gf_c8936)+8)/* pSelState_v2636 */ ) = 1; break; case 1: SOURCE(4318, 16) (* (( (ptr) gf_c8936)+9)/* sSelState_v2664 */ ) = 1; break; case 2: SOURCE(4348, 16) (* (( (ptr) gf_c8936)+10)/* fSelState_v2692 */ ) = 1; break; default: SOURCE(4377, 5) (void) XR_RaiseUnnamedError(); break; }; }; }; } static void PutSelectionUp_P600(formal_c0228, formal_c0229, formal_c0230) word formal_c0228; word formal_c0229; word formal_c0230; { W7 var_c8968; /* declaration of id_v4156 skipped */ /* declaration of self_v4184 skipped */ /* declaration of context_v4212 skipped */ register ptr gf_c9000 = (ptr) &globalframe; var_c8968.f4/* id_v4156 */ = formal_c0228; var_c8968.f5/* self_v4184 */ = formal_c0229; var_c8968.f6/* context_v4212 */ = formal_c0230; /* PutSelectionUp: */ SOURCE(4391, 166) (void) (XR_MonitorEntry((word) (( (bPt) gf_c9000)+16)/* LOCK_v2580 */ )); SOURCE(4500, 57) { word var_c0191; var_c0191 = (word) &var_c8968; (void) (word) XR_Enable(( ((word) (fPt) NoName_Q1512) ), ( ((word) (fPt) NoName_Q1572) ), var_c0191); }; SOURCE(4391, 166) (void) (XR_MonitorExit((word) (( (bPt) gf_c9000)+16)/* LOCK_v2580 */ )); return; } static word NoName_Q1512(formal_c0170) word formal_c0170; { SOURCE(4523, 34) (void) PutSelectionUpI_P660((* (( (ptr) formal_c0170)+4) ), (* (( (ptr) formal_c0170)+5) ), (* (( (ptr) formal_c0170)+6) )) ; return(0); } static void PutSelectionUpI_P660(id_v4272, self_v4300, context_v4328) word id_v4272; word self_v4300; word context_v4328; { register ptr gf_c9032 = (ptr) &globalframe; word sel_v4744 = 0; word selUp_v4772 = 0; word state_v4800; /* PutSelectionUpI: */ SOURCE(4563, 649) SOURCE(4709, 201) { word var_c8264; var_c8264 = id_v4272; switch (var_c8264) { case 0: SOURCE(4737, 10) sel_v4744 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c9032)+40)/* var_c7880 */ ))+4) ) ); SOURCE(4749, 17) state_v4800 = (* (( (ptr) gf_c9032)+8)/* pSelState_v2636 */ ); SOURCE(4768, 15) selUp_v4772 = (* (( (ptr) gf_c9032)+11)/* pSelUp_v2720 */ ); break; case 1: SOURCE(4801, 10) sel_v4744 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c9032)+40)/* var_c7880 */ ))+5) ) ); SOURCE(4813, 17) state_v4800 = (* (( (ptr) gf_c9032)+9)/* sSelState_v2664 */ ); SOURCE(4832, 15) selUp_v4772 = (* (( (ptr) gf_c9032)+12)/* sSelUp_v2748 */ ); break; case 2: SOURCE(4864, 10) sel_v4744 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c9032)+40)/* var_c7880 */ ))+6) ) ); SOURCE(4876, 17) state_v4800 = (* (( (ptr) gf_c9032)+10)/* fSelState_v2692 */ ); SOURCE(4895, 15) selUp_v4772 = (* (( (ptr) gf_c9032)+13)/* fSelUp_v2776 */ ); break; default: SOURCE(4924, 5) (void) XR_RaiseUnnamedError(); break; }; }; SOURCE(4931, 281) if ((state_v4800 != 0)) { SOURCE(4950, 30) { word pd14; pd14 = (* (( (ptr) (* (( (ptr) gf_c9032)+40)/* var_c7880 */ ))+12) ); (void) ( *( (fPt) ((* (ptr) pd14 ))))(sel_v4744, selUp_v4772, pd14); }; SOURCE(4982, 34) if (((* (ptr) selUp_v4772 ) != self_v4300)) { SOURCE(5010, 6) return; }; SOURCE(5042, 71) if (((* (( (ptr) selUp_v4772)+22) ) != 0)) { SOURCE(5074, 39) { word pd15; pd15 = (* (( (ptr) (* (( (ptr) gf_c9032)+40)/* var_c7880 */ ))+37) ); (void) ( *( (fPt) ((* (ptr) pd15 ))))(context_v4328, self_v4300, selUp_v4772, id_v4272, pd15); }; }; SOURCE(5115, 97) { word var_c8296; var_c8296 = id_v4272; switch (var_c8296) { case 0: SOURCE(5141, 14) (* (( (ptr) gf_c9032)+8)/* pSelState_v2636 */ ) = 0; break; case 1: SOURCE(5170, 14) (* (( (ptr) gf_c9032)+9)/* sSelState_v2664 */ ) = 0; break; case 2: SOURCE(5198, 14) (* (( (ptr) gf_c9032)+10)/* fSelState_v2692 */ ) = 0; break; default: SOURCE(5225, 5) (void) XR_RaiseUnnamedError(); break; }; }; }; } static void NoName_Q1572(formal_c096, formal_c200036, formal_c200037, formal_c200038, formal_c200039) word formal_c096; word formal_c200036; word formal_c200037; word formal_c200038; word formal_c200039; { register ptr gf_c0172 = (ptr) &globalframe; if ((formal_c200037 == XR_Unwind)) { (void) (XR_MonitorExit((word) (( (bPt) gf_c0172)+16)/* LOCK_v2580 */ )); }; (* (ptr) formal_c096 ) = 0; (* (( (ptr) formal_c096)+1) ) = 0; return; } static void NoName_Q1632(formal_c0101, formal_c200032, formal_c200033, formal_c200034, formal_c200035) word formal_c0101; word formal_c200032; word formal_c200033; word formal_c200034; word formal_c200035; { register ptr gf_c0173 = (ptr) &globalframe; if ((formal_c200033 == XR_Unwind)) { (void) (XR_MonitorExit((word) (( (bPt) gf_c0173)+16)/* LOCK_v2580 */ )); }; (* (ptr) formal_c0101 ) = 0; (* (( (ptr) formal_c0101)+1) ) = 0; return; } static void NoName_Q1692(formal_c0106, formal_c200028, formal_c200029, formal_c200030, formal_c200031) word formal_c0106; word formal_c200028; word formal_c200029; word formal_c200030; word formal_c200031; { register ptr gf_c0174 = (ptr) &globalframe; if ((formal_c200029 == XR_Unwind)) { (void) (XR_MonitorExit((word) (( (bPt) gf_c0174)+16)/* LOCK_v2580 */ )); }; (* (ptr) formal_c0106 ) = 0; (* (( (ptr) formal_c0106)+1) ) = 0; return; } static void NoName_Q1752(formal_c0111, formal_c200020, formal_c200021, formal_c200022, formal_c200023) word formal_c0111; word formal_c200020; word formal_c200021; word formal_c200022; word formal_c200023; { register ptr gf_c0175 = (ptr) &globalframe; if ((formal_c200021 == XR_Unwind)) { (void) (XR_MonitorExit((word) (( (bPt) gf_c0175)+16)/* LOCK_v2580 */ )); }; (* (ptr) formal_c0111 ) = 0; (* (( (ptr) formal_c0111)+1) ) = 0; return; } static void NoName_Q1812(formal_c0116, formal_c200024, formal_c200025, formal_c200026, formal_c200027) word formal_c0116; word formal_c200024; word formal_c200025; word formal_c200026; word formal_c200027; { register ptr gf_c0176 = (ptr) &globalframe; if ((formal_c200025 == (* (( (ptr) (* (( (ptr) gf_c0176)+40)/* var_c7880 */ ))+39) ))) { SOURCE(2984, 31) { word pd16; pd16 = (* (( (ptr) (* (( (ptr) gf_c0176)+40)/* var_c7880 */ ))+12) ); (void) ( *( (fPt) ((* (ptr) pd16 ))))((* (ptr) (* (( (ptr) (* (( (ptr) gf_c0176)+40)/* var_c7880 */ ))+8) ) ), (* (( (ptr) (* (ptr) formal_c200024 ))+8) ), pd16); }; SOURCE(3017, 8) (* (ptr) formal_c0116 ) = 2; (* (( (ptr) formal_c0116)+1) ) = 2; return; }; (* (ptr) formal_c0116 ) = 0; (* (( (ptr) formal_c0116)+1) ) = 0; return; } static void NoName_Q1872(formal_c0121, formal_c200016, formal_c200017, formal_c200018, formal_c200019) word formal_c0121; word formal_c200016; word formal_c200017; word formal_c200018; word formal_c200019; { register ptr gf_c0177 = (ptr) &globalframe; if ((formal_c200017 == XR_Unwind)) { (void) (XR_MonitorExit((word) (( (bPt) gf_c0177)+16)/* LOCK_v2580 */ )); }; (* (ptr) formal_c0121 ) = 0; (* (( (ptr) formal_c0121)+1) ) = 0; return; } static void NoName_Q1932(formal_c0126, formal_c200012, formal_c200013, formal_c200014, formal_c200015) word formal_c0126; word formal_c200012; word formal_c200013; word formal_c200014; word formal_c200015; { register ptr gf_c0178 = (ptr) &globalframe; if ((formal_c200013 == XR_Unwind)) { (void) (XR_MonitorExit((word) (( (bPt) gf_c0178)+16)/* LOCK_v2580 */ )); }; (* (ptr) formal_c0126 ) = 0; (* (( (ptr) formal_c0126)+1) ) = 0; return; } static void NoName_Q1992(formal_c0131, formal_c200008, formal_c200009, formal_c200010, formal_c200011) word formal_c0131; word formal_c200008; word formal_c200009; word formal_c200010; word formal_c200011; { register ptr gf_c0179 = (ptr) &globalframe; if ((formal_c200009 == XR_Unwind)) { (void) (XR_MonitorExit((word) (( (bPt) gf_c0179)+16)/* LOCK_v2580 */ )); }; (* (ptr) formal_c0131 ) = 0; (* (( (ptr) formal_c0131)+1) ) = 0; return; } static void NoName_Q2052(formal_c0136, formal_c200004, formal_c200005, formal_c200006, formal_c200007) word formal_c0136; word formal_c200004; word formal_c200005; word formal_c200006; word formal_c200007; { register ptr gf_c0180 = (ptr) &globalframe; if ((formal_c200005 == XR_Unwind)) { (void) (XR_MonitorExit((word) (( (bPt) gf_c0180)+16)/* LOCK_v2580 */ )); }; (* (ptr) formal_c0136 ) = 0; (* (( (ptr) formal_c0136)+1) ) = 0; return; } static void NoName_Q2112(formal_c0141, formal_c200000, formal_c200001, formal_c200002, formal_c200003) word formal_c0141; word formal_c200000; word formal_c200001; word formal_c200002; word formal_c200003; { register ptr gf_c0181 = (ptr) &globalframe; if ((formal_c200001 == XR_Unwind)) { (void) (XR_MonitorExit((word) (( (bPt) gf_c0181)+16)/* LOCK_v2580 */ )); }; (* (ptr) formal_c0141 ) = 0; (* (( (ptr) formal_c0141)+1) ) = 0; return; } /* file: TEditSelection2Impl, module: TEditSelection2Impl, compiled at: February 27, 1992 5:56:36 pm PST */ extern void XR_install_TEditSelection2Impl() { NoName_Q912(); } extern void XR_run_TEditSelection2Impl() { XR_Start(&globalframe); }