1 #include "build_check.h"
4 ** This files contains definitions that are used throughout the cplant code.
10 #define TITLE(fname,zmig)
23 ** Return codes from functions
33 ** The GCC macro for a safe max() that works on all types arithmetic types.
36 #define MAX(a, b) (a) > (b) ? (a) : (b)
40 #define MIN(a, b) (a) < (b) ? (a) : (b)
44 ** The rest is from the old qkdefs.h
52 #define NULL ((void *)0)
56 #define PRIVATE static
61 typedef unsigned char uchar;
65 typedef unsigned char UCHAR;
67 typedef unsigned char UINT8;
68 typedef short int INT16;
69 typedef unsigned short int UINT16;
71 typedef unsigned int UINT32;
73 typedef unsigned long ULONG32;
75 /* long may be 32 or 64, so we can't really append the size to the definition */
77 typedef unsigned long ULONG;
82 typedef unsigned long uint_t;
88 typedef unsigned int uint_t;
91 typedef float FLOAT32;
92 typedef double FLOAT64;
94 typedef INT32 BOOLEAN;
95 typedef void (*FCN_PTR)(void);
99 #if defined (__alpha__) || defined (__ia64__)
100 typedef long off64_t;
102 typedef long long off64_t;
108 ** Process related typedefs
110 typedef UINT16 PID_TYPE; /* Type of Local process ID */
111 typedef UINT16 NID_TYPE; /* Type of Physical node ID */
112 typedef UINT16 GID_TYPE; /* Type of Group ID */
113 typedef UINT16 RANK_TYPE; /* Type of Logical rank/process within a group */
117 #endif /* CPLANT_H */