aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-02-02 21:21:19 -0700
committerTom Tromey <tom@tromey.com>2017-02-02 21:25:12 -0700
commit65c40c956fcd9443a5390d6cc36f84bd1bf77df4 (patch)
tree6a3fbc67e327be08236da7508570a153f6bda7c2 /gdb/rust-lang.h
parentb50f188dfa065c9edfe82c874e2f8c179eb6d697 (diff)
downloadgdb-65c40c956fcd9443a5390d6cc36f84bd1bf77df4.zip
gdb-65c40c956fcd9443a5390d6cc36f84bd1bf77df4.tar.gz
gdb-65c40c956fcd9443a5390d6cc36f84bd1bf77df4.tar.bz2
Use bool in Rust code
This changes various functions in the Rust code to use a bool rather than an int when a boolean is intended. 2017-02-02 Tom Tromey <tom@tromey.com> * rust-exp.y (ends_raw_string, space_then_number) (rust_identifier_start_p): Return bool. * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) (rust_tuple_struct_type_p, rust_tuple_variant_type_p) (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) (rust_chartype_p): Return bool. (val_print_struct, rust_print_struct_def, rust_print_type): Update. * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): Return bool.
Diffstat (limited to 'gdb/rust-lang.h')
-rw-r--r--gdb/rust-lang.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rust-lang.h b/gdb/rust-lang.h
index 6c627ae..8f2b682 100644
--- a/gdb/rust-lang.h
+++ b/gdb/rust-lang.h
@@ -30,10 +30,10 @@ extern int rust_parse (struct parser_state *);
extern void rustyyerror (char *);
/* Return true if TYPE is a tuple type; otherwise false. */
-extern int rust_tuple_type_p (struct type *type);
+extern bool rust_tuple_type_p (struct type *type);
/* Return true if TYPE is a tuple struct type; otherwise false. */
-extern int rust_tuple_struct_type_p (struct type *type);
+extern bool rust_tuple_struct_type_p (struct type *type);
/* Given a block, find the name of the block's crate. Returns an empty
stringif no crate name can be found. */