diff options
author | Tom Tromey <tom@tromey.com> | 2022-06-12 14:13:22 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-12-19 08:18:59 -0700 |
commit | dad6b350f986a58abe469f4584ac515e7ac17879 (patch) | |
tree | d0112c62a3ff0ae9addccd5983035b443d8742a0 /gdb/guile/scm-pretty-print.c | |
parent | 6829683679ce66f3ff3aa184609afa59ac349637 (diff) | |
download | fsf-binutils-gdb-dad6b350f986a58abe469f4584ac515e7ac17879.zip fsf-binutils-gdb-dad6b350f986a58abe469f4584ac515e7ac17879.tar.gz fsf-binutils-gdb-dad6b350f986a58abe469f4584ac515e7ac17879.tar.bz2 |
Use bool constants for value_print_options
This changes the uses of value_print_options to use 'true' and 'false'
rather than integers.
Diffstat (limited to 'gdb/guile/scm-pretty-print.c')
-rw-r--r-- | gdb/guile/scm-pretty-print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/guile/scm-pretty-print.c b/gdb/guile/scm-pretty-print.c index 5e6bb12..9e42a4d 100644 --- a/gdb/guile/scm-pretty-print.c +++ b/gdb/guile/scm-pretty-print.c @@ -660,7 +660,7 @@ ppscm_print_string_repr (SCM printer, enum display_hint hint, struct value_print_options opts = *options; gdb_assert (replacement != NULL); - opts.addressprint = 0; + opts.addressprint = false; common_val_print (replacement, stream, recurse, &opts, language); result = STRING_REPR_OK; } @@ -698,7 +698,7 @@ ppscm_print_string_repr (SCM printer, enum display_hint hint, { struct value_print_options local_opts = *options; - local_opts.addressprint = 0; + local_opts.addressprint = false; lsscm_val_print_lazy_string (str_scm, stream, &local_opts); result = STRING_REPR_OK; } @@ -883,7 +883,7 @@ ppscm_print_children (SCM printer, enum display_hint hint, { struct value_print_options local_opts = *options; - local_opts.addressprint = 0; + local_opts.addressprint = false; lsscm_val_print_lazy_string (v_scm, stream, &local_opts); } else if (scm_is_string (v_scm)) |