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

⟦35265eee5⟧ Ada Source

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

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;
with Bug;
package body File is

    Lookahead : Boolean;
    Current_Char : Character;
    The_File : Text_Io.File_Type;
    Include_File : Text_Io.File_Type;
    Read : Text_Io.File_Mode := Text_Io.In_File;

    function Is_Include_Open return Boolean is
    begin
        return Text_Io.Is_Open (Include_File);
    end Is_Include_Open;

    procedure Open (Fichier_Name : String) is
    begin
        Lookahead := False;
        if Text_Io.Is_Open (Include_File) then
            raise Bug.Too_Many_Includes;
        elsif Text_Io.Is_Open (The_File) then
            Text_Io.Open (File => Include_File,
                          Mode => Read,
                          Name => Fichier_Name,
                          Form => "");
            Text_Io.Set_Input (Include_File);
        else
            Text_Io.Open (File => The_File,
                          Mode => Read,
                          Name => Fichier_Name,
                          Form => "");
            Text_Io.Set_Input (The_File);
        end if;
    end Open;

    procedure Close is
    begin
        if Is_Include_Open then
            Text_Io.Close (File => Include_File);
            Text_Io.Set_Input (The_File);
        else
            Text_Io.Close (File => The_File);
        end if;
    end Close;

    function End_Of_Line return Boolean is
    begin
        return Text_Io.End_Of_Line;
    end End_Of_Line;

    function At_End return Boolean is
    begin
        if Lookahead then
            return False;
        else
            return Text_Io.End_Of_File;
        end if;
    end At_End;

    procedure Next is
    begin
        if (Lookahead) then
            Lookahead := False;
        elsif End_Of_Line then
            Text_Io.Skip_Line;
            Current_Char := Ascii.Cr;
        else
            Text_Io.Get (Current_Char);
        end if;
    end Next;

    function Value return Character is
    begin
        return Current_Char;
    end Value;

    function Get return Character is
    begin
        Next;
        return Value;
    end Get;

    procedure Unget is
    begin
        Lookahead := True;
    end Unget;







end File;


E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=20 rec1=00 rec2=01 rec3=022
        [0x01] rec0=05 rec1=00 rec2=02 rec3=020
        [0x02] rec0=29 rec1=00 rec2=04 rec3=048
        [0x03] rec0=13 rec1=00 rec2=03 rec3=000
    tail 0x21732bfc484dd5e9dbffe 0x42a00088462060003