Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 5.1
#1
Need clarification on rule 5.1 (equivalenet to rule 11 in MISRA C1):

Does this rule disallow to use identifier that has more than 31 characters? Even though the first 31 characters are guaranteed to be distinct.

Thanks,

quangp
<t></t>
#2
Identifiers can be longer than 31 characters, but must be unique within the first 31 characters.

This is detailed in the supporting text of the rule in MISRA-C:2004.
Posted by and on behalf of the MISRA C Working Group


Forum Jump:


Users browsing this thread: 1 Guest(s)