GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
typedefs.h
Go to the documentation of this file.
1 // $Id: typedefs.h 1406 2015-03-06 12:49:37Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 /* This central include file defines data types for all platforms */
15 
16 #ifndef TYPEDEF_H
17 #define TYPEDEF_H
18 
19 /* Platform independent definitions */
20 
21 typedef char CHARS;
22 typedef unsigned char CHARU;
23 typedef char CHARX;
24 typedef char INTS1;
25 typedef unsigned char INTU1;
26 typedef short INTS2;
27 typedef unsigned short INTU2;
28 typedef int INTS4;
29 typedef unsigned int INTU4;
30 typedef float REAL4;
31 typedef double REAL8;
32 
33 /* Platform specific definitions */
34 
35 #ifdef WIN32
36 #define MBS_ENDIAN 0 /* little endian */
37 #define GSI__WINNT
38 #include "typedefs_nt.h"
39 typedef unsigned long ADDRS;
40 typedef unsigned long long ADDR64; // JAM for 64 bit status structure receiving
41 #endif
42 
43 
44 #ifdef Linux
45 #define MBS_ENDIAN 0 /* little endian */
46 #define GSI__LINUX
47 #define GSI__UNIX
48 typedef unsigned long ADDRS;
49 typedef unsigned long long ADDR64; // JAM for 64 bit status structure receiving
50 #endif
51 
52 #ifdef Solaris
53 #define MBS_ENDIAN 1 /* big endian */
54 #define GSI__SOLARIS
55 #define GSI__SLARIS
56 typedef unsigned long ADDRS;
57 typedef unsigned long long ADDR64; // JAM for 64 bit status structure receiving
58 #endif
59 
60 
61 #ifdef Darwin
62 #define MBS_ENDIAN 0 /* little endian */
63 #define GSI__LINUX
64 #define GSI__UNIX
65 typedef unsigned long ADDRS;
66 typedef unsigned long long ADDR64; // JAM for 64 bit status structure receiving
67 #endif
68 
69 
70 #ifdef _AIX
71 #define MBS_ENDIAN 1 /* big endian */
72 #define GSI__AIX
73 #define GSI__UNIX
74 typedef long long INTS8;
75 typedef unsigned long long INTU8;
76 typedef unsigned long long ADDR64; // JAM for 64 bit status structure receiving
77 typedef unsigned long ADDRS;
78 #endif
79 
80 #ifdef __osf__
81 #ifdef __alpha
82 #define MBS_ENDIAN 1 /* big endian */
83 #define AXP
84 #define GSI__UNIX_AXP
85 #define GSI__UNIX
86 typedef long INTS8;
87 typedef unsigned long INTU8;
88 typedef unsigned long ADDRS;
89 typedef unsigned long long ADDR64; // JAM for 64 bit status structure receiving
90 #endif
91 #endif
92 
93 #ifdef _HPUX_SOURCE
94 #define MBS_ENDIAN 1 /* big endian */
95 #define GSI__HPUX
96 #define GSI__UNIX
97 typedef long INTS8;
98 typedef unsigned long INTU8;
99 typedef unsigned long ADDRS;
100 typedef unsigned long long ADDR64; // JAM for 64 bit status structure receiving
101 #endif
102 
103 #ifdef Lynx
104 #define MBS_ENDIAN 1 /* big endian */
105 #define GSI__LYNX
106 #define GSI__UNIX
107 typedef long INTS8;
108 typedef unsigned long INTU8;
109 typedef unsigned long ADDRS;
110 typedef unsigned long long ADDR64; // JAM for 64 bit status structure receiving
111 #endif
112 
113 #ifdef VMS
114 #define MBS_ENDIAN 0 /* little endian */
115 #define GSI__VMS
116 typedef long INTS8;
117 typedef unsigned long INTU8;
118 typedef unsigned long ADDRS;
119 typedef unsigned long long ADDR64; // JAM for 64 bit status structure receiving
120 #ifdef __alpha
121 #define GSI__VMS_AXP
122 #define AXP
123 #endif
124 #ifdef VAX
125 #define GSI__VMS_VAX
126 #endif
127 #endif
128 
129 
130 #endif
char INTS1
Definition: typedefs.h:24
short INTS2
Definition: typedefs.h:26
float REAL4
Definition: typedefs.h:30
unsigned int INTU4
Definition: typedefs.h:29
double REAL8
Definition: typedefs.h:31
int INTS4
Definition: typedefs.h:28
unsigned char INTU1
Definition: typedefs.h:25
unsigned short INTU2
Definition: typedefs.h:27
char CHARX
Definition: typedefs.h:23
char CHARS
Definition: typedefs.h:21
unsigned char CHARU
Definition: typedefs.h:22