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

⟦4bcadcba9⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Set_Of_Links, seg_04229b

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



with Binary_Trees_Pkg, Bounded_String;
use Bounded_String;

package Set_Of_Links is

    Duplicate_Value : exception;

    type Object is private;

    type Lock is (No_State, Linked, Unlinked);

    procedure Create (Set : in out Object);
    procedure Destroy (Set : in out Object);

    procedure Add_New (First_Item, Second_Item : String;
                       Link_State : Lock;
                       Set : in out Object);

    procedure Modify_State (First_Item, Second_Item : String;
                            Link_State : Lock;
                            Set : in out Object);

    procedure Exchange (First_Item, Second_Item, Third_Item : String;
                        Set : in out Object);

    function Exist (First_Item, Second_Item : String; Set : Object)
                   return Boolean;

    procedure List (Item : String; Link_State : Lock; Set : Object);

    function What_State
                (First_Item, Second_Item : String; Set : Object) return Lock;

    procedure Dump (Set : Object);

private

    type Link is
        record
            First : Variable_String (32);
            Second : Variable_String (32);
            State : Lock;
        end record;

    function Compare (A, B : Link) return Integer;

    package Links_Tree is new Binary_Trees_Pkg (Link, Compare);

    type Object is
        record
            Root : Links_Tree.Tree;
        end record;

end Set_Of_Links;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=21 rec1=00 rec2=01 rec3=05c
        [0x01] rec0=17 rec1=00 rec2=02 rec3=001
    tail 0x2153d26608629719666cd 0x42a00088462060003