]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Return bool from ada_is_modular_type
authorTom Tromey <tromey@adacore.com>
Thu, 4 Dec 2025 14:15:52 +0000 (07:15 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 4 Dec 2025 14:38:09 +0000 (07:38 -0700)
This changes ada_is_modular_type to return bool.

gdb/ada-lang.c
gdb/ada-lang.h

index 7f15029579847936313285b7a84ca9f47ff3b076..21b081854a8f68015f34582209474ddffaf18a9e 100644 (file)
@@ -11626,9 +11626,9 @@ ada_is_range_type_name (const char *name)
 
                                /* Modular types */
 
-/* True iff TYPE is an Ada modular type.  */
+/* See ada-lang.h.  */
 
-int
+bool
 ada_is_modular_type (struct type *type)
 {
   struct type *subranged_type = get_base_type (type);
index 5e08c3bbbdac66c557dd6eb022c99e3ce54ca91d..c7430c713fdb87b0c7f87165899894d09b6801ce 100644 (file)
@@ -322,7 +322,9 @@ extern std::string ada_encode (const char *, bool fold = true);
 
 extern const char *ada_enum_name (const char *);
 
-extern int ada_is_modular_type (struct type *);
+/* True iff TYPE is an Ada modular type.  */
+
+extern bool ada_is_modular_type (struct type *);
 
 extern ULONGEST ada_modulus (struct type *);