/* >>>------------------------------------------------------------ * * File: rule_20.2.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 20.2 (Required): * The names of standard library macros, objects and functions * shall not be reused. * * Implemented by messages: * 602 [U] The identifier '%s' is reserved for use by the * library. * * 4602 The identifier '%1s' is declared as a macro in '<%2s>'. * * 4603 The object/function '%1s'is being defined with the same * name as an ordinary identifier defined in '<%2s>'. * * 4604 The object/function '%1s' is being declared with the * same name as an ordinary identifier defined in '<%2s>'. * * 4605 The typedef '%1s' is also defined in '<%2s>'. * * 4606 The typedef '%1s' has the same name as another ordinary * identifier in '<%2s>'. * * 4607 The enum constant '%1s' has the same name as another * ordinary identifier in '<%2s>'. * * 4608 The tag '%1s' is also defined in '<%2s>'. * * <<<------------------------------------------------------------ */ /* PRQA S 2983,2984,3203 ++ */ #include "misra.h" #include "m2cmex.h" static F32 sqrt( F32 d ); /* MISRA Violation */ static S16 _test_2002a( void ); /* MISRA Violation */ enum { EOF = -1 }; /* MISRA Violation */ enum { cos = 55 }; /* MISRA Violation */ enum tm { t1, t2, t3 }; /* MISRA Violation */ typedef int FILE; /* MISRA Violation */ typedef signed int sin; /* MISRA Violation */ extern S16 test_2002( void ) { F32 f; FILE r; sin s = 5; f = sqrt( 1.44F ); r = _test_2002a(); r = r + s; return r; } static F32 sqrt( F32 d ) /* MISRA Violation */ { return( d ); } static S16 _test_2002a( void ) /* MISRA Violation */ { return 1; }