]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Typo corrections and minor reformatting
authorGary Dismukes <dismukes@adacore.com>
Mon, 14 Jun 2021 19:37:49 +0000 (15:37 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 9 Jul 2021 12:35:31 +0000 (12:35 +0000)
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.

gcc/ada/libgnarl/s-osinte__vxworks.ads
gcc/ada/libgnat/s-os_lib.ads
gcc/ada/libgnat/s-parame.ads
gcc/ada/libgnat/s-parame__ae653.ads
gcc/ada/libgnat/s-parame__hpux.ads

index 8b9c5bf7b480ff2e49181850fd6ac5974548e440..a2d5620a03cd2cbc028335d0a072bc031528e86e 100644 (file)
@@ -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;
index 4c279d563b5157d71cc02efe7dde7abee1ba1f30..2049e385f6cc0fd2f3a36ddb55dcc76a4ba67278 100644 (file)
@@ -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
index 178bd7cf2a9a260eedeb5ba11fa96f80fe98f4f9..0f76a6535bcf7e4bae81e44b96a5346f1f61d0ca 100644 (file)
@@ -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 --
index 76824351c9128dd105e8f07a7517d19001e1a2ff..f838b41d5b118b2200d935fa882cc89fe3a34c3f 100644 (file)
@@ -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 --
index 053cd764a8adcee61377d221bda2794387ae6cf3..d6d4e10e602562115da35e43b8ed786bd603c25e 100644 (file)
@@ -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 --