OSDN Git Service

* pa.h (LEGITIMATE_CONSTANT_P): Simplify.
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-tideau.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT RUN-TIME COMPONENTS                         --
4 --                                                                          --
5 --              A D A . T E X T _ I O . D E C I M A L _ A U X               --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --          Copyright (C) 1992-2006, 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 2,  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.  See the GNU General Public License --
17 -- for  more details.  You should have  received  a copy of the GNU General --
18 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
19 -- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
20 -- Boston, MA 02110-1301, USA.                                              --
21 --                                                                          --
22 -- As a special exception,  if other files  instantiate  generics from this --
23 -- unit, or you link  this unit with other files  to produce an executable, --
24 -- this  unit  does not  by itself cause  the resulting  executable  to  be --
25 -- covered  by the  GNU  General  Public  License.  This exception does not --
26 -- however invalidate  any other reasons why  the executable file  might be --
27 -- covered by the  GNU Public License.                                      --
28 --                                                                          --
29 -- GNAT was originally developed  by the GNAT team at  New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
31 --                                                                          --
32 ------------------------------------------------------------------------------
33
34 --  This package contains the routines for Ada.Text_IO.Decimal_IO that are
35 --  shared among separate instantiations of this package. The routines in
36 --  the package are identical semantically to those declared in Text_IO,
37 --  except that default values have been supplied by the generic, and the
38 --  Num parameter has been replaced by Integer or Long_Long_Integer, with
39 --  an additional Scale parameter giving the value of Num'Scale. In addition
40 --  the Get routines return the value rather than store it in an Out parameter.
41
42 private package Ada.Text_IO.Decimal_Aux is
43
44    function Get_Dec
45      (File  : File_Type;
46       Width : Field;
47       Scale : Integer) return Integer;
48
49    function Get_LLD
50      (File  : File_Type;
51       Width : Field;
52       Scale : Integer) return Long_Long_Integer;
53
54    procedure Put_Dec
55      (File  : File_Type;
56       Item  : Integer;
57       Fore  : Field;
58       Aft   : Field;
59       Exp   : Field;
60       Scale : Integer);
61
62    procedure Put_LLD
63      (File  : File_Type;
64       Item  : Long_Long_Integer;
65       Fore  : Field;
66       Aft   : Field;
67       Exp   : Field;
68       Scale : Integer);
69
70    function Gets_Dec
71      (From  : String;
72       Last  : access Positive;
73       Scale : Integer) return Integer;
74
75    function Gets_LLD
76      (From  : String;
77       Last  : access Positive;
78       Scale : Integer) return Long_Long_Integer;
79
80    procedure Puts_Dec
81      (To    : out String;
82       Item  : Integer;
83       Aft   : Field;
84       Exp   : Field;
85       Scale : Integer);
86
87    procedure Puts_LLD
88      (To    : out String;
89       Item  : Long_Long_Integer;
90       Aft   : Field;
91       Exp   : Field;
92       Scale : Integer);
93
94 end Ada.Text_IO.Decimal_Aux;