Debian Codegraph @

source_2005/pre.mss

raw
1 @Part(predef, Root="ada.mss")
2
3 @Comment{$Date: 2006/03/21 22:47:18 $}
4 @LabeledNormativeAnnex{Predefined Language Environment}
5
6 @comment{$Source: e:\\cvsroot/ARM/Source/pre.mss,v $}
7 @comment{$Revision: 1.32 $}
8 @comment{$RLB: Eliminated includes. $}
9
10 @begin{Intro}
11 @Leading@keepnext
12 @redundant[@Defn{Language-Defined Library Units}
13 @Defn{predefined environment}
14 This Annex contains the specifications of library units that shall be
15 provided by every implementation.
16 There are three root library units:
17 Ada, Interfaces, and System;
18 other library units are children of these:]
19
20 @Leading@Keepnext
21 @ChgRef{Version=(1),Kind=(Revised),Ref=(8652/0047),ARef=(AI95-00081-01)}
22 @ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00424-01]}
23 @ @*@ @;@comment{paragraph number here, paragraph numbers seem to intrude on
24 the RHS column, misaligning it. Thus we have two lines, as small as possible.}
25 @begin{Display}
26 @TabClear{}@TabSet{L2, L4, L6, L8, L10, L12, L14, L16}
27 @begin{TwoCol}
28 @Noparanum@redundant[@shrink<Standard @em @RefSecNum{The Package Standard}
29 @\Ada @em @RefSecNum{The Package Ada}
30 @Chg{Version=[2],New=(@\@\Assertions @em @RefSecNum{Pragmas Assert and Assertion_Policy}
31 ), Old=()}@\@\Asynchronous_Task_Control @em @RefSecNum{Asynchronous Task Control}
32 @\@\Calendar @em @RefSecNum{Delay Statements, Duration, and Time}
33 @Chg{Version=[2],New=(@\@\@\Arithmetic @em @RefSecNum{Formatting, Time Zones, and other operations for Time}
34 @\@\@\Formatting @em @RefSecNum{Formatting, Time Zones, and other operations for Time}
35 @\@\@\Time_Zones @em @RefSecNum{Formatting, Time Zones, and other operations for Time}
36 ), Old=()}@\@\Characters @em @RefSecNum{The Packages Characters, Wide_Characters, and Wide_Wide_Characters}
37 @Chg{Version=[2],New=(@\@\@\Conversions @em @RefSecNum{The Package Characters.Conversions}
38 ), Old=()}@\@\@\Handling @em @RefSecNum{The Package Characters.Handling}
39 @\@\@\Latin_1 @em @RefSecNum{The Package Characters.Latin_1}
40 @\@\Command_Line @em @RefSecNum{The Package Command_Line}
41 @Chg{Version=[2],New=(@\@\Complex_Text_IO @em @RefSecNum{Complex Input-Output}
42 @\@\Containers @em @RefSecNum{The Package Containers}
43 @\@\@\Doubly_Linked_Lists @em @RefSecNum{The Package Containers.Doubly_Linked_Lists}
44 @\@\@\Generic_Array_Sort @em @RefSecNum{Array Sorting}
45 @\@\@\Generic_Constrained_Array_Sort
46 @\@\@\@\@\@\@em @RefSecNum{Array Sorting}
47 @\@\@\Hashed_Maps @em @RefSecNum{The Package Containers.Hashed_Maps}
48 @\@\@\Hashed_Sets @em @RefSecNum{The Package Containers.Hashed_Sets}
49 @\@\@\Indefinite_Doubly_Linked_Lists
50 @\@\@\@\@\@\@em @RefSecNum{The Package Containers.Indefinite_Doubly_Linked_Lists}
51 @\@\@\Indefinite_Hashed_Maps @em @RefSecNum{The Package Containers.Indefinite_Hashed_Maps}
52 @\@\@\Indefinite_Hashed_Sets @em @RefSecNum{The Package Containers.Indefinite_Hashed_Sets}
53 @\@\@\Indefinite_Ordered_Maps @em @RefSecNum{The Package Containers.Indefinite_Ordered_Maps}
54 @\@\@\Indefinite_Ordered_Sets @em @RefSecNum{The Package Containers.Indefinite_Ordered_Sets}
55 @\@\@\Indefinite_Vectors @em @RefSecNum{The Package Containers.Indefinite_Vectors}
56 @\@\@\Ordered_Maps @em @RefSecNum{The Package Containers.Ordered_Maps}
57 @\@\@\Ordered_Sets @em @RefSecNum{The Package Containers.Ordered_Sets}
58 @\@\@\Vectors @em @RefSecNum{The Package Containers.Vectors}
59 ), Old=()}@\@\Decimal @em @RefSecNum{The Package Decimal}
60 @\@\Direct_IO @em @RefSecNum{The Generic Package Direct_IO}
61 @Chg{Version=[2],New=(@\@\Directories @em @RefSecNum{The Package Directories}
62 @\@\@\Information @em @RefSecNum{The Package Directories}
63 @\@\Dispatching @em @RefSecNum{The Task Dispatching Model}
64 @\@\@\EDF @em @RefSecNum{Earliest Deadline First Dispatching}
65 @\@\@\Round_Robin @em @RefSecNum{Round Robin Dispatching}
66 ), Old=()}@\@\Dynamic_Priorities @em @RefSecNum{Dynamic Priorities}>
67 @NewColumn@Comment{This should be conditional for version 2, but not with the current generator}
68 @Noparanum@shrink<@Chg{Version=[2],New=[Standard (@i{...continued})
69 @\Ada (@i{...continued})
70 @\@\Environment_Variables @em @RefSecNum{The Package Environment_Variables}
71 ], Old=()}@\@\Exceptions @em @RefSecNum{The Package Exceptions}
72 @Chg{Version=[2],New=(@\@\Execution_Time @em @RefSecNum{Execution Time}
73 @\@\@\Group_Budgets @em @RefSecNum{Group Execution Time Budgets}
74 @\@\@\Timers @em @RefSecNum{Execution Time Timers}
75 ), Old=()}@\@\Finalization @em @RefSecNum{User-Defined Assignment and Finalization}
76 @Chg{New=(@\@\Float_Text_IO @em @RefSecNum{Input-Output for Real Types}
77 @\@\Float_Wide_Text_IO @em @RefSecNum{Wide Text Input-Output and Wide Wide Text Input-Output}
78 @Chg{Version=[2],New=(@\@\Float_Wide_Wide_Text_IO @em @RefSecNum{Wide Text Input-Output and Wide Wide Text Input-Output}
79 ), Old=()}@\@\Integer_Text_IO @em @RefSecNum{Input-Output for Integer Types}
80 @\@\Integer_Wide_Text_IO @em @RefSecNum{Wide Text Input-Output and Wide Wide Text Input-Output}
81 @Chg{Version=[2],New=(@\@\Integer_Wide_Wide_Text_IO @em @RefSecNum{Wide Text Input-Output and Wide Wide Text Input-Output}
82 ), Old=()}), Old=()}@\@\Interrupts @em @RefSecNum{The Package Interrupts}
83 @\@\@\Names @em @RefSecNum{The Package Interrupts}
84 @\@\IO_Exceptions @em @RefSecNum{Exceptions in Input-Output}
85 @\@\Numerics @em @RefSecNum{The Numerics Packages}
86 @Chg{Version=[2],New=(@\@\@\Complex_Arrays @em @RefSecNum{Complex Vectors and Matrices}
87 ), Old=()}@\@\@\Complex_Elementary_Functions @em @RefSecNum{Complex Elementary Functions}
88 @\@\@\Complex_Types @em @RefSecNum{Complex Types}
89 @\@\@\Discrete_Random @em @RefSecNum{Random Number Generation}
90 @\@\@\Elementary_Functions @em @RefSecNum{Elementary Functions}
91 @\@\@\Float_Random @em @RefSecNum{Random Number Generation}
92 @Chg{Version=[2],New=(@\@\@\Generic_Complex_Arrays @em @RefSecNum{Complex Vectors and Matrices}
93 ), Old=()}@\@\@\Generic_Complex_Elementary_Functions
94 @\@\@\@\@\@\@em @RefSecNum{Complex Elementary Functions}
95 @\@\@\Generic_Complex_Types @em @RefSecNum{Complex Types}
96 @\@\@\Generic_Elementary_Functions @em @RefSecNum{Elementary Functions}
97 @Chg{Version=[2],New=(@\@\@\Generic_Real_Arrays @em @RefSecNum{Real Vectors and Matrices}
98 @\@\@\Real_Arrays @em @RefSecNum{Real Vectors and Matrices}
99 ), Old=()}@\@\Real_Time @em @RefSecNum{Monotonic Time}
100 @Chg{Version=[2],New=(@\@\@\Timing_Events @em @RefSecNum{Timing Events}
101 ), Old=()}@\@\Sequential_IO @em @RefSecNum{The Generic Package Sequential_IO}
102 @\@\Storage_IO @em @RefSecNum{The Generic Package Storage_IO}
103 @\@\Streams @em @RefSecNum{The Package Streams}
104 @\@\@\Stream_IO @em @RefSecNum{The Package Streams.Stream_IO}>
105 @NewColumn
106 @Noparanum@shrink<Standard (@i{...continued})
107 @\Ada (@i{...continued})
108 @\@\Strings @em @RefSecNum{The Package Strings}
109 @\@\@\Bounded @em @RefSecNum{Bounded-Length String Handling}
110 @Chg{Version=[2],New=(@\@\@\@\Hash @em @RefSecNum{String Hashing}
111 ), Old=()}@\@\@\Fixed @em @RefSecNum{Fixed-Length String Handling}
112 @Chg{Version=[2],New=(@\@\@\@\Hash @em @RefSecNum{String Hashing}
113 @\@\@\Hash @em @RefSecNum{String Hashing}
114 ), Old=()}@\@\@\Maps @em @RefSecNum{The Package Strings.Maps}
115 @\@\@\@\Constants @em @RefSecNum{String-Handling Sets and Mappings}
116 @\@\@\Unbounded @em @RefSecNum{Unbounded-Length String Handling}
117 @Chg{Version=[2],New=(@\@\@\@\Hash @em @RefSecNum{String Hashing}
118 ), Old=()}@\@\@\Wide_Bounded @em @RefSecNum{Wide_String Handling}
119 @Chg{Version=[2],New=(@\@\@\@\Wide_Hash @em @RefSecNum{Wide_String Handling}
120 ), Old=()}@\@\@\Wide_Fixed @em @RefSecNum{Wide_String Handling}
121 @Chg{Version=[2],New=(@\@\@\@\Wide_Hash @em @RefSecNum{Wide_String Handling}
122 @\@\@\Wide_Hash @em @RefSecNum{Wide_String Handling}
123 ), Old=()}@\@\@\Wide_Maps @em @RefSecNum{Wide_String Handling}
124 @\@\@\@\Wide_Constants @em @RefSecNum{Wide_String Handling}
125 @\@\@\Wide_Unbounded @em @RefSecNum{Wide_String Handling}
126 @Chg{Version=[2],New=(@\@\@\@\Wide_Hash @em @RefSecNum{Wide_String Handling}
127 @\@\@\Wide_Wide_Bounded @em @RefSecNum{Wide_Wide_String Handling}
128 @\@\@\@\Wide_Wide_Hash @em @RefSecNum{Wide_Wide_String Handling}
129 @\@\@\Wide_Wide_Fixed @em @RefSecNum{Wide_Wide_String Handling}
130 @\@\@\@\Wide_Wide_Hash @em @RefSecNum{Wide_Wide_String Handling}
131 @\@\@\Wide_Wide_Hash @em @RefSecNum{Wide_Wide_String Handling}
132 @\@\@\Wide_Wide_Maps @em @RefSecNum{Wide_Wide_String Handling}
133 @\@\@\@\Wide_Wide_Constants @em @RefSecNum{Wide_Wide_String Handling}
134 @\@\@\Wide_Wide_Unbounded @em @RefSecNum{Wide_Wide_String Handling}
135 @\@\@\@\Wide_Wide_Hash @em @RefSecNum{Wide_Wide_String Handling}
136 ), Old=()}@\@\Synchronous_Task_Control @em @RefSecNum{Synchronous Task Control}
137 @\@\Tags @em @RefSecNum{Tagged Types and Type Extensions}
138 @Chg{Version=[2],New=(@\@\@\Generic_Dispatching_Constructor @em @RefSecNum{Tagged Types and Type Extensions}
139 ), Old=()}@\@\Task_Attributes @em @RefSecNum{The Package Task_Attributes}
140 @\@\Task_Identification @em @RefSecNum{The Package Task_Identification}
141 @Chg{Version=[2],New=(@\@\Task_Termination @em @RefSecNum{The Package Task_Termination}), Old=()}>
142 @NewColumn@Comment{This should be conditional for version 2, but not with the current generator}
143 @Noparanum@shrink<@Chg{Version=[2],New=[Standard (@i{...continued})
144 @\Ada (@i{...continued})
145 ], Old=()}@\@\Text_IO @em @RefSecNum{The Package Text_IO}
146 @Chg{Version=[2],New=(@\@\@\Bounded_IO @em @RefSecNum{Input-Output for Bounded Strings}
147 ),Old=()}@\@\@\Complex_IO @em @RefSecNum{Complex Input-Output}
148 @\@\@\Editing @em @RefSecNum{The Package Text_IO.Editing}
149 @\@\@\Text_Streams @em @RefSecNum{The Package Text_IO.Text_Streams}
150 @Chg{Version=[2],New=(@\@\@\Unbounded_IO @em @RefSecNum{Input-Output for Unbounded Strings}
151 ), Old=()}@\@\Unchecked_Conversion @em @RefSecNum{Unchecked Type Conversions}
152 @\@\Unchecked_Deallocation @em @RefSecNum{Unchecked Storage Deallocation}
153 @Chg{Version=[2],New=(@\@\Wide_Characters @em @RefSecNum{The Packages Characters, Wide_Characters, and Wide_Wide_Characters}
154 ),Old=()}@\@\Wide_Text_IO @em @RefSecNum{Wide Text Input-Output and Wide Wide Text Input-Output}
155 @\@\@\Complex_IO @em @RefSecNum{The Package Wide_Text_IO.Complex_IO}
156 @\@\@\Editing @em @RefSecNum{The Package Wide_Text_IO.Editing}
157 @\@\@\Text_Streams @em @RefSecNum{The Package Wide_Text_IO.Text_Streams}
158 @Chg{Version=[2],New=(@\@\@\Wide_Bounded_IO @em @RefSecNum{Wide Text Input-Output and Wide Wide Text Input-Output}
159 @\@\@\Wide_Unbounded_IO @em @RefSecNum{Wide Text Input-Output and Wide Wide Text Input-Output}
160 @\@\Wide_Wide_Characters @em @RefSecNum{The Packages Characters, Wide_Characters, and Wide_Wide_Characters}
161 @\@\Wide_Wide_Text_IO @em @RefSecNum{Wide Text Input-Output and Wide Wide Text Input-Output}
162 @\@\@\Complex_IO @em @RefSecNum{The Package Wide_Wide_Text_IO.Complex_IO}
163 @\@\@\Editing @em @RefSecNum{The Package Wide_Wide_Text_IO.Editing}
164 @\@\@\Text_Streams @em @RefSecNum{The Package Wide_Wide_Text_IO.Text_Streams}
165 @\@\@\Wide_Wide_Bounded_IO @em @RefSecNum{Wide Text Input-Output and Wide Wide Text Input-Output}
166 @\@\@\Wide_Wide_Unbounded_IO @em @RefSecNum{Wide Text Input-Output and Wide Wide Text Input-Output}), Old=()}>
167
168 @Noparanum@shrink<@\Interfaces @em @RefSecNum{The Package Interfaces}
169 @\@\C @em @RefSecNum{Interfacing with C and C++}
170 @\@\@\Pointers @em @RefSecNum{The Generic Package Interfaces.C.Pointers}
171 @\@\@\Strings @em @RefSecNum{The Package Interfaces.C.Strings}
172 @\@\COBOL @em @RefSecNum{Interfacing with COBOL}
173 @\@\Fortran @em @RefSecNum{Interfacing with Fortran}>
174
175 @Noparanum@shrink<@\System @em @RefSecNum{The Package System}
176 @\@\Address_To_Access_Conversions @em @RefSecNum{The Package System.Address_To_Access_Conversions}
177 @\@\Machine_Code @em @RefSecNum{Machine Code Insertions}
178 @\@\RPC @em @RefSecNum{Partition Communication Subsystem}
179 @\@\Storage_Elements @em @RefSecNum{The Package System.Storage_Elements}
180 @\@\Storage_Pools @em @RefSecNum{Storage Management}>]
181 @end{TwoCol}
182 @end{Display}
183 @begin{Discussion}
184 In running text, we generally leave out the @lquotes@;Ada.@rquotes@; when referring to a
185 child of Ada.
186 @end{Discussion}
187 @begin{Reason}
188 We had no strict rule for which of Ada, Interfaces, or System should be
189 the parent of a given library unit.
190 However, we have tried to place as many things as possible under Ada,
191 except that interfacing is a separate category,
192 and we have tried to place library units whose use is highly
193 non-portable under System.
194 @end{Reason}
195 @end{Intro}
196
197 @begin{ImplReq}
198 @ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00434-01]}
199 The implementation shall ensure that each
200 language@Chg{Version=[2],New=[-],Old=[]}defined subprogram is
201 reentrant@Chg{Version=[2],New=[@Defn{reentrant}],Old=[]}@ChgNote{Suggested by Gary Dismukes} in
202 the sense that concurrent calls on the same subprogram perform as specified,
203 so long as all parameters that could be passed by reference
204 denote nonoverlapping objects.
205 @begin{Ramification}
206 For example, simultaneous calls to Text_IO.Put will work properly,
207 so long as they are going to two different files.
208 On the other hand, simultaneous output to the same file constitutes
209 erroneous use of shared variables.
210 @end{Ramification}
211 @begin{Honest}
212 Here, @lquotes@;language defined subprogram@rquotes@; means a language defined library
213 subprogram, a subprogram declared in the visible part of a language
214 defined library package, an instance of a language defined
215 generic library subprogram,
216 or a subprogram declared in the visible part
217 of an instance of a language defined generic library package.
218 @end{Honest}
219 @begin{Ramification}
220 The rule implies that any data local to the private part or
221 body of the package has to be somehow protected against
222 simultaneous access.
223 @end{Ramification}
224 @end{ImplReq}
225
226 @begin{ImplPerm}
227 The implementation may restrict the replacement of language-defined
228 compilation units.
229 The implementation may restrict children of language-defined library
230 units (other than Standard).
231 @begin{Ramification}
232 For example, the implementation may say,
233 @lquotes@;you cannot compile a library unit called System@rquotes@;
234 or @lquotes@;you cannot compile a child of package System@rquotes@;
235 or @lquotes@;if you compile a library unit called System,
236 it has to be a package, and it has to contain at least
237 the following declarations: ...@rquotes@;.
238 @end{Ramification}
239 @end{ImplPerm}
240
241 @begin{DiffWord83}
242 Many of Ada 83's language-defined library units are now children of Ada
243 or System.
244 For upward compatibility, these are renamed as root library units
245 (see @RefSecNum{Renamings of Ada 83 Library Units}).
246
247 The order and lettering of the annexes has been changed.
248 @end{DiffWord83}
249
250 @begin{DiffWord95}
251 @ChgRef{Version=[2],Kind=[AddedNormal],Ref=[8652/0047],ARef=[AI95-00081-01]}
252 @ChgAdded{Version=[2],Text=[@b<Corrigendum:> Units missing from the list of
253 predefined units were added.]}
254 @end{DiffWord95}