7 Teleservice Application Framework
User Manual 127/374
Range (hexadecimal - HEX)
NATIVE type definitions
Range (hexadecimal - HEX)
- 2147483648 ..
+2147483647
Not recommended mistakable COMPATIBILITY type definitions
Range (hexadecimal - HEX)
0x00:FALSE / (!=0x00):TRUE
STW also defines the data type boolean to store binary data. A boolean data type can help to increase the
performance. However boolean is target specific and should be used with care. On some platforms a boolean
variable takes 1 bit of memory. Such a variable can only be 0 or 1 but can not be referenced by pointers or
members of a structure. Other platforms define boolean as an integer variable. In this case it is not guaranteed,
that the value of this variable is 0 or 1 - it could also be greater than 1. If a platform defines a boolean as an
integer, the variable can be referenced by pointers or member of a structure.
For information about using floating point arithmetic see programming hints.
The width of native data types (charn, uintn, and sintn) depend on the used platforms.
On 16-bit platforms an integer has a width of 16-bits - at 32-bit platform it is 32-bit wide. The API uses
this behavior for definition of platform comprehensive functions.
Note:
The usage of boolean can lead to unportable code.