gEDA-dev: [PATCH] gschem: Visual feedback for keyboard commands

Steve Meier smeier at alchemyresearch.com
Fri Jun 1 19:40:43 EDT 2007


MISRA is just afriad of crashes.

Steve Meier

On Fri, 2007-06-01 at 19:17 -0400, Bob Paddock wrote:
> On Friday 01 June 2007 14:50, Ales Hvezda wrote:
> 
> > if (...) {
> >   single_statement;
> > }
> > 
> > to:
> > 
> > if (...)
> >   single_statement;
> > 
> > Please, please, please don't go out of your way to make such changes.
> > I have discovered (through lots of pain maintaining other people's
> > code) that those brackets improve code clarity and help convey
> > programmer intent.  Yes, it is a stylistic choice/nit/whatever,
> 
> To support your position MISRA-2004, Rule 14.9:
> 
> "An if(expression) construct shall be followed by a compound statement...
> even a single statement must be in braces..."  There is an exception
> for if/else if/ trees, there must be a final else{}.
> 
> MISRA - The Motor Industry Software Reliability Association
> http://www.misra.org.uk/
> 



More information about the geda-dev mailing list