source: rtems/c/src/ada-tests/support/address_io.adb @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on May 3, 2012 at 3:09:24 PM

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 875 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-2009.
14--  On-Line Applications Research Corporation (OAR).
15--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.rtems.com/license/LICENSE.
19--
20
21with System.Storage_Elements;
22with Text_IO;
23
24package body Address_IO is
25
26   procedure Put (
27      Item  : in     System.Address;
28      Width : in     Natural := 8;
29      Base  : in     Natural := 16
30   ) is
31     package Integer_IO is new TEXT_IO.Integer_IO( Integer );
32   begin
33
34      Integer_IO.Put(
35         Integer( System.Storage_Elements.To_Integer( Item ) ),
36         Width,
37         Base
38      );
39
40   end Put;
41
42end Address_IO;
43
Note: See TracBrowser for help on using the repository browser.