~ubuntu-branches/ubuntu/maverick/glib2.0/maverick

« back to all changes in this revision

Viewing changes to glib/glibconfig.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-08-09 11:51:31 UTC
  • mfrom: (1.51.1 upstream) (3.4.23 experimental)
  • Revision ID: james.westby@ubuntu.com-20100809115131-pbojavp0jx7vtcah
Tags: 2.25.13-1ubuntu1
* Merge with Debian unstable, remaining Ubuntu changes:
* debian/control.in:
  - Add Vcs-Bzr link
  - Recommend libdconf0
  - Don't use "linux-any" for now since soyuz doesn't handle it
  - Suggest python-subunit for dev package
* debian/libglib2.0-0.symbols:
  - Updated the symbols list for the gio launcher handler
* debian/rules:
  - Stop installing the sizable upstream changelog.
* debian/patches/01_gettext-desktopfiles.patch:
  - Updated to use gettext for X-GNOME-Fullname too
* debian/patches/05_file_size_units.patch:
  - Use base 10 units in g_format_size_for_display() (disabled)
* debian/patches/61_glib-compile-schemas-path.patch:
  - Don't use that change since there is a depends which assures to the 
    upstream binary location to be there
* debian/patches/71_gio_launch_handler.patch:
  - New GIO default launch handle feature required for wncksync
* debian/watch:
  - Watch for unstable versions

Show diffs side-by-side

added added

removed removed

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