2016-10-26 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git] / gcc / ada / a-tiinau.ads
blobee2ca23e600282e85215e3ea2983ebb67fea009f
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME COMPONENTS --
4 -- --
5 -- A D A . T E X T _ I O . I N T E G E R _ A U X --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2009, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This package contains the routines for Ada.Text_IO.Integer_IO that are
33 -- shared among separate instantiations of this package. The routines in
34 -- this package are identical semantically to those in Integer_IO itself,
35 -- except that the generic parameter Num has been replaced by Integer or
36 -- Long_Long_Integer, and the default parameters have been removed because
37 -- they are supplied explicitly by the calls from within the generic template.
39 private package Ada.Text_IO.Integer_Aux is
41 procedure Get_Int
42 (File : File_Type;
43 Item : out Integer;
44 Width : Field);
46 procedure Get_LLI
47 (File : File_Type;
48 Item : out Long_Long_Integer;
49 Width : Field);
51 procedure Put_Int
52 (File : File_Type;
53 Item : Integer;
54 Width : Field;
55 Base : Number_Base);
57 procedure Put_LLI
58 (File : File_Type;
59 Item : Long_Long_Integer;
60 Width : Field;
61 Base : Number_Base);
63 procedure Gets_Int
64 (From : String;
65 Item : out Integer;
66 Last : out Positive);
68 procedure Gets_LLI
69 (From : String;
70 Item : out Long_Long_Integer;
71 Last : out Positive);
73 procedure Puts_Int
74 (To : out String;
75 Item : Integer;
76 Base : Number_Base);
78 procedure Puts_LLI
79 (To : out String;
80 Item : Long_Long_Integer;
81 Base : Number_Base);
83 end Ada.Text_IO.Integer_Aux;