1 ------------------------------------------------------------------------------
3 -- GNAT RUN-TIME COMPONENTS --
5 -- A D A . T E X T _ I O . F I X E D _ 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.Text_IO.Fixed_IO is a subpackage of Text_IO.
17 -- This is for compatibility with Ada 83. In GNAT we make it a child package
18 -- to avoid loading the necessary code if Fixed_IO is not instantiated. See
19 -- routine Rtsfind.Check_Text_IO_Special_Unit for a description of how we
20 -- patch up the difference in semantics so that it is invisible to the Ada
26 package Ada
.Text_IO
.Fixed_IO
with
31 Default_Fore
: Field
:= Num
'Fore;
32 Default_Aft
: Field
:= Num
'Aft;
33 Default_Exp
: Field
:= 0;
40 Pre
=> Is_Open
(File
) and then Mode
(File
) = In_File
,
41 Global
=> (In_Out
=> File_System
),
42 Exceptional_Cases
=> (Data_Error | End_Error
=> Standard
.True);
49 Line_Length
'Old = Line_Length
50 and Page_Length
'Old = Page_Length
,
51 Global
=> (In_Out
=> File_System
),
52 Exceptional_Cases
=> (Data_Error | End_Error
=> Standard
.True);
57 Fore
: Field
:= Default_Fore
;
58 Aft
: Field
:= Default_Aft
;
59 Exp
: Field
:= Default_Exp
)
61 Pre
=> Is_Open
(File
) and then Mode
(File
) /= In_File
,
63 Line_Length
(File
)'Old = Line_Length
(File
)
64 and Page_Length
(File
)'Old = Page_Length
(File
),
65 Global
=> (In_Out
=> File_System
),
66 Exceptional_Cases
=> (Layout_Error
=> Line_Length
(File
) /= 0);
70 Fore
: Field
:= Default_Fore
;
71 Aft
: Field
:= Default_Aft
;
72 Exp
: Field
:= Default_Exp
)
75 Line_Length
'Old = Line_Length
76 and Page_Length
'Old = Page_Length
,
77 Global
=> (In_Out
=> File_System
),
78 Exceptional_Cases
=> (Layout_Error
=> Ada
.Text_IO
.Line_Length
/= 0);
86 Exceptional_Cases
=> (Data_Error
=> Standard
.True);
91 Aft
: Field
:= Default_Aft
;
92 Exp
: Field
:= Default_Exp
)
95 Exceptional_Cases
=> (Layout_Error
=> Standard
.True);
101 end Ada
.Text_IO
.Fixed_IO
;