Use bool constants for value_print_options

This changes the uses of value_print_options to use 'true' and 'false'
rather than integers.
This commit is contained in:
Tom Tromey 2022-06-12 14:13:22 -06:00
parent 6829683679
commit dad6b350f9
19 changed files with 60 additions and 60 deletions

View file

@ -675,7 +675,7 @@ valpy_format_string (PyObject *self, PyObject *args, PyObject *kw)
struct value_print_options opts;
gdbpy_get_print_options (&opts);
opts.deref_ref = 0;
opts.deref_ref = false;
/* We need objects for booleans as the "p" flag for bools is new in
Python 3.3. */
@ -1169,7 +1169,7 @@ valpy_str (PyObject *self)
struct value_print_options opts;
gdbpy_get_print_options (&opts);
opts.deref_ref = 0;
opts.deref_ref = false;
string_file stb;