1.1 --- a/epoc32/include/stdapis/glib-2.0/glibconfig.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/glib-2.0/glibconfig.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,250 @@
1.4 -glibconfig.h
1.5 +/*
1.6 +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
1.7 +
1.8 +* Redistribution and use in source and binary forms, with or without
1.9 +* modification, are permitted provided that the following conditions are met:
1.10 +
1.11 +* Redistributions of source code must retain the above copyright notice, this
1.12 +* list of conditions and the following disclaimer.
1.13 +* Redistributions in binary form must reproduce the above copyright notice,
1.14 +* this list of conditions and the following disclaimer in the documentation
1.15 +* and/or other materials provided with the distribution.
1.16 +* Neither the name of Nokia Corporation nor the names of its contributors
1.17 +* may be used to endorse or promote products derived from this software
1.18 +* without specific prior written permission.
1.19 +
1.20 +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1.21 +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.22 +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1.23 +* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1.24 +* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.25 +* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1.26 +* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1.27 +* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1.28 +* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1.29 +* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1.30 +*
1.31 +* Description:
1.32 +*
1.33 +*/
1.34 +
1.35 +
1.36 +
1.37 +/* glibconfig.h
1.38 + *
1.39 + * This is a generated file. Please modify 'configure.in'
1.40 + */
1.41 +
1.42 +#ifndef __G_LIBCONFIG_H__
1.43 +#define __G_LIBCONFIG_H__
1.44 +
1.45 +#include <glib/gmacros.h>
1.46 +
1.47 +#include <limits.h>
1.48 +#include <float.h>
1.49 +#ifdef __SYMBIAN32__
1.50 +#include <pthread.h>
1.51 +#endif //__SYMBIAN32__
1.52 +
1.53 +#ifndef __SYMBIAN32__
1.54 +#define GLIB_HAVE_ALLOCA_H
1.55 +#define GLIB_HAVE_SYS_POLL_H
1.56 +#endif /* __SYMBIAN32__ */
1.57 +
1.58 +G_BEGIN_DECLS
1.59 +
1.60 +#define G_MINFLOAT FLT_MIN
1.61 +#define G_MAXFLOAT FLT_MAX
1.62 +#define G_MINDOUBLE DBL_MIN
1.63 +#define G_MAXDOUBLE DBL_MAX
1.64 +#define G_MINSHORT SHRT_MIN
1.65 +#define G_MAXSHORT SHRT_MAX
1.66 +#define G_MAXUSHORT USHRT_MAX
1.67 +#define G_MININT INT_MIN
1.68 +#define G_MAXINT INT_MAX
1.69 +#define G_MAXUINT UINT_MAX
1.70 +#define G_MINLONG LONG_MIN
1.71 +#define G_MAXLONG LONG_MAX
1.72 +#define G_MAXULONG ULONG_MAX
1.73 +
1.74 +typedef signed char gint8;
1.75 +typedef unsigned char guint8;
1.76 +typedef signed short gint16;
1.77 +typedef unsigned short guint16;
1.78 +#define G_GINT16_MODIFIER "h"
1.79 +#define G_GINT16_FORMAT "hi"
1.80 +#define G_GUINT16_FORMAT "hu"
1.81 +typedef signed int gint32;
1.82 +typedef unsigned int guint32;
1.83 +#define G_GINT32_MODIFIER ""
1.84 +#define G_GINT32_FORMAT "i"
1.85 +#define G_GUINT32_FORMAT "u"
1.86 +#define G_HAVE_GINT64 1 /* deprecated, always true */
1.87 +
1.88 +G_GNUC_EXTENSION typedef signed long long gint64;
1.89 +G_GNUC_EXTENSION typedef unsigned long long guint64;
1.90 +
1.91 +#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
1.92 +#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
1.93 +#define G_GINT64_MODIFIER "ll"
1.94 +#define G_GINT64_FORMAT "lli"
1.95 +#define G_GUINT64_FORMAT "llu"
1.96 +
1.97 +#define GLIB_SIZEOF_VOID_P 4
1.98 +#define GLIB_SIZEOF_LONG 4
1.99 +#define GLIB_SIZEOF_SIZE_T 4
1.100 +
1.101 +typedef signed int gssize;
1.102 +typedef unsigned int gsize;
1.103 +#define G_GSIZE_MODIFIER ""
1.104 +#define G_GSSIZE_FORMAT "i"
1.105 +#define G_GSIZE_FORMAT "u"
1.106 +
1.107 +#define G_MAXSIZE G_MAXUINT
1.108 +
1.109 +#define GPOINTER_TO_INT(p) ((gint) (p))
1.110 +#define GPOINTER_TO_UINT(p) ((guint) (p))
1.111 +
1.112 +#define GINT_TO_POINTER(i) ((gpointer) (i))
1.113 +#define GUINT_TO_POINTER(u) ((gpointer) (u))
1.114 +
1.115 +#ifdef NeXT /* @#%@! NeXTStep */
1.116 +# define g_ATEXIT(proc) (!atexit (proc))
1.117 +#else
1.118 +# define g_ATEXIT(proc) (atexit (proc))
1.119 +#endif
1.120 +
1.121 +#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
1.122 +
1.123 +#define GLIB_MAJOR_VERSION 2
1.124 +#define GLIB_MINOR_VERSION 10
1.125 +#define GLIB_MICRO_VERSION 3
1.126 +
1.127 +#define G_OS_UNIX
1.128 +
1.129 +#define G_VA_COPY va_copy
1.130 +
1.131 +#ifdef __cplusplus
1.132 +#define G_HAVE_INLINE 1
1.133 +#else /* !__cplusplus */
1.134 +#define G_HAVE_INLINE 1
1.135 +#define G_HAVE___INLINE 1
1.136 +#define G_HAVE___INLINE__ 1
1.137 +#endif /* !__cplusplus */
1.138 +
1.139 +#ifdef __cplusplus
1.140 +#define G_CAN_INLINE 1
1.141 +#else /* !__cplusplus */
1.142 +#define G_CAN_INLINE 1
1.143 +#endif
1.144 +
1.145 +#ifndef __SYMBIAN32__
1.146 +#ifndef __cplusplus
1.147 +# define G_HAVE_ISO_VARARGS 1
1.148 +#endif
1.149 +#ifdef __cplusplus
1.150 +# define G_HAVE_ISO_VARARGS 1
1.151 +#endif
1.152 +
1.153 +/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
1.154 + * is passed ISO vararg support is turned off, and there is no work
1.155 + * around to turn it on, so we unconditionally turn it off.
1.156 + */
1.157 +#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
1.158 +# undef G_HAVE_ISO_VARARGS
1.159 +#endif
1.160 +
1.161 +#define G_HAVE_GNUC_VARARGS 1
1.162 +#endif /* __SYMBIAN32__ */
1.163 +
1.164 +#define G_HAVE_GROWING_STACK 0
1.165 +
1.166 +#define G_GNUC_INTERNAL
1.167 +
1.168 +#define G_THREADS_ENABLED
1.169 +#define G_THREADS_IMPL_POSIX
1.170 +typedef struct _GStaticMutex GStaticMutex;
1.171 +struct _GStaticMutex
1.172 +{
1.173 + struct _GMutex *runtime_mutex;
1.174 + #ifndef __SYMBIAN32__
1.175 + union {
1.176 + char pad[24];
1.177 + double dummy_double;
1.178 + void *dummy_pointer;
1.179 + long dummy_long;
1.180 + } static_mutex;
1.181 + #else //__SYMBIAN32__
1.182 + pthread_mutex_t static_mutex;
1.183 + #endif //__SYMBIAN32__
1.184 +};
1.185 +
1.186 +#ifndef __SYMBIAN32__
1.187 +#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} } }
1.188 +#else
1.189 +#define G_STATIC_MUTEX_INIT { NULL, PTHREAD_MUTEX_INITIALIZER}
1.190 +#endif //__SYMBIAN32__
1.191 +
1.192 +#ifndef __SYMBIAN32__
1.193 +#define g_static_mutex_get_mutex(mutex) \
1.194 + (g_thread_use_default_impl ? ((GMutex*) ((mutex)->static_mutex.pad)) : \
1.195 + g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
1.196 +#else /* !__SYMBIAN32__ */
1.197 +#define g_static_mutex_get_mutex(mutex) \
1.198 + (g_thread_use_default_impl ? ((GMutex*) &((mutex)->static_mutex)) : \
1.199 + g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
1.200 +#endif /* __SYMBIAN32__ */
1.201 +
1.202 +/* This represents a system thread as used by the implementation. An
1.203 + * alien implementaion, as loaded by g_thread_init can only count on
1.204 + * "sizeof (gpointer)" bytes to store their info. We however need more
1.205 + * for some of our native implementations. */
1.206 +typedef union _GSystemThread GSystemThread;
1.207 +union _GSystemThread
1.208 +{
1.209 + char data[4];
1.210 + double dummy_double;
1.211 + void *dummy_pointer;
1.212 + long dummy_long;
1.213 +};
1.214 +
1.215 +#define GINT16_TO_LE(val) ((gint16) (val))
1.216 +#define GUINT16_TO_LE(val) ((guint16) (val))
1.217 +#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
1.218 +#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
1.219 +#define GINT32_TO_LE(val) ((gint32) (val))
1.220 +#define GUINT32_TO_LE(val) ((guint32) (val))
1.221 +#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
1.222 +#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
1.223 +#define GINT64_TO_LE(val) ((gint64) (val))
1.224 +#define GUINT64_TO_LE(val) ((guint64) (val))
1.225 +#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
1.226 +#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
1.227 +#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
1.228 +#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
1.229 +#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
1.230 +#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
1.231 +#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
1.232 +#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
1.233 +#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
1.234 +#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
1.235 +#define G_BYTE_ORDER G_LITTLE_ENDIAN
1.236 +
1.237 +#define GLIB_SYSDEF_POLLIN =1
1.238 +#define GLIB_SYSDEF_POLLOUT =4
1.239 +#define GLIB_SYSDEF_POLLPRI =2
1.240 +#define GLIB_SYSDEF_POLLHUP =16
1.241 +#define GLIB_SYSDEF_POLLERR =8
1.242 +#define GLIB_SYSDEF_POLLNVAL =32
1.243 +
1.244 +#ifdef __SYMBIAN32__
1.245 +#define G_MODULE_SUFFIX "dll"
1.246 +#else
1.247 +#define G_MODULE_SUFFIX "so"
1.248 +#endif /* __SYMBIAN32__ */
1.249 +
1.250 +typedef int GPid;
1.251 +
1.252 +G_END_DECLS
1.253 +
1.254 +#endif /* GLIBCONFIG_H */