Page 1 of 1

Rule 1.1 and Number of characters for Header File name

Posted: Tue Feb 21, 2006 5:12 pm
by lv
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.

Posted: Thu Apr 27, 2006 12:28 pm
by misra-c
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.