File: dods-datatypes-config.h.in

package info (click to toggle)
libdap 3.11.1-11
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 9,304 kB
  • sloc: cpp: 34,498; sh: 22,379; ansic: 13,754; exp: 2,039; yacc: 1,737; makefile: 826; tcl: 251; perl: 52; xml: 35
file content (49 lines) | stat: -rw-r--r-- 1,417 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

/*
  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 */

#undef DINT32
typedef DINT32 dods_int32;

#undef DUINT32
typedef DUINT32 dods_uint32;

#undef DINT16
typedef DINT16 dods_int16;

#undef DUINT16
typedef DUINT16 dods_uint16;

#undef DBYTE
typedef DBYTE dods_byte;

#undef DFLOAT64
typedef DFLOAT64 dods_float64;

#undef DFLOAT32
typedef DFLOAT32 dods_float32;		

#endif /* __DODS_DATATYPES__ */