Debian Codegraph @

gcc/ada/libgnat/a-uncdea.ads

raw
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- A D A . U N C H E C K E D _ D E A L L O C A T I O N --
6 -- --
7 -- S p e c --
8 -- --
9 -- This specification is derived from the Ada Reference Manual for use with --
10 -- GNAT. In accordance with the copyright of that document, you can freely --
11 -- copy and modify this specification, provided that if you redistribute a --
12 -- modified version, any changes that you have made are clearly indicated. --
13 -- --
14 ------------------------------------------------------------------------------
15
16 -- This package is defined by ARM 13.11.2 to implement unchecked storage
17 -- deallocation of an object designated by a value of an access type.
18
19 generic
20 type Object (<>) is limited private;
21 type Name is access Object;
22
23 procedure Ada.Unchecked_Deallocation (X : in out Name) with
24 Depends => (X => null, -- X on exit does not depend on its input value
25 null => X), -- X's input value has no effect
26 Post => X = null; -- X's output value is null
27 -- Deallocate object denoted by X, and set X to null.
28
29 pragma Preelaborate (Unchecked_Deallocation);
30
31 pragma Import (Intrinsic, Ada.Unchecked_Deallocation);