OSDN Git Service

2010-10-08 Robert Dewar <dewar@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-ztflau.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT RUN-TIME COMPONENTS                         --
4 --                                                                          --
5 --      A D A . W I D E _ W I D E _ T E X T _ I O . F L O A T _ 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 ------------------------------------------------------------------------------
31
32 --  This package contains the routines for Ada.Wide_Wide_Text_IO.Float_IO that
33 --  are shared among separate instantiations of this package. The routines
34 --  in this package are identical semantically to those in Float_IO itself,
35 --  except that generic parameter Num has been replaced by Long_Long_Float,
36 --  and the default parameters have been removed because they are supplied
37 --  explicitly by the calls from within the generic template. Also used by
38 --  Ada.Wide_Wide_Text_IO.Fixed_IO, and by Ada.Wide_Wide_Text_IO.Decimal_IO.
39
40 private package Ada.Wide_Wide_Text_IO.Float_Aux is
41
42    procedure Load_Real
43      (File : File_Type;
44       Buf  : out String;
45       Ptr  : in out Natural);
46    --  This is an auxiliary routine that is used to load a possibly signed
47    --  real literal value from the input file into Buf, starting at Ptr + 1.
48
49    procedure Get
50      (File  : File_Type;
51       Item  : out Long_Long_Float;
52       Width : Field);
53
54    procedure Gets
55      (From : String;
56       Item : out Long_Long_Float;
57       Last : out Positive);
58
59    procedure Put
60      (File : File_Type;
61       Item : Long_Long_Float;
62       Fore : Field;
63       Aft  : Field;
64       Exp  : Field);
65
66    procedure Puts
67      (To   : out String;
68       Item : Long_Long_Float;
69       Aft  : Field;
70       Exp  : Field);
71
72 end Ada.Wide_Wide_Text_IO.Float_Aux;