|
|
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 Stockage_Observateur, seg_0548a0
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
package body Stockage_Observateur is
--------------------------------------------------------------------------
function Search (X : Natural) return Natural is
I : Natural := 0;
Trouve : Boolean := False;
begin
while I < Table'Last and Trouve = False loop
I := I + 1;
if Table (I).Value = X then
Trouve := True;
end if;
end loop;
if Trouve then
return I;
else
return 0;
end if;
end Search;
----------------------------------------------------------------------------
procedure Add (X : Natural) is
I : Natural := 1;
begin
while Table (I).Etat and I < Table'Last loop
I := I + 1;
end loop;
if I = Table'Last then
Text_Io.Put_Line ("Table des observateur pleine");
else
Table (I).Value := X;
Table (I).Etat := True;
end if;
end Add;
----------------------------------------------------------------------------
procedure Delete (X : Natural) is
Tmp : Natural := 0;
begin
Tmp := Search (X);
if Tmp = 0 then
Text_Io.Put_Line ("element non present dans la table");
else
Table (Tmp).Etat := False;
end if;
end Delete;
-----------------------------------------------------------------------------
procedure Affiche is
begin
Text_Io.Put_Line ("affichage des observateur");
end Affiche;
end Stockage_Observateur;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=23 rec1=00 rec2=01 rec3=034
[0x01] rec0=19 rec1=00 rec2=02 rec3=000
tail 0x2175d9d5487b886d99400 0x42a00088462060003