#TYPEMAP (map EQUATE to data type)

Top  Previous  Next

 

#TYPEMAP ( equate data type, 32-bit representation [,16-bit representation] )

#TYPEMAP

Maps an EQUATE data type to a true data type based on the target operating system.

equate data type

A string constant containing the label of an equate used to represent a data type.

32-bit data type

A string constant containing the label of a data type that represents the equated data type in a 32-bit program.

16-bit data type

A string constant containing the label of a data type that represents the equated data type in a 16-bit program.(deprecated)

The #TYPEMAP statement allows the template to map a data type EQUATE to a true data type based on the target operating system of the application. This allows the compiler to resolve these EQUATES to their respective data types.

Example:

#TYPEMAP('SIGNED','LONG')

#TYPEMAP('SIGNED','LONG','SHORT')