DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦6593da734⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Connect_Vertical, seg_0046f3, separate Graphic_Lines

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



separate (Graphic_Lines)
procedure Connect_Vertical (From_Line     : Line_Number;
                            To_Line       : Line_Number;
                            In_Column     : Col_Number;
                            Output_Window : Window_Id) is
    Out_Char    : Character;
    Top_Line    : Positive := Smaller (From_Line, To_Line);
    Bottom_Line : Positive := Larger (From_Line, To_Line);

begin
    if Top_Line /= Bottom_Line then
        Connect_Endpoint (Line          => Top_Line,
                          Col           => In_Column,
                          Going         => Down,
                          Output_Window => Output_Window);
        for Current_Line in Top_Line + 1 .. Bottom_Line - 1 loop
            Window_Io.Position_Cursor (File   => Output_Window,
                                       Line   => Current_Line,
                                       Column => In_Column,
                                       Offset => 0);
            case Window_Io.Char_At (Output_Window) is
                when Gc.H_Line | Gc.T_Up | Gc.T_Down =>
                    Out_Char := Gc.Intersect;
                when Gc.U_R_Corner | Gc.L_R_Corner =>
                    Out_Char := Gc.T_Left;
                when Gc.U_L_Corner | Gc.L_L_Corner =>
                    Out_Char := Gc.T_Right;
                when Gc.Dot =>  
                    Out_Char := Endpoint_Union (Output_Window => Output_Window,
                                                Include_Left  => False,
                                                Include_Right => False,
                                                Include_Up    => True,
                                                Include_Down  => True);
                when Gc.V_Line | Gc.T_Left | Gc.T_Right =>
                    Out_Char := Character'First;
                when others =>
                    Out_Char := Gc.V_Line;
            end case;  
            if Out_Char /= Character'First then
                Window_Io.Overwrite (File  => Output_Window,
                                     Item  => Out_Char,
                                     Image => Gc.Graphics_Font,
                                     Kind  => Window_Io.Text);
            end if;
        end loop;
        Connect_Endpoint (Line          => Bottom_Line,
                          Col           => In_Column,
                          Going         => Up,
                          Output_Window => Output_Window);
    end if;


end Connect_Vertical;

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=16 rec1=00 rec2=01 rec3=014
        [0x01] rec0=00 rec1=00 rec2=04 rec3=00c
        [0x02] rec0=12 rec1=00 rec2=02 rec3=050
        [0x03] rec0=0f rec1=00 rec2=03 rec3=001
    tail 0x215004e28815c676659bb 0x42a00088462061e03