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/sparc] Add handling of stack-check probes


> Date: Wed, 28 Mar 2007 15:50:13 -0700
> From: Joel Brobecker <brobecker@adacore.com>
> 
> PS: Do other people think that it is simpler for the human brain to understand
>         if (pc >= current_pc)
>     than 
>         if (current_pc <= pc)
> 
>     In other words, the boundary value is put on the rhs of the condition,
>     and the variable value is put on the lhs... It's just an aesthetic
>     consideration, but I can change it if others agree.

I prefer the variable to be on the left and the boundary on the right.

The only case where it is justified to reverse the order is when you
use ==, to avoid the frequent typo that uses only one `='.


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