Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
19.4 do while(0)
#4
Hi Lundin,

I agree with you.
This time I think MISRA-C :1998 also had it correct with Rule 90!
Again, I think deviations for the odd case when one cant comply would be preferable to changing the rules to allow bad code to comply.
In my view MISRA-C:1998 is much better than MISRA-C:2004 even if there are a few ambiguities.
My suggestion is to create your own programming standards and use MISRA as a basis. Tighten up the rules in MISRA-C:2004 and don't discount what MISRA-C:1998 had to say!
It is my opinion that MISRA should be used as a minimal set of rules. There are lots more you can add.
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)