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

⟦503ef418b⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body String_Table, seg_04476d

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 String_Table is

    function Egal (Left, Right : in I_String) return Boolean is
    begin
        return Bounded_String.Image (Left) = Bounded_String.Image (Right);
    end Egal;

    procedure Init (A_Table : in out I_Table) is
    begin
        for I in A_Table'Range loop
            A_Table (I) := Int_List.Create;
        end loop;
    end Init;

    procedure Image (A_Table : in I_Table) is
        Tmp_String : I_String;
        Iterator : Int_List.Listiter;
    begin
        for I in A_Table'Range loop
            if not Int_List.Isempty (A_Table (I)) then
                Iterator := Int_List.Makelistiter (A_Table (I));
                while Int_List.More (Iterator) loop
                    Int_List.Next (Iterator, Tmp_String);
                    Text_Io.Put (Bounded_String.Image (Tmp_String));
                    Text_Io.Put (" ");
                end loop;
                Text_Io.New_Line;
            end if;
        end loop;
    end Image;

    procedure Put (In_Table : in out I_Table;
                   At_Index : Natural;
                   The_String : String) is
        Tmp_String : I_String;
    begin
        Bounded_String.Copy (Tmp_String, The_String);
        Int_List.Attach (Tmp_String, In_Table (At_Index));
    end Put;

end String_Table;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1e rec1=00 rec2=01 rec3=01a
        [0x01] rec0=0d rec1=00 rec2=02 rec3=001
    tail 0x217458f0e863e89a89773 0x42a00088462060003