1 ------------------------------------------------------------------------------
3 -- GNAT RUN-TIME COMPONENTS --
5 -- A D A . W I D E _ W I D E _ T E X T _ I O . D E C I M A L _ I O --
9 -- This specification is derived 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. --
14 ------------------------------------------------------------------------------
16 -- In Ada 95, the package Ada.Wide_Wide_Text_IO.Decimal_IO is a subpackage
17 -- of Wide_Wide_Text_IO. In GNAT we make it a child package to avoid loading
18 -- the necessary code if Decimal_IO is not instantiated. See the routine
19 -- Rtsfind.Check_Text_IO_Special_Unit for a description of how we patch up
20 -- the difference in semantics so that it is invisible to the Ada programmer.
23 type Num
is delta <> digits <>;
25 package Ada
.Wide_Wide_Text_IO
.Decimal_IO
is
27 Default_Fore
: Field
:= 2;
28 Default_Aft
: Field
:= Num
'Digits - 1;
29 Default_Exp
: Field
:= 3;
43 Fore
: Field
:= Default_Fore
;
44 Aft
: Field
:= Default_Aft
;
45 Exp
: Field
:= Default_Exp
);
49 Fore
: Field
:= Default_Fore
;
50 Aft
: Field
:= Default_Aft
;
51 Exp
: Field
:= Default_Exp
);
54 (From
: Wide_Wide_String
;
59 (To
: out Wide_Wide_String
;
61 Aft
: Field
:= Default_Aft
;
62 Exp
: Field
:= Default_Exp
);
64 end Ada
.Wide_Wide_Text_IO
.Decimal_IO
;