+2018-12-03 Gary Dismukes <dismukes@adacore.com>
+
+ * exp_ch3.adb, libgnarl/s-taasde.adb, libgnarl/s-taenca.adb,
+ libgnarl/s-tarest.adb, libgnarl/s-tasini.adb,
+ libgnarl/s-taskin.ads, libgnarl/s-tasren.adb,
+ libgnarl/s-tassta.adb, libgnarl/s-tasuti.adb: Spelling fixes and
+ minor reformatting.
+
2018-12-03 Eric Botcazou <ebotcazou@adacore.com>
* exp_aggr.adb (Convert_To_Positional): Use
-- An aggregate that must be built in place is not resolved and
-- expanded until the enclosing construct is expanded. This will
- -- happen when the aggregqte is limited and the declared object
+ -- happen when the aggregate is limited and the declared object
-- has a following address clause.
if Is_Limited_Type (Typ) and then not Analyzed (Expr) then
begin
-- A delay block level of Level_No_Pending_Abort indicates the delay
- -- has been cancelled. If the delay has already been canceled, there is
+ -- has been canceled. If the delay has already been canceled, there is
-- nothing more to be done.
if D.Level = Level_No_Pending_Abort then
-- Allocate a queue element for the wakeup time T and put it in the
-- queue in wakeup time order. Assume we are on an asynchronous
- -- select statement with delay trigger. Put the calling task to
- -- sleep until either the delay expires or is cancelled.
+ -- select statement with delay trigger. Put the calling task to
+ -- sleep until either the delay expires or is canceled.
-- We use one entry call record for this delay, since we have
-- to increment the ATC nesting level, but since it is not a
Call : Entry_Call_Link)
is
begin
- pragma Assert (Self_ID.ATC_Nesting_Level > Level_No_ATC_Occuring);
+ pragma Assert (Self_ID.ATC_Nesting_Level > Level_No_ATC_Occurring);
pragma Assert (Call.Mode = Asynchronous_Call);
STPO.Write_Lock (Self_ID);
end if;
-- Only the first element of the Entry_Calls array is used when the
- -- Ravenscar Profile is active as no asynchronous transfer of control
+ -- Ravenscar Profile is active, as no asynchronous transfer of control
-- is allowed.
Created_Task.Entry_Calls (Created_Task.Entry_Calls'First) :=
when Activating
| Runnable
=>
- if T.ATC_Nesting_Level > Level_No_ATC_Occuring then
+ if T.ATC_Nesting_Level > Level_No_ATC_Occurring then
-- This scenario occurs when an asynchronous protected entry
- -- call is canceld during a requeue with abort.
+ -- call is canceled during a requeue with abort.
T.Entry_Calls
(T.ATC_Nesting_Level).Cancellation_Attempted := True;
Wakeup (T, T.Common.State);
when Entry_Caller_Sleep =>
- pragma Assert (T.ATC_Nesting_Level > Level_No_ATC_Occuring);
+ pragma Assert (T.ATC_Nesting_Level > Level_No_ATC_Occurring);
T.Entry_Calls
(T.ATC_Nesting_Level).Cancellation_Attempted := True;
-- ATC_Level of a task that has "completed". A task reaches the completed
-- state after an abort, exception propagation, or normal exit.
- Level_No_ATC_Occuring : constant ATC_Level_Base := 0;
+ Level_No_ATC_Occurring : constant ATC_Level_Base := 0;
-- ATC_Level of a task not executing a entry call or an asynchronous
-- select statement.
-- ATC_Level when there is no pending abort
subtype ATC_Level is ATC_Level_Base range
- Level_No_ATC_Occuring .. Level_No_Pending_Abort - 1;
+ Level_No_ATC_Occurring .. Level_No_Pending_Abort - 1;
-- Nested ATC_Levels valid during the execution of a task
subtype ATC_Level_Index is ATC_Level range
- Level_No_ATC_Occuring + 1 .. ATC_Level'Last;
+ Level_No_ATC_Occurring + 1 .. ATC_Level'Last;
-- ATC_Levels valid when a task is executing an entry call or asynchronous
-- task control statements.
-- Beginning of counts
- ATC_Nesting_Level : ATC_Level := Level_No_ATC_Occuring;
+ ATC_Nesting_Level : ATC_Level := Level_No_ATC_Occurring;
-- The dynamic level of ATC nesting (currently executing nested
-- asynchronous select statements) in this task.
if Self_Id.Common.Call /= null then
Caller := Self_Id.Common.Call.Self;
- pragma Assert (Caller.ATC_Nesting_Level > Level_No_ATC_Occuring);
+ pragma Assert (Caller.ATC_Nesting_Level > Level_No_ATC_Occurring);
Uninterpreted_Data :=
Caller.Entry_Calls (Caller.ATC_Nesting_Level).Uninterpreted_Data;
Self_ID.Master_Of_Task .. Self_ID.Master_Of_Task + 3);
pragma Assert (Self_ID.Common.Wait_Count = 0);
pragma Assert (Self_ID.Open_Accepts = null);
- pragma Assert (Self_ID.ATC_Nesting_Level = Level_No_ATC_Occuring);
+ pragma Assert (Self_ID.ATC_Nesting_Level = Level_No_ATC_Occurring);
pragma Debug (Debug.Trace (Self_ID, "V_Complete_Task", 'C'));
procedure Exit_One_ATC_Level (Self_ID : Task_Id) is
begin
- pragma Assert (Self_ID.ATC_Nesting_Level > Level_No_ATC_Occuring);
+ pragma Assert (Self_ID.ATC_Nesting_Level > Level_No_ATC_Occurring);
Self_ID.ATC_Nesting_Level := Self_ID.ATC_Nesting_Level - 1;