|
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: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Instancecounter, seg_00e3d7
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦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=4 nid=0 hdr6=8 [0x00] rec0=21 rec1=00 rec2=01 rec3=042 [0x01] rec0=01 rec1=00 rec2=03 rec3=032 [0x02] rec0=20 rec1=00 rec2=04 rec3=020 [0x03] rec0=0b rec1=00 rec2=02 rec3=000 tail 0x2150a01ca821e40d013f4 0x42a00088462063c03