]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] AI12-0411 Add "bool" to Interfaces.C
authorArnaud Charlet <charlet@adacore.com>
Wed, 3 Mar 2021 15:14:43 +0000 (10:14 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 17 Jun 2021 14:32:09 +0000 (10:32 -0400)
gcc/ada/

* libgnat/i-c.ads, libgnat/i-cexten.ads,
libgnat/i-cexten__128.ads: bool renamed C_bool.

gcc/ada/libgnat/i-c.ads
gcc/ada/libgnat/i-cexten.ads
gcc/ada/libgnat/i-cexten__128.ads

index 5c36245c8f4e413adb1d67c59f80db4c21aadad9..428ea4985e80159fa533c3c1ecca1aa647db621b 100644 (file)
@@ -63,8 +63,8 @@ package Interfaces.C is
 
    --  Boolean type
 
-   type bool is new Boolean;
-   pragma Convention (C, bool);
+   type C_bool is new Boolean;
+   pragma Convention (C, C_bool);
 
    --  Floating-Point
 
index 42eb578a38ed933f799eae0693d70d3b864e7994..70d2621bb367d72c1039475df4b17449caaf6542 100644 (file)
@@ -56,7 +56,7 @@ package Interfaces.C.Extensions is
 
    --  C bool
 
-   subtype bool is Interfaces.C.bool;
+   subtype bool is Interfaces.C.C_bool;
 
    --  64-bit integer types
 
index 70727b71c675a8182e098741511114ded16d5341..c07c5ab0a13ddc7af98c3287d74dde284e3e5948 100644 (file)
@@ -56,7 +56,7 @@ package Interfaces.C.Extensions is
 
    --  C bool
 
-   subtype bool is Interfaces.C.bool;
+   subtype bool is Interfaces.C.C_bool;
 
    --  64-bit integer types