Predefined Data Types
In C and C++ code, use the AlTypes.h typedefs when referring to integral types. These typedefs provide an easy way to specify the word size of an integer variable in a cross-platform manner. The typedefs found in the AlTypes.h file provide definitions for the platforms most commonly used at A+L; when starting a project on a platform that's not yet represented in AlTypes.h, please provide definitions.
The types in AlTypes.h are:
Note that not all legacy or embedded platforms provide the underlying support for 64-bit data types.
A typical AlTypes.h looks like:
Each project should make modifications as appropriate for the platform and compiler in use.