dods-datatypes-config.h
/* dods-datatypes-config.h. Generated from dods-datatypes-config.h.in by configure. */
/*
Determine at compile-time the sizes of various datatypes. This uses symbols
defined by configure (See configure.in).
jhrg 10/24/94
This header is included by all of the DODS DAP library header files which
make use of the dods_* typedefs. C or C++ files can either include
config_dap.h, use their own configure script which defines SIZEOF_LONG,
_INT, _CHAR and _DOUBLE or set these preprocessor symbols themselves in a
Makefile, etc.
This used to be part of the config_dap.h header, but including that in the
DAP library headers introduced problems when the DAP was used in conjunction
with other libraries. 8/1/2000 jhrg
*/
#ifndef __DODS_DATATYPES__
#define __DODS_DATATYPES__
/* The typedefs are done using a preprocessor symbol so that autoconf's
`CONFIG_HEADER' can be used. The configure script will then only modify
the dods-datatypes.h header when its contents change. This saves on
compilation since the header is used by many files in the dap++ library.
The downside is that the typedefs are so ugly... 2/14/2001 jhrg */
#define DINT32 int32_t
typedef DINT32 dods_int32;
#define DUINT32 uint32_t
typedef DUINT32 dods_uint32;
#define DINT16 int16_t
typedef DINT16 dods_int16;
#define DUINT16 uint16_t
typedef DUINT16 dods_uint16;
#define DBYTE uint8_t
typedef DBYTE dods_byte;
#define DFLOAT64 double
typedef DFLOAT64 dods_float64;
#define DFLOAT32 float
typedef DFLOAT32 dods_float32;
#define DINT8 int8_t
typedef DINT8 dods_int8;
#define DINT64 int64_t
typedef DINT64 dods_int64;
#define DUINT64 uint64_t
typedef DUINT64 dods_uint64;
/* Enums in DAP4 are 64-bit signed integers */
typedef DINT64 dods_enum;
#endif /* __DODS_DATATYPES__ */