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: ┃ B S T

⟦1ab3a462f⟧ TextFile

    Length: 780 (0x30c)
    Types: TextFile
    Names: »B«, »STACK_ADB«

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

with Text_Io;
package body Stack_Generic is
    I : Stack_Range := 1;
    procedure Push (A_Stack : in out Object; An_Element : in Element) is
    begin
        if not (A_Stack.The_Top = A_Stack.Size + 1) then
            A_Stack.The_Content (A_Stack.The_Top) := An_Element;
            A_Stack.The_Top := A_Stack.The_Top + 1;
        else
            Text_Io.Put_Line ("La pile est pleine");
        end if;
    end Push;


    procedure Pop (A_Stack : in out Object; An_Element : out Element) is
    begin
        if not (A_Stack.The_Top = 1) then
            An_Element := A_Stack.The_Content (A_Stack.The_Top);
            A_Stack.The_Top := A_Stack.The_Top - 1;
        else
            Text_Io.Put_Line ("La pile est vide");
        end if;
    end Pop;


end Stack_Generic;