some code clean-up

This commit is contained in:
2021-10-27 16:16:36 +00:00
parent 21c94d5ead
commit b7de031e72
8 changed files with 22 additions and 24 deletions

View File

@ -2,7 +2,7 @@ with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
package body H3.Pool is
function Allocate (Pool: in Storage_Pool_Pointer := null) return Pointer_Type is
P: Storage_Pool_Pointer;
@ -24,11 +24,11 @@ package body H3.Pool is
begin
Tmp := new Normal_Type;
return To_Pointer_Type(Tmp);
end;
end;
end if;
end Allocate;
-- function Allocate (Source: in Normal_Type;
-- function Allocate (Source: in Normal_Type;
-- Pool: in Storage_Pool_Pointer := null) return Pointer_Type is
-- V: Pointer_Type;
-- begin
@ -37,7 +37,7 @@ package body H3.Pool is
-- return V;
-- end Allocate;
function Allocate (Source: in Normal_Type;
function Allocate (Source: in Normal_Type;
Pool: in Storage_Pool_Pointer := null) return Pointer_Type is
P: Storage_Pool_Pointer;
begin
@ -58,7 +58,7 @@ package body H3.Pool is
begin
Tmp := new Normal_Type'(Source);
return To_Pointer_Type(Tmp);
end;
end;
end if;
end Allocate;