and each instance of a parameter, shall be enclosed in parentheses. */ #define TIMES1 ( x,y ) ( ( x ) * ( y ) )
#define TIMES2 ( x,y ) ( x* ( y ) ) /* RULE 96 */
#define TIMES3 ( x,y ) ( ( x ) *y ) /* RULE 96 */
#define TIMES4 ( x,y ) ( x ) * ( y ) /* RULE 96 */
#define myabs0 ( x ) ( ( ( x ) >=0 ) ? ( x ) : - ( x ) )
#define myabs1 ( x ) ( ( x ) >=0 ) ? ( x ) : - ( x ) /* RULE 96 */
#define myabs2 ( x ) ( ( x>=0 ) ? ( x ) : - ( x ) ) /* RULE 96 */
#define myabs3 ( x ) ( ( ( x ) >=0 ) ? x : - ( x ) ) /* RULE 96 */
#define myabs4 ( x ) ( ( ( x ) >=0 ) ? ( x ) : -x ) /* RULE 96 */
#define myabs5 -10
void
func96 ( void )
Function Name: func96()
{
int i = TIMES1 ( 1,3 ) ;
int j = TIMES2 ( 1,3 ) ;
int k = TIMES3 ( 1,3 ) ;
int l = TIMES4 ( 1,3 ) ;
}
Abraxas/Misra Home Table of Contents
ABRAXAS SOFTWARE - CodeCheck MISRA Test-Suite Misra-C:1998 Misra-C:2004.