OSDN Git Service

New Language: Ada
[pf3gnuchains/gcc-fork.git] / gcc / ada / s-atacco.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 -- S Y S T E M . A D D R E S S _ T O _ A C C E S S _ C O N V E R S I O N S  --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --                            $Revision: 1.3 $                              --
10 --                                                                          --
11 -- This specification is adapted from the Ada Reference Manual for use with --
12 -- GNAT.  In accordance with the copyright of that document, you can freely --
13 -- copy and modify this specification,  provided that if you redistribute a --
14 -- modified version,  any changes that you have made are clearly indicated. --
15 --                                                                          --
16 ------------------------------------------------------------------------------
17
18 generic
19    type Object (<>) is limited private;
20
21 package System.Address_To_Access_Conversions is
22 pragma Preelaborate (Address_To_Access_Conversions);
23
24    type Object_Pointer is access all Object;
25    for Object_Pointer'Size use Standard'Address_Size;
26
27    function To_Pointer (Value : Address)        return Object_Pointer;
28    function To_Address (Value : Object_Pointer) return Address;
29
30    pragma Convention (Intrinsic, To_Pointer);
31    pragma Convention (Intrinsic, To_Address);
32
33 end System.Address_To_Access_Conversions;