-- file: GFtoPressImpl3.mesa -- Pascal-to-Mesa translator output, translated at October 25, 1985 5:07:13 pm PDT DIRECTORY PascalBasic, PascalWizardFiles, GFtoPressPrivate, GFtoPressVars1, GFtoPressVars2, GFtoPressVars3; GFtoPressImpl3: PROGRAM IMPORTS PascalBasic, GFtoPressPrivate, GFtoPressVars2, GFtoPressVars3 EXPORTS GFtoPressPrivate = PUBLIC BEGIN OPEN PascalBasic, PascalWizardFiles, GFtoPressPrivate, GFtoPressVars1, GFtoPressVars2, GFtoPressVars3; NLDot: PROCEDURE[P: TreePointer] = BEGIN XDot_Xx^[P];YDot_Yy^[P]; DDot_536870912;EvenNLDot[Root]; END;--:150----152: --150:-- EvenNLDot: PROCEDURE[P: TreePointer] = BEGIN IF P#0 THEN BEGIN IF Info^[P]<0 THEN IF DlTie^[P]=0 THEN IF ABS[Xx ^[P]-XDot]XDot-DDot THEN OddNLDot[Left^[P]]; IF Xr^[P]+DotWidthYDot-DDot THEN EvenNLDot[Left^[P]]; IF Yb^[P]+DotHeightTopCoords[P];50,54 =>LeftCoords[P]; 51,55 =>RightCoords[P];52,56 =>BotCoords[P]; ENDCASE;Q_DlTie^[P];DlTie^[Q]_0; TreeIns[P];PressGoto[Xx^[P],Yy^[P]];Hbox[Info^[P],2,TRUE]; END;--:192 --193:-- DoBLabel: PROCEDURE[P: TreePointer] = BEGIN Q:TreePointer; Hbox[Info^[P],2,FALSE];DviX_Xx^[P]; DviY_Yy^[P];--195:--OvFlag_FALSE;Q_DlTie^[P];--196: SELECT DlTie^[Q]FROM 1,8,10,15 =>LeftCoords[P];2,3,9,12 =>BotCoords[P]; 4,5,11,14 =>RightCoords[P];6,7,13,16 =>TopCoords[P]; ENDCASE; {{IF NOT Overlap[P] THEN GOTO Label40--:196--;--197: SELECT DlTie^[Q]FROM 1,4,13,16 =>BotCoords[P];2,7,11,14 =>LeftCoords[P]; 3,6,10,15 =>RightCoords[P];5,8,9,12 =>TopCoords[P]; ENDCASE; IF NOT Overlap[P] THEN GOTO Label40--:197--;--198: SELECT DlTie^[Q]FROM 1,4,14,15 =>TopCoords[P];2,7,12,13 =>RightCoords[P]; 3,6,9,16 =>LeftCoords[P];5,8,10,11 =>BotCoords[P]; ENDCASE; IF NOT Overlap[P] THEN GOTO Label40--:198--;--199: SELECT DlTie^[Q]FROM 1,8,9,16 =>RightCoords[P];2,3,10,11 =>TopCoords[P]; 4,5,12,13 =>LeftCoords[P];6,7,14,15 =>BotCoords[P]; ENDCASE; IF NOT Overlap[P] THEN GOTO Label40--:199--;Xx^[P]_DviX;Yy^[P]_DviY; IF Left^[P]=48 THEN OvFlag_TRUE; GOTO Label10--:195--;EXITS Label40 => NULL};TreeIns[P]; Q_DlTie^[P];DlTie^[Q]_0;PressGoto[Xx^[P],Yy^[P]];Hbox[Info^[P],2,TRUE]; EXITS Label10 => NULL}; END;--:193----194:-- DoDot: PROCEDURE[P: TreePointer] = BEGIN Q:TreePointer; Q_GetAvail[];IF FirstDot=0 THEN FirstDot_Q;LastDot_Q; DlTie^[P]_Q;DlTie^[Q]_P;Info^[Q]_-Info^[P];Convert[Xx^[P],Yy^[P]]; Xx^[Q]_DviX;Yy^[Q]_DviY;Xx^[P]_Xx^[Q];Yy^[P]_Yy^[Q]; Xl^[Q]_DviX-DotWidth;Xr^[Q]_DviX+DotWidth;Yt^[Q]_DviY-DotHeight; Yb^[Q]_DviY+DotHeight;TreeIns[Q];PressGoto[Xx^[Q],Yy^[Q]]; PressSetChar[0]; END;--:194----216:-- END.