From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: brobecker@adacore.com
Cc: gdb-patches@sourceware.org
Subject: Re: [commit/ada+testsuite] print ada boolean expression results as true/false
Date: Fri, 28 Dec 2007 10:33:00 -0000 [thread overview]
Message-ID: <200712281032.lBSAWfAR000724@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <20071228061513.GA24450@adacore.com> (message from Joel Brobecker on Thu, 27 Dec 2007 22:15:13 -0800)
> Date: Thu, 27 Dec 2007 22:15:13 -0800
> From: Joel Brobecker <brobecker@adacore.com>
Just a small nit:
> Index: ada-lang.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/ada-lang.c,v
> retrieving revision 1.112
> diff -u -p -r1.112 ada-lang.c
> --- ada-lang.c 24 Dec 2007 16:52:24 -0000 1.112
> +++ ada-lang.c 28 Dec 2007 06:09:19 -0000
> @@ -8151,6 +8151,24 @@ ada_evaluate_subexp (struct type *expect
> else
> return value_neg (arg1);
>
> + case BINOP_LOGICAL_AND:
> + case BINOP_LOGICAL_OR:
> + case UNOP_LOGICAL_NOT:
> + *pos -= 1;
> + return value_cast (LA_BOOL_TYPE,
> + evaluate_subexp_standard (expect_type, exp,
> + pos, noside));
I think the fact that you need three lines here means that it makes
more sense to avoid the nested function calls and use a (temporary)
variable instead.
next prev parent reply other threads:[~2007-12-28 10:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-28 6:36 Joel Brobecker
2007-12-28 10:33 ` Mark Kettenis [this message]
2007-12-28 13:10 ` Joel Brobecker
2007-12-28 13:22 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200712281032.lBSAWfAR000724@brahms.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox