libdap Updated for version 3.21.0
libdap4 is an implementation of OPeNDAP's DAP protocol.
dods-datatypes-config.h
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
29typedef DINT32 dods_int32;
30
31#define DUINT32 uint32_t
32typedef DUINT32 dods_uint32;
33
34#define DINT16 int16_t
35typedef DINT16 dods_int16;
36
37#define DUINT16 uint16_t
38typedef DUINT16 dods_uint16;
39
40#define DBYTE uint8_t
41typedef DBYTE dods_byte;
42
43#define DFLOAT64 double
44typedef DFLOAT64 dods_float64;
45
46#define DFLOAT32 float
47typedef DFLOAT32 dods_float32;
48
49#define DINT8 int8_t
50typedef DINT8 dods_int8;
51
52#define DINT64 int64_t
53typedef DINT64 dods_int64;
54
55#define DUINT64 uint64_t
56typedef DUINT64 dods_uint64;
57
58/* Enums in DAP4 are 64-bit signed integers */
59typedef DINT64 dods_enum;
60
61#endif /* __DODS_DATATYPES__ */
62