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

⟦4d06433b7⟧ Ada Source

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

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



package body Files is

    procedure Enfiler (L : in out File; I : in Item) is
        Temp : Pointeur;
    begin  
        Temp := new Cellule'(Element => I, Suivant => null);
        if L.Tete = null then
            L.Tete := Temp;
        else
            L.Queue.Suivant := Temp;
        end if;
        L.Queue := Temp;
    end Enfiler;


    procedure Defiler (L : in out File; I : out Item) is
        procedure Liberer is new Unchecked_Deallocation (Cellule, Pointeur);
        Temp : Pointeur := new Cellule;
    begin
        Temp := L.Tete;
        if L.Tete = null then
            raise File_Vide;
        end if;
        I := L.Tete.Element;
        L.Tete := L.Tete.Suivant;
        Liberer (Temp);
        if L.Tete = null then
            L.Queue := null;
        end if;
    end Defiler;


    function Longueur (L : in File) return Naturel is
        Cpt : Naturel := 0;
        Temp : Pointeur := L.Tete;
    begin
        while Temp /= null loop
            Cpt := Cpt + 1;
            Temp := Temp.Suivant;
        end loop;
        return Cpt;
    end Longueur;

    function Est_Vide (L : in File) return Boolean is
    begin
        return (L.Tete = null);
    end Est_Vide;
end Files;

E3 Meta Data

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