OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-wtinio.ads
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 ------------------------------------------------------------------------------
16
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.
22
23 private generic
24    type Num is range <>;
25
26 package Ada.Wide_Text_IO.Integer_IO is
27
28    Default_Width : Field := Num'Width;
29    Default_Base  : Number_Base := 10;
30
31    procedure Get
32      (File  : in File_Type;
33       Item  : out Num;
34       Width : in Field := 0);
35
36    procedure Get
37      (Item  : out Num;
38       Width : in Field := 0);
39
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);
45
46    procedure Put
47      (Item  : in Num;
48       Width : in Field := Default_Width;
49       Base  : in Number_Base := Default_Base);
50
51    procedure Get
52      (From : in Wide_String;
53       Item : out Num;
54       Last : out Positive);
55
56    procedure Put
57      (To   : out Wide_String;
58       Item : in Num;
59       Base : in Number_Base := Default_Base);
60
61 end Ada.Wide_Text_IO.Integer_IO;