|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Generic_Stack, seg_047511
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
package body Generic_Stack is
procedure Push (The_Stack : in out Object; X : in Element) is
P : Object;
begin
P := new Node'(Content => X, Next => The_Stack);
The_Stack := P;
end Push;
procedure Pop (The_Stack : in out Object) is
P : Object;
begin
The_Stack := The_Stack.Next; -- on perd le premier element
-- dans le ramasse miette
exception
when Constraint_Error =>
raise Stack_Is_Empty;
end Pop;
function Is_Empty (The_Stack : in Object) return Boolean is
begin
return (The_Stack = null);
end Is_Empty;
function Consult (The_Stack : in Object) return Element is
begin
return The_Stack.Content;
end Consult;
procedure Dispose (The_Stack : in out Object) is
begin
The_Stack := null;
end Dispose;
end Generic_Stack;
nblk1=2
nid=2
hdr6=2
[0x00] rec0=25 rec1=00 rec2=01 rec3=000
[0x01] rec0=05 rec1=00 rec2=02 rec3=001
tail 0x215444c3e8653933aced6 0x42a00088462060003
Free Block Chain:
0x2: 0000 00 00 00 03 00 00 00 01 00 00 00 00 00 00 00 00 ┆ ┆