|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 2171 (0x87b)
Types: TextFile
Names: »B«
└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
└─⟦124ff5788⟧ »DATA«
└─⟦this⟧
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
└─⟦129cab021⟧ »DATA«
└─⟦this⟧
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
└─⟦6f12a12be⟧ »DATA«
└─⟦this⟧
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
└─⟦d65440be7⟧ »DATA«
└─⟦this⟧
package body Point_D_Arret is
-- CONSTANTES ------------------------------------------------------------
Nb_Max : constant Positive := 10;
-- TYPES -----------------------------------------------------------------
subtype T_Taille_Liste is Positive range 1 .. Nb_Max;
type T_Element is
record
Actif : Boolean := False;
Position : Adresse.T_Adresse;
end record;
type T_Tab_Element is array (T_Taille_Liste) of T_Element;
-- VARIABLES ------------------------------------------------------------
Tab_Point_D_Arret : T_Tab_Element :=
(others => (Actif => False, Position => 0));
-- PROCEDURES -----------------------------------------------------------
procedure Reset is
begin
for I in T_Taille_Liste loop
Tab_Point_D_Arret (I).Actif := False;
Tab_Point_D_Arret (I).Position := 0;
end loop;
end Reset;
----------------------------------------------
procedure Set (Une_Adresse : Adresse.T_Adresse) is
begin
for I in T_Taille_Liste loop
if not Tab_Point_D_Arret (I).Actif then
Tab_Point_D_Arret (I).Actif := True;
Tab_Point_D_Arret (I).Position := Une_Adresse;
exit;
end if;
end loop;
end Set;
----------------------------------------------
function Test (Une_Adresse : Adresse.T_Adresse) return Boolean is
begin
for I in T_Taille_Liste loop
if Tab_Point_D_Arret (I).Actif and then
Tab_Point_D_Arret (I).Position = Une_Adresse then
return True;
end if;
end loop;
return False;
end Test;
procedure Remove (Une_Adresse : Adresse.T_Adresse) is
begin
for I in T_Taille_Liste loop
if Tab_Point_D_Arret (I).Actif and then
Tab_Point_D_Arret (I).Position = Une_Adresse then
Tab_Point_D_Arret (I).Actif := False;
Tab_Point_D_Arret (I).Position := 0;
exit;
end if;
end loop;
end Remove;
begin
Reset;
end Point_D_Arret;