libdap++  Updated for version 3.8.2
dods-datatypes-config.h
Go to the documentation of this file.
1 /* dods-datatypes-config.h. Generated from dods-datatypes-config.h.in by configure. */
2 
3 /*
4  Determine at compile-time the sizes of various datatypes. This uses symbols
5  defined by configure (See configure.in).
6  jhrg 10/24/94
7 
8  This header is included by all of the DODS DAP library header files which
9  make use of the dods_* typedefs. C or C++ files can either include
10  config_dap.h, use their own configure script which defines SIZEOF_LONG,
11  _INT, _CHAR and _DOUBLE or set these preprocessor symbols themselves in a
12  Makefile, etc.
13 
14  This used to be part of the config_dap.h header, but including that in the
15  DAP library headers introduced problems when the DAP was used in conjunction
16  with other libraries. 8/1/2000 jhrg
17 */
18 
19 #ifndef __DODS_DATATYPES__
20 #define __DODS_DATATYPES__
21 
22 /* The typedefs are done using a preprocessor symbol so that autoconf's
23  `CONFIG_HEADER' can be used. The configure script will then only modify
24  the dods-datatypes.h header when its contents change. This saves on
25  compilation since the header is used by many files in the dap++ library.
26  The downside is that the typedefs are so ugly... 2/14/2001 jhrg */
27 
28 #define DINT32 int32_t
30 
31 #define DUINT32 uint32_t
33 
34 #define DINT16 int16_t
36 
37 #define DUINT16 uint16_t
39 
40 #define DBYTE uint8_t
41 typedef DBYTE dods_byte;
42 
43 #define DFLOAT64 double
45 
46 #define DFLOAT32 float
48 
49 #endif /* __DODS_DATATYPES__ */
50