From 7056f312d00682bfd44a1b2b8149e8faf3e7b9dd Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 10 Mar 2021 11:50:09 -0700 Subject: Use bool for "parse_completion" Some spots in GDB already use bool for "parse_completion", but a few were still using int. This patch updates these to bool. I'm checking this in. gdb/ChangeLog 2021-03-10 Tom Tromey * parser-defs.h (parser_state): Change completion to bool. : Likewise. * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall) (ada_resolve_variable, ada_resolve_function): Update. * ada-lang.c (ada_find_operator_symbol): Change parse_completion to bool. (ada_resolve_funcall, ada_resolve_variable) (ada_resolve_function): Likewise. --- gdb/ada-lang.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gdb/ada-lang.c') diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 8330cbc..b2eff9d 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -193,7 +193,7 @@ static int find_struct_field (const char *, struct type *, int, static int ada_resolve_function (std::vector &, struct value **, int, const char *, - struct type *, int); + struct type *, bool); static int ada_is_direct_array_type (struct type *); @@ -3375,7 +3375,7 @@ See set/show multiple-symbol.")); /* See ada-lang.h. */ block_symbol -ada_find_operator_symbol (enum exp_opcode op, int parse_completion, +ada_find_operator_symbol (enum exp_opcode op, bool parse_completion, int nargs, value *argvec[]) { if (possible_user_operator_p (op, argvec)) @@ -3398,7 +3398,7 @@ ada_find_operator_symbol (enum exp_opcode op, int parse_completion, block_symbol ada_resolve_funcall (struct symbol *sym, const struct block *block, struct type *context_type, - int parse_completion, + bool parse_completion, int nargs, value *argvec[], innermost_block_tracker *tracker) { @@ -3428,7 +3428,7 @@ ada_resolve_funcall (struct symbol *sym, const struct block *block, block_symbol ada_resolve_variable (struct symbol *sym, const struct block *block, struct type *context_type, - int parse_completion, + bool parse_completion, int deprocedure_p, innermost_block_tracker *tracker) { @@ -3634,7 +3634,7 @@ static int ada_resolve_function (std::vector &syms, struct value **args, int nargs, const char *name, struct type *context_type, - int parse_completion) + bool parse_completion) { int fallback; int k; -- cgit v1.1