* s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
output.adb, output.ads, s-taprop-hpux-dce.adb,
s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
reformatting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146388
138bc75d-0d04-0410-961f-
82ee72b054a4
2009-04-20 Thomas Quinot <quinot@adacore.com>
+ * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
+ output.adb, output.ads, s-taprop-hpux-dce.adb,
+ s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
+ reformatting.
+
+2009-04-20 Thomas Quinot <quinot@adacore.com>
+
* g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
(GNAT.Sockets.Thin.C_Inet_Addr): Remove.
Indentation_Limit : constant Positive := 40;
-- Indentation beyond this number of spaces wraps around
+
pragma Assert (Indentation_Limit < Buffer_Max / 2);
-- Make sure this is substantially shorter than the line length
begin
Cur_Indentation :=
(Cur_Indentation + Indentation_Amount) mod Indentation_Limit;
- -- The "mod" is to wrap around in case there's too much indentation.
+ -- The "mod" is to wrap around in case there's too much indentation
end Indent;
-------------
procedure Indent;
-- Increases the current indentation level. Whenever a line is written
-- (triggered by Eol), an appropriate amount of whitespace is added to the
- -- beginning of the line, wrapping around if it gets to long.
+ -- beginning of the line, wrapping around if it gets too long.
procedure Outdent;
-- Decreases the current indentation level.
-- Column about to be written
type Saved_Output_Buffer is record
- Buffer : String (1 .. Buffer_Max + 1);
- Next_Col : Positive;
+ Buffer : String (1 .. Buffer_Max + 1);
+ Next_Col : Positive;
Cur_Indentation : Natural;
end record;
S.Waiting := True;
loop
- -- loop in case pthread_cond_wait returns earlier than
- -- expected (e.g. in case of EINTR caused by a signal).
+ -- Loop in case pthread_cond_wait returns earlier than expected
+ -- (e.g. in case of EINTR caused by a signal).
Result := pthread_cond_wait (S.CV'Access, S.L'Access);
pragma Assert (Result = 0 or else Result = EINTR);
S.Waiting := True;
loop
- -- loop in case pthread_cond_wait returns earlier than
- -- expected (e.g. in case of EINTR caused by a signal).
+ -- Loop in case pthread_cond_wait returns earlier than expected
+ -- (e.g. in case of EINTR caused by a signal).
Result := pthread_cond_wait (S.CV'Access, S.L'Access);
pragma Assert (Result = 0 or else Result = EINTR);
S.Waiting := True;
loop
- -- loop in case pthread_cond_wait returns earlier than
- -- expected (e.g. in case of EINTR caused by a signal).
- -- This should not happen on current implementation of pthread
- -- under Linux, but POSIX does not guarantee it, so this may
- -- change in the future.
+ -- Loop in case pthread_cond_wait returns earlier than expected
+ -- (e.g. in case of EINTR caused by a signal). This should not
+ -- happen with the current Linux implementation of pthread, but
+ -- POSIX does not guarantee it, so this may change in the
+ -- future.
Result := pthread_cond_wait (S.CV'Access, S.L'Access);
pragma Assert (Result = 0 or else Result = EINTR);
S.Waiting := True;
loop
- -- loop in case pthread_cond_wait returns earlier than
- -- expected (e.g. in case of EINTR caused by a signal).
+ -- Loop in case pthread_cond_wait returns earlier than expected
+ -- (e.g. in case of EINTR caused by a signal).
Result := pthread_cond_wait (S.CV'Access, S.L'Access);
pragma Assert (Result = 0 or else Result = EINTR);
S.Waiting := True;
loop
- -- loop in case pthread_cond_wait returns earlier than
- -- expected (e.g. in case of EINTR caused by a signal).
+ -- Loop in case pthread_cond_wait returns earlier than expected
+ -- (e.g. in case of EINTR caused by a signal).
Result := cond_wait (S.CV'Access, S.L'Access);
pragma Assert (Result = 0 or else Result = EINTR);
S.Waiting := True;
loop
- -- loop in case pthread_cond_wait returns earlier than
- -- expected (e.g. in case of EINTR caused by a signal).
+ -- Loop in case pthread_cond_wait returns earlier than expected
+ -- (e.g. in case of EINTR caused by a signal).
Result := pthread_cond_wait (S.CV'Access, S.L'Access);
pragma Assert (Result = 0 or else Result = EINTR);
S.Waiting := True;
loop
- -- loop in case pthread_cond_wait returns earlier than
- -- expected (e.g. in case of EINTR caused by a signal).
+ -- Loop in case pthread_cond_wait returns earlier than expected
+ -- (e.g. in case of EINTR caused by a signal).
Result := pthread_cond_wait (S.CV'Access, S.L'Access);
pragma Assert (Result = 0 or else Result = EINTR);