Commit 67b69383 by Arnaud Charlet

Minor reformatting.

From-SVN: r213357
parent c1b37eda
...@@ -8914,15 +8914,14 @@ package body Exp_Ch9 is ...@@ -8914,15 +8914,14 @@ package body Exp_Ch9 is
-- Discriminated_Size -- -- Discriminated_Size --
------------------------ ------------------------
function Discriminated_Size (Comp : Entity_Id) return Boolean function Discriminated_Size (Comp : Entity_Id) return Boolean is
is
Typ : constant Entity_Id := Etype (Comp); Typ : constant Entity_Id := Etype (Comp);
Index : Node_Id; Index : Node_Id;
function Non_Static_Bound (Bound : Node_Id) return Boolean; function Non_Static_Bound (Bound : Node_Id) return Boolean;
-- Check whether the bound of an index is non-static and does -- Check whether the bound of an index is non-static and does denote
-- denote a discriminant, in which case any protected object of -- a discriminant, in which case any protected object of the type
-- the type will have a non-static size. -- will have a non-static size.
---------------------- ----------------------
-- Non_Static_Bound -- -- Non_Static_Bound --
...@@ -8943,6 +8942,8 @@ package body Exp_Ch9 is ...@@ -8943,6 +8942,8 @@ package body Exp_Ch9 is
end if; end if;
end Non_Static_Bound; end Non_Static_Bound;
-- Start of processing for Discriminated_Size
begin begin
if not Is_Array_Type (Typ) then if not Is_Array_Type (Typ) then
return False; return False;
......
...@@ -66,14 +66,14 @@ package body GNAT.Expect.TTY is ...@@ -66,14 +66,14 @@ package body GNAT.Expect.TTY is
Status := -1; Status := -1;
else else
-- Send a Ctrl-C to the process first. This way, if the -- Send a Ctrl-C to the process first. This way, if the launched
-- launched process is a "sh" or "cmd", the child processes -- process is a "sh" or "cmd", the child processes will get
-- will get terminated as well. Otherwise, terminating the -- terminated as well. Otherwise, terminating the main process
-- main process brutally will leave the children running. -- brutally will leave the children running.
--
-- Note: special characters are sent to the terminal to generate -- Note: special characters are sent to the terminal to generate the
-- the signal, so this needs to be done while the file descriptors -- signal, so this needs to be done while the file descriptors are
-- are still open. -- still open (it used to be after the closes and that was wrong).
Interrupt (Descriptor); Interrupt (Descriptor);
delay (0.05); delay (0.05);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment