OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
__________________________________________________________________________________________
}
64-Bit Machines:
unsigned long
________________________________________________________________________
TABLE 6-3. IDL/NDR/C Type Mappings: Part 2
___________________________________________________________________________________
IDL Type NDR Type Defined C Type C Type
___________________________________________________________________________________
___________________________________________________________________________________
float float idl_float float
___________________________________________________________________________________
double double idl_double double
___________________________________________________________________________________
handle_t nottransmitted handle_t void *
___________________________________________________________________________________
error_status_t unsigned long idl_ulong_int unsignedlong int
___________________________________________________________________________________
ISO_LATIN_1 uninterpreted octet ISO_LATIN_1 byte
___________________________________________________________________________________
struct{
byte row;
byte column;
}
ISO_MULTI_LINGUAL (Note 1.) ISO_MULTI_LINGUAL
___________________________________________________________________________________
struct{
byte group;
byte plane;
byte row;
byte column;
}
ISO_UCS (Note 1.) ISO_UCS
___________________________________________________________________________________
In addition to the IDL primitive type mappings defined in the table, implementations
provide a set of convenient typedefs that map the listed defined types into types that
explicitly name amounts of storage. These are defined in IDL as follows:
typedef unsigned small unsigned8; /* positive 8-bit integer */
typedef unsigned short unsigned16; /* positive 16-bit integer */
typedef unsigned long unsigned32; /* positive 32-bit integer */
typedef small signed8; /* signed 8-bit integer */
typedef short signed16; /* signed 16-bit integer */
typedef long signed32; /* signed 32-bit integer */
typedef unsigned32 boolean32; /* a 32-bit boolean */
They are defined in C as follows:
typedef idl_usmall_int unsigned8;
typedef idl_ushort_int unsigned16;
typedef idl_ulong_int unsigned32;
typedef idl_small_int signed8;
typedef idl_short_int signed16;
typedef idl_long_int signed32;
typedef unsigned32 boolean32;
6 8 Tandem Computers Incorporated 124246