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

⟦2a76c2ad6⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Source, seg_035f30, seg_0379b7, separate Error

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 (Error)
package body Source is

    Max : constant := 255;

    The_File : Text_Io.File_Type;
    Current_Line : Natural := 1;
    The_String : String (1 .. Max);
    Length : Natural := 0;




    procedure Open (Source_File_Name : String) is
    begin
        Text_Io.Open (File => The_File,
                      Mode => Text_Io.In_File,
                      Name => Source_File_Name,
                      Form => "");
    end Open;


    procedure Close is
    begin
        Text_Io.Close (The_File);
    end Close;


    procedure Next_Line is
    begin
        Length := 0;
        while not Text_Io.End_Of_Line (The_File) loop  
            Length := Length + 1;
            Text_Io.Get (The_File, The_String (Length));
        end loop;
        Text_Io.Skip_Line (The_File);
        Current_Line := Current_Line + 1;
    end Next_Line;


    function Image return String is
    begin
        return String (The_String (1 .. Length));
    end Image;


    function Line return Natural is
    begin
        return Current_Line - 1;
    end Line;


    function End_Of_File return Boolean is
    begin
        return Text_Io.End_Of_File (The_File);
    end End_Of_File;

end Source;




E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=2c rec1=00 rec2=01 rec3=036
        [0x01] rec0=14 rec1=00 rec2=02 rec3=001
    tail 0x2152f59a284dd6876af56 0x42a00088462060003