|
|
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 File_Attente, seg_05a2db
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
package body File_Attente is
function Suivant (I : Integer) return Integer is
begin
return (I mod Longueur_Max) + 1;
end Suivant;
procedure Raz (File_Attente : in out Objet) is
begin
File_Attente.Tete := 1;
File_Attente.Queue := Longueur_Max;
end Raz;
function Est_Vide (File_Attente : Objet) return Boolean is
begin
if Suivant (File_Attente.Queue) = File_Attente.Tete then
return True;
else
return False;
end if;
end Est_Vide;
function Element_Tete (File_Attente : Objet) return Element is
begin
if Est_Vide (File_Attente) then
raise File_Vide;
else
return File_Attente.Tableau (File_Attente.Tete);
end if;
end Element_Tete;
procedure Enfiler (File_Attente : in out Objet; Elem : Element) is
begin
if Suivant (Suivant (File_Attente.Queue)) = File_Attente.Tete then
raise File_Pleine;
else
File_Attente.Queue := Suivant (File_Attente.Queue);
File_Attente.Tableau (File_Attente.Queue) := Elem;
end if;
end Enfiler;
procedure Defiler (File_Attente : in out Objet) is
begin
if Est_Vide (File_Attente) then
raise File_Vide;
else
File_Attente.Tete := Suivant (File_Attente.Tete);
end if;
end Defiler;
-- function Taille (File_Attente : Objet) return Integer is
-- Taille : Integer;
-- begin
-- Taille := File_Attente.Queue - File_Attente.Queue;
-- if Taille < 0 then
-- Taille := Taille * (-1);
-- end if;
-- return Taille;
-- end Taille;
end File_Attente;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=24 rec1=00 rec2=01 rec3=082
[0x01] rec0=1c rec1=00 rec2=02 rec3=001
tail 0x21769c04289249172c38e 0x42a00088462060003