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

⟦ae19881d6⟧ Ada Source

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

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



package body Fichier_Io is
    procedure Open (Fichier_Source : in out Text_Io.File_Type;
                    Name : in String := "Chtiny_Talk") is
    begin
        Text_Io.Open (Fichier_Source, Text_Io.In_File, Name);
        Look_Ahead := False;
    end Open;

    function At_End (Fichier_Source : in Text_Io.File_Type) return Boolean is
    begin
        if (Look_Ahead) then
            return False;
        else
            return Text_Io.End_Of_File (Fichier_Source);
        end if;
    end At_End;

    function At_Line (Fichier_Source : in Text_Io.File_Type) return Boolean is
    begin
        if (Look_Ahead) then
            return False;
        else
            return Text_Io.End_Of_Line (Fichier_Source);
        end if;
    end At_Line;

    procedure Next (Fichier_Source : in Text_Io.File_Type) is
        use Object;
    begin
        if (Look_Ahead) then
            Look_Ahead := False;
            if Current_Char = Ascii.Cr then
                Current_Line_Number := Current_Line_Number + 1;
            end if;
        elsif At_Line (Fichier_Source) then
            Current_Char := Ascii.Cr;
            Current_Line_Number := Current_Line_Number + 1;
            Text_Io.Skip_Line (Fichier_Source);
        else
            Text_Io.Get (Fichier_Source, Current_Char);
        end if;
    end Next;

    function Get (Fichier_Source : in Text_Io.File_Type) return Character is
    begin  
        Next (Fichier_Source);
        return Value (Fichier_Source);
    end Get;

    procedure Unget (Fichier_Source : in Text_Io.File_Type) is
        use Object;
    begin
        Look_Ahead := True;
        if Current_Char = Ascii.Cr then
            Current_Line_Number := Current_Line_Number - 1;
        end if;
    end Unget;

    function Value (Fichier_Source : in Text_Io.File_Type) return Character is
    begin
        return Current_Char;
    end Value;

    procedure Close (Fichier_Source : in out Text_Io.File_Type) is
    begin
        Text_Io.Close (Fichier_Source);
    end Close;

    function Get_Line_Number return Object.Index is
    begin
        return Current_Line_Number;
    end Get_Line_Number;

    procedure Put_Line_Number (Value : Object.Index) is
    begin
        Current_Line_Number := Value;
    end Put_Line_Number;

end Fichier_Io;


E3 Meta Data

    nblk1=4
    nid=2
    hdr6=6
        [0x00] rec0=21 rec1=00 rec2=01 rec3=050
        [0x01] rec0=20 rec1=00 rec2=04 rec3=01e
        [0x02] rec0=11 rec1=00 rec2=03 rec3=000
        [0x03] rec0=02 rec1=a7 rec2=85 rec3=142
    tail 0x2173348aa84de828bf017 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 00 00 7b 00 3b 20 20 20 20 20 20 20 20 20 20  ┆   { ;          ┆