|
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 Arbre_Variables, seg_04963e
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Binary_Trees_Pkg, Our_String, Text_Io; use Our_String; package body Arbre_Variables is Current_Variable : Variable; function Compare (Variable1, Variable2 : Variable) return Integer is begin if Image (Variable1.Name) < Image (Variable2.Name) then return -1; else if Image (Variable1.Name) = Image (Variable2.Name) then return 0; else return 1; end if; end if; end Compare; procedure Write (V : Variable) is begin Text_Io.Put_Line ("name->" & Image (V.Name) & " base->" & Image (V.The_Type)); end Write; procedure Show is new Variables_Tree.Visit (Write); function Affect_Variable (Name, The_Type : String) return Variable is Tmp_Variable : Variable; begin Our_String.Free (Tmp_Variable.Name); Our_String.Free (Tmp_Variable.The_Type); Our_String.Copy (Tmp_Variable.Name, Name); Our_String.Copy (Tmp_Variable.The_Type, The_Type); return Tmp_Variable; end Affect_Variable; procedure Create (Dico_Var : in out Object) is begin Dico_Var.Root1 := Variables_Tree.Create; end Create; procedure Destroy (Dico_Var : in out Object) is begin Variables_Tree.Destroy (Dico_Var.Root1); end Destroy; procedure Add_Variable (Dico_Var : Object) is begin Variables_Tree.Insert (Affect_Variable (Image (Current_Variable.Name), Image (Current_Variable.The_Type)), Dico_Var.Root1); end Add_Variable; procedure Dump (Dico_Var : Object) is begin Show (Dico_Var.Root1, Variables_Tree.Inorder); end Dump; end Arbre_Variables;
nblk1=4 nid=4 hdr6=4 [0x00] rec0=23 rec1=00 rec2=01 rec3=002 [0x01] rec0=26 rec1=00 rec2=03 rec3=000 [0x02] rec0=08 rec1=00 rec2=04 rec3=000 [0x03] rec0=04 rec1=18 rec2=0b rec3=042 tail 0x21546bffc865e5b476bdf 0x42a00088462060003 Free Block Chain: 0x4: 0000 00 02 00 03 00 00 00 00 00 00 00 00 00 00 00 00 ┆ ┆ 0x2: 0000 00 00 00 3f 80 03 72 29 3b 03 00 0d 20 20 20 20 ┆ ? r); ┆