|
|
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 Fifo, seg_054a05
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Text_Io;
package body Fifo is
function New_Cells (I : Integer) return Acces_Cells is
Result : Acces_Cells;
begin
if Free_Cells = null then
Result := new Cell;
else
Result := Free_Cells;
Free_Cells := Free_Cells.Next;
end if;
Result.all := Cell'(I, null);
return Result;
exception
when Storage_Error =>
raise Overflow;
end New_Cells;
procedure Old_Cell (Old : in out Acces_Cells) is
begin
Old.Next := Free_Cells;
Free_Cells := Old;
Old := null;
end Old_Cell;
procedure De_Queue (F : in out Object; I : out Integer) is
Old : Acces_Cells;
begin
if F.Head = null then
raise Underflow;
end if;
I := F.Head.Value;
Old := F.Head;
if F.Head = null then
F.Tail := null;
end if;
Old_Cell (Old);
end De_Queue;
procedure En_Queue is
begin
[statement]
end En_Queue;
begin
for I in 1 .. 100 loop
Free_Cells := new Cell'(0, Free_Cells);
end loop;
exception
when Storage_Error =>
Text_Io.Put_Line ("fatal error in fifo allocation");
end Fifo;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=27 rec1=00 rec2=01 rec3=022
[0x01] rec0=0f rec1=00 rec2=02 rec3=000
tail 0x2175db4f087b8888e5377 0x42a00088462060003