> If they are touting MISRA checking as lint they haven't seen a good
> lint. MISRA is a subset of what a good lint can find.
PC-Lint for single workstation only runs $239. http://www.gimpel.com/
Do you suggest a better lint?
>
> >Example - Keil code IAR does not like:
> >
> >#define P_EP(n) ((USB_EP_EVENT & (1 << (n))) ? USB_EndPoint##n : NULL)
> >
> >const void (* USB_P_EP[16]) (DWORD event) = {
> > P_EP(0),
> > P_EP(1),
> > P_EP(2)
> >};
>
>
> Good heavens, that may be legal C it's some of the ugliest I've seen in a
> while. I'd want an awfully good reason before using such a
> construct. PC-Lint BTW throws up all over it :)
>
Yes. It was taken from the Keil USB examples. Ugly and useful for proving
a point ;)
JoelMessage
RE: [lpc2000] IAR Embedded Workbench for ARM - EWARM
2005-11-30 by Joel Winarske