/* >>>------------------------------------------------------------ * * File: rule_5.1.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 5.1 (Required): * Identifiers (internal and external) shall not rely on the * significance of more than 31 characters. * * Implemented by messages: * 777 [U] External identifier does not differ from other * identifier(s) (e.g. '%s') within the specified number of * significant characters. * * 779 [U] Identifier does not differ from other identifier(s) * (e.g. '%s') within the specified number of significant * characters. * * <<<------------------------------------------------------------ */ /* PRQA S 2985,3210, 3408, 3447 ++ */ #include "misra.h" #include "m2cmex.h" extern void aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1( void ); /* 31 a's */ extern void aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa2( void ); /* also 31 a's - MISRA Violation */ extern S16 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1; /* 31 b's */ extern S16 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb2; /* also 31 b's - MISRA Violation */ extern S16 cccccccccccccccccccccccccccccc1; /* 30 c's */ extern S16 cccccccccccccccccccccccccccccc2; /* also 30 c's - OK */ extern S16 test_0501( void ) { S16 r; S16 ddddddddddddddddddddddddddddddd1 = 1; /* 31 d's */ S16 ddddddddddddddddddddddddddddddd2 = 1; /* also 31 d's - MISRA Violation */ r = bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1 + bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb2 + cccccccccccccccccccccccccccccc1 + cccccccccccccccccccccccccccccc2 + ddddddddddddddddddddddddddddddd1 + ddddddddddddddddddddddddddddddd2; return r; }