Merge from the pain train
[official-gcc.git] / gcc / ada / a-wtcoio.ads
blob14bf5e76ca32ee57b2d4b3ffc449bef842151991
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUNTIME COMPONENTS --
4 -- --
5 -- A D A . W I D E _ T E X T _ IO . C O M P L E X _ I O --
6 -- --
7 -- S p e c --
8 -- --
9 -- This specification is adapted from the Ada Reference Manual for use with --
10 -- GNAT. In accordance with the copyright of that document, you can freely --
11 -- copy and modify this specification, provided that if you redistribute a --
12 -- modified version, any changes that you have made are clearly indicated. --
13 -- --
14 ------------------------------------------------------------------------------
16 with Ada.Numerics.Generic_Complex_Types;
18 generic
19 with package Complex_Types is new Ada.Numerics.Generic_Complex_Types (<>);
21 package Ada.Wide_Text_IO.Complex_IO is
23 use Complex_Types;
25 Default_Fore : Field := 2;
26 Default_Aft : Field := Real'Digits - 1;
27 Default_Exp : Field := 3;
29 procedure Get
30 (File : File_Type;
31 Item : out Complex;
32 Width : Field := 0);
34 procedure Get
35 (Item : out Complex;
36 Width : Field := 0);
38 procedure Put
39 (File : File_Type;
40 Item : Complex;
41 Fore : Field := Default_Fore;
42 Aft : Field := Default_Aft;
43 Exp : Field := Default_Exp);
45 procedure Put
46 (Item : Complex;
47 Fore : Field := Default_Fore;
48 Aft : Field := Default_Aft;
49 Exp : Field := Default_Exp);
51 procedure Get
52 (From : Wide_String;
53 Item : out Complex;
54 Last : out Positive);
56 procedure Put
57 (To : out Wide_String;
58 Item : Complex;
59 Aft : Field := Default_Aft;
60 Exp : Field := Default_Exp);
62 end Ada.Wide_Text_IO.Complex_IO;