MISRA Discussion Forums
Rule 5.1 - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4)
+--- Forum: MISRA-C: 2004 rules (https://forum.misra.org.uk/forumdisplay.php?fid=17)
+---- Forum: 6.5 Identifiers (https://forum.misra.org.uk/forumdisplay.php?fid=32)
+---- Thread: Rule 5.1 (/showthread.php?tid=239)



Rule 5.1 - quangp - 05-04-2006

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


- misra-c - 27-04-2006

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.