/* >>>------------------------------------------------------------ * * File: rule_20.1.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 20.1 (Required): * Reserved identifiers, macros and functions in the standard * library, shall not be defined, redefined or undefined. * * Implemented by messages: * 836 [U] Definition of macro named 'defined'. * * 848 [U] Attempting to #undef '%s', which is a predefined * macro name. * * 854 [U] Attempting to #define '%s', which is a predefined * macro name. * * 3439 Macro redefines a keyword. * * 4600 The macro '%1s' is also defined in '<%2s>'. * * 4601 The macro '%1s' is the name of an identifier in '<%2s>'. * * <<<------------------------------------------------------------ */ /*PRQA S 862 ++ */ #include "misra.h" #include "m2cmex.h" #include "gen.h" #define defined ! defined /* MISRA Violation */ /* 0836 */ #undef __LINE__ /* MISRA Violation */ /* 0848 */ #undef __FILE__ /* MISRA Violation */ /* 0848 */ #undef __DATE__ /* MISRA Violation */ /* 0848 */ #undef __TIME__ /* MISRA Violation */ /* 0848 */ #undef __STDC__ /* MISRA Violation */ /* 0848 */ #define __LINE__ 1 /* MISRA Violation */ /* 0854 */ #define __FILE__ "default" /* MISRA Violation */ /* 0854 */ #define __DATE__ "01-01-2000" /* MISRA Violation */ /* 0854 */ #define __TIME__ "00:00:00" /* MISRA Violation */ /* 0854 */ #define __STDC__ /* MISRA Violation */ /* 0854 */ #define NULL (void *)0 /* MISRA Violation */ #define tan 1 /* MISRA Violation */ #define printf xprintf /* MISRA Violation */ extern S16 test_2001( void ) { return 1; }