|
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 - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Abonnement_Storage, seg_05486b
└─⟦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 Abonnement_Storage is type Abonnement is record State : Boolean := False; Name : T_Host_Id; Socket : T_Socket; end record; Max : constant := 100; type Abonnement_Table is array (1 .. Max) of Abonnement; Table : Abonnement_Table; function Add (Name : T_Host_Id; Socket : T_Socket) return Natural is I : Natural := 1; Id : Natural := 0; begin while (Table (I).State) and (I /= Table'Last) loop I := I + 1; end loop; if I = Table'Last then Text_Io.Put_Line ("Le tableau des abonnes est plein..."); Id := 0; else Id := I; Table (Id).State := True; Table (Id).Name := Name; Table (Id).Socket := Socket; end if; return Id; end Add; procedure Delete (Id : Natural) is begin Table (Id).State := False; end Delete; function See_Name (Id : Natural) return T_Host_Id is begin return Table (Id).Name; end See_Name; function See_Socket (Id : Natural) return T_Socket is begin return Table (Id).Socket; end See_Socket; function See_State (Id : Natural) return Natural is Result : Natural := 0; begin if Table (Id).State then Result := 1; else Result := 0; end if; return Result; end See_State; end Abonnement_Storage;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=26 rec1=00 rec2=01 rec3=00a [0x01] rec0=1b rec1=00 rec2=02 rec3=000 tail 0x2175d99bc87b8869fcacc 0x42a00088462060003