5.8 and external identifiers in different header file - 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:2012 and MISRA C:2023 guidelines (https://forum.misra.org.uk/forumdisplay.php?fid=21) +---- Forum: 8.5 Identifers (https://forum.misra.org.uk/forumdisplay.php?fid=160) +---- Thread: 5.8 and external identifiers in different header file (/showthread.php?tid=1201) |
5.8 and external identifiers in different header file - lovewar - 25-08-2015 Would the following examples be non-compliant with rule #5.8? Code: /* file 1. h */ Re: 5.8 and external identifiers in different header file - misra-c - 18-09-2015 Both declarations of count are of the same object and therefore rule 5.8 does not apply. However rule 8.5 will be violated as the declaration appears in more than one file. |