This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] (cli/cli-cmds.c) ARI fix: Avoid assignment inside if statement


> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>,  gdb-patches@sourceware.org
> Date: Sun, 23 Dec 2012 23:28:45 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Since when is that bad C, so much so that we would need to enforce it?
> 
> It's part of the GNU coding standards.

Which says "Try not to...".

FWIW, Emacs sources are replete with such assignments, and I don't see
anything wrong with that in the first place.

So yes, I guess I'm challenging this ARI rule.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]