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

⟦f30009462⟧ Ada Source

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

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


    function Compare (A, B : P_String.Variable_String) return Integer is

    begin

        if (P_String.Image (A) < P_String.Image (B)) then

            return -1;  
        elsif (P_String.Image (A) > P_String.Image (B)) then

            return +1;
        else

            return 0;
        end if;

    end Compare;



    procedure Main is

        Arbre : Arbre_Binaire.Tree;
        I : P_String.Variable_String;

    begin

        Arbre := Arbre_Binaire.Create;
        if Arbre_Binaire.Is_Empty (Arbre) then
            Text_Io.Put_Line ("arbre vide");
        end if;
        P_String.Copy (I, "bbbb");
        Arbre_Binaire.Insert (I, Arbre);

        P_String.Copy (I, "aaaa");
        Text_Io.Put_Line (P_String.Image (I));
        Arbre_Binaire.Insert (I, Arbre);
        Arbre_Binaire.Destroy (Arbre);
    end Main;

end Test_Tree_Pac;



E3 Meta Data

    nblk1=2
    nid=2
    hdr6=2
        [0x00] rec0=2f rec1=00 rec2=01 rec3=000
        [0x01] rec0=08 rec1=00 rec2=02 rec3=001
    tail 0x21744b0a8863b5a947faf 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 00 00 15 80 09 54 72 65 65 5f 50 61 63 3b 09  ┆      Tree_Pac; ┆