libdap++ Updated for version 3.8.2

dods-datatypes-config.h

Go to the documentation of this file.
00001 /* dods-datatypes-config.h.  Generated from dods-datatypes-config.h.in by configure.  */
00002 
00003 /*
00004   Determine at compile-time the sizes of various datatypes. This uses symbols
00005   defined by configure (See configure.in).
00006   jhrg 10/24/94
00007 
00008   This header is included by all of the DODS DAP library header files which
00009   make use of the dods_* typedefs. C or C++ files can either include
00010   config_dap.h, use their own configure script which defines SIZEOF_LONG,
00011   _INT, _CHAR and _DOUBLE or set these preprocessor symbols themselves in a
00012   Makefile, etc.
00013 
00014   This used to be part of the config_dap.h header, but including that in the
00015   DAP library headers introduced problems when the DAP was used in conjunction
00016   with other libraries. 8/1/2000 jhrg
00017 */
00018 
00019 #ifndef __DODS_DATATYPES__
00020 #define __DODS_DATATYPES__
00021 
00022 /* The typedefs are done using a preprocessor symbol so that autoconf's
00023    `CONFIG_HEADER' can be used. The configure script will then only modify
00024    the dods-datatypes.h header when its contents change. This saves on
00025    compilation since the header is used by many files in the dap++ library.
00026    The downside is that the typedefs are so ugly... 2/14/2001 jhrg */
00027 
00028 #define DINT32 int32_t
00029 typedef DINT32 dods_int32;
00030 
00031 #define DUINT32 uint32_t
00032 typedef DUINT32 dods_uint32;
00033 
00034 #define DINT16 int16_t
00035 typedef DINT16 dods_int16;
00036 
00037 #define DUINT16 uint16_t
00038 typedef DUINT16 dods_uint16;
00039 
00040 #define DBYTE uint8_t
00041 typedef DBYTE dods_byte;
00042 
00043 #define DFLOAT64 double
00044 typedef DFLOAT64 dods_float64;
00045 
00046 #define DFLOAT32 float
00047 typedef DFLOAT32 dods_float32;          
00048 
00049 #endif /* __DODS_DATATYPES__ */
00050