/* Generated with C2C (Cedar To C)*/ /* Copyright (C) 1992 by Xerox Corporation. All rights reserved. */ /* time: July 9, 1992 4:11:34 pm PDT */ /* C2C version: October 16, 1990 (native) */ /* ref-counting: off */ /* file: TEditScrollingImpl, module: TEditScrollingImpl */ /* switches: bcfhklnouw */ #include #include static char versionStamp[] = "@(#)mob_version [1066791163,3110400853] TEditScrollingImpl"; typedef unsigned word, *ptr; typedef unsigned char byte, *bPt; typedef unsigned short half, *hPt; typedef struct {word f0, f1;} W2; typedef struct {word f0, f1, f2, f3, f4, f5, f6, f7;} W8; typedef struct {word f0, f1, f2, f3, f4, f5, f6;} W7; typedef struct {W8 f; W7 r;} W15; typedef word (*fPt)(); typedef struct {word f0, f1, f2, f3, f4, f5;} W6; typedef W2 *W2Pt; typedef struct {word f0, f1, f2;} W3; typedef struct {word f0, f1, f2, f3, f4;} W5; typedef struct {W8 f; W5 r;} W13; typedef struct {word f0, f1, f2, f3;} W4; typedef struct {W8 f; W4 r;} W12; typedef struct {W8 f; word r;} W9; typedef W9 *W9Pt; typedef struct {W8 f; W3 r;} W11; typedef struct {W8 f; W2 r;} W10; #define SOURCE(p, l) /* source p, l */ #define MAX(cast, x, y) ( ( cast x) > ( cast y) ? (x) : (y) ) #define IOP2(op, x, y) ( (word) ((x) op (y)) ) #define SGNCK(i) ((int) (word) (i) < 0 ? XR_RaiseArithmeticFault(): i ) #define BCK(idx, lim) ( ((unsigned) idx) >= ((unsigned) lim) ? (XR_RaiseBoundsFault()) : (idx) ) #define MIN(cast, x, y) ( ( cast x) < ( cast y) ? (x) : (y) ) static void NoName_Q2556(); static void TEditScrollingImpl_P0(); static void BackUp_P60(); static void IncrBackUp_P480(); static void ScrollTEditDocument_P120(); static void inner_P828(); static word NoName_Q2616(); static word NoName_Q2676(); static word NoName_Q2736(); static void ScrollToPosition_P180(); static void inner_P1272(); static word OnScreen_P240(); static void AutoScroll_P300(); static void inner_P1524(); static word TryToGlitch_P1584(); static word NextNode_P1740(); static void LockAndDoIt_P360(); static void withViewer_P1800(); static word NoName_Q2796(); static word NoName_Q2856(); static void DoPaint_P420(); static void NoName_Q2916(); static void NoName_Q2976(); static void NoName_Q3036(); static void NoName_Q3096(); static void NoName_Q3156(); static struct {unsigned f; char r[4];} string1 = {131076, "\216\251\000"}; static struct {unsigned f; char r[4];} string2 = {65537, "\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[20];} string4 = {1179668, "\260\006\005\146\151\162\163\164\242\005\004\162\145\163\164\214\242\261\000"}; static struct {unsigned f; char r[4];} string5 = {131074, "\003\001\000"}; static struct {unsigned f; char r[16];} string6 = {851984, "\257\300\343\357\262\137\300\144\166\356\317\100\164\000\000"}; static struct {unsigned f; char r[16];} string7 = {851981, "\006\005\000\001\004\001\054\001\070\001\100\114\001\000\000"}; static struct {unsigned f; char r[16];} string8 = {851984, "\257\300\174\107\267\236\300\027\127\205\140\100\164\000\000"}; static struct {unsigned f; char r[12];} string9 = {655372, "ScrollDown\000"}; static struct {unsigned f; char r[8];} string10 = {327688, "Thumb\000\000"}; static struct {unsigned f; char r[16];} string11 = {851984, "ScrollDoPaint\000\000"}; static struct {unsigned f; char r[8];} string12 = {393224, "PTioga\000"}; static struct {unsigned f; char r[12];} string13 = {524300, "ScrollUp\000\000\000"}; static struct {unsigned f; char r[8];} string14 = {327688, "Print\000\000"}; static struct {unsigned f; char r[8];} string15 = {393224, "Scroll\000"}; static struct {unsigned f; char r[12];} string16 = {589836, "StyleKind\000\000"}; static struct {unsigned f; char r[16];} string17 = {851984, "\257\300\077\225\360\373\300\271\144\363\125\100\164\000\000"}; static struct {unsigned f; char r[8];} string18 = {393222, "\006\0014\004@\377\000"}; static struct {unsigned f; char r[16];} string19 = {851984, "\257\300\006<7[\300;CV\364@h\000\000"}; static struct {unsigned f; char r[16];} string20 = {851984, "\257\300\167\317\044\003\300\277\140\004\026\100\150\000\000"}; static struct {unsigned f; char r[16];} string21 = {851984, "\257\300\375\366\273\111\300\156\046\321\053\100\150\000\000"}; static struct {unsigned f; char r[16];} string22 = {851984, "\257\300\366\233\214\046\300\233\036\213\260\100\150\000\000"}; static struct {unsigned f; char r[16];} string23 = {851984, "\257\300\320\263\152\354\300\340\215\053\236\100\150\000\000"}; static struct {unsigned f; char r[16];} string24 = {851984, "\257\300\353\351\362\137\300\156\374\044\211\100\150\000\000"}; static struct {unsigned f; char r[16];} string25 = {851984, "\257\300\013\141\323\354\300\341\005\243\127\100\150\000\000"}; static struct {unsigned f; char r[16];} string26 = {851984, "\257\300\241\200\031\316\300\154\273\372\020\100\150\000\000"}; static struct {unsigned f; char r[16];} string27 = {851984, "\257\300\351\360\047\051\300\272\273\201\332\100\150\000\000"}; static struct {unsigned f; char r[16];} string28 = {851984, "\257\300R-\356\251\300YX]$@h\000\000"}; static struct {unsigned f; char r[16];} string29 = {851984, "\257\300\343\112\327\166\300\041\341\335\211\100\150\000\000"}; static struct {unsigned f; char r[16];} string30 = {851984, "\257\300\174\107\267\236\300\027\127\205\140\100\150\000\000"}; static struct {unsigned f; char r[16];} string31 = {851984, "\257\300\261\010\310\246\300\337\340\027\051\100\150\000\000"}; static struct {unsigned f; char r[16];} string32 = {851984, "\257\300\042\224\360\026\300\243\254\175\360\100\150\000\000"}; static struct {unsigned f; char r[16];} string33 = {851984, "\257\300\312\253\314\243\300\267\126\271\104\100\150\000\000"}; static struct {unsigned f; char r[16];} string34 = {851984, "\257\300\254\253\350\355\300\233\126\335\104\100\150\000\000"}; static struct {unsigned f; char r[16];} string35 = {851984, "\257\300\354\332\367\333\300\361\203\205\173\100\150\000\000"}; static struct {unsigned f; char r[16];} string36 = {851984, "\257\300\255\037\131\057\300\313\250\372\104\100\150\000\000"}; static struct { word f0[21]; 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[19]; } globalframe = { {0}, (word) DoPaint_P420, 0, (word) LockAndDoIt_P360, 0, (word) AutoScroll_P300, 0, (word) OnScreen_P240, 0, (word) ScrollToPosition_P180, 0, (word) ScrollTEditDocument_P120, 0, (word) BackUp_P60, 0, (word) TEditScrollingImpl_P0, {0} }; static void NoName_Q2556() { register ptr gf_c0284 = (ptr) &globalframe; word var_c29748; (* (( (ptr) gf_c0284)+5) ) = (word) XR_GetTypeIndex((word) &string1, 0, (word) &string2); (* (( (ptr) gf_c0284)+8) ) = (word) XR_GetTypeIndex((word) &string3, 0, (word) &string2); (* (( (ptr) gf_c0284)+9) ) = (word) XR_GetTypeIndex((word) &string4, 0, (word) &string5); (* (( (ptr) gf_c0284)+11) ) = (word) XR_GetTypeIndex((word) &string6, 0, (word) &string7); (* (( (ptr) gf_c0284)+12) ) = (word) XR_GetTypeIndexS((word) (&string8)); (* (ptr) (( (bPt) gf_c0284)+52) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c0284)+5) ), (word) &string9); (* (ptr) (( (bPt) gf_c0284)+56) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c0284)+5) ), (word) &string10); (* (ptr) (( (bPt) gf_c0284)+60) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c0284)+5) ), (word) &string11); (* (ptr) (( (bPt) gf_c0284)+64) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c0284)+5) ), (word) &string12); (* (ptr) (( (bPt) gf_c0284)+68) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c0284)+5) ), (word) &string13); (* (ptr) (( (bPt) gf_c0284)+72) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c0284)+5) ), (word) &string14); (* (ptr) (( (bPt) gf_c0284)+76) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c0284)+8) ), (word) &string15); (* (ptr) (( (bPt) gf_c0284)+80) ) = (word) XR_GetRefLiteral((* (( (ptr) gf_c0284)+5) ), (word) &string16); (void) XR_DeclareGlobalFrame((word) "TEditScrollingImpl", &globalframe, (word) XR_GetTypeIndex((word) &string17, 0, (word) &string18) , (word) (( (bPt) gf_c0284)+140)/* var_c27188 */ ); var_c29748 = (word) XR_ImportInterface((word) "CodeTimer", (word) XR_GetTypeIndexS((word) (&string19)), 21); (* (( (ptr) gf_c0284)+47)/* var_c28436 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 526850); (void) XR_ImportProcS(var_c29748, 526338); var_c29748 = (word) XR_ImportInterface((word) "NodeStyle", (word) XR_GetTypeIndexS((word) (&string20)), 41); (* (( (ptr) gf_c0284)+40)/* var_c27348 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 67635458); var_c29748 = (word) XR_ImportInterface((word) "NodeStyleOps", (word) XR_GetTypeIndexS((word) (&string21)), 23); (* (( (ptr) gf_c0284)+39)/* var_c27316 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 262913); (void) XR_ImportProcS(var_c29748, 789251); (void) XR_ImportProcS(var_c29748, 67109376); var_c29748 = (word) XR_ImportInterface((word) "RopeReader", (word) XR_GetTypeIndexS((word) (&string22)), 25); (* (( (ptr) gf_c0284)+38)/* var_c27284 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 67636482); (void) XR_ImportProcS(var_c29748, 268033); (void) XR_ImportProcS(var_c29748, 67114496); var_c29748 = (word) XR_ImportInterface((word) "TEditDisplay", (word) XR_GetTypeIndexS((word) (&string23)), 4); (* (( (ptr) gf_c0284)+45)/* var_c28276 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 1048579); var_c29748 = (word) XR_ImportInterface((word) "TEditFormat", (word) XR_GetTypeIndexS((word) (&string24)), 17); (* (( (ptr) gf_c0284)+43)/* var_c27956 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 263937); (void) XR_ImportProcS(var_c29748, 1573126); (void) XR_ImportProcS(var_c29748, 67110400); var_c29748 = (word) XR_ImportInterface((word) "TEditInput", (word) XR_GetTypeIndexS((word) (&string25)), 44); (* (( (ptr) gf_c0284)+48)/* var_c28500 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 67379969); var_c29748 = (word) XR_ImportInterface((word) "TEditLocks", (word) XR_GetTypeIndexS((word) (&string26)), 7); (* (( (ptr) gf_c0284)+52)/* var_c29652 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 263425); (void) XR_ImportProcS(var_c29748, 68420613); var_c29748 = (word) XR_ImportInterface((word) "TEditOps", (word) XR_GetTypeIndexS((word) (&string27)), 12); (* (( (ptr) gf_c0284)+49)/* var_c28596 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 263681); var_c29748 = (word) XR_ImportInterface((word) "TEditProfile", (word) XR_GetTypeIndexS((word) (&string28)), 19); (* (( (ptr) gf_c0284)+50)/* var_c29076 */ ) = var_c29748; var_c29748 = (word) XR_ImportInterface((word) "TEditSelection", (word) XR_GetTypeIndexS((word) (&string29)), 68); (* (( (ptr) gf_c0284)+46)/* var_c28404 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 134495233); var_c29748 = (word) XR_ImportInterface((word) "TEditTouchup", (word) XR_GetTypeIndexS((word) (&string30)), 6); (* (( (ptr) gf_c0284)+44)/* var_c28180 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 263425); (void) XR_ImportProcS(var_c29748, 67633922); var_c29748 = (word) XR_ImportInterface((word) "TextEdit", (word) XR_GetTypeIndexS((word) (&string31)), 39); (* (( (ptr) gf_c0284)+42)/* var_c27572 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 67633154); (void) XR_ImportProcS(var_c29748, 67371521); var_c29748 = (word) XR_ImportInterface((word) "TextNode", (word) XR_GetTypeIndexS((word) (&string32)), 34); (* (( (ptr) gf_c0284)+41)/* var_c27444 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 67372289); (void) XR_ImportProcS(var_c29748, 134481921); (void) XR_ImportProcS(var_c29748, 67372033); (void) XR_ImportProcS(var_c29748, 67374081); (void) XR_ImportProcS(var_c29748, 135532292); (void) XR_ImportProcS(var_c29748, 68686084); (void) XR_ImportProcS(var_c29748, 67373569); (void) XR_ImportProcS(var_c29748, 135007491); (void) XR_ImportProcS(var_c29748, 67377153); (void) XR_ImportProcS(var_c29748, 134485761); (void) XR_ImportProcS(var_c29748, 201853186); (void) XR_ImportProcS(var_c29748, 202378756); var_c29748 = (word) XR_ImportInterface((word) "ViewerForkers", (word) XR_GetTypeIndexS((word) (&string33)), 2); (* (( (ptr) gf_c0284)+53)/* var_c29716 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 1310725); var_c29748 = (word) XR_ImportInterface((word) "ViewerLocks", (word) XR_GetTypeIndexS((word) (&string34)), 9); (* (( (ptr) gf_c0284)+51)/* var_c29588 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 524290); var_c29748 = (word) XR_ImportInterface((word) "ViewerOps", (word) XR_GetTypeIndexS((word) (&string35)), 43); (* (( (ptr) gf_c0284)+37)/* var_c27252 */ ) = var_c29748; (void) XR_ImportProcS(var_c29748, 1051652); (void) XR_ImportProcS(var_c29748, 67639554); var_c29748 = (word) XR_ExportInterface((word) "TEditScrolling", (word) XR_GetTypeIndexS((word) (&string36)), 3); (* (( (ptr) gf_c0284)+54)/* var_c29780 */ ) = var_c29748; (void) XR_ExportProcS(var_c29748, (word) (( (bPt) gf_c0284)+124)/* var_c27124 */ , 135528453); (void) XR_ExportProcS(var_c29748, (word) (( (bPt) gf_c0284)+116)/* var_c27092 */ , 1048835); (void) XR_ExportProcS(var_c29748, (word) (( (bPt) gf_c0284)+100)/* var_c27028 */ , 1049092); } static void TEditScrollingImpl_P0(formal_c044, formal_c043) word formal_c044; word formal_c043; { /* TEditScrollingImpl: */ } static void BackUp_P60(formal_c070, formal_c0341, tdd_v3920, pos_v3948, goal_v3976) word formal_c070; word formal_c0341; word tdd_v3920; W2 pos_v3948; word goal_v3976; { W15 var_c29812; /* declaration of viewer_v3892 skipped */ register ptr gf_c29844 = (ptr) &globalframe; W2 newPos_v4020; word lines_v4048; word totalLeading_v4076; word topIndent_v4104; /* declaration of var_c27220 skipped */ /* declaration of kind_v4832 skipped */ /* declaration of maxLevel_v4860 skipped */ /* declaration of parent_v4888 skipped */ /* declaration of level_v4916 skipped */ /* declaration of levelClipping_v4944 skipped */ /* declaration of rdr_v5000 skipped */ /* declaration of style_v5028 skipped */ /* declaration of styleNode_v5056 skipped */ word remainder_v5084; word dy_v5112 = 2147483647; word topLeading_v5140 = 0; (* (( (ptr) &var_c29812)+4)/* viewer_v3892 */ ) = formal_c0341; /* BackUp: */ SOURCE(713, 4314) { word tmpAddr37; tmpAddr37 = (word) (( (ptr) &var_c29812)+5)/* var_c27220 */ ; (* (ptr) tmpAddr37 ) = ( ((word) (fPt) IncrBackUp_P480) ); (* (( (ptr) tmpAddr37) + 1) ) = 1; }; SOURCE(713, 4314) newPos_v4020.f0 = 0; newPos_v4020.f1 = 0; SOURCE(887, 103) { word tc38; word pd39; pd39 = (* (( (ptr) (* (( (ptr) gf_c29844)+37)/* var_c27252 */ ))+29) ); if (((word) ( *( (fPt) ((* (ptr) pd39 ))))((* (( (ptr) &var_c29812)+4)/* viewer_v3892 */ ), (* (( (ptr) gf_c29844)+20) ), pd39) == (* (( (ptr) gf_c29844)+18) ))) { tc38 = (word) 1; } else { tc38 = (word) 0; }; (* (( (ptr) &var_c29812)+7)/* kind_v4832 */ ) = tc38; }; SOURCE(992, 33) (* (( (ptr) &var_c29812)+8)/* maxLevel_v4860 */ ) = (* (( (ptr) tdd_v3920)+2) ); SOURCE(1027, 20) (* (( (ptr) &var_c29812)+9)/* parent_v4888 */ ) = 0; SOURCE(1049, 18) (* (( (ptr) &var_c29812)+10)/* level_v4916 */ ) = 0; SOURCE(1108, 54) (* (( (ptr) &var_c29812)+11)/* levelClipping_v4944 */ ) = ( (int)(* (( (ptr) &var_c29812)+8)/* maxLevel_v4860 */ ) < (int)1023); SOURCE(4135, 48) { word pd40; pd40 = (* (( (ptr) (* (( (ptr) gf_c29844)+38)/* var_c27284 */ ))+26) ); (* (( (ptr) &var_c29812)+12)/* rdr_v5000 */ ) = (word) ( *( (fPt) ((* (ptr) pd40 ))))(pd40); }; SOURCE(4185, 43) { word pd41; pd41 = (* (( (ptr) (* (( (ptr) gf_c29844)+39)/* var_c27316 */ ))+6) ); (* (( (ptr) &var_c29812)+13)/* style_v5028 */ ) = (word) ( *( (fPt) ((* (ptr) pd41 ))))(pd41); }; SOURCE(4230, 23) (* (( (ptr) &var_c29812)+14)/* styleNode_v5056 */ ) = 0; SOURCE(4255, 25) remainder_v5084 = goal_v3976; SOURCE(4337, 116) if (( (int)pos_v3948.f1 == (int)0)) { SOURCE(4359, 44) { word pd42; pd42 = (* (( (ptr) (* (( (ptr) gf_c29844)+39)/* var_c27316 */ ))+15) ); (void) ( *( (fPt) ((* (ptr) pd42 ))))((* (( (ptr) &var_c29812)+13)/* style_v5028 */ ), pos_v3948.f0, (* (( (ptr) &var_c29812)+7) /* kind_v4832 */ ), pd42); }; SOURCE(4405, 48) { word pd43; pd43 = (* (( (ptr) (* (( (ptr) gf_c29844)+40)/* var_c27348 */ ))+13) ); topLeading_v5140 = (word) ( *( (fPt) ((* (ptr) pd43 ))))((* (( (ptr) &var_c29812)+13)/* style_v5028 */ ), 25, pd43); }; }; SOURCE(4459, 12) newPos_v4020 = pos_v3948; SOURCE(4473, 36) topIndent_v4104 = 0; totalLeading_v4076 = 0; lines_v4048 = 0; SOURCE(4511, 448) lab_L100003: ; if (( (int)remainder_v5084 > (int)0)) { } else { goto lab_L100001; }; { word leading_v5456; word newLines_v5484; word newTopIndent_v5512; SOURCE(4575, 97) { W6 var_c27380; (void) IncrBackUp_P480((word) &var_c27380, newPos_v4020, remainder_v5084, topLeading_v5140, (word) (( (bPt) &var_c29812)+20) /* var_c27220 */ ); topLeading_v5140 = var_c27380.f5; newTopIndent_v5512 = var_c27380.f4; newLines_v5484 = var_c27380.f3; leading_v5456 = var_c27380.f2; newPos_v4020 = (* (W2Pt) &var_c27380 ); }; SOURCE(4674, 22) if (( (int)newLines_v5484 <= (int)0)) { SOURCE(4696, 4) goto lab_L100002; }; SOURCE(4759, 35) totalLeading_v4076 = (totalLeading_v4076 + leading_v5456); SOURCE(4796, 22) lines_v4048 = (lines_v4048 + newLines_v5484); SOURCE(4820, 24) topIndent_v4104 = newTopIndent_v5512; SOURCE(4846, 39) if (( (int)(totalLeading_v4076 + topIndent_v4104) >= (int)goal_v3976)) { SOURCE(4885, 4) goto lab_L100002; }; SOURCE(4928, 31) remainder_v5084 = (remainder_v5084 - leading_v5456); }; goto lab_L100003; lab_L100001: ; lab_L100002: ; SOURCE(4971, 24) { word pd44; pd44 = (* (( (ptr) (* (( (ptr) gf_c29844)+39)/* var_c27316 */ ))+7) ); (void) ( *( (fPt) ((* (ptr) pd44 ))))((* ((( (ptr) &var_c29812)+13)/* style_v5028 */ ) ), pd44); }; SOURCE(4997, 30) { word pd45; pd45 = (* (( (ptr) (* (( (ptr) gf_c29844)+38)/* var_c27284 */ ))+27) ); (void) ( *( (fPt) ((* (ptr) pd45 ))))((* ((( (ptr) &var_c29812)+12)/* rdr_v5000 */ ) ), pd45); }; /* removed tail goto */ (* (W2Pt) formal_c070 ) = newPos_v4020; (* (( (ptr) formal_c070)+2) ) = lines_v4048; (* (( (ptr) formal_c070)+3) ) = totalLeading_v4076; (* (( (ptr) formal_c070)+4) ) = topIndent_v4104; return; } static void IncrBackUp_P480(formal_c0119, pos_v5216, goal_v5244, prevTopLeading_v5272, formal_c29908) word formal_c0119; W2 pos_v5216; word goal_v5244; word prevTopLeading_v5272; word formal_c29908; { register ptr gf_c29876 = (ptr) &globalframe; W2 prev_v5316; word totalLeading_v5344; word lines_v5372; word topIndent_v5400; word topLeading_v5428; W2 tPos_v5556; word leading_v5584; word bottomLeading_v5612; word lastBreak_v5640; word breakList_v5668 = 0; word textNode_v5696 = 0; word where_v5724; word endOffset_v5752; word size_v5780; word lineInfo_v5808 = 0; formal_c29908 = (formal_c29908 - 20); /* IncrBackUp: */ SOURCE(1165, 2964) SOURCE(1165, 2964) prev_v5316.f0 = 0; prev_v5316.f1 = 0; SOURCE(1329, 23) tPos_v5556.f0 = 0; tPos_v5556.f1 = 0; SOURCE(1589, 485) if (( (int)pos_v5216.f1 == (int)0)) { SOURCE(1609, 356) lab_L100007: ; SOURCE(1609, 356) { word tempNode_v5936 = 0; SOURCE(1636, 177) if ((0 != (* (( (ptr) formal_c29908)+11) ))) { SOURCE(1658, 93) { W3 var_c27476; { word pd46; pd46 = (* (( (ptr) (* (( (ptr) gf_c29876)+41)/* var_c27444 */ ))+18) ); (void) ( *( (fPt) ((* (ptr) pd46 ))))((word) &var_c27476, pos_v5216.f0, (* (( (ptr) formal_c29908)+8) ), (* (( (ptr) formal_c29908)+9) ), (* (( (ptr) formal_c29908)+10) ), pd46); }; (* (( (ptr) formal_c29908)+10) ) = var_c27476.f2; (* (( (ptr) formal_c29908)+9) ) = var_c27476.f1; tempNode_v5936 = var_c27476.f0; }; } else { SOURCE(1751, 62) { W3 var_c27508; { word pd47; pd47 = (* (( (ptr) (* (( (ptr) gf_c29876)+41)/* var_c27444 */ ))+13) ); (void) ( *( (fPt) ((* (ptr) pd47 ))))((word) &var_c27508, pos_v5216.f0, (* (( (ptr) formal_c29908)+9) ), pd47); }; (* (( (ptr) formal_c29908)+9) ) = var_c27508.f1; tempNode_v5936 = var_c27508.f0; }; }; SOURCE(1815, 58) if ((tempNode_v5936 == 0) || ((* (( (ptr) formal_c29908)+9) ) == 0)) { SOURCE(1850, 23) prev_v5316 = pos_v5216; totalLeading_v5344 = 0; lines_v5372 = 0; topIndent_v5400 = 0; topLeading_v5428 = 0; goto lab_L100004; }; SOURCE(1875, 34) textNode_v5696 = tempNode_v5936; if ((tempNode_v5936 == 0)) { SOURCE(1909, 4) goto lab_L100007; }; SOURCE(1915, 50) { word var_c27540; { word pd48; pd48 = (* (( (ptr) (* (( (ptr) gf_c29876)+42)/* var_c27572 */ ))+6) ); var_c27540 = (word) ( *( (fPt) ((* (ptr) pd48 ))))(textNode_v5696, pd48); }; where_v5724 = var_c27540; endOffset_v5752 = var_c27540; size_v5780 = var_c27540; }; SOURCE(1967, 4) goto lab_L100006; }; /* c2c skipped dead code */ lab_L100006: ; } else { SOURCE(1988, 19) textNode_v5696 = pos_v5216.f0; SOURCE(2009, 30) { word pd49; pd49 = (* (( (ptr) (* (( (ptr) gf_c29876)+42)/* var_c27572 */ ))+6) ); size_v5780 = (word) ( *( (fPt) ((* (ptr) pd49 ))))(textNode_v5696, pd49); }; SOURCE(2041, 33) { word var_c27604; var_c27604 = (pos_v5216.f1 - 1); where_v5724 = var_c27604; endOffset_v5752 = var_c27604; }; }; SOURCE(2078, 331) if (( (int)where_v5724 < (int)IOP2( * , (int)4, (int)(MAX((int)(word), 12, goal_v5244))))) { SOURCE(2109, 58) where_v5724 = 0; } else { SOURCE(2167, 269) { word stop_v5980; word var_c0315; SOURCE(2169, 42) stop_v5980 = (MAX((int)(word), 0, (where_v5724 - 5000))); SOURCE(2249, 49) { word reader_v26844; word rope_v26872; word index_v26900; word var_c27636; word rope_v13768; reader_v26844 = (* (( (ptr) formal_c29908)+12) ); rope_v26872 = (* (( (ptr) textNode_v5696)+3) ); index_v26900 = where_v5724; { word tc50; rope_v13768 = 0; var_c27636 = (* (( (ptr) reader_v26844)+2) ); if (((var_c27636 == rope_v26872) )) { tc50 = (word) ( (int)((* (( (ptr) reader_v26844)+3) ) + (* (( (ptr) reader_v26844)+1) )) == (int)index_v26900); } else { tc50 = (word) 0; }; if (tc50) { goto lab_L100009; }; }; (* (( (ptr) reader_v26844)+2) ) = rope_v26872; (* (( (ptr) reader_v26844)+1) ) = 0; (* (hPt) (* (ptr) reader_v26844 ) ) = 0; (* (( (ptr) reader_v26844)+3) ) = index_v26900; lab_L100009: ; }; SOURCE(2300, 109) lab_L100012: ; where_v5724 = (where_v5724 - 1); var_c0315 = where_v5724; if (( (int)var_c0315 > (int)stop_v5980)) { } else { goto lab_L100010; }; SOURCE(2333, 76) { word var_c27828; { word var_c27668; word reader_v26796; reader_v26796 = (* (( (ptr) formal_c29908)+12) ); { word i_v14476; i_v14476 = (* (( (ptr) reader_v26796)+1) ); { word pd52; if ((i_v14476 > 0)) { { word var_c27732; word var_c27764; var_c27732 = SGNCK((i_v14476 - 1)); (* (( (ptr) reader_v26796)+1) ) = var_c27732; var_c27764 = (* (ptr) reader_v26796 ); { /*1*/ word limit51; /*1*/ var_c27668 = (word) (* ((( (bPt) var_c27764)+4)+( /*1*/ limit51 = (word) (* (( (hPt) var_c27764)+1) ), /*1*/ BCK(var_c27732, limit51) /*1*/ )) ); /*1*/ }; }; } else { pd52 = (* (( (ptr) (* (( (ptr) gf_c29876)+38)/* var_c27284 */ ))+17) ); var_c27668 = (word) ( *( (fPt) ((* (ptr) pd52 ))))(reader_v26796, 1, pd52); }; }; }; var_c27828 = var_c27668; }; if ((var_c27828 == 13) || (var_c27828 == 10)) { SOURCE(2394, 15) where_v5724 = (where_v5724 + 1); SOURCE(2411, 4) goto lab_L100011; }; }; goto lab_L100012; lab_L100010: ; lab_L100011: ; }; }; SOURCE(2440, 85) if (((* (( (ptr) formal_c29908)+14) ) != textNode_v5696)) { SOURCE(2469, 56) { word var_c27860; var_c27860 = textNode_v5696; (* (( (ptr) formal_c29908)+14) ) = textNode_v5696; { word pd53; pd53 = (* (( (ptr) (* (( (ptr) gf_c29876)+39)/* var_c27316 */ ))+15) ); (void) ( *( (fPt) ((* (ptr) pd53 ))))((* (( (ptr) formal_c29908)+13) ), var_c27860, (* (( (ptr) formal_c29908)+7) ), pd53) ; }; }; }; SOURCE(2528, 42) { word pd54; pd54 = (* (( (ptr) (* (( (ptr) gf_c29876)+40)/* var_c27348 */ ))+13) ); leading_v5584 = (word) ( *( (fPt) ((* (ptr) pd54 ))))((* (( (ptr) formal_c29908)+13) ), 22, pd54); }; SOURCE(2572, 77) { word pd55; if (( (int)where_v5724 == (int)0)) { pd55 = (* (( (ptr) (* (( (ptr) gf_c29876)+40)/* var_c27348 */ ))+13) ); topLeading_v5428 = (word) ( *( (fPt) ((* (ptr) pd55 ))))((* (( (ptr) formal_c29908)+13) ), 25, pd55); } else { topLeading_v5428 = leading_v5584; }; }; SOURCE(2651, 131) { word var_c27924; { word pd56; word x57; if ((pos_v5216.f0 == textNode_v5696)) { var_c27924 = leading_v5584; } else { pd56 = (* (( (ptr) (* (( (ptr) gf_c29876)+40)/* var_c27348 */ ))+13) ); var_c27924 = (x57 = (word) ( *( (fPt) ((* (ptr) pd56 ))))((* (( (ptr) formal_c29908)+13) ), 28, pd56), MAX((int)(word), prevTopLeading_v5272, x57)); }; }; totalLeading_v5344 = var_c27924; bottomLeading_v5612 = var_c27924; }; SOURCE(2784, 46) { word pd58; pd58 = (* (( (ptr) (* (( (ptr) gf_c29876)+40)/* var_c27348 */ ))+13) ); topIndent_v5400 = (word) ( *( (fPt) ((* (ptr) pd58 ))))((* (( (ptr) formal_c29908)+13) ), 19, pd58); }; SOURCE(2879, 66) if (( (int)where_v5724 == (int)size_v5780)) { SOURCE(2900, 9) lines_v5372 = 1; SOURCE(2911, 24) prev_v5316.f0 = textNode_v5696; prev_v5316.f1 = where_v5724; SOURCE(2937, 8) goto lab_L100004; }; SOURCE(2948, 24) tPos_v5556.f0 = textNode_v5696; tPos_v5556.f1 = where_v5724; SOURCE(2974, 9) lines_v5372 = 0; SOURCE(2985, 33) { word pd59; pd59 = (* (( (ptr) (* (( (ptr) gf_c29876)+43)/* var_c27956 */ ))+10) ); lineInfo_v5808 = (word) ( *( (fPt) ((* (ptr) pd59 ))))(pd59); }; SOURCE(3020, 388) lab_L100016: ; SOURCE(3023, 22) lastBreak_v5640 = tPos_v5556.f1; SOURCE(3047, 140) { word var_c27988; { word var_c28020; word int_v26748; int_v26748 = (* (( (ptr) (* (( (ptr) formal_c29908)+4) ))+7) ); var_c28020 = (int_v26748 << 16); var_c27988 = var_c28020; }; { word pd60; pd60 = (* (( (ptr) (* (( (ptr) gf_c29876)+43)/* var_c27956 */ ))+5) ); (void) ( *( (fPt) ((* (ptr) pd60 ))))(lineInfo_v5808, tPos_v5556.f0, tPos_v5556.f1, (* (( (ptr) formal_c29908)+13) ), var_c27988, 0, pd60) ; }; }; SOURCE(3189, 23) tPos_v5556 = (* (W2Pt) (( (ptr) lineInfo_v5808)+7) ); SOURCE(3214, 53) if (( (int)lines_v5372 > (int)0)) { SOURCE(3232, 35) totalLeading_v5344 = (totalLeading_v5344 + leading_v5584); }; SOURCE(3269, 15) lines_v5372 = (lines_v5372 + 1); SOURCE(3286, 52) if ((tPos_v5556.f0 != textNode_v5696) || ( (int)tPos_v5556.f1 >= (int)endOffset_v5752)) { SOURCE(3338, 4) goto lab_L100015; }; SOURCE(3344, 64) if (( (int)lastBreak_v5640 != (int)where_v5724)) { SOURCE(3370, 38) { word var_c28084; var_c28084 = XR_NewObject(8, (* (( (ptr) gf_c29876)+9) )); (* (ptr) var_c28084 ) = lastBreak_v5640; (* (( (ptr) var_c28084)+1) ) = breakList_v5668; breakList_v5668 = var_c28084; }; }; goto lab_L100016; lab_L100015: ; SOURCE(3419, 18) { word pd61; pd61 = (* (( (ptr) (* (( (ptr) gf_c29876)+43)/* var_c27956 */ ))+11) ); (void) ( *( (fPt) ((* (ptr) pd61 ))))(lineInfo_v5808, pd61); }; SOURCE(3439, 14) lineInfo_v5808 = 0; SOURCE(3456, 623) if ( ( ( (int)(totalLeading_v5344 + topIndent_v5400) >= (int)goal_v5244) ? ( (int)leading_v5584 > (int)0) : 0 ) ) { SOURCE(3511, 590) { word discardLines_v6024; SOURCE(3513, 61) discardLines_v6024 = IOP2( / , (int)((totalLeading_v5344 + topIndent_v5400) - goal_v5244), (int)leading_v5584); SOURCE(3594, 485) { word var_c28116; var_c28116 = discardLines_v6024; if (( (int)var_c28116 <= (int)0)) { } else { if (( (int)var_c28116 >= (int)(lines_v5372 - 1))) { SOURCE(3691, 17) where_v5724 = lastBreak_v5640; SOURCE(3710, 9) lines_v5372 = 1; SOURCE(3721, 29) totalLeading_v5344 = bottomLeading_v5612; } else { SOURCE(3766, 332) { word count_v6068; SOURCE(3827, 26) lines_v5372 = (lines_v5372 - discardLines_v6024); SOURCE(3855, 15) count_v6068 = (lines_v5372 - 1); SOURCE(3919, 48) totalLeading_v5344 = (totalLeading_v5344 - IOP2( * , (int)discardLines_v6024, (int)leading_v5584)); SOURCE(3969, 110) { register word list_v6112; list_v6112 = breakList_v5668; lab_L100021: ; SOURCE(4029, 50) count_v6068 = (count_v6068 - 1); if (( (int)count_v6068 == (int)0)) { SOURCE(4061, 18) where_v5724 = (* (ptr) list_v6112 ); SOURCE(4081, 5) goto lab_L100019; }; list_v6112 = (* (( (ptr) list_v6112)+1) ); goto lab_L100021; lab_L100019: ; }; }; }; }; }; }; }; SOURCE(4105, 24) prev_v5316.f0 = textNode_v5696; prev_v5316.f1 = where_v5724; /* removed tail goto */ lab_L100004: ; (* (W2Pt) formal_c0119 ) = prev_v5316; (* (( (ptr) formal_c0119)+2) ) = totalLeading_v5344; (* (( (ptr) formal_c0119)+3) ) = lines_v5372; (* (( (ptr) formal_c0119)+4) ) = topIndent_v5400; (* (( (ptr) formal_c0119)+5) ) = topLeading_v5428; return; } static void ScrollTEditDocument_P120(formal_c0128, formal_c0342, formal_c0343, formal_c0344, formal_c0345, formal_c0346) word formal_c0128; word formal_c0342; word formal_c0343; word formal_c0344; word formal_c0345; word formal_c0346; { W13 var_c29940; /* declaration of self_v10244 skipped */ /* declaration of op_v10272 skipped */ /* declaration of amount_v10300 skipped */ /* declaration of shift_v10328 skipped */ /* declaration of control_v10356 skipped */ /* declaration of top_v10400 skipped */ /* declaration of bottom_v10428 skipped */ /* declaration of var_c28148 skipped */ (* (( (ptr) &var_c29940)+4)/* self_v10244 */ ) = formal_c0342; (* (( (ptr) &var_c29940)+5)/* op_v10272 */ ) = formal_c0343; (* (( (ptr) &var_c29940)+6)/* amount_v10300 */ ) = formal_c0344; (* (( (ptr) &var_c29940)+7)/* shift_v10328 */ ) = formal_c0345; (* (( (ptr) &var_c29940)+8)/* control_v10356 */ ) = formal_c0346; /* ScrollTEditDocument: */ SOURCE(5033, 3803) { word tmpAddr62; tmpAddr62 = (word) (( (ptr) &var_c29940)+11)/* var_c28148 */ ; (* (ptr) tmpAddr62 ) = ( ((word) (fPt) inner_P828) ); (* (( (ptr) tmpAddr62) + 1) ) = 1; }; SOURCE(5033, 3803) (* (( (ptr) &var_c29940)+9)/* top_v10400 */ ) = 2147483647; SOURCE(5033, 3803) (* (( (ptr) &var_c29940)+10)/* bottom_v10428 */ ) = 2147483647; SOURCE(8800, 36) (void) LockAndDoIt_P360((word) (( (bPt) &var_c29940)+44)/* var_c28148 */ , (* (( (ptr) &var_c29940)+4)/* self_v10244 */ ), 0, 0) ; /* removed tail goto */ (* (ptr) formal_c0128 ) = (* (( (ptr) &var_c29940)+9)/* top_v10400 */ ); (* (( (ptr) formal_c0128)+1) ) = (* (( (ptr) &var_c29940)+10)/* bottom_v10428 */ ); return; } static void inner_P828(tdd_v6316, formal_c30036) word tdd_v6316; word formal_c30036; { W12 var_c29972; register ptr gf_c30004 = (ptr) &globalframe; word lines_v6344; /* declaration of topLine_v6372 skipped */ word paintOp_v6400; word iconic_v6428; word levelChange_v6456 = 0; formal_c30036 = (formal_c30036 - 44); (* (ptr) &var_c29972 ) = formal_c30036; /* inner: */ SOURCE(5090, 3701) SOURCE(5131, 46) lines_v6344 = (* (( (ptr) tdd_v6316)+1) ); SOURCE(5179, 41) { word limit63; (* (W2Pt) (( (ptr) &var_c29972)+4)/* topLine_v6372 */ ) = (* (W2Pt) (( (W9Pt) (( (ptr) lines_v6344)+3))+( limit63 = (* (( (ptr) lines_v6344)+2) ), BCK(0, limit63) )) ); }; SOURCE(5222, 39) paintOp_v6400 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c30004)+44)/* var_c28180 */ ))+5) ) ); SOURCE(5263, 26) iconic_v6428 = (((unsigned)(* (( (bPt) (* (( (ptr) formal_c30036)+4) ))+76) ) << 27) >> 31); SOURCE(5319, 248) if ((* (( (bPt) (* (( (ptr) formal_c30036)+4) ))+76) ) & 020) { SOURCE(5341, 168) { word var_c28212; var_c28212 = (* (( (ptr) formal_c30036)+5) ); switch (var_c28212) { case 1: SOURCE(5362, 68) { W2 var_c28244; { word pd64; pd64 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+27) ); (void) ( *( (fPt) ((* (ptr) pd64 ))))((word) &var_c28244, (* (ptr) tdd_v6316 ), pd64); }; { word pd65; pd65 = (* (( (ptr) (* (( (ptr) gf_c30004)+45)/* var_c28276 */ ))+4) ); (void) ( *( (fPt) ((* (ptr) pd65 ))))(tdd_v6316, var_c28244, 0, pd65); }; }; break; case 2: SOURCE(5440, 69) { word var_c28308; { word pd66; pd66 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+28) ); var_c28308 = (word) ( *( (fPt) ((* (ptr) pd66 ))))((* (ptr) (tdd_v6316) ), pd66); }; { W2 var_c28340; var_c28340.f0 = var_c28308; var_c28340.f1 = 0; { word pd67; pd67 = (* (( (ptr) (* (( (ptr) gf_c30004)+45)/* var_c28276 */ ))+4) ); (void) ( *( (fPt) ((* (ptr) pd67 ))))(tdd_v6316, var_c28340, 0, pd67); }; }; }; break; case 3: break; case 0: break; default: SOURCE(5552, 5) (void) XR_RaiseUnnamedError(); break; }; }; SOURCE(5559, 8) return; }; SOURCE(5571, 2973) { word var_c28372; var_c28372 = (* (( (ptr) formal_c30036)+5) ); switch (var_c28372) { case 1: SOURCE(5593, 1114) { word line_v6512 = 0; word newLevel_v6540; word sSel_v6568; word doingSecondarySelect_v6596; SOURCE(5633, 51) sSel_v6568 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c30004)+46)/* var_c28404 */ ))+5) ) ); SOURCE(5686, 61) doingSecondarySelect_v6596 = ( (sSel_v6568 != 0) ? ((* (ptr) sSel_v6568 ) != 0) : 0 ) ; SOURCE(5749, 38) { word pd68; pd68 = (* (( (ptr) (* (( (ptr) gf_c30004)+47)/* var_c28436 */ ))+12) ); (void) ( *( (fPt) ((* (ptr) pd68 ))))((* (( (ptr) gf_c30004)+17) ), (* (( (ptr) gf_c30004)+16) ), pd68); }; SOURCE(5789, 558) if ( ( ( (int)(* (( (ptr) formal_c30036)+6) ) > (int)0) ? ( (int)(* (ptr) lines_v6344 ) == (int)0) : 0 ) ) { SOURCE(5833, 317) { word limit69; if ((( (((unsigned)(* (( (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit69 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(0, limit69) /*1*/ )))+2) ) << 1) >> 1) ) == 0)) { SOURCE(5860, 236) { word next_v6640 = 0; word maxLevel_v6668; W2 var_c0147; SOURCE(5882, 33) maxLevel_v6668 = (* (( (ptr) tdd_v6316)+2) ); SOURCE(5917, 137) { /*1*/ word pd71; /*1*/ if (( (int)maxLevel_v6668 < (int)1023)) { /*1*/ { /*1*/ word pd70; /*1*/ pd70 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+17) ); /*1*/ (void) ( *( (fPt) ((* (ptr) pd70 ))))((word) &var_c0147, (* (( (ptr) &var_c29972)+4) ), maxLevel_v6668, 0, pd70); /*1*/ }; /*1*/ next_v6640 = var_c0147.f0; /*1*/ } /*1*/ else { /*1*/ pd71 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+14) ); /*1*/ next_v6640 = (word) ( *( (fPt) ((* (ptr) pd71 ))))((* ((( (ptr) &var_c29972)+4)) ), pd71); /*1*/ }; /*1*/ }; SOURCE(6056, 38) if ((next_v6640 != 0)) { SOURCE(6075, 19) /*1*/ (* (( (ptr) &var_c29972)+4) ) = next_v6640; /*1*/ (* (( (ptr) &var_c29972)+5) ) = 0; /*1*/ }; }; } else { SOURCE(6103, 47) { word limit72; (* (( (ptr) &var_c29972)+5) ) = ((* (( (ptr) &var_c29972)+5) ) + (* (( (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit72 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(0, limit72) /*1*/ )))+5) )); }; }; }; } else { { word var_c28468; word var_c0316; SOURCE(6159, 135) lab_L100025: ; { word tc73; word limit74; word limit75; if (( (int)((* (( (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit74 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(line_v6512, limit74) /*1*/ )))+6) ) + (* (( (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit75 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(line_v6512, limit75) /*1*/ )))+4) )) < (int)(* (( (ptr) formal_c30036)+6) ))) { { /*1*/ word limit76; /*1*/ var_c28468 = (line_v6512 + 1); /*1*/ var_c0316 = (* (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit76 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(var_c28468, limit76) /*1*/ )) ); /*1*/ }; tc73 = (word) (var_c0316 != 0); } else { tc73 = (word) 0; }; if (tc73) { } else { goto lab_L100023; }; }; SOURCE(6248, 13) line_v6512 = (line_v6512 + 1); SOURCE(6263, 31) if (( (int)line_v6512 >= (int)(* (ptr) lines_v6344 ))) { SOURCE(6294, 4) goto lab_L100024; }; goto lab_L100025; lab_L100023: ; lab_L100024: ; SOURCE(6320, 27) { word limit77; (* (W2Pt) (( (ptr) &var_c29972)+4)/* topLine_v6372 */ ) = (* (W2Pt) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit77 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(line_v6512, limit77) /*1*/ )) ); }; }; }; SOURCE(6350, 219) { word pd79; word x80; if ((0 != doingSecondarySelect_v6596)) { newLevel_v6540 = (* (( (ptr) tdd_v6316)+2) ); goto endif078; }; if (((0 != (* (( (ptr) formal_c30036)+8) )) && (0 != (* (( (ptr) formal_c30036)+7) )))) { newLevel_v6540 = 1; goto endif078; }; if ((0 != (* (( (ptr) formal_c30036)+8) ))) { newLevel_v6540 = 1023; goto endif078; }; if ((0 != (* (( (ptr) formal_c30036)+7) ))) { pd79 = (* (( (ptr) (* (( (ptr) gf_c30004)+48)/* var_c28500 */ ))+39) ); newLevel_v6540 = (x80 = ((word) ( *( (fPt) ((* (ptr) pd79 ))))(tdd_v6316, pd79) + 1), MIN((int)(word), 1023, x80)); goto endif078; }; newLevel_v6540 = (* (( (ptr) tdd_v6316)+2) ); goto endif078; endif078: ; }; SOURCE(6584, 79) if (( (int)newLevel_v6540 != (int)(* (( (ptr) tdd_v6316)+2) ))) { SOURCE(6619, 24) (* (( (ptr) tdd_v6316)+2) ) = BCK(newLevel_v6540, 1024); SOURCE(6645, 18) levelChange_v6456 = 1; }; SOURCE(6668, 37) { word pd81; pd81 = (* (( (ptr) (* (( (ptr) gf_c30004)+47)/* var_c28436 */ ))+14) ); (void) ( *( (fPt) ((* (ptr) pd81 ))))((* (( (ptr) gf_c30004)+17) ), (* (( (ptr) gf_c30004)+16) ), pd81); }; }; break; case 2: SOURCE(6719, 437) { word numLines_v6712; word totalLeading_v6740; word topIndent_v6768; SOURCE(6765, 40) { word pd82; pd82 = (* (( (ptr) (* (( (ptr) gf_c30004)+47)/* var_c28436 */ ))+12) ); (void) ( *( (fPt) ((* (ptr) pd82 ))))((* (( (ptr) gf_c30004)+13) ), (* (( (ptr) gf_c30004)+16) ), pd82); }; SOURCE(6807, 104) { W5 var_c28532; { word x83; word limit84; word x85; (void) BackUp_P60((word) &var_c28532, (* (( (ptr) formal_c30036)+4) ), tdd_v6316, (* (W2Pt) (( (ptr) &var_c29972)+4)/* topLine_v6372 */ ), ( x83 = (* (( (ptr) formal_c30036)+6) ), x85 = (* (( (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit84 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(0, limit84) /*1*/ )))+6) ), MAX((int)(word), x83, x85))); }; topIndent_v6768 = var_c28532.f4; totalLeading_v6740 = var_c28532.f3; numLines_v6712 = var_c28532.f2; (* (W2Pt) (( (ptr) &var_c29972)+4)/* topLine_v6372 */ ) = (* (W2Pt) &var_c28532 ); }; SOURCE(6913, 199) { word limit86; if ( ! XR_EqualWords((( (ptr) &var_c29972)+4)/* topLine_v6372 */ , (( (W9Pt) (( (ptr) lines_v6344)+3))+( limit86 = (* (( (ptr) lines_v6344)+2) ), BCK(0, limit86) )), 2)) { SOURCE(6944, 168) { word op_v6812; SOURCE(6946, 74) op_v6812 = XR_NewObject(8, (* (( (ptr) gf_c30004)+12) )); SOURCE(7022, 19) (* (ptr) op_v6812 ) = numLines_v6712; SOURCE(7043, 53) { word limit87; (* (( (ptr) op_v6812)+1) ) = ((topIndent_v6768 + totalLeading_v6740) - (* (( (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit87 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(0, limit87) /*1*/ )))+6) )); }; SOURCE(7098, 14) paintOp_v6400 = op_v6812; }; }; }; SOURCE(7115, 39) { word pd88; pd88 = (* (( (ptr) (* (( (ptr) gf_c30004)+47)/* var_c28436 */ ))+14) ); (void) ( *( (fPt) ((* (ptr) pd88 ))))((* (( (ptr) gf_c30004)+13) ), (* (( (ptr) gf_c30004)+16) ), pd88); }; }; break; case 3: SOURCE(7169, 685) { W2 loc1_v6868; SOURCE(7171, 60) { word pd89; pd89 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+28) ); loc1_v6868.f0 = (word) ( *( (fPt) ((* (ptr) pd89 ))))((* (ptr) (tdd_v6316) ), pd89); }; loc1_v6868.f1 = 0; SOURCE(7233, 35) { word pd90; pd90 = (* (( (ptr) (* (( (ptr) gf_c30004)+47)/* var_c28436 */ ))+12) ); (void) ( *( (fPt) ((* (ptr) pd90 ))))((* (( (ptr) gf_c30004)+14) ), (* (( (ptr) gf_c30004)+16) ), pd90); }; SOURCE(7270, 38) { word pd91; pd91 = (* (( (ptr) (* (( (ptr) gf_c30004)+49)/* var_c28596 */ ))+10) ); (void) ( *( (fPt) ((* (ptr) pd91 ))))((* ((( (ptr) formal_c30036)+4)) ), pd91); }; SOURCE(7310, 495) if (( (int)(* (( (ptr) formal_c30036)+6) ) < (int)5)) { SOURCE(7329, 41) (void) ScrollToPosition_P180((* (( (ptr) formal_c30036)+4) ), loc1_v6868, 0); } else { SOURCE(7370, 437) { W2 loc2_v6912; word totalChars_v6940; W2 pos_v6968; SOURCE(7372, 58) { word pd92; pd92 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+27) ); (void) ( *( (fPt) ((* (ptr) pd92 ))))((word) &loc2_v6912, (* (ptr) tdd_v6316 ), pd92); }; SOURCE(7432, 48) { word pd93; pd93 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+21) ); totalChars_v6940 = (word) ( *( (fPt) ((* (ptr) pd93 ))))(loc1_v6868, loc2_v6912, 1, 0, pd93); }; SOURCE(7482, 76) { word pd94; pd94 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+19) ); (void) ( *( (fPt) ((* (ptr) pd94 ))))((word) &pos_v6968, loc1_v6868, IOP2( / , (int)IOP2( * , (int)totalChars_v6940, (int)(* ( /*1*/ ( (ptr) formal_c30036)+6) )), (int)100), 1, 0, pd94); }; SOURCE(7560, 197) if (((* (( (ptr) tdd_v6316)+2) ) < 1023)) { SOURCE(7606, 162) { word delta_v7012; SOURCE(7608, 55) { /*1*/ word pd95; /*1*/ pd95 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+16) ); /*1*/ delta_v7012 = ((word) ( *( (fPt) ((* (ptr) pd95 ))))(pos_v6968.f0, pd95) - (* (( (ptr) tdd_v6316)+2) )); /*1*/ }; SOURCE(7665, 92) { /*1*/ register word noName_c28628 = 0; /*1*/ if (( (int)noName_c28628 >= (int)delta_v7012)) { /*1*/ goto lab_L100026; /*1*/ }; /*1*/ lab_L100029: ; SOURCE(7722, 35) /*1*/ { /*1*/ word var_c28692; /*1*/ { /*1*/ word pd96; /*1*/ pd96 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+8) ); /*1*/ var_c28692 = (word) ( *( (fPt) ((* (ptr) pd96 ))))(pos_v6968.f0, pd96); /*1*/ }; /*1*/ pos_v6968.f0 = var_c28692; /*1*/ pos_v6968.f1 = 0; /*1*/ }; /*1*/ noName_c28628 = (noName_c28628 + 1); /*1*/ if (( (int)noName_c28628 < (int)delta_v7012)) { /*1*/ goto lab_L100029; /*1*/ }; /*1*/ lab_L100026: ; /*1*/ }; }; }; SOURCE(7771, 34) (void) ScrollToPosition_P180((* (( (ptr) formal_c30036)+4) ), pos_v6968, 0); }; }; SOURCE(7810, 34) { word pd97; pd97 = (* (( (ptr) (* (( (ptr) gf_c30004)+47)/* var_c28436 */ ))+14) ); (void) ( *( (fPt) ((* (ptr) pd97 ))))((* (( (ptr) gf_c30004)+14) ), (* (( (ptr) gf_c30004)+16) ), pd97); }; SOURCE(7846, 6) return; }; case 0: SOURCE(7867, 677) SOURCE(7869, 45) { word toTop_v7056; word toBottom_v7084; word toEnd_v7112; word totalChars_v7140; word t_v7168; word b_v7196; word ll_v7224; SOURCE(7916, 28) ll_v7224 = (* (ptr) lines_v6344 ); SOURCE(7946, 93) { word var_c28724; { word pd98; pd98 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+28) ); var_c28724 = (word) ( *( (fPt) ((* (ptr) pd98 ))))((* (ptr) (tdd_v6316) ), pd98); }; { /* declaration of var_c01 skipped */ /* declaration of var_c02 skipped */ (* (( (ptr) &var_c29972)+6) ) = var_c28724; (* (( (ptr) &var_c29972)+7) ) = 0; (* (( (ptr) &var_c29972)+8)/* var_c02 */ ) = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+21) ); { /* declaration of var_c03 skipped */ { word var_c04; { /*1*/ word var_c0317; /*1*/ var_c0317 = (word) &var_c29972; /*1*/ var_c04 = (word) XR_Enable(( ((word) (fPt) NoName_Q2736) ), ( ((word) (fPt) NoName_Q3156) ), var_c0317); /*1*/ }; if ((var_c04 == 2)) { /*1*/ goto lab_L100030; /*1*/ }; }; toTop_v7056 = (* (( (ptr) &var_c29972)+9)/* var_c03 */ ); }; }; }; SOURCE(8051, 120) { /* declaration of var_c05 skipped */ /* declaration of var_c06 skipped */ { W2 var_c28788; { word limit99; var_c28788.f0 = (* (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit99 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(ll_v7224, limit99) /*1*/ )) ); }; { word limit100; word limit101; var_c28788.f1 = ((* (( (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit100 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(ll_v7224, limit100) /*1*/ )))+1) ) + (* (( (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit101 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(ll_v7224, limit101) /*1*/ )))+5) )); }; (* (W2Pt) (( (ptr) &var_c29972)+6)/* var_c05 */ ) = var_c28788; }; (* (( (ptr) &var_c29972)+8)/* var_c06 */ ) = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+21) ); { /* declaration of var_c07 skipped */ { word var_c08; { word var_c0318; var_c0318 = (word) &var_c29972; var_c08 = (word) XR_Enable(( ((word) (fPt) NoName_Q2676) ), ( ((word) (fPt) NoName_Q3096) ), var_c0318); }; if ((var_c08 == 2)) { goto lab_L100030; }; }; toBottom_v7084 = (* (( (ptr) &var_c29972)+9)/* var_c07 */ ); }; }; SOURCE(8183, 144) { /* declaration of var_c28820 skipped */ { word pd102; pd102 = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+27) ); (void) ( *( (fPt) ((* (ptr) pd102 ))))((word) (( (bPt) &var_c29972)+24)/* var_c28820 */ , (* (ptr) tdd_v6316 ), pd102); }; { /* declaration of var_c09 skipped */ /* declaration of var_c010 skipped */ { W2 var_c28852; { word limit103; var_c28852.f0 = (* (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit103 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(ll_v7224, limit103) /*1*/ )) ); }; { word limit104; word limit105; var_c28852.f1 = (((* (( (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit104 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(ll_v7224, limit104) /*1*/ )))+1) ) + (* (( (ptr) (( (W9Pt) (( (ptr) lines_v6344)+3))+( /*1*/ limit105 = (* (( (ptr) lines_v6344)+2) ), /*1*/ BCK(ll_v7224, limit105) /*1*/ )))+5) )) - 1); }; (* (W2Pt) (( (ptr) &var_c29972)+8)/* var_c09 */ ) = var_c28852; }; (* (( (ptr) &var_c29972)+10)/* var_c010 */ ) = (* (( (ptr) (* (( (ptr) gf_c30004)+41)/* var_c27444 */ ))+21) ); { /* declaration of var_c011 skipped */ { word var_c012; { /*1*/ word var_c0319; /*1*/ var_c0319 = (word) &var_c29972; /*1*/ var_c012 = (word) XR_Enable(( ((word) (fPt) NoName_Q2616) ), ( ((word) (fPt) NoName_Q3036) ), var_c0319); /*1*/ }; if ((var_c012 == 2)) { /*1*/ goto lab_L100030; /*1*/ }; }; toEnd_v7112 = (* (( (ptr) &var_c29972)+11)/* var_c011 */ ); }; }; }; SOURCE(8339, 33) totalChars_v7140 = ((toTop_v7056 + toBottom_v7084) + toEnd_v7112); SOURCE(8374, 43) if (( (int)totalChars_v7140 <= (int)0)) { SOURCE(8397, 12) (* (( (ptr) formal_c30036)+10) ) = 100; SOURCE(8411, 6) return; }; SOURCE(8420, 33) { word x106; t_v7168 = (x106 = IOP2( / , (int)IOP2( * , (int)100, (int)toTop_v7056), (int)totalChars_v7140), MIN((int)(word), 98, x106)); }; SOURCE(8455, 45) { word x107; b_v7196 = (x107 = IOP2( / , (int)IOP2( * , (int)100, (int)(toTop_v7056 + toBottom_v7084)), (int)totalChars_v7140), MAX((int)(word), (t_v7168 + 2), x107)); }; SOURCE(8502, 7) (* (( (ptr) formal_c30036)+9) ) = t_v7168; SOURCE(8511, 10) (* (( (ptr) formal_c30036)+10) ) = b_v7196; }; goto lab_L100037; lab_L100030: ; SOURCE(8536, 6) return; lab_L100037: ; break; }; }; SOURCE(8558, 233) { word limit108; if ( ! XR_EqualWords((( (ptr) &var_c29972)+4)/* topLine_v6372 */ , (( (W9Pt) (( (ptr) lines_v6344)+3))+( limit108 = (* (( (ptr) lines_v6344)+2) ), BCK(0, limit108) )), 2) || (0 != levelChange_v6456)) { SOURCE(8606, 43) { word pd109; pd109 = (* (( (ptr) (* (( (ptr) gf_c30004)+47)/* var_c28436 */ ))+12) ); (void) ( *( (fPt) ((* (ptr) pd109 ))))((* (( (ptr) gf_c30004)+15) ), (* (( (ptr) gf_c30004)+16) ), pd109); }; SOURCE(8651, 43) { word pd110; pd110 = (* (( (ptr) (* (( (ptr) gf_c30004)+45)/* var_c28276 */ ))+4) ); (void) ( *( (fPt) ((* (ptr) pd110 ))))(tdd_v6316, (* (W2Pt) (( (ptr) &var_c29972)+4)/* topLine_v6372 */ ), 0, pd110); }; SOURCE(8696, 51) (void) DoPaint_P420((* (( (ptr) formal_c30036)+4) ), ( (0 != levelChange_v6456) ? 0 : paintOp_v6400 ) ); SOURCE(8749, 42) { word pd111; pd111 = (* (( (ptr) (* (( (ptr) gf_c30004)+47)/* var_c28436 */ ))+14) ); (void) ( *( (fPt) ((* (ptr) pd111 ))))((* (( (ptr) gf_c30004)+15) ), (* (( (ptr) gf_c30004)+16) ), pd111); }; }; }; } static word NoName_Q2616(formal_c0290) word formal_c0290; { SOURCE(8183, 144) { word pd112; pd112 = (* (( (ptr) formal_c0290)+10) ); (* (( (ptr) formal_c0290)+11) ) = (word) ( *( (fPt) ((* (ptr) pd112 ))))((* (W2Pt) (( (ptr) formal_c0290)+8) ), (* (W2Pt) ( ( (ptr) formal_c0290)+6) ), 1, 0, pd112); }; return(0); } static word NoName_Q2676(formal_c0291) word formal_c0291; { SOURCE(8051, 120) { word pd113; pd113 = (* (( (ptr) formal_c0291)+8) ); (* (( (ptr) formal_c0291)+9) ) = (word) ( *( (fPt) ((* (ptr) pd113 ))))((* (W2Pt) (( (ptr) formal_c0291)+4) ), (* (W2Pt) ( ( (ptr) formal_c0291)+6) ), 1, 0, pd113); }; return(0); } static word NoName_Q2736(formal_c0292) word formal_c0292; { SOURCE(7946, 93) { word pd114; pd114 = (* (( (ptr) formal_c0292)+8) ); (* (( (ptr) formal_c0292)+9) ) = (word) ( *( (fPt) ((* (ptr) pd114 ))))((* (W2Pt) (( (ptr) formal_c0292)+6) ), (* (W2Pt) ( ( (ptr) formal_c0292)+4) ), 1, 0, pd114); }; return(0); } static void ScrollToPosition_P180(formal_c0347, formal_c0348, formal_c0349) word formal_c0347; W2 formal_c0348; word formal_c0349; { W11 var_c30068; /* declaration of viewer_v4164 skipped */ /* declaration of pos_v4192 skipped */ /* declaration of offset_v4220 skipped */ register ptr gf_c30100 = (ptr) &globalframe; /* declaration of var_c28884 skipped */ /* declaration of kind_v7268 skipped */ (* (( (ptr) &var_c30068)+4)/* viewer_v4164 */ ) = formal_c0347; (* (W2Pt) (( (ptr) &var_c30068)+5)/* pos_v4192 */ ) = formal_c0348; (* (( (ptr) &var_c30068)+7)/* offset_v4220 */ ) = formal_c0349; /* ScrollToPosition: */ SOURCE(8842, 1875) { word tmpAddr115; tmpAddr115 = (word) (( (ptr) &var_c30068)+8)/* var_c28884 */ ; (* (ptr) tmpAddr115 ) = ( ((word) (fPt) inner_P1272) ); (* (( (ptr) tmpAddr115) + 1) ) = 1; }; SOURCE(8931, 103) { word tc116; word pd117; pd117 = (* (( (ptr) (* (( (ptr) gf_c30100)+37)/* var_c27252 */ ))+29) ); if (((word) ( *( (fPt) ((* (ptr) pd117 ))))((* (( (ptr) &var_c30068)+4)/* viewer_v4164 */ ), (* (( (ptr) gf_c30100)+20) ), pd117) == (* (( (ptr) gf_c30100)+18) ))) { tc116 = (word) 1; } else { tc116 = (word) 0; }; (* (( (ptr) &var_c30068)+10)/* kind_v7268 */ ) = tc116; }; SOURCE(10656, 61) if (((* (( (ptr) &var_c30068)+5) ) != 0)) { SOURCE(10679, 38) (void) LockAndDoIt_P360((word) (( (bPt) &var_c30068)+32)/* var_c28884 */ , (* (( (ptr) &var_c30068)+4)/* viewer_v4164 */ ), 0, 0) ; }; } static void inner_P1272(tdd_v7372, formal_c30164) word tdd_v7372; word formal_c30164; { register ptr gf_c30132 = (ptr) &globalframe; word node_v7400; word where_v7428; word start_v7456; word lines_v7484; word repaint_v7512 = 0; W2 topLine_v7540; word style_v7568; word lineInfo_v7596 = 0; word backStop_v7624; formal_c30164 = (formal_c30164 - 32); /* inner: */ SOURCE(9036, 1612) SOURCE(9077, 37) node_v7400 = (* (( (ptr) formal_c30164)+5) ); SOURCE(9116, 58) { word x118; word pd119; word x120; word x121; pd119 = (* (( (ptr) (* (( (ptr) gf_c30132)+42)/* var_c27572 */ ))+6) ); where_v7428 = (x121 = (x118 = (* (( (ptr) formal_c30164)+6) ), x120 = ((word) ( *( (fPt) ((* (ptr) pd119 ))))(node_v7400, pd119) - 1), MIN((int)(word), x118, x120)), MAX((int)(word), 0, x121)); }; SOURCE(9176, 18) start_v7456 = where_v7428; SOURCE(9196, 46) lines_v7484 = (* (( (ptr) tdd_v7372)+1) ); SOURCE(9267, 26) topLine_v7540.f0 = 0; topLine_v7540.f1 = 0; SOURCE(9295, 43) { word pd122; pd122 = (* (( (ptr) (* (( (ptr) gf_c30132)+39)/* var_c27316 */ ))+6) ); style_v7568 = (word) ( *( (fPt) ((* (ptr) pd122 ))))(pd122); }; SOURCE(9372, 33) backStop_v7624 = (MAX((int)(word), 0, (where_v7428 - 300))); SOURCE(9461, 142) { word tc123; word pd124; if (((* (( (ptr) tdd_v7372)+2) ) < 1023)) { pd124 = (* (( (ptr) (* (( (ptr) gf_c30132)+41)/* var_c27444 */ ))+16) ); tc123 = (word) ( (int)(* (( (ptr) tdd_v7372)+2) ) < (int)(word) ( *( (fPt) ((* (ptr) pd124 ))))(node_v7400, pd124)); } else { tc123 = (word) 0; }; if (tc123) { SOURCE(9550, 14) repaint_v7512 = 1; SOURCE(9566, 37) (* (( (ptr) tdd_v7372)+2) ) = 1023; }; }; SOURCE(9640, 151) lab_L100040: ; if (( (int)start_v7456 > (int)backStop_v7624)) { } else { goto lab_L100038; }; SOURCE(9665, 126) { word var_c28948; { word pd125; pd125 = (* (( (ptr) (* (( (ptr) gf_c30132)+42)/* var_c27572 */ ))+4) ); var_c28948 = (word) ( *( (fPt) ((* (ptr) pd125 ))))(node_v7400, (start_v7456 - 1), pd125); }; if ((var_c28948 == 13) || (var_c28948 == 10)) { SOURCE(9757, 4) goto lab_L100039; } else { SOURCE(9774, 17) start_v7456 = (start_v7456 - 1); }; }; goto lab_L100040; lab_L100038: ; lab_L100039: ; SOURCE(9803, 23) topLine_v7540.f0 = node_v7400; topLine_v7540.f1 = start_v7456; SOURCE(9828, 48) { word pd126; pd126 = (* (( (ptr) (* (( (ptr) gf_c30132)+39)/* var_c27316 */ ))+15) ); (void) ( *( (fPt) ((* (ptr) pd126 ))))(style_v7568, topLine_v7540.f0, (* (( (ptr) formal_c30164)+10) ), pd126); }; SOURCE(9878, 33) { word pd127; pd127 = (* (( (ptr) (* (( (ptr) gf_c30132)+43)/* var_c27956 */ ))+10) ); lineInfo_v7596 = (word) ( *( (fPt) ((* (ptr) pd127 ))))(pd127); }; SOURCE(9913, 324) lab_L100043: ; SOURCE(9916, 146) { word var_c28980; { word var_c29012; word int_v26700; int_v26700 = (* (( (ptr) (* (( (ptr) formal_c30164)+4) ))+7) ); var_c29012 = (int_v26700 << 16); var_c28980 = var_c29012; }; { word pd128; pd128 = (* (( (ptr) (* (( (ptr) gf_c30132)+43)/* var_c27956 */ ))+5) ); (void) ( *( (fPt) ((* (ptr) pd128 ))))(lineInfo_v7596, topLine_v7540.f0, topLine_v7540.f1, style_v7568, var_c28980, 0, pd128) ; }; }; SOURCE(10064, 95) if ((((* (( (ptr) lineInfo_v7596)+7) ) != node_v7400) || ( (int)(* (( (ptr) lineInfo_v7596)+8) ) > (int)where_v7428)) || XR_EqualWords( (( (ptr) lineInfo_v7596)+7), &topLine_v7540, 2)) { SOURCE(10159, 4) goto lab_L100042; }; SOURCE(10165, 26) topLine_v7540 = (* (W2Pt) (( (ptr) lineInfo_v7596)+7) ); SOURCE(10193, 44) if (( (int)(topLine_v7540.f1 + (* (( (ptr) lineInfo_v7596)+14) )) > (int)where_v7428)) { SOURCE(10237, 4) goto lab_L100042; }; goto lab_L100043; lab_L100042: ; SOURCE(10253, 176) if ((0 != (* (( (ptr) formal_c30164)+7) ))) { SOURCE(10268, 163) { word goal_v7668; W5 var_c0197; SOURCE(10270, 79) { word pd129; pd129 = (* (( (ptr) (* (( (ptr) gf_c30132)+40)/* var_c27348 */ ))+13) ); goal_v7668 = IOP2( * , (int)(word) ( *( (fPt) ((* (ptr) pd129 ))))(style_v7568, 22, pd129), (int)(* (ptr) (* (( (ptr) (* ( ( (ptr) gf_c30132)+50)/* var_c29076 */ ))+15) ) )); }; SOURCE(10351, 78) if (( (int)IOP2( * , (int)goal_v7668, (int)2) < (int)(* (( (ptr) (* (( (ptr) formal_c30164)+4) ))+8) ))) { SOURCE(10378, 51) (void) BackUp_P60((word) &var_c0197, (* (( (ptr) formal_c30164)+4) ), tdd_v7372, topLine_v7540, goal_v7668); topLine_v7540 = (* (W2Pt) &var_c0197 ); }; }; }; SOURCE(10434, 18) { word pd130; pd130 = (* (( (ptr) (* (( (ptr) gf_c30132)+43)/* var_c27956 */ ))+11) ); (void) ( *( (fPt) ((* (ptr) pd130 ))))(lineInfo_v7596, pd130); }; SOURCE(10454, 14) lineInfo_v7596 = 0; SOURCE(10470, 24) { word pd131; pd131 = (* (( (ptr) (* (( (ptr) gf_c30132)+39)/* var_c27316 */ ))+7) ); (void) ( *( (fPt) ((* (ptr) pd131 ))))(style_v7568, pd131); }; SOURCE(10497, 151) { word limit133; if ((0 != repaint_v7512)) { goto then0132;}; if ( ! XR_EqualWords(&topLine_v7540, (( (W9Pt) (( (ptr) lines_v7484)+3))+( limit133 = (* (( (ptr) lines_v7484)+2) ), BCK(0, limit133) )), 2)) { then0132: ; SOURCE(10541, 43) { word pd134; pd134 = (* (( (ptr) (* (( (ptr) gf_c30132)+45)/* var_c28276 */ ))+4) ); (void) ( *( (fPt) ((* (ptr) pd134 ))))(tdd_v7372, topLine_v7540, 0, pd134); }; SOURCE(10586, 62) (void) DoPaint_P420((* (( (ptr) formal_c30164)+4) ), ( (0 != repaint_v7512) ? 0 : (* (ptr) (* (( (ptr) (* (( (ptr) gf_c30132)+44) /* var_c28180 */ ))+5) ) ) ) ); }; }; } static word OnScreen_P240(viewer_v4280, point_v4308) word viewer_v4280; W2 point_v4308; { register ptr gf_c30196 = (ptr) &globalframe; word var_c4352; /* OnScreen: */ SOURCE(10723, 910) SOURCE(10800, 55) if ((viewer_v4280 == 0) || (point_v4308.f0 == 0)) { SOURCE(10841, 14) return(0); }; SOURCE(10857, 56) if ((* (( (bPt) viewer_v4280)+77) ) & 0100 || (* (( (bPt) viewer_v4280)+76) ) & 020) { SOURCE(10899, 14) return(0); }; SOURCE(10915, 690) { word var_c29108; var_c29108 = (* (( (ptr) viewer_v4280)+26) ); if ((var_c29108 == 0)) { goto lab_L100045; }; if (((* (( (ptr) gf_c30196)+11) ) == XR_GetReferentType(var_c29108))) { { word tdd_v7712; tdd_v7712 = var_c29108; SOURCE(10970, 637) { word lines_v7756; word found_v7784 = 0; SOURCE(10972, 46) lines_v7756 = (* (( (ptr) tdd_v7712)+1) ); SOURCE(11041, 547) if ( ( (lines_v7756 != 0) ? ( (int)(* (ptr) lines_v7756 ) >= (int)0) : 0 ) ) { SOURCE(11085, 503) SOURCE(11087, 39) { W2 first_v7828; W2 last_v7856; word each_v7884; SOURCE(11087, 39) { word limit135; first_v7828 = (* (W2Pt) (( (W9Pt) (( (ptr) lines_v7756)+3))+( /*1*/ limit135 = (* (( (ptr) lines_v7756)+2) ), /*1*/ BCK(0, limit135) /*1*/ )) ); }; SOURCE(11128, 51) { word idx136; word limit137; last_v7856 = (* (W2Pt) (( (W9Pt) (( (ptr) lines_v7756)+3))+( /*1*/ idx136 = (* (ptr) lines_v7756 ), /*1*/ limit137 = (* (( (ptr) lines_v7756)+2) ), /*1*/ BCK(idx136, limit137) /*1*/ )) ); }; SOURCE(11181, 31) each_v7884 = first_v7828.f0; SOURCE(11214, 54) { word idx138; word limit139; last_v7856.f1 = (last_v7856.f1 + (* (( (ptr) (( (W9Pt) (( (ptr) lines_v7756)+3))+( /*1*/ idx138 = (* (ptr) lines_v7756 ), /*1*/ limit139 = (* (( (ptr) lines_v7756)+2) ), /*1*/ BCK(idx138, limit139) /*1*/ )))+5) )); }; SOURCE(11270, 62) if ( ( (point_v4308.f0 == first_v7828.f0) ? ( (int)point_v4308.f1 < (int)first_v7828.f1) : 0 ) ) { SOURCE(11332, 14) goto lab_L100046; }; SOURCE(11348, 60) if ( ( (point_v4308.f0 == last_v7856.f0) ? ( (int)point_v4308.f1 > (int)last_v7856.f1) : 0 ) ) { SOURCE(11408, 14) goto lab_L100046; }; SOURCE(11424, 131) lab_L100049: ; if ((each_v7884 != 0)) { } else { goto lab_L100047; }; { W2 var_c0208; SOURCE(11444, 39) if ((each_v7884 == point_v4308.f0)) { SOURCE(11471, 12) found_v7784 = 1; SOURCE(11485, 4) goto lab_L100048; }; SOURCE(11492, 25) if ((each_v7884 == last_v7856.f0)) { SOURCE(11517, 4) goto lab_L100048; }; SOURCE(11523, 32) { word pd140; pd140 = (* (( (ptr) (* (( (ptr) gf_c30196)+41)/* var_c27444 */ ))+12) ); (void) ( *( (fPt) ((* (ptr) pd140 ))))((word) &var_c0208, each_v7884, pd140); }; each_v7884 = var_c0208.f0; }; goto lab_L100049; lab_L100047: ; lab_L100048: ; }; goto lab_L100050; lab_L100046: ; lab_L100050: ; }; SOURCE(11591, 14) return(found_v7784); }; }; } else { lab_L100045: ; }; }; SOURCE(11619, 14) return(0); } static void AutoScroll_P300(formal_c0350, formal_c0351, formal_c0352, id_v4496) word formal_c0350; word formal_c0351; word formal_c0352; word id_v4496; { W11 var_c30228; /* declaration of viewer_v4412 skipped */ /* declaration of tryToGlitch_v4440 skipped */ /* declaration of toEndOfDoc_v4468 skipped */ register ptr gf_c30260 = (ptr) &globalframe; /* declaration of var_c29140 skipped */ /* declaration of kind_v7928 skipped */ /* declaration of sel_v7956 skipped */ (* (( (ptr) &var_c30228)+4)/* viewer_v4412 */ ) = formal_c0350; (* (( (ptr) &var_c30228)+5)/* tryToGlitch_v4440 */ ) = formal_c0351; (* (( (ptr) &var_c30228)+6)/* toEndOfDoc_v4468 */ ) = formal_c0352; /* AutoScroll: */ SOURCE(11639, 3366) { word tmpAddr141; tmpAddr141 = (word) (( (ptr) &var_c30228)+7)/* var_c29140 */ ; (* (ptr) tmpAddr141 ) = ( ((word) (fPt) inner_P1524) ); (* (( (ptr) tmpAddr141) + 1) ) = 1; }; SOURCE(11752, 103) { word tc142; word pd143; pd143 = (* (( (ptr) (* (( (ptr) gf_c30260)+37)/* var_c27252 */ ))+29) ); if (((word) ( *( (fPt) ((* (ptr) pd143 ))))((* (( (ptr) &var_c30228)+4)/* viewer_v4412 */ ), (* (( (ptr) gf_c30260)+20) ), pd143) == (* (( (ptr) gf_c30260)+18) ))) { tc142 = (word) 1; } else { tc142 = (word) 0; }; (* (( (ptr) &var_c30228)+9)/* kind_v7928 */ ) = tc142; }; SOURCE(11857, 161) { word var_c29172; var_c29172 = id_v4496; switch (var_c29172) { case 0: (* (( (ptr) &var_c30228)+10)/* sel_v7956 */ ) = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c30260)+46)/* var_c28404 */ ))+4) ) ); break; case 1: (* (( (ptr) &var_c30228)+10)/* sel_v7956 */ ) = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c30260)+46)/* var_c28404 */ ))+5) ) ); break; case 2: (* (( (ptr) &var_c30228)+10)/* sel_v7956 */ ) = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c30260)+46)/* var_c28404 */ ))+6) ) ); break; default: (* (( (ptr) &var_c30228)+10)/* sel_v7956 */ ) = ( XR_RaiseUnnamedError(), 0 ); break; }; }; SOURCE(14911, 54) if (((* (( (ptr) &var_c30228)+4)/* viewer_v4412 */ ) == 0)) { SOURCE(14930, 35) (* (( (ptr) &var_c30228)+4)/* viewer_v4412 */ ) = (* (ptr) (* (ptr) (* (( (ptr) (* (( (ptr) gf_c30260)+46)/* var_c28404 */ ))+4) ) ) ); }; SOURCE(14968, 37) (void) LockAndDoIt_P360((word) (( (bPt) &var_c30228)+28)/* var_c29140 */ , (* (( (ptr) &var_c30228)+4)/* viewer_v4412 */ ), (* ( ( (ptr) &var_c30228)+10)/* sel_v7956 */ ), 1); } static void inner_P1524(formal_c0353, formal_c30356) word formal_c0353; word formal_c30356; { W10 var_c30292; /* declaration of tdd_v8060 skipped */ register ptr gf_c30324 = (ptr) &globalframe; /* declaration of var_c29204 skipped */ /* declaration of lines_v8088 skipped */ /* declaration of goal_v8116 skipped */ word glitchOK_v8144 = 0; formal_c30356 = (formal_c30356 - 28); (* (( (ptr) &var_c30292)+4)/* tdd_v8060 */ ) = formal_c0353; (* (ptr) &var_c30292 ) = formal_c30356; /* inner: */ SOURCE(12020, 2884) { word tmpAddr144; tmpAddr144 = (word) (( (ptr) &var_c30292)+5)/* var_c29204 */ ; (* (ptr) tmpAddr144 ) = ( ((word) (fPt) TryToGlitch_P1584) ); (* (( (ptr) tmpAddr144) + 1) ) = 1; }; SOURCE(12061, 46) (* (( (ptr) &var_c30292)+7)/* lines_v8088 */ ) = (* (( (ptr) (* (( (ptr) &var_c30292)+4)/* tdd_v8060 */ ))+1) ); SOURCE(12109, 34) (* (( (ptr) &var_c30292)+8) ) = 0; (* (( (ptr) &var_c30292)+9) ) = 0; if ((0 != (* (( (ptr) formal_c30356)+6) ))) { SOURCE(14037, 300) { word lines_v8276; SOURCE(14039, 46) lines_v8276 = (* (( (ptr) (* (( (ptr) &var_c30292)+4)/* tdd_v8060 */ ))+1) ); SOURCE(14087, 60) { word var_c29268; { word pd145; pd145 = (* (( (ptr) (* (( (ptr) gf_c30324)+41)/* var_c27444 */ ))+28) ); var_c29268 = (word) ( *( (fPt) ((* (ptr) pd145 ))))((* (ptr) ((* (( (ptr) &var_c30292)+4)/* tdd_v8060 */ )) ), pd145); }; { word pd146; pd146 = (* (( (ptr) (* (( (ptr) gf_c30324)+41)/* var_c27444 */ ))+27) ); (void) ( *( (fPt) ((* (ptr) pd146 ))))((word) (( (bPt) &var_c30292)+32)/* goal_v8116 */ , var_c29268, pd146); }; }; SOURCE(14149, 89) { word idx147; word limit148; word idx149; word limit150; if (( (int)((* (( (ptr) (( (W9Pt) (( (ptr) lines_v8276)+3))+( idx147 = (* (ptr) lines_v8276 ), limit148 = (* (( (ptr) lines_v8276)+2) ), BCK(idx147, limit148) )))+1) ) + (* (( (ptr) (( (W9Pt) (( (ptr) lines_v8276)+3))+( idx149 = (* (ptr) lines_v8276 ), limit150 = (* (( (ptr) lines_v8276)+2) ), BCK(idx149, limit150) )))+5) )) >= (int)(* (( (ptr) &var_c30292)+9) ))) { SOURCE(14232, 6) return; }; }; SOURCE(14240, 25) (* (( (ptr) &var_c30292)+9) ) = ((* (( (ptr) &var_c30292)+9) ) - 1); SOURCE(14291, 44) if ((0 != (* (( (ptr) formal_c30356)+5) ))) { SOURCE(14311, 24) glitchOK_v8144 = (word) TryToGlitch_P1584((word) ((( (bPt) &var_c30292)+20)/* var_c29204 */ )); }; }; } else { if (((* (ptr) (* (( (ptr) formal_c30356)+10) ) ) != (* (( (ptr) formal_c30356)+4) ))) { } else { SOURCE(14378, 442) { W9 selPoint_v8320; word clipped_v8348; SOURCE(14380, 92) { word tcp151; if (((* (( (ptr) (* (( (ptr) formal_c30356)+10) ))+24) ) == 0)) { tcp151 = (word) (( (ptr) (* (( (ptr) formal_c30356)+10) ))+2); } else { tcp151 = (word) (( (ptr) (* (( (ptr) formal_c30356)+10) ))+11); }; selPoint_v8320 = (* (W9Pt) tcp151 ); }; SOURCE(14474, 32) clipped_v8348 = (* (( (ptr) &selPoint_v8320)+7) ); SOURCE(14508, 60) if ( ( (0 == clipped_v8348) ? (0 != (word) OnScreen_P240((* (( (ptr) formal_c30356)+4) ), (* (W2Pt) (( (ptr) (* (( (ptr) formal_c30356)+10) ))+11) ))) : 0 ) ) { SOURCE(14562, 6) return; }; SOURCE(14570, 41) { word pd152; pd152 = (* (( (ptr) (* (( (ptr) gf_c30324)+46)/* var_c28404 */ ))+64) ); (void) ( *( (fPt) ((* (ptr) pd152 ))))((word) (( (bPt) &var_c30292)+32)/* goal_v8116 */ , (* (( (ptr) formal_c30356)+10) ), pd152); }; SOURCE(14613, 50) { word pd153; pd153 = (* (( (ptr) (* (( (ptr) gf_c30324)+41)/* var_c27444 */ ))+9) ); if (((word) ( *( (fPt) ((* (ptr) pd153 ))))((* ((( (ptr) &var_c30292)+8)) ), pd153) != (* (ptr) (* (( (ptr) &var_c30292)+4) /* tdd_v8060 */ ) ))) { SOURCE(14657, 6) return; }; }; SOURCE(14665, 71) if ( ( ((* (( (ptr) (* (( (ptr) formal_c30356)+10) ))+24) ) == 0) ? ( (int)(* (( (ptr) &var_c30292)+9) ) > (int)0) : 0 ) ) { SOURCE(14711, 25) (* (( (ptr) &var_c30292)+9) ) = ((* (( (ptr) &var_c30292)+9) ) - 1); }; SOURCE(14738, 80) if ( ( ( (0 == clipped_v8348) ? (0 != (* (( (ptr) formal_c30356)+5) )) : 0 ) ? ( (int)(* (( (ptr) &selPoint_v8320)+2) ) > (int)0) : 0 ) ) { SOURCE(14794, 24) glitchOK_v8144 = (word) TryToGlitch_P1584((word) ((( (bPt) &var_c30292)+20)/* var_c29204 */ )); }; }; }; }; SOURCE(14827, 77) if ( ( (0 == glitchOK_v8144) ? ((* (( (ptr) &var_c30292)+8) ) != 0) : 0 ) ) { SOURCE(14868, 36) (void) ScrollToPosition_P180((* (( (ptr) formal_c30356)+4) ), (* (W2Pt) (( (ptr) &var_c30292)+8)/* goal_v8116 */ ), 1); }; } static word TryToGlitch_P1584(formal_c30452) word formal_c30452; { W6 var_c30388; register ptr gf_c30420 = (ptr) &globalframe; word success_v8248; /* declaration of var_c29300 skipped */ word glitchLines_v8392; word tryLines_v8420; W2 newPos_v8448; word style_v8476 = 0; word lineInfo_v8504 = 0; word lineCount_v8532 = 0; W2 pos_v8560; word foundNode_v8588; formal_c30452 = (formal_c30452 - 20); var_c30388.f0 = formal_c30452; /* TryToGlitch: */ SOURCE(12170, 1825) { word tmpAddr154; tmpAddr154 = (word) (( (ptr) &var_c30388)+4)/* var_c29300 */ ; (* (ptr) tmpAddr154 ) = ( ((word) (fPt) NextNode_P1740) ); (* (( (ptr) tmpAddr154) + 1) ) = 1; }; SOURCE(12170, 1825) success_v8248 = 0; SOURCE(12224, 85) { word x155; word x156; word x157; glitchLines_v8392 = (x156 = (x155 = IOP2( / , (int)(* (ptr) (* (( (ptr) formal_c30452)+7) ) ), (int)2), MAX((int)(word), x155, 1)), x157 = (* (ptr) (* (( (ptr) (* (( (ptr) gf_c30420)+50)/* var_c29076 */ ))+16) ) ), MIN((int)(word), x156, x157)); }; SOURCE(12311, 56) { word x158; tryLines_v8420 = (x158 = (IOP2( / , (int)(* (ptr) (* (( (ptr) formal_c30452)+7) ) ), (int)2) - glitchLines_v8392), MAX((int)(word), x158, 2)); }; SOURCE(12400, 25) newPos_v8448.f0 = 0; newPos_v8448.f1 = 0; SOURCE(12505, 50) { word idx159; word limit160; pos_v8560 = (* (W2Pt) (( (W9Pt) (( (ptr) (* (( (ptr) formal_c30452)+7) ))+3))+( idx159 = (* (ptr) (* (( (ptr) formal_c30452)+7) ) ), limit160 = (* (( (ptr) (* (( (ptr) formal_c30452)+7) ))+2) ), BCK(idx159, limit160) )) ); }; SOURCE(12780, 60) if (( (int)(* (ptr) (* (( (ptr) (* (( (ptr) gf_c30420)+50)/* var_c29076 */ ))+16) ) ) <= (int)0)) { SOURCE(12825, 15) return(1); }; SOURCE(12844, 15) success_v8248 = 0; SOURCE(12861, 28) { word pd161; pd161 = (* (( (ptr) (* (( (ptr) gf_c30420)+39)/* var_c27316 */ ))+6) ); style_v8476 = (word) ( *( (fPt) ((* (ptr) pd161 ))))(pd161); }; SOURCE(12891, 217) { word idx162; word limit163; if ((( (((unsigned)(* (( (ptr) (( (W9Pt) (( (ptr) (* (( (ptr) formal_c30452)+7) ))+3))+( idx162 = (* (ptr) (* (( (ptr) formal_c30452)+7) ) ), limit163 = (* (( (ptr) (* (( (ptr) formal_c30452)+7) ))+2) ), BCK(idx162, limit163) )))+2) ) << 1) >> 1) ) == 0)) { SOURCE(12933, 50) { word idx164; word limit165; pos_v8560.f0 = (word) NextNode_P1740((* (ptr) (( (W9Pt) (( (ptr) (* (( (ptr) formal_c30452)+7) ))+3))+( idx164 = (* (ptr) (* (( (ptr) formal_c30452)+7) ) ), limit165 = (* (( (ptr) (* (( (ptr) formal_c30452)+7) ))+2) ), BCK(idx164, limit165) )) ), (word) (( (bPt) &var_c30388)+16)/* var_c29300 */ ); }; pos_v8560.f1 = 0; SOURCE(12985, 64) if ((pos_v8560.f0 == 0)) { SOURCE(13008, 24) { word pd166; pd166 = (* (( (ptr) (* (( (ptr) gf_c30420)+39)/* var_c27316 */ ))+7) ); (void) ( *( (fPt) ((* (ptr) pd166 ))))(style_v8476, pd166); }; SOURCE(13034, 15) return(0); }; } else { SOURCE(13058, 50) { word idx167; word limit168; pos_v8560.f1 = (pos_v8560.f1 + (* (( (ptr) (( (W9Pt) (( (ptr) (* (( (ptr) formal_c30452)+7) ))+3))+( idx167 = (* (ptr) (* (( (ptr) formal_c30452)+7) ) ), limit168 = (* (( (ptr) (* (( (ptr) formal_c30452)+7) ))+2) ), BCK(idx167, limit168) )))+5) )); }; }; }; SOURCE(13110, 30) foundNode_v8588 = (pos_v8560.f0 == (* (( (ptr) formal_c30452)+8) )); SOURCE(13142, 44) { word pd169; pd169 = (* (( (ptr) (* (( (ptr) gf_c30420)+39)/* var_c27316 */ ))+15) ); (void) ( *( (fPt) ((* (ptr) pd169 ))))(style_v8476, pos_v8560.f0, (* (( (ptr) (* (ptr) formal_c30452 ))+9) ), pd169); }; SOURCE(13188, 33) { word pd170; pd170 = (* (( (ptr) (* (( (ptr) gf_c30420)+43)/* var_c27956 */ ))+10) ); lineInfo_v8504 = (word) ( *( (fPt) ((* (ptr) pd170 ))))(pd170); }; SOURCE(13223, 574) { register word noName_c29364 = 0; register word noName_c29396; { word x171; noName_c29396 = (x171 = ((* (ptr) (* (( (ptr) formal_c30452)+7) ) ) - glitchLines_v8392), MIN((int)(word), tryLines_v8420, x171)); }; if (( (int)noName_c29364 >= (int)noName_c29396)) { goto lab_L100051; }; lab_L100054: ; SOURCE(13281, 83) if ((pos_v8560.f0 == 0)) { SOURCE(13304, 24) { word pd172; pd172 = (* (( (ptr) (* (( (ptr) gf_c30420)+39)/* var_c27316 */ ))+7) ); (void) ( *( (fPt) ((* (ptr) pd172 ))))(style_v8476, pd172); }; SOURCE(13330, 18) { word pd173; pd173 = (* (( (ptr) (* (( (ptr) gf_c30420)+43)/* var_c27956 */ ))+11) ); (void) ( *( (fPt) ((* (ptr) pd173 ))))(lineInfo_v8504, pd173); }; SOURCE(13350, 14) return(0); }; SOURCE(13369, 138) { word var_c29428; { word var_c29460; word int_v26652; int_v26652 = (* (( (ptr) (* (( (ptr) (* (ptr) formal_c30452 ))+4) ))+7) ); var_c29460 = (int_v26652 << 16); var_c29428 = var_c29460; }; { word pd174; pd174 = (* (( (ptr) (* (( (ptr) gf_c30420)+43)/* var_c27956 */ ))+5) ); (void) ( *( (fPt) ((* (ptr) pd174 ))))(lineInfo_v8504, pos_v8560.f0, pos_v8560.f1, style_v8476, var_c29428, 0, pd174); }; }; SOURCE(13509, 25) newPos_v8448 = (* (W2Pt) (( (ptr) lineInfo_v8504)+7) ); SOURCE(13536, 46) if ((newPos_v8448.f0 == (* (( (ptr) formal_c30452)+8) ))) { SOURCE(13566, 16) foundNode_v8588 = 1; }; SOURCE(13584, 89) if ( ( (0 != foundNode_v8588) ? ( (newPos_v8448.f0 != (* (( (ptr) formal_c30452)+8) )) ? 1 : ( (int)newPos_v8448.f1 > (int)(* ( ( (ptr) formal_c30452)+9) )) ) : 0 ) ) { SOURCE(13659, 14) success_v8248 = 1; SOURCE(13675, 4) goto lab_L100052; }; SOURCE(13682, 23) lineCount_v8532 = (lineCount_v8532 + 1); SOURCE(13707, 76) if ((newPos_v8448.f0 != pos_v8560.f0)) { SOURCE(13736, 47) { word pd175; pd175 = (* (( (ptr) (* (( (ptr) gf_c30420)+39)/* var_c27316 */ ))+15) ); (void) ( *( (fPt) ((* (ptr) pd175 ))))(style_v8476, newPos_v8448.f0, (* (( (ptr) (* (ptr) formal_c30452 ))+9) ), pd175) ; }; }; SOURCE(13785, 12) pos_v8560 = newPos_v8448; noName_c29364 = (noName_c29364 + 1); if (( (int)noName_c29364 < (int)noName_c29396)) { goto lab_L100054; }; lab_L100051: ; lab_L100052: ; }; SOURCE(13808, 24) { word pd176; pd176 = (* (( (ptr) (* (( (ptr) gf_c30420)+39)/* var_c27316 */ ))+7) ); (void) ( *( (fPt) ((* (ptr) pd176 ))))(style_v8476, pd176); }; SOURCE(13834, 18) { word pd177; pd177 = (* (( (ptr) (* (( (ptr) gf_c30420)+43)/* var_c27956 */ ))+11) ); (void) ( *( (fPt) ((* (ptr) pd177 ))))(lineInfo_v8504, pd177); }; SOURCE(13854, 14) lineInfo_v8504 = 0; SOURCE(13870, 125) if ((0 != success_v8248)) { SOURCE(13888, 68) { word var_c29524; W2 var_c0320; { word limit178; var_c29524 = (lineCount_v8532 + glitchLines_v8392); var_c0320 = (* (W2Pt) (( (W9Pt) (( (ptr) (* (( (ptr) formal_c30452)+7) ))+3))+( limit178 = (* (( (ptr) (* (( (ptr) formal_c30452)+7) ))+2) ), BCK(var_c29524, limit178) )) ); }; { word pd179; pd179 = (* (( (ptr) (* (( (ptr) gf_c30420)+45)/* var_c28276 */ ))+4) ); (void) ( *( (fPt) ((* (ptr) pd179 ))))((* (( (ptr) formal_c30452)+4) ), var_c0320, 0, pd179); }; }; SOURCE(13958, 37) (void) DoPaint_P420((* (( (ptr) (* (ptr) formal_c30452 ))+4) ), (* (ptr) (* (( (ptr) (* (( (ptr) gf_c30420)+44)/* var_c28180 */ ))+5) ) )); }; SOURCE(12170, 1825) return(success_v8248); } static word NextNode_P1740(node_v8692, formal_c30516) word node_v8692; word formal_c30516; { register ptr gf_c30484 = (ptr) &globalframe; word next_v8736; W2 var_c0246; formal_c30516 = (formal_c30516 - 16); /* NextNode: */ SOURCE(12574, 202) SOURCE(12574, 202) next_v8736 = 0; SOURCE(12643, 133) { word pd181; if (((* (( (ptr) (* (( (ptr) (* (ptr) formal_c30516 ))+4) ))+2) ) < 1023)) { { word pd180; pd180 = (* (( (ptr) (* (( (ptr) gf_c30484)+41)/* var_c27444 */ ))+17) ); (void) ( *( (fPt) ((* (ptr) pd180 ))))((word) &var_c0246, node_v8692, (* (( (ptr) (* (( (ptr) (* (ptr) formal_c30516 ))+4) ))+2) ), 0, pd180); }; next_v8736 = var_c0246.f0; } else { pd181 = (* (( (ptr) (* (( (ptr) gf_c30484)+41)/* var_c27444 */ ))+14) ); next_v8736 = (word) ( *( (fPt) ((* (ptr) pd181 ))))(node_v8692, pd181); }; }; SOURCE(12574, 202) return(next_v8736); } static void LockAndDoIt_P360(formal_c0354, formal_c0355, formal_c0356, formal_c0357) word formal_c0354; word formal_c0355; word formal_c0356; word formal_c0357; { W10 var_c30548; /* declaration of inner_v4556 skipped */ /* declaration of viewer_v4584 skipped */ /* declaration of sel_v4612 skipped */ /* declaration of ignoreIcon_v4640 skipped */ register ptr gf_c30580 = (ptr) &globalframe; /* declaration of var_c29556 skipped */ (* (( (ptr) &var_c30548)+4)/* inner_v4556 */ ) = formal_c0354; (* (( (ptr) &var_c30548)+5)/* viewer_v4584 */ ) = formal_c0355; (* (( (ptr) &var_c30548)+6)/* sel_v4612 */ ) = formal_c0356; (* (( (ptr) &var_c30548)+7)/* ignoreIcon_v4640 */ ) = formal_c0357; /* LockAndDoIt: */ SOURCE(15012, 994) { word tmpAddr182; tmpAddr182 = (word) (( (ptr) &var_c30548)+8)/* var_c29556 */ ; (* (ptr) tmpAddr182 ) = ( ((word) (fPt) withViewer_P1800) ); (* (( (ptr) tmpAddr182) + 1) ) = 1; }; SOURCE(15837, 72) if ((((* (( (ptr) &var_c30548)+5)/* viewer_v4584 */ ) == 0) || (* (( (bPt) (* (( (ptr) &var_c30548)+5)/* viewer_v4584 */ ))+77) ) & 0100) || (* (( (bPt) (* (( (ptr) &var_c30548)+5)/* viewer_v4584 */ ))+77) ) & 02) { SOURCE(15903, 6) return; }; SOURCE(15911, 43) if ( ( (0 != (* (( (ptr) &var_c30548)+7)/* ignoreIcon_v4640 */ )) ? (((unsigned)(* (( (bPt) (* (( (ptr) &var_c30548)+5)/* viewer_v4584 */ ))+76) ) << 27) >> 31) : 0 ) ) { SOURCE(15948, 6) return; }; SOURCE(15956, 50) { word pd183; pd183 = (* (( (ptr) (* (( (ptr) gf_c30580)+51)/* var_c29588 */ ))+4) ); (void) ( *( (fPt) ((* (ptr) pd183 ))))((word) (( (bPt) &var_c30548)+32)/* var_c29556 */ , (* (( (ptr) &var_c30548)+5)/* viewer_v4584 */ ), pd183) ; }; } static void withViewer_P1800(formal_c30676) word formal_c30676; { W5 var_c30612; register ptr gf_c30644 = (ptr) &globalframe; /* declaration of tdd_v8824 skipped */ formal_c30676 = (formal_c30676 - 32); var_c30612.f0 = formal_c30676; /* withViewer: */ SOURCE(15150, 679) SOURCE(15171, 28) var_c30612.f4/* tdd_v8824 */ = 0; SOURCE(15201, 72) if ((((* (( (ptr) formal_c30676)+5) ) == 0) || (* (( (bPt) (* (( (ptr) formal_c30676)+5) ))+77) ) & 0100) || (* (( (bPt) (* ( ( (ptr) formal_c30676)+5) ))+77) ) & 02) { SOURCE(15267, 6) return; }; SOURCE(15275, 43) if ( ( (0 != (* (( (ptr) formal_c30676)+7) )) ? (((unsigned)(* (( (bPt) (* (( (ptr) formal_c30676)+5) ))+76) ) << 27) >> 31) : 0 ) ) { SOURCE(15312, 6) return; }; SOURCE(15320, 56) if ( ( ((* (( (ptr) formal_c30676)+6) ) != 0) ? ((* (( (ptr) formal_c30676)+5) ) == (* (ptr) (* (( (ptr) formal_c30676)+6) ) )) : 0 ) ) { SOURCE(15362, 14) var_c30612.f4/* tdd_v8824 */ = (* (( (ptr) (* (( (ptr) formal_c30676)+6) ))+1) ); }; SOURCE(15378, 84) if ((var_c30612.f4/* tdd_v8824 */ == 0)) { SOURCE(15396, 66) { word var_c29620; var_c29620 = (* (( (ptr) (* (( (ptr) formal_c30676)+5) ))+26) ); if ((var_c29620 == 0)) { goto lab_L100056; }; if (((* (( (ptr) gf_c30644)+11) ) == XR_GetReferentType(var_c29620))) { { word vtdd_v8868; vtdd_v8868 = var_c29620; SOURCE(15452, 10) var_c30612.f4/* tdd_v8824 */ = vtdd_v8868; }; } else { lab_L100056: ; }; }; }; SOURCE(15473, 24) if ((var_c30612.f4/* tdd_v8824 */ == 0)) { SOURCE(15491, 6) return; }; SOURCE(15499, 330) if ((* (( (bPt) (* (( (ptr) formal_c30676)+5) ))+76) ) & 020) { SOURCE(15523, 44) { word var_c29684; word pd184; pd184 = (* (( (ptr) (* (( (ptr) gf_c30644)+52)/* var_c29652 */ ))+8) ); var_c29684 = (word) ( *( (fPt) ((* (ptr) pd184 ))))(var_c30612.f4/* tdd_v8824 */ , (* (( (ptr) gf_c30644)+19) ), 1, 0, 0, pd184) ; }; SOURCE(15569, 54) { word var_c0321; var_c0321 = (word) &var_c30612; (void) (word) XR_Enable(( ((word) (fPt) NoName_Q2856) ), ( ((word) (fPt) NoName_Q2976) ), var_c0321); }; SOURCE(15625, 31) { word pd185; pd185 = (* (( (ptr) (* (( (ptr) gf_c30644)+52)/* var_c29652 */ ))+9) ); (void) ( *( (fPt) ((* (ptr) pd185 ))))(var_c30612.f4/* tdd_v8824 */ , pd185); }; } else { SOURCE(15667, 63) { word pd186; pd186 = (* (( (ptr) (* (( (ptr) gf_c30644)+44)/* var_c28180 */ ))+7) ); if ((0 == (word) ( *( (fPt) ((* (ptr) pd186 ))))(var_c30612.f4/* tdd_v8824 */ , (* (( (ptr) gf_c30644)+19) ), pd186))) { SOURCE(15724, 6) return; }; }; SOURCE(15732, 59) { word var_c0322; var_c0322 = (word) &var_c30612; (void) (word) XR_Enable(( ((word) (fPt) NoName_Q2796) ), ( ((word) (fPt) NoName_Q2916) ), var_c0322); }; SOURCE(15793, 36) { word pd187; pd187 = (* (( (ptr) (* (( (ptr) gf_c30644)+44)/* var_c28180 */ ))+9) ); (void) ( *( (fPt) ((* (ptr) pd187 ))))(var_c30612.f4/* tdd_v8824 */ , pd187); }; }; } static word NoName_Q2796(formal_c0307) word formal_c0307; { SOURCE(15732, 59) { word pd188; pd188 = (* (( (ptr) (* (ptr) formal_c0307 ))+4) ); (void) ( *( (fPt) ((* (ptr) pd188 ))))((* ((( (ptr) formal_c0307)+4)) ), pd188); }; return(0); } static word NoName_Q2856(formal_c0308) word formal_c0308; { SOURCE(15569, 54) { word pd189; pd189 = (* (( (ptr) (* (ptr) formal_c0308 ))+4) ); (void) ( *( (fPt) ((* (ptr) pd189 ))))((* ((( (ptr) formal_c0308)+4)) ), pd189); }; return(0); } static void DoPaint_P420(viewer_v4760, op_v4788) word viewer_v4760; word op_v4788; { register ptr gf_c30708 = (ptr) &globalframe; word clearClient_v8912; /* DoPaint: */ SOURCE(16012, 315) SOURCE(16062, 28) clearClient_v8912 = (op_v4788 == 0); SOURCE(16092, 235) if ((0 != (* (( (ptr) gf_c30708)+4)/* forkPaints_v3616 */ ))) { SOURCE(16111, 122) { word pd190; pd190 = (* (( (ptr) (* (( (ptr) gf_c30708)+53)/* var_c29716 */ ))+4) ); (void) ( *( (fPt) ((* (ptr) pd190 ))))(viewer_v4760, 1, clearClient_v8912, op_v4788, 1, pd190); }; } else { SOURCE(16233, 94) { word pd191; pd191 = (* (( (ptr) (* (( (ptr) gf_c30708)+37)/* var_c27252 */ ))+16) ); (void) ( *( (fPt) ((* (ptr) pd191 ))))(viewer_v4760, 1, clearClient_v8912, op_v4788, pd191); }; }; } static void NoName_Q2916(formal_c0263, formal_c200016, formal_c200017, formal_c200018, formal_c200019) word formal_c0263; word formal_c200016; word formal_c200017; word formal_c200018; word formal_c200019; { register ptr gf_c0310 = (ptr) &globalframe; if ((formal_c200017 == XR_Unwind)) { SOURCE(15754, 37) { word pd192; pd192 = (* (( (ptr) (* (( (ptr) gf_c0310)+44)/* var_c28180 */ ))+9) ); (void) ( *( (fPt) ((* (ptr) pd192 ))))((* ((( (ptr) formal_c200016)+4)) ), pd192); }; }; (* (ptr) formal_c0263 ) = 0; (* (( (ptr) formal_c0263)+1) ) = 0; return; } static void NoName_Q2976(formal_c0268, formal_c200012, formal_c200013, formal_c200014, formal_c200015) word formal_c0268; word formal_c200012; word formal_c200013; word formal_c200014; word formal_c200015; { register ptr gf_c0311 = (ptr) &globalframe; if ((formal_c200013 == XR_Unwind)) { SOURCE(15591, 32) { word pd193; pd193 = (* (( (ptr) (* (( (ptr) gf_c0311)+52)/* var_c29652 */ ))+9) ); (void) ( *( (fPt) ((* (ptr) pd193 ))))((* ((( (ptr) formal_c200012)+4)) ), pd193); }; }; (* (ptr) formal_c0268 ) = 0; (* (( (ptr) formal_c0268)+1) ) = 0; return; } static void NoName_Q3036(formal_c0273, formal_c200008, formal_c200009, formal_c200010, formal_c200011) word formal_c0273; word formal_c200008; word formal_c200009; word formal_c200010; word formal_c200011; { register ptr gf_c0312 = (ptr) &globalframe; if ((formal_c200009 == (* (( (ptr) (* (( (ptr) gf_c0312)+41)/* var_c27444 */ ))+22) ))) { SOURCE(8327, 10) (* (ptr) formal_c0273 ) = 2; (* (( (ptr) formal_c0273)+1) ) = 2; return; }; (* (ptr) formal_c0273 ) = 0; (* (( (ptr) formal_c0273)+1) ) = 0; return; } static void NoName_Q3096(formal_c0278, formal_c200004, formal_c200005, formal_c200006, formal_c200007) word formal_c0278; word formal_c200004; word formal_c200005; word formal_c200006; word formal_c200007; { register ptr gf_c0313 = (ptr) &globalframe; if ((formal_c200005 == (* (( (ptr) (* (( (ptr) gf_c0313)+41)/* var_c27444 */ ))+22) ))) { SOURCE(8171, 10) (* (ptr) formal_c0278 ) = 2; (* (( (ptr) formal_c0278)+1) ) = 2; return; }; (* (ptr) formal_c0278 ) = 0; (* (( (ptr) formal_c0278)+1) ) = 0; return; } static void NoName_Q3156(formal_c0283, formal_c200000, formal_c200001, formal_c200002, formal_c200003) word formal_c0283; word formal_c200000; word formal_c200001; word formal_c200002; word formal_c200003; { register ptr gf_c0314 = (ptr) &globalframe; if ((formal_c200001 == (* (( (ptr) (* (( (ptr) gf_c0314)+41)/* var_c27444 */ ))+22) ))) { SOURCE(8039, 10) (* (ptr) formal_c0283 ) = 2; (* (( (ptr) formal_c0283)+1) ) = 2; return; }; (* (ptr) formal_c0283 ) = 0; (* (( (ptr) formal_c0283)+1) ) = 0; return; } /* file: TEditScrollingImpl, module: TEditScrollingImpl, compiled at: July 9, 1992 4:11:32 pm PDT */ extern void XR_install_TEditScrollingImpl() { NoName_Q2556(); } extern void XR_run_TEditScrollingImpl() { XR_Start(&globalframe); }