1------------------------------------------------------------------------------ 2-- -- 3-- GNAT RUN-TIME COMPONENTS -- 4-- -- 5-- A D A . T E X T _ I O . C O M P L E X _ A U X -- 6-- -- 7-- S p e c -- 8-- -- 9-- Copyright (C) 1992-2020, 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.Complex_IO that are 33-- shared among separate instantiations of this package. The routines in this 34-- package are identical semantically to those in Complex_IO, except that the 35-- generic parameter Complex has been replaced by separate real and imaginary 36-- parameters, and default parameters have been removed because they are 37-- supplied explicitly by the calls from within the generic template. 38 39with Ada.Text_IO.Float_Aux; 40 41private generic 42 43 type Num is digits <>; 44 45 with package Aux is new Ada.Text_IO.Float_Aux (Num, <>); 46 47package Ada.Text_IO.Complex_Aux is 48 49 procedure Get 50 (File : File_Type; 51 ItemR : out Num; 52 ItemI : out Num; 53 Width : Field); 54 55 procedure Put 56 (File : File_Type; 57 ItemR : Num; 58 ItemI : Num; 59 Fore : Field; 60 Aft : Field; 61 Exp : Field); 62 63 procedure Gets 64 (From : String; 65 ItemR : out Num; 66 ItemI : out Num; 67 Last : out Positive); 68 69 procedure Puts 70 (To : out String; 71 ItemR : Num; 72 ItemI : Num; 73 Aft : Field; 74 Exp : Field); 75 76end Ada.Text_IO.Complex_Aux; 77