sl@0
|
1 |
/*
|
sl@0
|
2 |
* Portions Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* Contributors:
|
sl@0
|
5 |
*
|
sl@0
|
6 |
* Description:
|
sl@0
|
7 |
*
|
sl@0
|
8 |
*/
|
sl@0
|
9 |
|
sl@0
|
10 |
|
sl@0
|
11 |
|
sl@0
|
12 |
|
sl@0
|
13 |
/* glibconfig.h
|
sl@0
|
14 |
*
|
sl@0
|
15 |
* This is a generated file. Please modify 'configure.in'
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef __G_LIBCONFIG_H__
|
sl@0
|
19 |
#define __G_LIBCONFIG_H__
|
sl@0
|
20 |
|
sl@0
|
21 |
#include <glib/gmacros.h>
|
sl@0
|
22 |
|
sl@0
|
23 |
#include <limits.h>
|
sl@0
|
24 |
#include <float.h>
|
sl@0
|
25 |
#ifdef __SYMBIAN32__
|
sl@0
|
26 |
#include <pthread.h>
|
sl@0
|
27 |
#endif //__SYMBIAN32__
|
sl@0
|
28 |
|
sl@0
|
29 |
#ifndef __SYMBIAN32__
|
sl@0
|
30 |
#define GLIB_HAVE_ALLOCA_H
|
sl@0
|
31 |
#define GLIB_HAVE_SYS_POLL_H
|
sl@0
|
32 |
#endif /* __SYMBIAN32__ */
|
sl@0
|
33 |
|
sl@0
|
34 |
G_BEGIN_DECLS
|
sl@0
|
35 |
|
sl@0
|
36 |
#define G_MINFLOAT FLT_MIN
|
sl@0
|
37 |
#define G_MAXFLOAT FLT_MAX
|
sl@0
|
38 |
#define G_MINDOUBLE DBL_MIN
|
sl@0
|
39 |
#define G_MAXDOUBLE DBL_MAX
|
sl@0
|
40 |
#define G_MINSHORT SHRT_MIN
|
sl@0
|
41 |
#define G_MAXSHORT SHRT_MAX
|
sl@0
|
42 |
#define G_MAXUSHORT USHRT_MAX
|
sl@0
|
43 |
#define G_MININT INT_MIN
|
sl@0
|
44 |
#define G_MAXINT INT_MAX
|
sl@0
|
45 |
#define G_MAXUINT UINT_MAX
|
sl@0
|
46 |
#define G_MINLONG LONG_MIN
|
sl@0
|
47 |
#define G_MAXLONG LONG_MAX
|
sl@0
|
48 |
#define G_MAXULONG ULONG_MAX
|
sl@0
|
49 |
|
sl@0
|
50 |
typedef signed char gint8;
|
sl@0
|
51 |
typedef unsigned char guint8;
|
sl@0
|
52 |
typedef signed short gint16;
|
sl@0
|
53 |
typedef unsigned short guint16;
|
sl@0
|
54 |
#define G_GINT16_MODIFIER "h"
|
sl@0
|
55 |
#define G_GINT16_FORMAT "hi"
|
sl@0
|
56 |
#define G_GUINT16_FORMAT "hu"
|
sl@0
|
57 |
typedef signed int gint32;
|
sl@0
|
58 |
typedef unsigned int guint32;
|
sl@0
|
59 |
#define G_GINT32_MODIFIER ""
|
sl@0
|
60 |
#define G_GINT32_FORMAT "i"
|
sl@0
|
61 |
#define G_GUINT32_FORMAT "u"
|
sl@0
|
62 |
#define G_HAVE_GINT64 1 /* deprecated, always true */
|
sl@0
|
63 |
|
sl@0
|
64 |
|
sl@0
|
65 |
G_GNUC_EXTENSION typedef signed long long gint64;
|
sl@0
|
66 |
G_GNUC_EXTENSION typedef unsigned long long guint64;
|
sl@0
|
67 |
|
sl@0
|
68 |
#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
|
sl@0
|
69 |
#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
|
sl@0
|
70 |
#define G_GINT64_MODIFIER "ll"
|
sl@0
|
71 |
#define G_GINT64_FORMAT "lli"
|
sl@0
|
72 |
#define G_GUINT64_FORMAT "llu"
|
sl@0
|
73 |
|
sl@0
|
74 |
#define GLIB_SIZEOF_VOID_P 4
|
sl@0
|
75 |
#define GLIB_SIZEOF_LONG 4
|
sl@0
|
76 |
#define GLIB_SIZEOF_SIZE_T 4
|
sl@0
|
77 |
|
sl@0
|
78 |
typedef signed int gssize;
|
sl@0
|
79 |
typedef unsigned int gsize;
|
sl@0
|
80 |
#define G_GSIZE_MODIFIER ""
|
sl@0
|
81 |
#define G_GSSIZE_FORMAT "i"
|
sl@0
|
82 |
#define G_GSIZE_FORMAT "u"
|
sl@0
|
83 |
|
sl@0
|
84 |
#define G_MAXSIZE G_MAXUINT
|
sl@0
|
85 |
#define G_MINSSIZE G_MININT
|
sl@0
|
86 |
#define G_MAXSSIZE G_MAXINT
|
sl@0
|
87 |
|
sl@0
|
88 |
|
sl@0
|
89 |
typedef gint64 goffset;
|
sl@0
|
90 |
#define G_MINOFFSET G_MININT64
|
sl@0
|
91 |
#define G_MAXOFFSET G_MAXINT64
|
sl@0
|
92 |
|
sl@0
|
93 |
#define GPOINTER_TO_INT(p) ((gint) (p))
|
sl@0
|
94 |
#define GPOINTER_TO_UINT(p) ((guint) (p))
|
sl@0
|
95 |
|
sl@0
|
96 |
#define GINT_TO_POINTER(i) ((gpointer) (i))
|
sl@0
|
97 |
#define GUINT_TO_POINTER(u) ((gpointer) (u))
|
sl@0
|
98 |
|
sl@0
|
99 |
typedef signed int gintptr;
|
sl@0
|
100 |
typedef unsigned int guintptr;
|
sl@0
|
101 |
|
sl@0
|
102 |
#ifdef NeXT /* @#%@! NeXTStep */
|
sl@0
|
103 |
# define g_ATEXIT(proc) (!atexit (proc))
|
sl@0
|
104 |
#else
|
sl@0
|
105 |
# define g_ATEXIT(proc) (atexit (proc))
|
sl@0
|
106 |
#endif
|
sl@0
|
107 |
|
sl@0
|
108 |
#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
|
sl@0
|
109 |
#ifdef __SYMBIAN32__
|
sl@0
|
110 |
#ifndef GLIB_MAJOR_VERSION
|
sl@0
|
111 |
#define GLIB_MAJOR_VERSION 2
|
sl@0
|
112 |
#endif
|
sl@0
|
113 |
#ifndef GLIB_MINOR_VERSION
|
sl@0
|
114 |
#define GLIB_MINOR_VERSION 20
|
sl@0
|
115 |
#endif
|
sl@0
|
116 |
#ifndef GLIB_MICRO_VERSION
|
sl@0
|
117 |
#define GLIB_MICRO_VERSION 4
|
sl@0
|
118 |
#endif
|
sl@0
|
119 |
#endif//__SYMBIAN32__
|
sl@0
|
120 |
|
sl@0
|
121 |
#ifndef __SYMBIAN32__
|
sl@0
|
122 |
#define G_OS_UNIX
|
sl@0
|
123 |
#endif//__SYMBIAN32__
|
sl@0
|
124 |
|
sl@0
|
125 |
#define G_VA_COPY va_copy
|
sl@0
|
126 |
|
sl@0
|
127 |
#ifdef __cplusplus
|
sl@0
|
128 |
#define G_HAVE_INLINE 1
|
sl@0
|
129 |
#else /* !__cplusplus */
|
sl@0
|
130 |
#ifndef __SYMBIAN32__
|
sl@0
|
131 |
#define G_HAVE_INLINE 1
|
sl@0
|
132 |
#define G_HAVE___INLINE__ 1
|
sl@0
|
133 |
#else//__SYMBIAN32__
|
sl@0
|
134 |
#define G_HAVE___INLINE 1
|
sl@0
|
135 |
#endif//__SYMBIAN32__
|
sl@0
|
136 |
#endif /* !__cplusplus */
|
sl@0
|
137 |
|
sl@0
|
138 |
#ifdef __cplusplus
|
sl@0
|
139 |
#define G_CAN_INLINE 1
|
sl@0
|
140 |
#else /* !__cplusplus */
|
sl@0
|
141 |
#ifdef __SYMBIAN32__
|
sl@0
|
142 |
#define G_CAN_INLINE 1
|
sl@0
|
143 |
#endif//__SYMBIAN32__
|
sl@0
|
144 |
#endif
|
sl@0
|
145 |
|
sl@0
|
146 |
#ifndef __SYMBIAN32__
|
sl@0
|
147 |
#ifndef __cplusplus
|
sl@0
|
148 |
# define G_HAVE_ISO_VARARGS 1
|
sl@0
|
149 |
#endif
|
sl@0
|
150 |
#ifdef __cplusplus
|
sl@0
|
151 |
# define G_HAVE_ISO_VARARGS 1
|
sl@0
|
152 |
#endif
|
sl@0
|
153 |
|
sl@0
|
154 |
/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
|
sl@0
|
155 |
* is passed ISO vararg support is turned off, and there is no work
|
sl@0
|
156 |
* around to turn it on, so we unconditionally turn it off.
|
sl@0
|
157 |
*/
|
sl@0
|
158 |
#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
|
sl@0
|
159 |
# undef G_HAVE_ISO_VARARGS
|
sl@0
|
160 |
#endif
|
sl@0
|
161 |
|
sl@0
|
162 |
#define G_HAVE_GNUC_VARARGS 1
|
sl@0
|
163 |
#endif /* __SYMBIAN32__ */
|
sl@0
|
164 |
|
sl@0
|
165 |
#define G_HAVE_GROWING_STACK 0
|
sl@0
|
166 |
|
sl@0
|
167 |
#define G_GNUC_INTERNAL
|
sl@0
|
168 |
|
sl@0
|
169 |
#define G_THREADS_ENABLED
|
sl@0
|
170 |
#define G_THREADS_IMPL_POSIX
|
sl@0
|
171 |
typedef struct _GStaticMutex GStaticMutex;
|
sl@0
|
172 |
struct _GStaticMutex
|
sl@0
|
173 |
{
|
sl@0
|
174 |
struct _GMutex *runtime_mutex;
|
sl@0
|
175 |
#ifndef __SYMBIAN32__
|
sl@0
|
176 |
union {
|
sl@0
|
177 |
char pad[24];
|
sl@0
|
178 |
double dummy_double;
|
sl@0
|
179 |
void *dummy_pointer;
|
sl@0
|
180 |
long dummy_long;
|
sl@0
|
181 |
} static_mutex;
|
sl@0
|
182 |
#else //__SYMBIAN32__
|
sl@0
|
183 |
pthread_mutex_t static_mutex;
|
sl@0
|
184 |
#endif //__SYMBIAN32__
|
sl@0
|
185 |
};
|
sl@0
|
186 |
|
sl@0
|
187 |
#ifndef __SYMBIAN32__
|
sl@0
|
188 |
#define G_STATIC_MUTEX_INIT { NULL, { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } }
|
sl@0
|
189 |
#else
|
sl@0
|
190 |
#define G_STATIC_MUTEX_INIT { NULL, PTHREAD_MUTEX_INITIALIZER}
|
sl@0
|
191 |
#endif //__SYMBIAN32__
|
sl@0
|
192 |
|
sl@0
|
193 |
#ifndef __SYMBIAN32__
|
sl@0
|
194 |
#define g_static_mutex_get_mutex(mutex) \
|
sl@0
|
195 |
(g_thread_use_default_impl ? ((GMutex*) ((mutex)->static_mutex.pad)) : \
|
sl@0
|
196 |
g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
|
sl@0
|
197 |
#else /* !__SYMBIAN32__ */
|
sl@0
|
198 |
#define g_static_mutex_get_mutex(mutex) \
|
sl@0
|
199 |
(g_thread_use_default_impl ? ((GMutex*) &((mutex)->static_mutex)) : \
|
sl@0
|
200 |
g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
|
sl@0
|
201 |
#endif /* __SYMBIAN32__ */
|
sl@0
|
202 |
|
sl@0
|
203 |
/* This represents a system thread as used by the implementation. An
|
sl@0
|
204 |
* alien implementaion, as loaded by g_thread_init can only count on
|
sl@0
|
205 |
* "sizeof (gpointer)" bytes to store their info. We however need more
|
sl@0
|
206 |
* for some of our native implementations. */
|
sl@0
|
207 |
typedef union _GSystemThread GSystemThread;
|
sl@0
|
208 |
union _GSystemThread
|
sl@0
|
209 |
{
|
sl@0
|
210 |
char data[4];
|
sl@0
|
211 |
double dummy_double;
|
sl@0
|
212 |
void *dummy_pointer;
|
sl@0
|
213 |
long dummy_long;
|
sl@0
|
214 |
};
|
sl@0
|
215 |
|
sl@0
|
216 |
#define GINT16_TO_LE(val) ((gint16) (val))
|
sl@0
|
217 |
#define GUINT16_TO_LE(val) ((guint16) (val))
|
sl@0
|
218 |
#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
|
sl@0
|
219 |
#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
|
sl@0
|
220 |
#define GINT32_TO_LE(val) ((gint32) (val))
|
sl@0
|
221 |
#define GUINT32_TO_LE(val) ((guint32) (val))
|
sl@0
|
222 |
#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
|
sl@0
|
223 |
#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
|
sl@0
|
224 |
#define GINT64_TO_LE(val) ((gint64) (val))
|
sl@0
|
225 |
#define GUINT64_TO_LE(val) ((guint64) (val))
|
sl@0
|
226 |
#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
|
sl@0
|
227 |
#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
|
sl@0
|
228 |
#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
|
sl@0
|
229 |
#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
|
sl@0
|
230 |
#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
|
sl@0
|
231 |
#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
|
sl@0
|
232 |
#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
|
sl@0
|
233 |
#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
|
sl@0
|
234 |
#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
|
sl@0
|
235 |
#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
|
sl@0
|
236 |
#define G_BYTE_ORDER G_LITTLE_ENDIAN
|
sl@0
|
237 |
|
sl@0
|
238 |
#define GLIB_SYSDEF_POLLIN =1
|
sl@0
|
239 |
#define GLIB_SYSDEF_POLLOUT =4
|
sl@0
|
240 |
#define GLIB_SYSDEF_POLLPRI =2
|
sl@0
|
241 |
#define GLIB_SYSDEF_POLLHUP =16
|
sl@0
|
242 |
#define GLIB_SYSDEF_POLLERR =8
|
sl@0
|
243 |
#define GLIB_SYSDEF_POLLNVAL =32
|
sl@0
|
244 |
|
sl@0
|
245 |
#ifdef __SYMBIAN32__
|
sl@0
|
246 |
#define G_MODULE_SUFFIX "dll"
|
sl@0
|
247 |
#else
|
sl@0
|
248 |
#define G_MODULE_SUFFIX "so"
|
sl@0
|
249 |
#endif /* __SYMBIAN32__ */
|
sl@0
|
250 |
|
sl@0
|
251 |
/* A GPid is an abstraction for a process "handle". It is *not* an
|
sl@0
|
252 |
* abstraction for a process identifier in general. GPid is used in
|
sl@0
|
253 |
* GLib only for descendant processes spawned with the g_spawn*
|
sl@0
|
254 |
* functions. On POSIX there is no "process handle" concept as such,
|
sl@0
|
255 |
* but on Windows a GPid is a handle to a process, a kind of pointer,
|
sl@0
|
256 |
* not a process identifier.
|
sl@0
|
257 |
*/
|
sl@0
|
258 |
typedef int GPid;
|
sl@0
|
259 |
|
sl@0
|
260 |
#define GLIB_SYSDEF_AF_INET 2
|
sl@0
|
261 |
#define GLIB_SYSDEF_AF_INET6 23
|
sl@0
|
262 |
|
sl@0
|
263 |
G_END_DECLS
|
sl@0
|
264 |
|
sl@0
|
265 |
#endif /* GLIBCONFIG_H */
|