Commit c408fb34 by Arnaud Charlet

Minor reformatting.

From-SVN: r235747
parent a56886e9
...@@ -3977,7 +3977,7 @@ package body Exp_Ch6 is ...@@ -3977,7 +3977,7 @@ package body Exp_Ch6 is
begin begin
Inst := Scope (Subp); Inst := Scope (Subp);
-- Find enclosing instance. -- Find enclosing instance
while Present (Inst) and then Inst /= Standard_Standard loop while Present (Inst) and then Inst /= Standard_Standard loop
exit when Is_Generic_Instance (Inst); exit when Is_Generic_Instance (Inst);
...@@ -4002,11 +4002,11 @@ package body Exp_Ch6 is ...@@ -4002,11 +4002,11 @@ package body Exp_Ch6 is
null; null;
else else
-- The instantiation node follows the package -- The instantiation node usually follows the package
-- declaration for the instance. If the generic -- declaration for the instance. If the generic unit
-- unit had aspect specifications, they have -- has aspect specifications, they are transformed
-- been transformed into pragmas in the instance, -- into pragmas in the instance, and the instance node
-- and the instance node appears after them. -- appears after them.
Inst_Node := Next (Decl); Inst_Node := Next (Decl);
......
...@@ -67,6 +67,7 @@ package body System.Memory is ...@@ -67,6 +67,7 @@ package body System.Memory is
function Alloc (Size : size_t) return System.Address is function Alloc (Size : size_t) return System.Address is
Result : System.Address; Result : System.Address;
begin begin
if Parameters.No_Abort then if Parameters.No_Abort then
Result := c_malloc (System.CRTL.size_t (Size)); Result := c_malloc (System.CRTL.size_t (Size));
...@@ -77,6 +78,7 @@ package body System.Memory is ...@@ -77,6 +78,7 @@ package body System.Memory is
end if; end if;
if Result = System.Null_Address then if Result = System.Null_Address then
-- If Size = 0, we can't allocate 0 bytes, because then two different -- If Size = 0, we can't allocate 0 bytes, because then two different
-- allocators, one of which has Size = 0, could return pointers that -- allocators, one of which has Size = 0, could return pointers that
-- compare equal, which is wrong. (Nonnull pointers compare equal if -- compare equal, which is wrong. (Nonnull pointers compare equal if
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment