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

⟦b4011ec1b⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body File, seg_03eafe

Derivation

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

E3 Source Code



with Text_Io;
use Text_Io;
package body File is

    Current_Character : Character;
    Current_Character_Line : Integer := 1;
    Current_Character_Column : Integer := 0;
    Previous_Character_Column : Integer;
    Look_A_Head : Boolean;

    procedure Initialize is
    begin
        Look_A_Head := False;
    end Initialize;

    function Is_At_End return Boolean is
    begin
        return End_Of_File;
    end Is_At_End;

    procedure Next is
    begin
        if Look_A_Head then
            Look_A_Head := False;
        elsif not End_Of_File and not End_Of_Line then
            Get (Current_Character);
        elsif End_Of_File then
            Current_Character := Ascii.Eot;
        else
            Current_Character := Ascii.Lf;
            Skip_Line;
        end if;
        Current_Character_Column := Current_Character_Column + 1;
        if Current_Character = Ascii.Lf then
            Previous_Character_Column := Current_Character_Column;
            Current_Character_Column := 0;
            Current_Character_Line := Current_Character_Line + 1;
        end if;
    end Next;

    function Get_Value return Character is
    begin
        return Current_Character;
    end Get_Value;

    procedure Unget is
    begin
        Look_A_Head := True;
        Current_Character_Column := Current_Character_Column - 1;
        if Current_Character = Ascii.Lf then
            Current_Character_Column := Previous_Character_Column;
            Current_Character_Line := Current_Character_Line - 1;
        end if;
    end Unget;

    function Get_Line return Integer is  
    begin
        return Integer (Current_Character_Line);
    end Get_Line;

    function Get_Column return Integer is
    begin
        return Integer (Current_Character_Column);
    end Get_Column;

end File;

E3 Meta Data

    nblk1=4
    nid=2
    hdr6=4
        [0x00] rec0=24 rec1=00 rec2=01 rec3=064
        [0x01] rec0=21 rec1=00 rec2=04 rec3=000
        [0x02] rec0=0a rec1=00 rec2=03 rec3=000
        [0x03] rec0=03 rec1=bc rec2=b9 rec3=442
    tail 0x2173e4d3086045bfde1fb 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 03 00 50 80 22 65 72 20 28 43 75 72 72 65 6e  ┆   P "er (Curren┆
  0x3: 0000  00 00 00 f1 00 00 00 00 29 20 20 20 20 66 75 6e  ┆        )    fun┆