1------------------------------------------------------------------------------ 2-- -- 3-- GNAT RUN-TIME COMPONENTS -- 4-- -- 5-- A D A . 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-2021, 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.Text_IO.Float_IO that are 33-- shared among separate instantiations of this package. The routines in 34-- this package are identical semantically to those in Float_IO, except 35-- that the default parameters have been removed because they are supplied 36-- explicitly by the calls from within the generic template. This package 37-- is also used by Ada.Text_IO.Fixed_IO and Ada.Text_IO.Decimal_IO. 38 39private generic 40 41 type Num is digits <>; 42 43 with function Scan 44 (Str : String; 45 Ptr : not null access Integer; 46 Max : Integer) return Num; 47 48 with procedure Set_Image 49 (V : Num; 50 S : in out String; 51 P : in out Natural; 52 Fore : Natural; 53 Aft : Natural; 54 Exp : Natural); 55 56package Ada.Text_IO.Float_Aux is 57 58 procedure Get 59 (File : File_Type; 60 Item : out Num; 61 Width : Field); 62 63 procedure Put 64 (File : File_Type; 65 Item : Num; 66 Fore : Field; 67 Aft : Field; 68 Exp : Field); 69 70 procedure Gets 71 (From : String; 72 Item : out Num; 73 Last : out Positive); 74 75 procedure Puts 76 (To : out String; 77 Item : Num; 78 Aft : Field; 79 Exp : Field); 80 81end Ada.Text_IO.Float_Aux; 82