Rule 1.1 and Number of characters for Header File name - 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.1 Environment (https://forum.misra.org.uk/forumdisplay.php?fid=28) +---- Thread: Rule 1.1 and Number of characters for Header File name (/showthread.php?tid=221) |
Rule 1.1 and Number of characters for Header File name - lv - 21-02-2006 The rule 1.1 deals with limits defined in chapter 5.2.4 of ISO-9899:1990 norm. But for the #include preprocessing directive, the 9899:1999 (and so, I suspect that the C90 is more restrictive) specify in chapter 6.10.2 some restriction (limits) about the sequence placed between the \" \" or < > delimiters: The implementation shall provide unique mappings for sequences consisting of: - one or more digits (no case sensitive) - followed by a period - followed by a single letter. - The mapping is restricting to eight significant characters before the period. So if the sequence between \" and < > delimiters is specified, then the header file names are impacted. I would like to know if it is MISRA compliant to have a header file name with more than 8 characters before the period ? (Example: FooComponent_Api.h) Thanks in advance for your answer. - misra-c - 27-04-2006 This is implementation-defined behaviour including file name limits should be documented under Rule 3.1. These should be available in compiler / operating system documentation. |