begin
Inst := Scope (Subp);
- -- Find enclosing instance.
+ -- Find enclosing instance
while Present (Inst) and then Inst /= Standard_Standard loop
exit when Is_Generic_Instance (Inst);
null;
else
- -- The instantiation node follows the package
- -- declaration for the instance. If the generic
- -- unit had aspect specifications, they have
- -- been transformed into pragmas in the instance,
- -- and the instance node appears after them.
+ -- The instantiation node usually follows the package
+ -- declaration for the instance. If the generic unit
+ -- has aspect specifications, they are transformed
+ -- into pragmas in the instance, and the instance node
+ -- appears after them.
Inst_Node := Next (Decl);
function Alloc (Size : size_t) return System.Address is
Result : System.Address;
+
begin
if Parameters.No_Abort then
Result := c_malloc (System.CRTL.size_t (Size));
end if;
if Result = System.Null_Address then
+
-- If Size = 0, we can't allocate 0 bytes, because then two different
-- allocators, one of which has Size = 0, could return pointers that
-- compare equal, which is wrong. (Nonnull pointers compare equal if