DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T V

⟦c59cab056⟧ TextFile

    Length: 812 (0x32c)
    Types: TextFile
    Names: »V«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

generic  
    Max_Size : Positive := 1000;    -- taille maximum absolue par defaut
    type Item is private;
package Stack_Generic is  
    subtype Stack_Size is Positive range 1 .. Max_Size;
    type Object (Size : Stack_Size := 10) is limited private;

    procedure Push (The_Element : in Item; On : in out Object);  
    procedure Pop (The_Element : out Item; From : in out Object);

    function Is_Empty (The_Stack : Object) return Boolean;
    function Is_Full (The_Stack : Object) return Boolean;

    Empty, Full : exception;

private

    type Element is array (Positive range <>) of Item;
    Vide : constant Integer := 0;

    type Object (Size : Stack_Size := 10) is
        record
            Top : Natural := Vide;
            Content : Element (1 .. Size);

        end record;
end Stack_Generic;