public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2213] [Ada] Typo corrections and minor reformatting
@ 2021-07-09 12:39 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-07-09 12:39 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:79b87fcf29cd100f15ae68bd74bf94830bf41564
commit r12-2213-g79b87fcf29cd100f15ae68bd74bf94830bf41564
Author: Gary Dismukes <dismukes@adacore.com>
Date: Mon Jun 14 15:37:49 2021 -0400
[Ada] Typo corrections and minor reformatting
gcc/ada/
* libgnarl/s-osinte__vxworks.ads: Fix typo ("release" =>
"releases") plus comment reformatting.
* libgnat/s-os_lib.ads: In a comment, fix typo ("indended" =>
"intended"), add a hyphen and semicolon, plus reformatting. In
comment for subtype time_t, fix typo ("effect" => "affect"), add
hyphens, plus reformatting.
* libgnat/s-parame.ads, libgnat/s-parame__ae653.ads,
libgnat/s-parame__hpux.ads: Remove period from one-line comment.
Diff:
---
gcc/ada/libgnarl/s-osinte__vxworks.ads | 6 +++---
gcc/ada/libgnat/s-os_lib.ads | 19 +++++++++----------
gcc/ada/libgnat/s-parame.ads | 2 +-
gcc/ada/libgnat/s-parame__ae653.ads | 2 +-
gcc/ada/libgnat/s-parame__hpux.ads | 2 +-
5 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/gcc/ada/libgnarl/s-osinte__vxworks.ads b/gcc/ada/libgnarl/s-osinte__vxworks.ads
index 8b9c5bf7b48..a2d5620a03c 100644
--- a/gcc/ada/libgnarl/s-osinte__vxworks.ads
+++ b/gcc/ada/libgnarl/s-osinte__vxworks.ads
@@ -242,9 +242,9 @@ package System.OS_Interface is
type time_t is range -2 ** (System.Parameters.time_t_bits - 1)
.. 2 ** (System.Parameters.time_t_bits - 1) - 1;
- -- Time_t here used to be unsigned to match the VxWorks header
- -- declaration. The header declaration has changed in newer release
- -- and is now signed for applications.
+ -- Time_t here used to be unsigned to match the VxWorks header declaration.
+ -- The header declaration has changed in newer releases and is now signed
+ -- for applications.
type timespec is record
ts_sec : time_t;
diff --git a/gcc/ada/libgnat/s-os_lib.ads b/gcc/ada/libgnat/s-os_lib.ads
index 4c279d563b5..2049e385f6c 100644
--- a/gcc/ada/libgnat/s-os_lib.ads
+++ b/gcc/ada/libgnat/s-os_lib.ads
@@ -168,18 +168,17 @@ package System.OS_Lib is
-- Time_t Stuff --
------------------
- -- Note: Do not use time_t in the compiler and host based tools,
- -- instead use OS_Time. These 3 declarations are indended for use only
- -- by consumers of the GNAT.OS_Lib renaming of this package.
+ -- Note: Do not use time_t in the compiler and host-based tools; instead
+ -- use OS_Time. These 3 declarations are intended for use only by consumers
+ -- of the GNAT.OS_Lib renaming of this package.
subtype time_t is Long_Long_Integer;
- -- C time_t can be either long or long long, but this is a subtype
- -- not used in the compiler or tools, but only for user
- -- applications, so we choose the Ada equivalent of the latter
- -- because eventually that will be the type used out of necessity.
- -- This may effect some user code on 32 bit targets that have not yet
- -- migrated to the Posix 2008 standard, particularly pre version 5
- -- 32 bit Linux.
+ -- C time_t can be either long or long long, but this is a subtype not used
+ -- in the compiler or tools, but only for user applications, so we choose
+ -- the Ada equivalent of the latter because eventually that will be the
+ -- type used out of necessity. This may affect some user code on 32-bit
+ -- targets that have not yet migrated to the Posix 2008 standard,
+ -- particularly pre version 5 32-bit Linux.
function To_C (Time : OS_Time) return time_t;
-- Convert OS_Time to C time_t type
diff --git a/gcc/ada/libgnat/s-parame.ads b/gcc/ada/libgnat/s-parame.ads
index 178bd7cf2a9..0f76a6535bc 100644
--- a/gcc/ada/libgnat/s-parame.ads
+++ b/gcc/ada/libgnat/s-parame.ads
@@ -105,7 +105,7 @@ package System.Parameters is
------------------------------------
time_t_bits : constant := Long_Integer'Size;
- -- Number of bits in type time_t.
+ -- Number of bits in type time_t
----------------------------------------------
-- Characteristics of types in Interfaces.C --
diff --git a/gcc/ada/libgnat/s-parame__ae653.ads b/gcc/ada/libgnat/s-parame__ae653.ads
index 76824351c91..f838b41d5b1 100644
--- a/gcc/ada/libgnat/s-parame__ae653.ads
+++ b/gcc/ada/libgnat/s-parame__ae653.ads
@@ -105,7 +105,7 @@ package System.Parameters is
------------------------------------
time_t_bits : constant := Long_Integer'Size;
- -- Number of bits in type time_t.
+ -- Number of bits in type time_t
----------------------------------------------
-- Characteristics of types in Interfaces.C --
diff --git a/gcc/ada/libgnat/s-parame__hpux.ads b/gcc/ada/libgnat/s-parame__hpux.ads
index 053cd764a8a..d6d4e10e602 100644
--- a/gcc/ada/libgnat/s-parame__hpux.ads
+++ b/gcc/ada/libgnat/s-parame__hpux.ads
@@ -103,7 +103,7 @@ package System.Parameters is
------------------------------------
time_t_bits : constant := Long_Integer'Size;
- -- Number of bits in type time_t.
+ -- Number of bits in type time_t
----------------------------------------------
-- Characteristics of Types in Interfaces.C --
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-09 12:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09 12:39 [gcc r12-2213] [Ada] Typo corrections and minor reformatting Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).