source: rtems/c/src/ada-tests/support/address_io.adb @ 93bd518

4.104.114.84.95
Last change on this file since 93bd518 was 93bd518, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 3, 1997 at 6:07:51 PM

new files

  • Property mode set to 100644
File size: 954 bytes
Line 
1--
2--  Address_IO / Specification
3--
4--  DESCRIPTION:
5--
6--  This package instantiates the IO routines necessary to
7--  perform IO on data of the type System.Address.
8--
9--  DEPENDENCIES:
10--
11-- 
12--
13--  COPYRIGHT (c) 1989-1997.
14--  On-Line Applications Research Corporation (OAR).
15--  Copyright assigned to U.S. Government, 1994.
16--
17--  The license and distribution terms for this file may in
18--  the file LICENSE in this distribution or at
19--  http://www.OARcorp.com/rtems/license.html.
20--
21--  $Id$
22--
23
24with System;
25with System.Storage_Elements;
26with Text_IO;
27
28package body Address_IO is
29
30   procedure Put (
31      Item  : in     System.Address;
32      Width : in     Natural := 8;
33      Base  : in     Natural := 16
34   ) is
35     package Integer_IO is new TEXT_IO.Integer_IO( Integer );
36   begin
37
38      Integer_IO.Put(
39         Integer( System.Storage_Elements.To_Integer( Item ) ),
40         Width,
41         Base
42      );
43
44   end Put;
45
46end Address_IO;
47
Note: See TracBrowser for help on using the repository browser.