![]() |
|
MISRA-C:2004 Rule 6.3: (Advisory) |
|
||||
![]() | |||||||
Programmers should be aware of the actual implementation of the typedefs under these definitions.
For example, the ISO (POSIX) typedefs as shown below are recommended and are used for all basic numerical and character types in this standard. For a 32-bit integer machine, these are as follows:
typedefcharchar_t;typedefsignedcharint8_t;typedefsignedshortint16_t;typedefsignedintint32_t;typedefsignedlongint64_t;typedefunsignedcharuint8_t;typedefunsignedshortuint16_t;typedefunsignedintuint32_t;typedefunsignedlonguint64_t;typedeffloatfloat32_t;typedefdoublefloat64_t;typedeflongdoublefloat128_t;
typedefs are not considered necessary in the specification of bit-field types.
QAC messages that encompass this guideline:
| 5013 | Use of basic type '%s'. |
|
||
(c) The Motor Industry Research Association, 2004
|
QA C Source Code Analyser 8.1.2
MISRA-C:2004 Compliance Module 3.2 © 2013 Programming Research www.programmingresearch.com |
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |