|
|
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: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Delete, seg_03b0b1, separate Plant
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Leaf;
with Vegetable;
separate (Plant)
procedure Delete (This_Object : in out Object; Marker : Boolean := False) is
Parent_1 : Root.Object := Get_Origin (This_Object);
Child_1 : Vegetable.Object;
A_List_Of_Leaves : Ref_Of_Leaves := Get_Leaves (This_Object);
A_Leaf : Leaf.Object;
begin
case This_Object.Offspring is
when 0 =>
Log_Report.Trace
("plant delete : prealable destruction of " &
Natural'Image (Arg_Number (A_List_Of_Leaves)) & "leaves");
Init (A_List_Of_Leaves);
while not Done (A_List_Of_Leaves) loop
A_Leaf := Value (A_List_Of_Leaves);
Leaf.Delete (A_Leaf);
Next (A_List_Of_Leaves);
end loop;
Free (A_List_Of_Leaves);
Free (This_Object);
Log_Report.Trace
("plant delete : no sub-class, free state and root delete");
Root.Delete (Parent_1, True);
when 1 =>
if not Marker then
Log_Report.Trace ("plant delete : call vegetable delete");
Child_1 := Vegetable.Protected_Conv (Get_Heir (This_Object));
Vegetable.Delete (Child_1);
else
Log_Report.Trace
("plant delete : prealable destruction of " &
Natural'Image (Arg_Number (A_List_Of_Leaves)) & " leaves");
Init (A_List_Of_Leaves);
while not Done (A_List_Of_Leaves) loop
A_Leaf := Value (A_List_Of_Leaves);
Leaf.Delete (A_Leaf);
Next (A_List_Of_Leaves);
end loop;
Free (A_List_Of_Leaves);
Free (This_Object);
Log_Report.Trace
("plant delete : free state and call root delete");
Root.Delete (Parent_1, True);
end if;
when others =>
raise Oo_Ada_Exception.Offspring_Error;
end case;
end Delete;
nblk1=4
nid=2
hdr6=6
[0x00] rec0=21 rec1=00 rec2=01 rec3=098
[0x01] rec0=18 rec1=00 rec2=03 rec3=032
[0x02] rec0=0b rec1=00 rec2=04 rec3=000
[0x03] rec0=08 rec1=00 rec2=02 rec3=000
tail 0x21533af7a851272d4faa1 0x42a00088462060003
Free Block Chain:
0x2: 0000 00 00 00 6f 80 09 6f 74 68 65 72 73 20 3d 3e 09 ┆ o others => ┆