Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 8.9
#2
These declarations do not violate rule 8.9, assuming that there are no other files in the system.

If the header file is included in other files, the following violations may occur.

static int siz;
Rule 8.9 is violated for each file that "siz" is used in only one function.
and
Rule 5.9 is violated if the header file is included in more than one file.

extern int eix;
Rule 8.7 is violated if "eix" is used in only one file.
and
Rule 8.9 is violated if used in only one function in that file.

It is assumed that the code has been written so that no other MISRA rules have been violated.
Posted by and on behalf of the MISRA C Working Group


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)