home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / adav313.zip / gnat-3_13p-os2-bin-20010916.zip / emx / gnatlib / s-atacco.ads < prev    next >
Text File  |  2000-07-19  |  2KB  |  34 lines

  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;
  34.