|
|
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: 4096 (0x1000)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Instancecounter, seg_00c7ea
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
package body Instancecounter is
Numobject : Long_Integer := 0;
Sizeclass : constant Positive := Classname'Length;
Numclass : Natural := 0;
Namesclass : array (1 .. 30) of String (1 .. Sizeclass);
Sizecontext : constant Positive := Contextname'Length;
Numcontext : Natural := 0;
Namescontext : array (1 .. 30) of String (1 .. Sizecontext);
function Newobject return Long_Integer is
begin
Numobject := Numobject + 1;
return Numobject;
end Newobject;
function Newclass (Name : Classname) return Positive is
Ln : Positive := 1;
Aname : String (1 .. Sizeclass);
begin
Numclass := Numclass + 1;
if Name'Length > Sizeclass then
Ln := Sizeclass;
else
Ln := Name'Length;
end if;
Aname (1 .. Ln) := Name (1 .. Ln);
Ln := Ln + 1;
while Ln <= Sizeclass loop
Aname (Ln) := ' ';
Ln := Ln + 1;
end loop;
Namesclass (Numclass) := Aname;
return Numclass;
end Newclass;
function Newcontext (Name : Contextname) return Positive is
Ln : Positive := 1;
Aname : String (1 .. Sizecontext);
begin
Numcontext := Numcontext + 1;
if Name'Length > Sizecontext then
Ln := Sizecontext;
else
Ln := Name'Length;
end if;
Aname (1 .. Ln) := Name (1 .. Ln);
Ln := Ln + 1;
while Ln <= Sizecontext loop
Aname (Ln) := ' ';
Ln := Ln + 1;
end loop;
Namescontext (Numcontext) := Aname;
return Numcontext;
end Newcontext;
function Contextnumber (Name : Contextname) return Natural is
begin
for I in 1 .. Numcontext loop
if Name = Namescontext (I) then
return (I);
end if;
end loop;
return (0);
end Contextnumber;
function Unknownclassname (Number : Natural) return Classname is
begin
return Namesclass (Number);
end Unknownclassname;
end Instancecounter;
nblk1=3
nid=0
hdr6=6
[0x00] rec0=23 rec1=00 rec2=01 rec3=00a
[0x01] rec0=21 rec1=00 rec2=02 rec3=026
[0x02] rec0=09 rec1=00 rec2=03 rec3=001
tail 0x21709840482074ab30b2b 0x42a00088462060003