Add hppa-openbsd target
[official-gcc.git] / gcc / ada / a-wtinio.ads
blobb8eacefa32214dee38f943198ccd98b01808dcc4
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUNTIME COMPONENTS --
4 -- --
5 -- A D A . W I D E _ T E X T _ I O . I N T E G E R _ I O --
6 -- --
7 -- S p e c --
8 -- --
9 -- --
10 -- This specification is adapted from the Ada Reference Manual for use with --
11 -- GNAT. In accordance with the copyright of that document, you can freely --
12 -- copy and modify this specification, provided that if you redistribute a --
13 -- modified version, any changes that you have made are clearly indicated. --
14 -- --
15 ------------------------------------------------------------------------------
17 -- In Ada 95, the package Ada.Wide_Text_IO.Integer_IO is a subpackage
18 -- of Wide_Text_IO. In GNAT we make it a child package to avoid loading
19 -- the necessary code if Integer_IO is not instantiated. See the routine
20 -- Rtsfind.Text_IO_Kludge for a description of how we patch up the
21 -- difference in semantics so that it is invisible to the Ada programmer.
23 private generic
24 type Num is range <>;
26 package Ada.Wide_Text_IO.Integer_IO is
28 Default_Width : Field := Num'Width;
29 Default_Base : Number_Base := 10;
31 procedure Get
32 (File : in File_Type;
33 Item : out Num;
34 Width : in Field := 0);
36 procedure Get
37 (Item : out Num;
38 Width : in Field := 0);
40 procedure Put
41 (File : in File_Type;
42 Item : in Num;
43 Width : in Field := Default_Width;
44 Base : in Number_Base := Default_Base);
46 procedure Put
47 (Item : in Num;
48 Width : in Field := Default_Width;
49 Base : in Number_Base := Default_Base);
51 procedure Get
52 (From : in Wide_String;
53 Item : out Num;
54 Last : out Positive);
56 procedure Put
57 (To : out Wide_String;
58 Item : in Num;
59 Base : in Number_Base := Default_Base);
61 end Ada.Wide_Text_IO.Integer_IO;