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

⟦efabf63df⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Stack, seg_0564ce

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



generic

    type Item is private;

    with procedure Afficher (I : in Item) is <>;

package Stack is

    Maxitem : constant Integer := 100;

    type Indice is range 1 .. Maxitem;

    type Objet (Taille : Indice) is private;

    procedure Creation (O : in out Objet);
    procedure Destruction (O : in out Objet);

    procedure Push (O : in out Objet; I : in Item);
    procedure Pop (O : in out Objet);

    procedure Top (O : in Objet; I : out Item);
    function Vide (O : in Objet) return Boolean;
    function Pleine (O : in Objet) return Boolean;

    procedure Afficher (O : in Objet);


    Overflow : exception;

private

    type Vector is array (Indice range <>) of Item;

    type Objet (Taille : Indice) is
        record
            Pile : Vector (1 .. Taille);
            Sp : Indice := 1;
        end record;

end Stack;

E3 Meta Data

    nblk1=2
    nid=2
    hdr6=2
        [0x00] rec0=2a rec1=00 rec2=01 rec3=000
        [0x01] rec0=00 rec1=12 rec2=61 rec3=481
    tail 0x2154da17a87c438755e06 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 00 00 03 00 00 00 01 00 00 00 00 00 00 00 00  ┆                ┆