1 /*****************************************************************************
2  * type.h
3  *
4  * DESCRIPTION
5  *    This file contains some simple common types used by this project.
6  *
7  * HISTORY
8  *   12/2002 Arthur Taylor (MDL / RSIS): Created.
9  *
10  * NOTES
11  *****************************************************************************
12  */
13 #ifndef TYPE_H
14 #define TYPE_H
15 
16 #ifndef SINT4_TYPE
17  #define SINT4_TYPE
18 /*   #ifdef _64Bit
19  *   typedef of sInt4 and uInt4 determination now moved to config.h
20  *    A D T Aug 26, 2006
21  *   Moved back to here with assumption that SIZEOF_LONG_INT is set
22  *    by makefile.
23  *    AATaylor 9/20/2006
24  */
25 
26   typedef signed int sInt4;
27   typedef unsigned int uInt4;
28  typedef unsigned char uChar;
29  typedef signed char sChar;
30  typedef unsigned short int uShort2;
31  typedef signed short int sShort2;
32  /* Use size_t for unsigned int when you don't care the size (>= 2) */
33  /* Use char (0, 1) for boolean */
34 #endif
35 
36 /* #define LATLON_DECIMALS 6 */
37 #ifndef LATLON_STRUCT
38 typedef struct {
39    double lat, lon;
40 } LatLon;
41 #define LATLON_STRUCT
42 #endif
43 
44 typedef struct {
45    uChar f_valid;
46    double X, Y;
47 } Point;
48 
49 #endif
50