FSF GCC merge 02/23/03
[official-gcc.git] / gcc / ada / a-wtdeau.ads
blobdeefdaab82d40c524db6e122d08dfb2c344c9bc0
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME COMPONENTS --
4 -- --
5 -- A D A . W I D E _ T E X T _ I O . D E C I M A L _ A U X --
6 -- --
7 -- S p e c --
8 -- --
9 -- --
10 -- Copyright (C) 1992-2001 Free Software Foundation, Inc. --
11 -- --
12 -- GNAT is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 2, or (at your option) any later ver- --
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
18 -- for more details. You should have received a copy of the GNU General --
19 -- Public License distributed with GNAT; see file COPYING. If not, write --
20 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
21 -- MA 02111-1307, USA. --
22 -- --
23 -- As a special exception, if other files instantiate generics from this --
24 -- unit, or you link this unit with other files to produce an executable, --
25 -- this unit does not by itself cause the resulting executable to be --
26 -- covered by the GNU General Public License. This exception does not --
27 -- however invalidate any other reasons why the executable file might be --
28 -- covered by the GNU Public License. --
29 -- --
30 -- GNAT was originally developed by the GNAT team at New York University. --
31 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 -- --
33 ------------------------------------------------------------------------------
35 -- This package contains the routines for Ada.Wide_Text_IO.Decimal_IO
36 -- that are shared among separate instantiations of this package. The
37 -- routines in the package are identical semantically to those declared
38 -- in Wide_Text_IO, except that default values have been supplied by the
39 -- generic, and the Num parameter has been replaced by Integer or
40 -- Long_Long_Integer, with an additional Scale parameter giving the
41 -- value of Num'Scale. In addition the Get routines return the value
42 -- rather than store it in an Out parameter.
44 private package Ada.Wide_Text_IO.Decimal_Aux is
46 function Get_Dec
47 (File : File_Type;
48 Width : Field;
49 Scale : Integer)
50 return Integer;
52 function Get_LLD
53 (File : File_Type;
54 Width : Field;
55 Scale : Integer)
56 return Long_Long_Integer;
58 function Gets_Dec
59 (From : String;
60 Last : access Positive;
61 Scale : Integer)
62 return Integer;
64 function Gets_LLD
65 (From : String;
66 Last : access Positive;
67 Scale : Integer)
68 return Long_Long_Integer;
70 procedure Put_Dec
71 (File : File_Type;
72 Item : Integer;
73 Fore : Field;
74 Aft : Field;
75 Exp : Field;
76 Scale : Integer);
78 procedure Put_LLD
79 (File : File_Type;
80 Item : Long_Long_Integer;
81 Fore : Field;
82 Aft : Field;
83 Exp : Field;
84 Scale : Integer);
86 procedure Puts_Dec
87 (To : out String;
88 Item : Integer;
89 Aft : Field;
90 Exp : Field;
91 Scale : Integer);
93 procedure Puts_LLD
94 (To : out String;
95 Item : Long_Long_Integer;
96 Aft : Field;
97 Exp : Field;
98 Scale : Integer);
100 end Ada.Wide_Text_IO.Decimal_Aux;