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

⟦54504535f⟧ Ada Source

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

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



--| @SUMMARY Keeps track of holes left in a discrete range
package Discrete_Hole_Manager is

    type Hole_List is private;

    --| @DESCRIPTION Initialize Holes to be the range Lo..Hi
    procedure Init_Holes (Holes : out Hole_List; Lo, Hi : Long_Integer);

    --| @DESCRIPTION Delete Hole is unsuccessful iff Lo..Hi is not contained
    --| in Holes
    procedure Delete_Hole (Holes   : in out Hole_List;
                           Lo, Hi  :        Long_Integer;
                           Success : out    Boolean);

    --| @DESCRIPTION Holes is moved to the next item of the Hole_List
    procedure Next_Hole (Holes : in out Hole_List; Lo, Hi : out Long_Integer);

    --| @DESCRIPTION Usage is:
    --|            while More_Holes (My_list) loop
    --|               Next_Hole (My_List, Lo, Hi);
    --|               "Process" (Hi, Lo);
    --|            end loop;
    function More_Holes (Holes : Hole_List) return Boolean;

private
    type Hole_Descriptor is
        record
            Lo, Hi : Long_Integer;
            Next   : Hole_List;
        end record;

    type Hole_List is access Hole_Descriptor;

end Discrete_Hole_Manager;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1b rec1=00 rec2=01 rec3=026
        [0x01] rec0=09 rec1=00 rec2=02 rec3=000
    tail 0x21500437a815c65d9afcb 0x42a00088462061e03