public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-2213] [Ada] Typo corrections and minor reformatting Date: Fri, 9 Jul 2021 12:39:39 +0000 (GMT) [thread overview] Message-ID: <20210709123939.87B903987035@sourceware.org> (raw) 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 --
reply other threads:[~2021-07-09 12:39 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210709123939.87B903987035@sourceware.org \ --to=pmderodat@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).