21-01-2014, 02:32 AM
In Rule 13.2 Example
#define COPY_ELEMENT ( index ) ( a[( index )] = b[( index )] )
The print may have a space between COPY_ELEMENT and '('.
It generate
( index ) ( a[( index )] = b[( index )] ) ( i++ );
#define COPY_ELEMENT( index ) ( a[( index )] = b[( index )] )
"no space" seem proper.
Dr. Ogawa Kiyoshi
@kaizen_nagoya, http://researchmap.jp/kaizen/MISRA-C/
#define COPY_ELEMENT ( index ) ( a[( index )] = b[( index )] )
The print may have a space between COPY_ELEMENT and '('.
It generate
( index ) ( a[( index )] = b[( index )] ) ( i++ );
#define COPY_ELEMENT( index ) ( a[( index )] = b[( index )] )
"no space" seem proper.
Dr. Ogawa Kiyoshi
@kaizen_nagoya, http://researchmap.jp/kaizen/MISRA-C/
<t>Dr. OGAWA Kioshi<br/>
@kaizen_nagoya</t>
@kaizen_nagoya</t>