Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
declaration or definition
#2
Rule 2.3 :
typedef names are referred in the C standard as declarations, apart from the section heading of 6.7.7 . See C99 section 6.7.7(3).
struct S { int a; int b; } is also a type declaration. See C99 section 6.7.2.1.

Rule 2.5 :
The working group acknowledges that "macro declarations" should have been referred to as "definitions".

( Note: this post has been moved from the MISRA-C:2004 section to MISRA-C:2012)
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)