initial import
[ICEs.git] / 137062 / ice.ii
1 // /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1 -fpreprocessed /var/tmp/ccache/maze.tmp.Fluid.27235.i -quiet -dumpbase maze.tmp.Fluid.27235.i -march=pentium4 -mmmx -msse -auxbase-strip /var/tmp/ccache/tmp.hash.Fluid.27235.o -O2 -Wall -fforce-addr -fomit-frame-pointer -ftree-vectorize -fomit-frame-pointer -o - -frandom-seed=0
2 # 1 "maze.c"
3 # 1 "<built-in>"
4 # 1 "<command line>"
5 # 1 "maze.c"
6 # 40 "maze.c"
7
8 # 1 "../../config.h" 1
9 # 41 "maze.c" 2
10
11
12 # 1 "/usr/include/stdio.h" 1 3 4
13 # 28 "/usr/include/stdio.h" 3 4
14
15 # 1 "/usr/include/features.h" 1 3 4
16 # 323 "/usr/include/features.h" 3 4
17
18 # 1 "/usr/include/sys/cdefs.h" 1 3 4
19 # 313 "/usr/include/sys/cdefs.h" 3 4
20
21 # 1 "/usr/include/bits/wordsize.h" 1 3 4
22 # 314 "/usr/include/sys/cdefs.h" 2 3 4
23 # 324 "/usr/include/features.h" 2 3 4
24 # 346 "/usr/include/features.h" 3 4
25
26 # 1 "/usr/include/gnu/stubs.h" 1 3 4
27
28
29
30
31 # 1 "/usr/include/bits/wordsize.h" 1 3 4
32 # 5 "/usr/include/gnu/stubs.h" 2 3 4
33
34
35
36 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
37 # 8 "/usr/include/gnu/stubs.h" 2 3 4
38 # 347 "/usr/include/features.h" 2 3 4
39 # 29 "/usr/include/stdio.h" 2 3 4
40
41
42
43
44
45
46 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
47 # 214 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
48 typedef unsigned int size_t;
49 # 35 "/usr/include/stdio.h" 2 3 4
50
51
52 # 1 "/usr/include/bits/types.h" 1 3 4
53 # 28 "/usr/include/bits/types.h" 3 4
54
55 # 1 "/usr/include/bits/wordsize.h" 1 3 4
56 # 29 "/usr/include/bits/types.h" 2 3 4
57
58
59
60 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
61 # 32 "/usr/include/bits/types.h" 2 3 4
62
63
64 typedef unsigned char __u_char;
65 typedef unsigned short int __u_short;
66 typedef unsigned int __u_int;
67 typedef unsigned long int __u_long;
68
69
70 typedef signed char __int8_t;
71 typedef unsigned char __uint8_t;
72 typedef signed short int __int16_t;
73 typedef unsigned short int __uint16_t;
74 typedef signed int __int32_t;
75 typedef unsigned int __uint32_t;
76
77
78
79
80 __extension__ typedef signed long long int __int64_t;
81 __extension__ typedef unsigned long long int __uint64_t;
82
83
84
85
86
87
88
89 __extension__ typedef long long int __quad_t;
90 __extension__ typedef unsigned long long int __u_quad_t;
91 # 134 "/usr/include/bits/types.h" 3 4
92
93 # 1 "/usr/include/bits/typesizes.h" 1 3 4
94 # 135 "/usr/include/bits/types.h" 2 3 4
95
96
97 __extension__ typedef __u_quad_t __dev_t;
98 __extension__ typedef unsigned int __uid_t;
99 __extension__ typedef unsigned int __gid_t;
100 __extension__ typedef unsigned long int __ino_t;
101 __extension__ typedef __u_quad_t __ino64_t;
102 __extension__ typedef unsigned int __mode_t;
103 __extension__ typedef unsigned int __nlink_t;
104 __extension__ typedef long int __off_t;
105 __extension__ typedef __quad_t __off64_t;
106 __extension__ typedef int __pid_t;
107 __extension__ typedef struct { int __val[2]; } __fsid_t;
108 __extension__ typedef long int __clock_t;
109 __extension__ typedef unsigned long int __rlim_t;
110 __extension__ typedef __u_quad_t __rlim64_t;
111 __extension__ typedef unsigned int __id_t;
112 __extension__ typedef long int __time_t;
113 __extension__ typedef unsigned int __useconds_t;
114 __extension__ typedef long int __suseconds_t;
115
116 __extension__ typedef int __daddr_t;
117 __extension__ typedef long int __swblk_t;
118 __extension__ typedef int __key_t;
119
120
121 __extension__ typedef int __clockid_t;
122
123
124 __extension__ typedef void * __timer_t;
125
126
127 __extension__ typedef long int __blksize_t;
128
129
130
131
132 __extension__ typedef long int __blkcnt_t;
133 __extension__ typedef __quad_t __blkcnt64_t;
134
135
136 __extension__ typedef unsigned long int __fsblkcnt_t;
137 __extension__ typedef __u_quad_t __fsblkcnt64_t;
138
139
140 __extension__ typedef unsigned long int __fsfilcnt_t;
141 __extension__ typedef __u_quad_t __fsfilcnt64_t;
142
143 __extension__ typedef int __ssize_t;
144
145
146
147 typedef __off64_t __loff_t;
148 typedef __quad_t *__qaddr_t;
149 typedef char *__caddr_t;
150
151
152 __extension__ typedef int __intptr_t;
153
154
155 __extension__ typedef unsigned int __socklen_t;
156 # 37 "/usr/include/stdio.h" 2 3 4
157 # 46 "/usr/include/stdio.h" 3 4
158 typedef struct _IO_FILE FILE;
159 # 62 "/usr/include/stdio.h" 3 4
160 typedef struct _IO_FILE __FILE;
161 # 72 "/usr/include/stdio.h" 3 4
162
163 # 1 "/usr/include/libio.h" 1 3 4
164 # 32 "/usr/include/libio.h" 3 4
165
166 # 1 "/usr/include/_G_config.h" 1 3 4
167 # 14 "/usr/include/_G_config.h" 3 4
168
169 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
170 # 326 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
171 typedef long int wchar_t;
172 # 355 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
173 typedef unsigned int wint_t;
174 # 15 "/usr/include/_G_config.h" 2 3 4
175 # 24 "/usr/include/_G_config.h" 3 4
176
177 # 1 "/usr/include/wchar.h" 1 3 4
178 # 48 "/usr/include/wchar.h" 3 4
179
180 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
181 # 49 "/usr/include/wchar.h" 2 3 4
182
183
184 # 1 "/usr/include/bits/wchar.h" 1 3 4
185 # 51 "/usr/include/wchar.h" 2 3 4
186 # 76 "/usr/include/wchar.h" 3 4
187 typedef struct
188 {
189 int __count;
190 union
191 {
192 wint_t __wch;
193 char __wchb[4];
194 } __value;
195 } __mbstate_t;
196 # 25 "/usr/include/_G_config.h" 2 3 4
197
198 typedef struct
199 {
200 __off_t __pos;
201 __mbstate_t __state;
202 } _G_fpos_t;
203 typedef struct
204 {
205 __off64_t __pos;
206 __mbstate_t __state;
207 } _G_fpos64_t;
208 # 44 "/usr/include/_G_config.h" 3 4
209
210 # 1 "/usr/include/gconv.h" 1 3 4
211 # 28 "/usr/include/gconv.h" 3 4
212
213 # 1 "/usr/include/wchar.h" 1 3 4
214 # 48 "/usr/include/wchar.h" 3 4
215
216 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
217 # 49 "/usr/include/wchar.h" 2 3 4
218 # 29 "/usr/include/gconv.h" 2 3 4
219
220
221
222 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
223 # 32 "/usr/include/gconv.h" 2 3 4
224
225
226
227
228
229 enum
230 {
231 __GCONV_OK = 0,
232 __GCONV_NOCONV,
233 __GCONV_NODB,
234 __GCONV_NOMEM,
235
236 __GCONV_EMPTY_INPUT,
237 __GCONV_FULL_OUTPUT,
238 __GCONV_ILLEGAL_INPUT,
239 __GCONV_INCOMPLETE_INPUT,
240
241 __GCONV_ILLEGAL_DESCRIPTOR,
242 __GCONV_INTERNAL_ERROR
243 };
244
245
246
247 enum
248 {
249 __GCONV_IS_LAST = 0x0001,
250 __GCONV_IGNORE_ERRORS = 0x0002
251 };
252
253
254
255 struct __gconv_step;
256 struct __gconv_step_data;
257 struct __gconv_loaded_object;
258 struct __gconv_trans_data;
259
260
261
262 typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *,
263 __const unsigned char **, __const unsigned char *,
264 unsigned char **, size_t *, int, int);
265
266
267 typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char);
268
269
270 typedef int (*__gconv_init_fct) (struct __gconv_step *);
271 typedef void (*__gconv_end_fct) (struct __gconv_step *);
272
273
274
275 typedef int (*__gconv_trans_fct) (struct __gconv_step *,
276 struct __gconv_step_data *, void *,
277 __const unsigned char *,
278 __const unsigned char **,
279 __const unsigned char *, unsigned char **,
280 size_t *);
281
282
283 typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *,
284 __const unsigned char *,
285 unsigned char *, unsigned char *);
286
287
288 typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***,
289 size_t *);
290
291
292 typedef int (*__gconv_trans_init_fct) (void **, const char *);
293 typedef void (*__gconv_trans_end_fct) (void *);
294
295 struct __gconv_trans_data
296 {
297
298 __gconv_trans_fct __trans_fct;
299 __gconv_trans_context_fct __trans_context_fct;
300 __gconv_trans_end_fct __trans_end_fct;
301 void *__data;
302 struct __gconv_trans_data *__next;
303 };
304
305
306
307 struct __gconv_step
308 {
309 struct __gconv_loaded_object *__shlib_handle;
310 __const char *__modname;
311
312 int __counter;
313
314 char *__from_name;
315 char *__to_name;
316
317 __gconv_fct __fct;
318 __gconv_btowc_fct __btowc_fct;
319 __gconv_init_fct __init_fct;
320 __gconv_end_fct __end_fct;
321
322
323
324 int __min_needed_from;
325 int __max_needed_from;
326 int __min_needed_to;
327 int __max_needed_to;
328
329
330 int __stateful;
331
332 void *__data;
333 };
334
335
336
337 struct __gconv_step_data
338 {
339 unsigned char *__outbuf;
340 unsigned char *__outbufend;
341
342
343
344 int __flags;
345
346
347
348 int __invocation_counter;
349
350
351
352 int __internal_use;
353
354 __mbstate_t *__statep;
355 __mbstate_t __state;
356
357
358
359 struct __gconv_trans_data *__trans;
360 };
361
362
363
364 typedef struct __gconv_info
365 {
366 size_t __nsteps;
367 struct __gconv_step *__steps;
368 __extension__ struct __gconv_step_data __data [];
369 } *__gconv_t;
370 # 45 "/usr/include/_G_config.h" 2 3 4
371 typedef union
372 {
373 struct __gconv_info __cd;
374 struct
375 {
376 struct __gconv_info __cd;
377 struct __gconv_step_data __data;
378 } __combined;
379 } _G_iconv_t;
380
381 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
382 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
383 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
384 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
385 # 33 "/usr/include/libio.h" 2 3 4
386 # 53 "/usr/include/libio.h" 3 4
387
388 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 1 3 4
389 # 43 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 3 4
390 typedef __builtin_va_list __gnuc_va_list;
391 # 54 "/usr/include/libio.h" 2 3 4
392 # 166 "/usr/include/libio.h" 3 4
393 struct _IO_jump_t; struct _IO_FILE;
394 # 176 "/usr/include/libio.h" 3 4
395 typedef void _IO_lock_t;
396
397
398
399
400
401 struct _IO_marker {
402 struct _IO_marker *_next;
403 struct _IO_FILE *_sbuf;
404
405
406
407 int _pos;
408 # 199 "/usr/include/libio.h" 3 4
409 };
410
411
412 enum __codecvt_result
413 {
414 __codecvt_ok,
415 __codecvt_partial,
416 __codecvt_error,
417 __codecvt_noconv
418 };
419 # 267 "/usr/include/libio.h" 3 4
420 struct _IO_FILE {
421 int _flags;
422
423
424
425
426 char* _IO_read_ptr;
427 char* _IO_read_end;
428 char* _IO_read_base;
429 char* _IO_write_base;
430 char* _IO_write_ptr;
431 char* _IO_write_end;
432 char* _IO_buf_base;
433 char* _IO_buf_end;
434
435 char *_IO_save_base;
436 char *_IO_backup_base;
437 char *_IO_save_end;
438
439 struct _IO_marker *_markers;
440
441 struct _IO_FILE *_chain;
442
443 int _fileno;
444
445
446
447 int _flags2;
448
449 __off_t _old_offset;
450
451
452
453 unsigned short _cur_column;
454 signed char _vtable_offset;
455 char _shortbuf[1];
456
457
458
459 _IO_lock_t *_lock;
460 # 315 "/usr/include/libio.h" 3 4
461 __off64_t _offset;
462 # 324 "/usr/include/libio.h" 3 4
463 void *__pad1;
464 void *__pad2;
465 void *__pad3;
466 void *__pad4;
467 size_t __pad5;
468
469 int _mode;
470
471 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
472
473 };
474
475
476 typedef struct _IO_FILE _IO_FILE;
477
478
479 struct _IO_FILE_plus;
480
481 extern struct _IO_FILE_plus _IO_2_1_stdin_;
482 extern struct _IO_FILE_plus _IO_2_1_stdout_;
483 extern struct _IO_FILE_plus _IO_2_1_stderr_;
484 # 360 "/usr/include/libio.h" 3 4
485 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
486
487
488
489
490
491
492
493 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
494 size_t __n);
495
496
497
498
499
500
501
502 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
503
504
505 typedef int __io_close_fn (void *__cookie);
506 # 412 "/usr/include/libio.h" 3 4
507 extern int __underflow (_IO_FILE *) __attribute__ ((__nothrow__));
508 extern int __uflow (_IO_FILE *) __attribute__ ((__nothrow__));
509 extern int __overflow (_IO_FILE *, int) __attribute__ ((__nothrow__));
510 extern wint_t __wunderflow (_IO_FILE *) __attribute__ ((__nothrow__));
511 extern wint_t __wuflow (_IO_FILE *) __attribute__ ((__nothrow__));
512 extern wint_t __woverflow (_IO_FILE *, wint_t) __attribute__ ((__nothrow__));
513 # 450 "/usr/include/libio.h" 3 4
514 extern int _IO_getc (_IO_FILE *__fp) __attribute__ ((__nothrow__));
515 extern int _IO_putc (int __c, _IO_FILE *__fp) __attribute__ ((__nothrow__));
516 extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
517 extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
518
519 extern int _IO_peekc_locked (_IO_FILE *__fp) __attribute__ ((__nothrow__));
520
521
522
523
524
525 extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
526 extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
527 extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
528 # 480 "/usr/include/libio.h" 3 4
529 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
530 __gnuc_va_list, int *__restrict);
531 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
532 __gnuc_va_list);
533 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) __attribute__ ((__nothrow__));
534 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) __attribute__ ((__nothrow__));
535
536 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) __attribute__ ((__nothrow__));
537 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) __attribute__ ((__nothrow__));
538
539 extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
540 # 73 "/usr/include/stdio.h" 2 3 4
541 # 86 "/usr/include/stdio.h" 3 4
542
543
544
545
546 typedef _G_fpos64_t fpos_t;
547 # 138 "/usr/include/stdio.h" 3 4
548
549 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
550 # 139 "/usr/include/stdio.h" 2 3 4
551
552
553
554 extern struct _IO_FILE *stdin;
555 extern struct _IO_FILE *stdout;
556 extern struct _IO_FILE *stderr;
557
558
559
560
561
562
563
564 extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
565
566 extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
567 # 172 "/usr/include/stdio.h" 3 4
568 extern FILE *tmpfile (void) __asm__ ("" "tmpfile64");
569 # 183 "/usr/include/stdio.h" 3 4
570 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__));
571
572
573
574
575
576 extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__));
577 # 201 "/usr/include/stdio.h" 3 4
578 extern char *tempnam (__const char *__dir, __const char *__pfx)
579 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
580 # 211 "/usr/include/stdio.h" 3 4
581 extern int fclose (FILE *__stream);
582
583
584
585
586 extern int fflush (FILE *__stream);
587 # 226 "/usr/include/stdio.h" 3 4
588 extern int fflush_unlocked (FILE *__stream);
589 # 240 "/usr/include/stdio.h" 3 4
590 # 257 "/usr/include/stdio.h" 3 4
591 extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64");
592
593 extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64");
594 # 278 "/usr/include/stdio.h" 3 4
595 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__));
596 # 304 "/usr/include/stdio.h" 3 4
597
598
599
600 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
601
602
603
604 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
605 int __modes, size_t __n) __attribute__ ((__nothrow__));
606
607
608
609
610
611 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
612 size_t __size) __attribute__ ((__nothrow__));
613
614
615 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
616 # 331 "/usr/include/stdio.h" 3 4
617 extern int fprintf (FILE *__restrict __stream,
618 __const char *__restrict __format, ...);
619
620
621
622
623 extern int printf (__const char *__restrict __format, ...);
624
625 extern int sprintf (char *__restrict __s,
626 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
627
628
629
630
631
632 extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
633 __gnuc_va_list __arg);
634
635
636
637
638 extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
639
640 extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
641 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
642
643
644
645
646
647 extern int snprintf (char *__restrict __s, size_t __maxlen,
648 __const char *__restrict __format, ...)
649 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
650
651 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
652 __const char *__restrict __format, __gnuc_va_list __arg)
653 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
654 # 398 "/usr/include/stdio.h" 3 4
655
656
657
658
659
660 extern int fscanf (FILE *__restrict __stream,
661 __const char *__restrict __format, ...) ;
662
663
664
665
666 extern int scanf (__const char *__restrict __format, ...) ;
667
668 extern int sscanf (__const char *__restrict __s,
669 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
670 # 440 "/usr/include/stdio.h" 3 4
671
672
673
674
675
676 extern int fgetc (FILE *__stream);
677 extern int getc (FILE *__stream);
678
679
680
681
682
683 extern int getchar (void);
684 # 464 "/usr/include/stdio.h" 3 4
685 extern int getc_unlocked (FILE *__stream);
686 extern int getchar_unlocked (void);
687 # 475 "/usr/include/stdio.h" 3 4
688 extern int fgetc_unlocked (FILE *__stream);
689 # 487 "/usr/include/stdio.h" 3 4
690 extern int fputc (int __c, FILE *__stream);
691 extern int putc (int __c, FILE *__stream);
692
693
694
695
696
697 extern int putchar (int __c);
698 # 508 "/usr/include/stdio.h" 3 4
699 extern int fputc_unlocked (int __c, FILE *__stream);
700
701
702
703
704
705
706
707 extern int putc_unlocked (int __c, FILE *__stream);
708 extern int putchar_unlocked (int __c);
709
710
711
712
713
714
715 extern int getw (FILE *__stream);
716
717
718 extern int putw (int __w, FILE *__stream);
719 # 536 "/usr/include/stdio.h" 3 4
720 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
721 ;
722
723
724
725
726
727
728 extern char *gets (char *__s) ;
729 # 589 "/usr/include/stdio.h" 3 4
730
731
732
733
734
735 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
736
737
738
739
740
741 extern int puts (__const char *__s);
742
743
744
745
746
747
748 extern int ungetc (int __c, FILE *__stream);
749
750
751
752
753
754
755 extern size_t fread (void *__restrict __ptr, size_t __size,
756 size_t __n, FILE *__restrict __stream) ;
757
758
759
760
761 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
762 size_t __n, FILE *__restrict __s) ;
763 # 642 "/usr/include/stdio.h" 3 4
764 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
765 size_t __n, FILE *__restrict __stream) ;
766 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
767 size_t __n, FILE *__restrict __stream) ;
768 # 654 "/usr/include/stdio.h" 3 4
769 extern int fseek (FILE *__stream, long int __off, int __whence);
770
771
772
773
774 extern long int ftell (FILE *__stream) ;
775
776
777
778
779 extern void rewind (FILE *__stream);
780 # 686 "/usr/include/stdio.h" 3 4
781 extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64");
782
783
784 extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64");
785 # 711 "/usr/include/stdio.h" 3 4
786 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64");
787
788 extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64");
789 # 729 "/usr/include/stdio.h" 3 4
790
791
792 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
793
794 extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
795
796 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
797
798
799
800
801 extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
802 extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
803 extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
804 # 751 "/usr/include/stdio.h" 3 4
805 extern void perror (__const char *__s);
806
807
808
809
810
811
812
813 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
814 # 27 "/usr/include/bits/sys_errlist.h" 3 4
815 extern int sys_nerr;
816 extern __const char *__const sys_errlist[];
817 # 759 "/usr/include/stdio.h" 2 3 4
818
819
820
821
822 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
823
824
825
826
827 extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
828 # 778 "/usr/include/stdio.h" 3 4
829 extern FILE *popen (__const char *__command, __const char *__modes) ;
830
831
832
833
834
835 extern int pclose (FILE *__stream);
836
837
838
839
840
841 extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
842 # 818 "/usr/include/stdio.h" 3 4
843 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
844
845
846
847 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
848
849
850 extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
851 # 839 "/usr/include/stdio.h" 3 4
852
853 # 1 "/usr/include/bits/stdio.h" 1 3 4
854 # 33 "/usr/include/bits/stdio.h" 3 4
855 extern __inline int
856 vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
857 {
858 return vfprintf (stdout, __fmt, __arg);
859 }
860
861
862 extern __inline int
863 getchar (void)
864 {
865 return _IO_getc (stdin);
866 }
867
868
869
870
871 extern __inline int
872 getc_unlocked (FILE *__fp)
873 {
874 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
875 }
876
877
878 extern __inline int
879 getchar_unlocked (void)
880 {
881 return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
882 }
883
884
885
886
887 extern __inline int
888 putchar (int __c)
889 {
890 return _IO_putc (__c, stdout);
891 }
892
893
894
895
896 extern __inline int
897 fputc_unlocked (int __c, FILE *__stream)
898 {
899 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
900 }
901
902
903
904
905
906 extern __inline int
907 putc_unlocked (int __c, FILE *__stream)
908 {
909 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
910 }
911
912
913 extern __inline int
914 putchar_unlocked (int __c)
915 {
916 return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
917 }
918 # 111 "/usr/include/bits/stdio.h" 3 4
919 extern __inline int
920 __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream)
921 {
922 return (((__stream)->_flags & 0x10) != 0);
923 }
924
925
926 extern __inline int
927 __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream)
928 {
929 return (((__stream)->_flags & 0x20) != 0);
930 }
931 # 840 "/usr/include/stdio.h" 2 3 4
932 # 848 "/usr/include/stdio.h" 3 4
933 # 43 "maze.c" 2
934
935 # 1 "/usr/include/stdlib.h" 1 3 4
936 # 33 "/usr/include/stdlib.h" 3 4
937
938 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
939 # 34 "/usr/include/stdlib.h" 2 3 4
940 # 96 "/usr/include/stdlib.h" 3 4
941
942
943 typedef struct
944 {
945 int quot;
946 int rem;
947 } div_t;
948
949
950
951 typedef struct
952 {
953 long int quot;
954 long int rem;
955 } ldiv_t;
956 # 140 "/usr/include/stdlib.h" 3 4
957 extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
958
959
960
961
962 extern double atof (__const char *__nptr)
963 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
964
965 extern int atoi (__const char *__nptr)
966 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
967
968 extern long int atol (__const char *__nptr)
969 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
970
971
972
973
974
975 __extension__ extern long long int atoll (__const char *__nptr)
976 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
977
978
979
980
981
982 extern double strtod (__const char *__restrict __nptr,
983 char **__restrict __endptr)
984 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
985 # 182 "/usr/include/stdlib.h" 3 4
986
987
988 extern long int strtol (__const char *__restrict __nptr,
989 char **__restrict __endptr, int __base)
990 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
991
992 extern unsigned long int strtoul (__const char *__restrict __nptr,
993 char **__restrict __endptr, int __base)
994 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
995
996
997
998
999 __extension__
1000 extern long long int strtoq (__const char *__restrict __nptr,
1001 char **__restrict __endptr, int __base)
1002 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1003
1004 __extension__
1005 extern unsigned long long int strtouq (__const char *__restrict __nptr,
1006 char **__restrict __endptr, int __base)
1007 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1008
1009
1010
1011
1012
1013 __extension__
1014 extern long long int strtoll (__const char *__restrict __nptr,
1015 char **__restrict __endptr, int __base)
1016 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1017
1018 __extension__
1019 extern unsigned long long int strtoull (__const char *__restrict __nptr,
1020 char **__restrict __endptr, int __base)
1021 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1022 # 279 "/usr/include/stdlib.h" 3 4
1023 extern double __strtod_internal (__const char *__restrict __nptr,
1024 char **__restrict __endptr, int __group)
1025 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1026 extern float __strtof_internal (__const char *__restrict __nptr,
1027 char **__restrict __endptr, int __group)
1028 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1029 extern long double __strtold_internal (__const char *__restrict __nptr,
1030 char **__restrict __endptr,
1031 int __group)
1032 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1033
1034 extern long int __strtol_internal (__const char *__restrict __nptr,
1035 char **__restrict __endptr,
1036 int __base, int __group)
1037 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1038
1039
1040
1041 extern unsigned long int __strtoul_internal (__const char *__restrict __nptr,
1042 char **__restrict __endptr,
1043 int __base, int __group)
1044 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1045
1046
1047
1048
1049 __extension__
1050 extern long long int __strtoll_internal (__const char *__restrict __nptr,
1051 char **__restrict __endptr,
1052 int __base, int __group)
1053 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1054
1055
1056
1057 __extension__
1058 extern unsigned long long int __strtoull_internal (__const char *
1059 __restrict __nptr,
1060 char **__restrict __endptr,
1061 int __base, int __group)
1062 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1063 # 327 "/usr/include/stdlib.h" 3 4
1064 extern __inline double
1065 __attribute__ ((__nothrow__)) strtod (__const char *__restrict __nptr, char **__restrict __endptr)
1066 {
1067 return __strtod_internal (__nptr, __endptr, 0);
1068 }
1069 extern __inline long int
1070 __attribute__ ((__nothrow__)) strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
1071
1072 {
1073 return __strtol_internal (__nptr, __endptr, __base, 0);
1074 }
1075 extern __inline unsigned long int
1076 __attribute__ ((__nothrow__)) strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
1077
1078 {
1079 return __strtoul_internal (__nptr, __endptr, __base, 0);
1080 }
1081 # 364 "/usr/include/stdlib.h" 3 4
1082 __extension__ extern __inline long long int
1083 __attribute__ ((__nothrow__)) strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
1084
1085 {
1086 return __strtoll_internal (__nptr, __endptr, __base, 0);
1087 }
1088 __extension__ extern __inline unsigned long long int
1089 __attribute__ ((__nothrow__)) strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
1090
1091 {
1092 return __strtoull_internal (__nptr, __endptr, __base, 0);
1093 }
1094
1095
1096
1097
1098 __extension__ extern __inline long long int
1099 __attribute__ ((__nothrow__)) strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
1100
1101 {
1102 return __strtoll_internal (__nptr, __endptr, __base, 0);
1103 }
1104 __extension__ extern __inline unsigned long long int
1105 __attribute__ ((__nothrow__)) strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base)
1106
1107 {
1108 return __strtoull_internal (__nptr, __endptr, __base, 0);
1109 }
1110
1111
1112
1113
1114 extern __inline double
1115 __attribute__ ((__nothrow__)) atof (__const char *__nptr)
1116 {
1117 return strtod (__nptr, (char **) ((void *)0));
1118 }
1119 extern __inline int
1120 __attribute__ ((__nothrow__)) atoi (__const char *__nptr)
1121 {
1122 return (int) strtol (__nptr, (char **) ((void *)0), 10);
1123 }
1124 extern __inline long int
1125 __attribute__ ((__nothrow__)) atol (__const char *__nptr)
1126 {
1127 return strtol (__nptr, (char **) ((void *)0), 10);
1128 }
1129
1130
1131
1132
1133 __extension__ extern __inline long long int
1134 __attribute__ ((__nothrow__)) atoll (__const char *__nptr)
1135 {
1136 return strtoll (__nptr, (char **) ((void *)0), 10);
1137 }
1138 # 429 "/usr/include/stdlib.h" 3 4
1139 extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
1140
1141
1142 extern long int a64l (__const char *__s)
1143 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1144
1145
1146
1147
1148
1149 # 1 "/usr/include/sys/types.h" 1 3 4
1150 # 29 "/usr/include/sys/types.h" 3 4
1151
1152
1153
1154
1155
1156
1157 typedef __u_char u_char;
1158 typedef __u_short u_short;
1159 typedef __u_int u_int;
1160 typedef __u_long u_long;
1161 typedef __quad_t quad_t;
1162 typedef __u_quad_t u_quad_t;
1163 typedef __fsid_t fsid_t;
1164
1165
1166
1167
1168 typedef __loff_t loff_t;
1169
1170
1171
1172
1173
1174 typedef __ino64_t ino_t;
1175 # 62 "/usr/include/sys/types.h" 3 4
1176 typedef __dev_t dev_t;
1177
1178
1179
1180
1181 typedef __gid_t gid_t;
1182
1183
1184
1185
1186 typedef __mode_t mode_t;
1187
1188
1189
1190
1191 typedef __nlink_t nlink_t;
1192
1193
1194
1195
1196 typedef __uid_t uid_t;
1197
1198
1199
1200
1201
1202
1203
1204 typedef __off64_t off_t;
1205 # 100 "/usr/include/sys/types.h" 3 4
1206 typedef __pid_t pid_t;
1207
1208
1209
1210
1211 typedef __id_t id_t;
1212
1213
1214
1215
1216 typedef __ssize_t ssize_t;
1217
1218
1219
1220
1221
1222 typedef __daddr_t daddr_t;
1223 typedef __caddr_t caddr_t;
1224
1225
1226
1227
1228
1229 typedef __key_t key_t;
1230 # 133 "/usr/include/sys/types.h" 3 4
1231
1232 # 1 "/usr/include/time.h" 1 3 4
1233 # 75 "/usr/include/time.h" 3 4
1234
1235
1236 typedef __time_t time_t;
1237 # 93 "/usr/include/time.h" 3 4
1238 typedef __clockid_t clockid_t;
1239 # 105 "/usr/include/time.h" 3 4
1240 typedef __timer_t timer_t;
1241 # 134 "/usr/include/sys/types.h" 2 3 4
1242 # 147 "/usr/include/sys/types.h" 3 4
1243
1244 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
1245 # 148 "/usr/include/sys/types.h" 2 3 4
1246
1247
1248
1249 typedef unsigned long int ulong;
1250 typedef unsigned short int ushort;
1251 typedef unsigned int uint;
1252 # 195 "/usr/include/sys/types.h" 3 4
1253 typedef int int8_t __attribute__ ((__mode__ (__QI__)));
1254 typedef int int16_t __attribute__ ((__mode__ (__HI__)));
1255 typedef int int32_t __attribute__ ((__mode__ (__SI__)));
1256 typedef int int64_t __attribute__ ((__mode__ (__DI__)));
1257
1258
1259 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
1260 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
1261 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
1262 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
1263
1264 typedef int register_t __attribute__ ((__mode__ (__word__)));
1265 # 217 "/usr/include/sys/types.h" 3 4
1266
1267 # 1 "/usr/include/endian.h" 1 3 4
1268 # 37 "/usr/include/endian.h" 3 4
1269
1270 # 1 "/usr/include/bits/endian.h" 1 3 4
1271 # 38 "/usr/include/endian.h" 2 3 4
1272 # 218 "/usr/include/sys/types.h" 2 3 4
1273
1274
1275
1276 # 1 "/usr/include/sys/select.h" 1 3 4
1277 # 31 "/usr/include/sys/select.h" 3 4
1278
1279 # 1 "/usr/include/bits/select.h" 1 3 4
1280 # 32 "/usr/include/sys/select.h" 2 3 4
1281
1282
1283
1284 # 1 "/usr/include/bits/sigset.h" 1 3 4
1285 # 23 "/usr/include/bits/sigset.h" 3 4
1286 typedef int __sig_atomic_t;
1287
1288
1289
1290
1291 typedef struct
1292 {
1293 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
1294 } __sigset_t;
1295 # 35 "/usr/include/sys/select.h" 2 3 4
1296
1297
1298
1299 typedef __sigset_t sigset_t;
1300
1301
1302
1303
1304
1305
1306 # 1 "/usr/include/time.h" 1 3 4
1307 # 121 "/usr/include/time.h" 3 4
1308 struct timespec
1309 {
1310 __time_t tv_sec;
1311 long int tv_nsec;
1312 };
1313 # 45 "/usr/include/sys/select.h" 2 3 4
1314
1315
1316 # 1 "/usr/include/bits/time.h" 1 3 4
1317 # 69 "/usr/include/bits/time.h" 3 4
1318 struct timeval
1319 {
1320 __time_t tv_sec;
1321 __suseconds_t tv_usec;
1322 };
1323 # 47 "/usr/include/sys/select.h" 2 3 4
1324
1325
1326 typedef __suseconds_t suseconds_t;
1327
1328
1329
1330
1331
1332 typedef long int __fd_mask;
1333 # 67 "/usr/include/sys/select.h" 3 4
1334 typedef struct
1335 {
1336
1337
1338
1339
1340
1341
1342 __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))];
1343
1344
1345 } fd_set;
1346
1347
1348
1349
1350
1351
1352 typedef __fd_mask fd_mask;
1353 # 99 "/usr/include/sys/select.h" 3 4
1354 # 109 "/usr/include/sys/select.h" 3 4
1355 extern int select (int __nfds, fd_set *__restrict __readfds,
1356 fd_set *__restrict __writefds,
1357 fd_set *__restrict __exceptfds,
1358 struct timeval *__restrict __timeout);
1359 # 121 "/usr/include/sys/select.h" 3 4
1360 extern int pselect (int __nfds, fd_set *__restrict __readfds,
1361 fd_set *__restrict __writefds,
1362 fd_set *__restrict __exceptfds,
1363 const struct timespec *__restrict __timeout,
1364 const __sigset_t *__restrict __sigmask);
1365 # 221 "/usr/include/sys/types.h" 2 3 4
1366
1367
1368
1369 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
1370 # 29 "/usr/include/sys/sysmacros.h" 3 4
1371 __extension__
1372 extern __inline unsigned int gnu_dev_major (unsigned long long int __dev)
1373 __attribute__ ((__nothrow__));
1374 __extension__
1375 extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
1376 __attribute__ ((__nothrow__));
1377 __extension__
1378 extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
1379 unsigned int __minor)
1380 __attribute__ ((__nothrow__));
1381
1382
1383 __extension__ extern __inline unsigned int
1384 __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
1385 {
1386 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
1387 }
1388
1389 __extension__ extern __inline unsigned int
1390 __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
1391 {
1392 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
1393 }
1394
1395 __extension__ extern __inline unsigned long long int
1396 __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
1397 {
1398 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
1399 | (((unsigned long long int) (__minor & ~0xff)) << 12)
1400 | (((unsigned long long int) (__major & ~0xfff)) << 32));
1401 }
1402 # 224 "/usr/include/sys/types.h" 2 3 4
1403 # 248 "/usr/include/sys/types.h" 3 4
1404 typedef __blkcnt64_t blkcnt_t;
1405
1406
1407
1408 typedef __fsblkcnt64_t fsblkcnt_t;
1409
1410
1411
1412 typedef __fsfilcnt64_t fsfilcnt_t;
1413 # 270 "/usr/include/sys/types.h" 3 4
1414
1415 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
1416 # 36 "/usr/include/bits/pthreadtypes.h" 3 4
1417 typedef unsigned long int pthread_t;
1418
1419
1420 typedef union
1421 {
1422 char __size[36];
1423 long int __align;
1424 } pthread_attr_t;
1425
1426
1427 typedef struct __pthread_internal_slist
1428 {
1429 struct __pthread_internal_slist *__next;
1430 } __pthread_slist_t;
1431
1432
1433
1434
1435 typedef union
1436 {
1437 struct __pthread_mutex_s
1438 {
1439 int __lock;
1440 unsigned int __count;
1441 int __owner;
1442
1443
1444 int __kind;
1445 unsigned int __nusers;
1446 __extension__ union
1447 {
1448 int __spins;
1449 __pthread_slist_t __list;
1450 };
1451 } __data;
1452 char __size[24];
1453 long int __align;
1454 } pthread_mutex_t;
1455
1456 typedef union
1457 {
1458 char __size[4];
1459 long int __align;
1460 } pthread_mutexattr_t;
1461
1462
1463
1464
1465 typedef union
1466 {
1467 struct
1468 {
1469 int __lock;
1470 unsigned int __futex;
1471 __extension__ unsigned long long int __total_seq;
1472 __extension__ unsigned long long int __wakeup_seq;
1473 __extension__ unsigned long long int __woken_seq;
1474 void *__mutex;
1475 unsigned int __nwaiters;
1476 unsigned int __broadcast_seq;
1477 } __data;
1478 char __size[48];
1479 __extension__ long long int __align;
1480 } pthread_cond_t;
1481
1482 typedef union
1483 {
1484 char __size[4];
1485 long int __align;
1486 } pthread_condattr_t;
1487
1488
1489
1490 typedef unsigned int pthread_key_t;
1491
1492
1493
1494 typedef int pthread_once_t;
1495
1496
1497
1498
1499
1500 typedef union
1501 {
1502 struct
1503 {
1504 int __lock;
1505 unsigned int __nr_readers;
1506 unsigned int __readers_wakeup;
1507 unsigned int __writer_wakeup;
1508 unsigned int __nr_readers_queued;
1509 unsigned int __nr_writers_queued;
1510
1511
1512 unsigned int __flags;
1513 int __writer;
1514 } __data;
1515 char __size[32];
1516 long int __align;
1517 } pthread_rwlock_t;
1518
1519 typedef union
1520 {
1521 char __size[8];
1522 long int __align;
1523 } pthread_rwlockattr_t;
1524
1525
1526
1527
1528
1529 typedef volatile int pthread_spinlock_t;
1530
1531
1532
1533
1534 typedef union
1535 {
1536 char __size[20];
1537 long int __align;
1538 } pthread_barrier_t;
1539
1540 typedef union
1541 {
1542 char __size[4];
1543 int __align;
1544 } pthread_barrierattr_t;
1545 # 271 "/usr/include/sys/types.h" 2 3 4
1546 # 439 "/usr/include/stdlib.h" 2 3 4
1547
1548
1549
1550
1551
1552
1553 extern long int random (void) __attribute__ ((__nothrow__));
1554
1555
1556 extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
1557
1558
1559
1560
1561
1562 extern char *initstate (unsigned int __seed, char *__statebuf,
1563 size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1564
1565
1566
1567 extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1568
1569
1570
1571
1572
1573
1574
1575 struct random_data
1576 {
1577 int32_t *fptr;
1578 int32_t *rptr;
1579 int32_t *state;
1580 int rand_type;
1581 int rand_deg;
1582 int rand_sep;
1583 int32_t *end_ptr;
1584 };
1585
1586 extern int random_r (struct random_data *__restrict __buf,
1587 int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1588
1589 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
1590 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1591
1592 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
1593 size_t __statelen,
1594 struct random_data *__restrict __buf)
1595 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
1596
1597 extern int setstate_r (char *__restrict __statebuf,
1598 struct random_data *__restrict __buf)
1599 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1600
1601
1602
1603
1604
1605
1606 extern int rand (void) __attribute__ ((__nothrow__));
1607
1608 extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
1609
1610
1611
1612
1613 extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
1614
1615
1616
1617
1618
1619
1620
1621 extern double drand48 (void) __attribute__ ((__nothrow__));
1622 extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1623
1624
1625 extern long int lrand48 (void) __attribute__ ((__nothrow__));
1626 extern long int nrand48 (unsigned short int __xsubi[3])
1627 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1628
1629
1630 extern long int mrand48 (void) __attribute__ ((__nothrow__));
1631 extern long int jrand48 (unsigned short int __xsubi[3])
1632 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1633
1634
1635 extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
1636 extern unsigned short int *seed48 (unsigned short int __seed16v[3])
1637 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1638 extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1639
1640
1641
1642
1643
1644 struct drand48_data
1645 {
1646 unsigned short int __x[3];
1647 unsigned short int __old_x[3];
1648 unsigned short int __c;
1649 unsigned short int __init;
1650 unsigned long long int __a;
1651 };
1652
1653
1654 extern int drand48_r (struct drand48_data *__restrict __buffer,
1655 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1656 extern int erand48_r (unsigned short int __xsubi[3],
1657 struct drand48_data *__restrict __buffer,
1658 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1659
1660
1661 extern int lrand48_r (struct drand48_data *__restrict __buffer,
1662 long int *__restrict __result)
1663 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1664 extern int nrand48_r (unsigned short int __xsubi[3],
1665 struct drand48_data *__restrict __buffer,
1666 long int *__restrict __result)
1667 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1668
1669
1670 extern int mrand48_r (struct drand48_data *__restrict __buffer,
1671 long int *__restrict __result)
1672 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1673 extern int jrand48_r (unsigned short int __xsubi[3],
1674 struct drand48_data *__restrict __buffer,
1675 long int *__restrict __result)
1676 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1677
1678
1679 extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
1680 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1681
1682 extern int seed48_r (unsigned short int __seed16v[3],
1683 struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1684
1685 extern int lcong48_r (unsigned short int __param[7],
1686 struct drand48_data *__buffer)
1687 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1688 # 589 "/usr/include/stdlib.h" 3 4
1689 extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1690
1691 extern void *calloc (size_t __nmemb, size_t __size)
1692 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1693
1694
1695
1696
1697
1698
1699
1700 extern void *realloc (void *__ptr, size_t __size)
1701 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
1702
1703 extern void free (void *__ptr) __attribute__ ((__nothrow__));
1704
1705
1706
1707
1708 extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
1709
1710
1711
1712
1713 # 1 "/usr/include/alloca.h" 1 3 4
1714 # 25 "/usr/include/alloca.h" 3 4
1715
1716 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
1717 # 26 "/usr/include/alloca.h" 2 3 4
1718
1719
1720
1721
1722
1723
1724
1725 extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
1726 # 613 "/usr/include/stdlib.h" 2 3 4
1727
1728
1729
1730
1731 extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1732
1733
1734
1735
1736 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
1737 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1738
1739
1740
1741
1742 extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1743
1744
1745
1746 extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1747
1748
1749
1750
1751
1752 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
1753 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1754
1755
1756
1757
1758
1759
1760 extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1761 # 658 "/usr/include/stdlib.h" 3 4
1762
1763
1764 extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1765
1766
1767
1768
1769 extern char *__secure_getenv (__const char *__name)
1770 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1771
1772
1773
1774
1775
1776 extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1777
1778
1779
1780
1781
1782 extern int setenv (__const char *__name, __const char *__value, int __replace)
1783 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1784
1785
1786 extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));
1787
1788
1789
1790
1791
1792
1793 extern int clearenv (void) __attribute__ ((__nothrow__));
1794 # 698 "/usr/include/stdlib.h" 3 4
1795 extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1796 # 712 "/usr/include/stdlib.h" 3 4
1797 extern int mkstemp (char *__template) __asm__ ("" "mkstemp64")
1798 __attribute__ ((__nonnull__ (1))) ;
1799 # 729 "/usr/include/stdlib.h" 3 4
1800 extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1801 # 738 "/usr/include/stdlib.h" 3 4
1802 extern int system (__const char *__command) ;
1803 # 757 "/usr/include/stdlib.h" 3 4
1804 extern char *realpath (__const char *__restrict __name,
1805 char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
1806
1807
1808
1809
1810
1811
1812 typedef int (*__compar_fn_t) (__const void *, __const void *);
1813 # 775 "/usr/include/stdlib.h" 3 4
1814 extern void *bsearch (__const void *__key, __const void *__base,
1815 size_t __nmemb, size_t __size, __compar_fn_t __compar)
1816 __attribute__ ((__nonnull__ (1, 2, 5))) ;
1817
1818
1819
1820 extern void qsort (void *__base, size_t __nmemb, size_t __size,
1821 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
1822
1823
1824
1825 extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1826 extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1827 # 800 "/usr/include/stdlib.h" 3 4
1828 extern div_t div (int __numer, int __denom)
1829 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1830 extern ldiv_t ldiv (long int __numer, long int __denom)
1831 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1832 # 822 "/usr/include/stdlib.h" 3 4
1833 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
1834 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1835
1836
1837
1838
1839 extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
1840 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1841
1842
1843
1844
1845 extern char *gcvt (double __value, int __ndigit, char *__buf)
1846 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
1847
1848
1849
1850
1851 extern char *qecvt (long double __value, int __ndigit,
1852 int *__restrict __decpt, int *__restrict __sign)
1853 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1854 extern char *qfcvt (long double __value, int __ndigit,
1855 int *__restrict __decpt, int *__restrict __sign)
1856 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1857 extern char *qgcvt (long double __value, int __ndigit, char *__buf)
1858 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
1859
1860
1861
1862
1863 extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
1864 int *__restrict __sign, char *__restrict __buf,
1865 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1866 extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
1867 int *__restrict __sign, char *__restrict __buf,
1868 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1869
1870 extern int qecvt_r (long double __value, int __ndigit,
1871 int *__restrict __decpt, int *__restrict __sign,
1872 char *__restrict __buf, size_t __len)
1873 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1874 extern int qfcvt_r (long double __value, int __ndigit,
1875 int *__restrict __decpt, int *__restrict __sign,
1876 char *__restrict __buf, size_t __len)
1877 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1878
1879
1880
1881
1882
1883
1884
1885 extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
1886
1887
1888 extern int mbtowc (wchar_t *__restrict __pwc,
1889 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
1890
1891
1892 extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
1893
1894
1895
1896 extern size_t mbstowcs (wchar_t *__restrict __pwcs,
1897 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
1898
1899 extern size_t wcstombs (char *__restrict __s,
1900 __const wchar_t *__restrict __pwcs, size_t __n)
1901 __attribute__ ((__nothrow__));
1902 # 899 "/usr/include/stdlib.h" 3 4
1903 extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1904 # 927 "/usr/include/stdlib.h" 3 4
1905 extern int posix_openpt (int __oflag) ;
1906 # 962 "/usr/include/stdlib.h" 3 4
1907 extern int getloadavg (double __loadavg[], int __nelem)
1908 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1909 # 978 "/usr/include/stdlib.h" 3 4
1910 # 44 "maze.c" 2
1911
1912
1913 # 1 "../../libgimp/gimp.h" 1
1914 # 25 "../../libgimp/gimp.h"
1915
1916 # 1 "/usr/include/glib-2.0/glib-object.h" 1
1917 # 25 "/usr/include/glib-2.0/glib-object.h"
1918
1919 # 1 "/usr/include/glib-2.0/gobject/gboxed.h" 1
1920 # 26 "/usr/include/glib-2.0/gobject/gboxed.h"
1921
1922 # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1
1923 # 26 "/usr/include/glib-2.0/gobject/gtype.h"
1924
1925 # 1 "/usr/include/glib-2.0/glib.h" 1
1926 # 30 "/usr/include/glib-2.0/glib.h"
1927
1928 # 1 "/usr/include/glib-2.0/glib/galloca.h" 1
1929 # 30 "/usr/include/glib-2.0/glib/galloca.h"
1930
1931 # 1 "/usr/include/glib-2.0/glib/gtypes.h" 1
1932 # 30 "/usr/include/glib-2.0/glib/gtypes.h"
1933
1934 # 1 "/usr/lib/glib-2.0/include/glibconfig.h" 1
1935 # 9 "/usr/lib/glib-2.0/include/glibconfig.h"
1936
1937 # 1 "/usr/include/glib-2.0/glib/gmacros.h" 1
1938 # 36 "/usr/include/glib-2.0/glib/gmacros.h"
1939
1940 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
1941 # 152 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
1942 typedef int ptrdiff_t;
1943 # 37 "/usr/include/glib-2.0/glib/gmacros.h" 2
1944 # 10 "/usr/lib/glib-2.0/include/glibconfig.h" 2
1945
1946
1947 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 1 3 4
1948 # 11 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 3 4
1949
1950 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/syslimits.h" 1 3 4
1951
1952
1953
1954
1955
1956
1957
1958 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 1 3 4
1959 # 122 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 3 4
1960
1961 # 1 "/usr/include/limits.h" 1 3 4
1962 # 145 "/usr/include/limits.h" 3 4
1963
1964 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
1965 # 153 "/usr/include/bits/posix1_lim.h" 3 4
1966
1967 # 1 "/usr/include/bits/local_lim.h" 1 3 4
1968 # 36 "/usr/include/bits/local_lim.h" 3 4
1969
1970 # 1 "/usr/include/linux/limits.h" 1 3 4
1971 # 37 "/usr/include/bits/local_lim.h" 2 3 4
1972 # 154 "/usr/include/bits/posix1_lim.h" 2 3 4
1973 # 146 "/usr/include/limits.h" 2 3 4
1974
1975
1976
1977
1978 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
1979 # 150 "/usr/include/limits.h" 2 3 4
1980 # 123 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 2 3 4
1981 # 8 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/syslimits.h" 2 3 4
1982 # 12 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 2 3 4
1983 # 12 "/usr/lib/glib-2.0/include/glibconfig.h" 2
1984
1985 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/float.h" 1 3 4
1986 # 13 "/usr/lib/glib-2.0/include/glibconfig.h" 2
1987 # 32 "/usr/lib/glib-2.0/include/glibconfig.h"
1988 typedef signed char gint8;
1989 typedef unsigned char guint8;
1990 typedef signed short gint16;
1991 typedef unsigned short guint16;
1992
1993
1994
1995 typedef signed int gint32;
1996 typedef unsigned int guint32;
1997
1998
1999
2000
2001
2002 __extension__ typedef signed long long gint64;
2003 __extension__ typedef unsigned long long guint64;
2004 # 59 "/usr/lib/glib-2.0/include/glibconfig.h"
2005 typedef signed int gssize;
2006 typedef unsigned int gsize;
2007 # 126 "/usr/lib/glib-2.0/include/glibconfig.h"
2008 typedef struct _GStaticMutex GStaticMutex;
2009 struct _GStaticMutex
2010 {
2011 struct _GMutex *runtime_mutex;
2012 union {
2013 char pad[24];
2014 double dummy_double;
2015 void *dummy_pointer;
2016 long dummy_long;
2017 } static_mutex;
2018 };
2019 # 145 "/usr/lib/glib-2.0/include/glibconfig.h"
2020 typedef union _GSystemThread GSystemThread;
2021 union _GSystemThread
2022 {
2023 char data[4];
2024 double dummy_double;
2025 void *dummy_pointer;
2026 long dummy_long;
2027 };
2028 # 185 "/usr/lib/glib-2.0/include/glibconfig.h"
2029 typedef int GPid;
2030 # 31 "/usr/include/glib-2.0/glib/gtypes.h" 2
2031 # 41 "/usr/include/glib-2.0/glib/gtypes.h"
2032 typedef char gchar;
2033 typedef short gshort;
2034 typedef long glong;
2035 typedef int gint;
2036 typedef gint gboolean;
2037
2038 typedef unsigned char guchar;
2039 typedef unsigned short gushort;
2040 typedef unsigned long gulong;
2041 typedef unsigned int guint;
2042
2043 typedef float gfloat;
2044 typedef double gdouble;
2045 # 72 "/usr/include/glib-2.0/glib/gtypes.h"
2046 typedef void* gpointer;
2047 typedef const void *gconstpointer;
2048
2049 typedef gint (*GCompareFunc) (gconstpointer a,
2050 gconstpointer b);
2051 typedef gint (*GCompareDataFunc) (gconstpointer a,
2052 gconstpointer b,
2053 gpointer user_data);
2054 typedef gboolean (*GEqualFunc) (gconstpointer a,
2055 gconstpointer b);
2056 typedef void (*GDestroyNotify) (gpointer data);
2057 typedef void (*GFunc) (gpointer data,
2058 gpointer user_data);
2059 typedef guint (*GHashFunc) (gconstpointer key);
2060 typedef void (*GHFunc) (gpointer key,
2061 gpointer value,
2062 gpointer user_data);
2063 typedef void (*GFreeFunc) (gpointer data);
2064 typedef const gchar * (*GTranslateFunc) (const gchar *str,
2065 gpointer data);
2066 # 338 "/usr/include/glib-2.0/glib/gtypes.h"
2067 typedef union _GDoubleIEEE754 GDoubleIEEE754;
2068 typedef union _GFloatIEEE754 GFloatIEEE754;
2069
2070
2071
2072
2073
2074 union _GFloatIEEE754
2075 {
2076 gfloat v_float;
2077 struct {
2078 guint mantissa : 23;
2079 guint biased_exponent : 8;
2080 guint sign : 1;
2081 } mpn;
2082 };
2083 union _GDoubleIEEE754
2084 {
2085 gdouble v_double;
2086 struct {
2087 guint mantissa_low : 32;
2088 guint mantissa_high : 20;
2089 guint biased_exponent : 11;
2090 guint sign : 1;
2091 } mpn;
2092 };
2093 # 388 "/usr/include/glib-2.0/glib/gtypes.h"
2094 typedef struct _GTimeVal GTimeVal;
2095
2096 struct _GTimeVal
2097 {
2098 glong tv_sec;
2099 glong tv_usec;
2100 };
2101 # 31 "/usr/include/glib-2.0/glib/galloca.h" 2
2102 # 31 "/usr/include/glib-2.0/glib.h" 2
2103
2104 # 1 "/usr/include/glib-2.0/glib/garray.h" 1
2105 # 32 "/usr/include/glib-2.0/glib/garray.h"
2106
2107
2108 typedef struct _GArray GArray;
2109 typedef struct _GByteArray GByteArray;
2110 typedef struct _GPtrArray GPtrArray;
2111
2112 struct _GArray
2113 {
2114 gchar *data;
2115 guint len;
2116 };
2117
2118 struct _GByteArray
2119 {
2120 guint8 *data;
2121 guint len;
2122 };
2123
2124 struct _GPtrArray
2125 {
2126 gpointer *pdata;
2127 guint len;
2128 };
2129 # 66 "/usr/include/glib-2.0/glib/garray.h"
2130 GArray* g_array_new (gboolean zero_terminated,
2131 gboolean clear_,
2132 guint element_size);
2133 GArray* g_array_sized_new (gboolean zero_terminated,
2134 gboolean clear_,
2135 guint element_size,
2136 guint reserved_size);
2137 gchar* g_array_free (GArray *array,
2138 gboolean free_segment);
2139 GArray* g_array_append_vals (GArray *array,
2140 gconstpointer data,
2141 guint len);
2142 GArray* g_array_prepend_vals (GArray *array,
2143 gconstpointer data,
2144 guint len);
2145 GArray* g_array_insert_vals (GArray *array,
2146 guint index_,
2147 gconstpointer data,
2148 guint len);
2149 GArray* g_array_set_size (GArray *array,
2150 guint length);
2151 GArray* g_array_remove_index (GArray *array,
2152 guint index_);
2153 GArray* g_array_remove_index_fast (GArray *array,
2154 guint index_);
2155 GArray* g_array_remove_range (GArray *array,
2156 guint index_,
2157 guint length);
2158 void g_array_sort (GArray *array,
2159 GCompareFunc compare_func);
2160 void g_array_sort_with_data (GArray *array,
2161 GCompareDataFunc compare_func,
2162 gpointer user_data);
2163
2164
2165
2166
2167
2168
2169 GPtrArray* g_ptr_array_new (void);
2170 GPtrArray* g_ptr_array_sized_new (guint reserved_size);
2171 gpointer* g_ptr_array_free (GPtrArray *array,
2172 gboolean free_seg);
2173 void g_ptr_array_set_size (GPtrArray *array,
2174 gint length);
2175 gpointer g_ptr_array_remove_index (GPtrArray *array,
2176 guint index_);
2177 gpointer g_ptr_array_remove_index_fast (GPtrArray *array,
2178 guint index_);
2179 gboolean g_ptr_array_remove (GPtrArray *array,
2180 gpointer data);
2181 gboolean g_ptr_array_remove_fast (GPtrArray *array,
2182 gpointer data);
2183 void g_ptr_array_remove_range (GPtrArray *array,
2184 guint index_,
2185 guint length);
2186 void g_ptr_array_add (GPtrArray *array,
2187 gpointer data);
2188 void g_ptr_array_sort (GPtrArray *array,
2189 GCompareFunc compare_func);
2190 void g_ptr_array_sort_with_data (GPtrArray *array,
2191 GCompareDataFunc compare_func,
2192 gpointer user_data);
2193 void g_ptr_array_foreach (GPtrArray *array,
2194 GFunc func,
2195 gpointer user_data);
2196
2197
2198
2199
2200
2201
2202 GByteArray* g_byte_array_new (void);
2203 GByteArray* g_byte_array_sized_new (guint reserved_size);
2204 guint8* g_byte_array_free (GByteArray *array,
2205 gboolean free_segment);
2206 GByteArray* g_byte_array_append (GByteArray *array,
2207 const guint8 *data,
2208 guint len);
2209 GByteArray* g_byte_array_prepend (GByteArray *array,
2210 const guint8 *data,
2211 guint len);
2212 GByteArray* g_byte_array_set_size (GByteArray *array,
2213 guint length);
2214 GByteArray* g_byte_array_remove_index (GByteArray *array,
2215 guint index_);
2216 GByteArray* g_byte_array_remove_index_fast (GByteArray *array,
2217 guint index_);
2218 GByteArray* g_byte_array_remove_range (GByteArray *array,
2219 guint index_,
2220 guint length);
2221 void g_byte_array_sort (GByteArray *array,
2222 GCompareFunc compare_func);
2223 void g_byte_array_sort_with_data (GByteArray *array,
2224 GCompareDataFunc compare_func,
2225 gpointer user_data);
2226 # 32 "/usr/include/glib-2.0/glib.h" 2
2227
2228 # 1 "/usr/include/glib-2.0/glib/gasyncqueue.h" 1
2229 # 30 "/usr/include/glib-2.0/glib/gasyncqueue.h"
2230
2231 # 1 "/usr/include/glib-2.0/glib/gthread.h" 1
2232 # 30 "/usr/include/glib-2.0/glib/gthread.h"
2233
2234 # 1 "/usr/include/glib-2.0/glib/gerror.h" 1
2235 # 24 "/usr/include/glib-2.0/glib/gerror.h"
2236
2237 # 1 "/usr/include/glib-2.0/glib/gquark.h" 1
2238 # 32 "/usr/include/glib-2.0/glib/gquark.h"
2239
2240
2241 typedef guint32 GQuark;
2242
2243
2244
2245 GQuark g_quark_try_string (const gchar *string);
2246 GQuark g_quark_from_static_string (const gchar *string);
2247 GQuark g_quark_from_string (const gchar *string);
2248 const gchar* g_quark_to_string (GQuark quark) __attribute__((__const__));
2249
2250 const gchar* g_intern_string (const gchar *string);
2251 const gchar* g_intern_static_string (const gchar *string);
2252 # 25 "/usr/include/glib-2.0/glib/gerror.h" 2
2253
2254
2255
2256 typedef struct _GError GError;
2257
2258 struct _GError
2259 {
2260 GQuark domain;
2261 gint code;
2262 gchar *message;
2263 };
2264
2265 GError* g_error_new (GQuark domain,
2266 gint code,
2267 const gchar *format,
2268 ...) __attribute__((__format__ (__printf__, 3, 4)));
2269
2270 GError* g_error_new_literal (GQuark domain,
2271 gint code,
2272 const gchar *message);
2273
2274 void g_error_free (GError *error);
2275 GError* g_error_copy (const GError *error);
2276
2277 gboolean g_error_matches (const GError *error,
2278 GQuark domain,
2279 gint code);
2280
2281
2282
2283
2284 void g_set_error (GError **err,
2285 GQuark domain,
2286 gint code,
2287 const gchar *format,
2288 ...) __attribute__((__format__ (__printf__, 4, 5)));
2289
2290
2291
2292 void g_propagate_error (GError **dest,
2293 GError *src);
2294
2295
2296 void g_clear_error (GError **err);
2297 # 31 "/usr/include/glib-2.0/glib/gthread.h" 2
2298
2299
2300 # 1 "/usr/include/glib-2.0/glib/gatomic.h" 1
2301 # 35 "/usr/include/glib-2.0/glib/gatomic.h"
2302
2303
2304 gint g_atomic_int_exchange_and_add (volatile gint *atomic,
2305 gint val);
2306 void g_atomic_int_add (volatile gint *atomic,
2307 gint val);
2308 gboolean g_atomic_int_compare_and_exchange (volatile gint *atomic,
2309 gint oldval,
2310 gint newval);
2311 gboolean g_atomic_pointer_compare_and_exchange (volatile gpointer *atomic,
2312 gpointer oldval,
2313 gpointer newval);
2314
2315 gint g_atomic_int_get (volatile gint *atomic);
2316 void g_atomic_int_set (volatile gint *atomic,
2317 gint newval);
2318 gpointer g_atomic_pointer_get (volatile gpointer *atomic);
2319 void g_atomic_pointer_set (volatile gpointer *atomic,
2320 gpointer newval);
2321 # 66 "/usr/include/glib-2.0/glib/gatomic.h"
2322 # 33 "/usr/include/glib-2.0/glib/gthread.h" 2
2323
2324
2325
2326
2327
2328
2329 extern GQuark g_thread_error_quark (void);
2330
2331
2332 typedef enum
2333 {
2334 G_THREAD_ERROR_AGAIN
2335 } GThreadError;
2336
2337 typedef gpointer (*GThreadFunc) (gpointer data);
2338
2339 typedef enum
2340 {
2341 G_THREAD_PRIORITY_LOW,
2342 G_THREAD_PRIORITY_NORMAL,
2343 G_THREAD_PRIORITY_HIGH,
2344 G_THREAD_PRIORITY_URGENT
2345 } GThreadPriority;
2346
2347 typedef struct _GThread GThread;
2348 struct _GThread
2349 {
2350
2351 GThreadFunc func;
2352 gpointer data;
2353 gboolean joinable;
2354 GThreadPriority priority;
2355 };
2356
2357 typedef struct _GMutex GMutex;
2358 typedef struct _GCond GCond;
2359 typedef struct _GPrivate GPrivate;
2360 typedef struct _GStaticPrivate GStaticPrivate;
2361
2362 typedef struct _GThreadFunctions GThreadFunctions;
2363 struct _GThreadFunctions
2364 {
2365 GMutex* (*mutex_new) (void);
2366 void (*mutex_lock) (GMutex *mutex);
2367 gboolean (*mutex_trylock) (GMutex *mutex);
2368 void (*mutex_unlock) (GMutex *mutex);
2369 void (*mutex_free) (GMutex *mutex);
2370 GCond* (*cond_new) (void);
2371 void (*cond_signal) (GCond *cond);
2372 void (*cond_broadcast) (GCond *cond);
2373 void (*cond_wait) (GCond *cond,
2374 GMutex *mutex);
2375 gboolean (*cond_timed_wait) (GCond *cond,
2376 GMutex *mutex,
2377 GTimeVal *end_time);
2378 void (*cond_free) (GCond *cond);
2379 GPrivate* (*private_new) (GDestroyNotify destructor);
2380 gpointer (*private_get) (GPrivate *private_key);
2381 void (*private_set) (GPrivate *private_key,
2382 gpointer data);
2383 void (*thread_create) (GThreadFunc func,
2384 gpointer data,
2385 gulong stack_size,
2386 gboolean joinable,
2387 gboolean bound,
2388 GThreadPriority priority,
2389 gpointer thread,
2390 GError **error);
2391 void (*thread_yield) (void);
2392 void (*thread_join) (gpointer thread);
2393 void (*thread_exit) (void);
2394 void (*thread_set_priority)(gpointer thread,
2395 GThreadPriority priority);
2396 void (*thread_self) (gpointer thread);
2397 gboolean (*thread_equal) (gpointer thread1,
2398 gpointer thread2);
2399 };
2400
2401 extern GThreadFunctions g_thread_functions_for_glib_use;
2402 extern gboolean g_thread_use_default_impl;
2403 extern gboolean g_threads_got_initialized;
2404
2405
2406
2407
2408
2409 void g_thread_init (GThreadFunctions *vtable);
2410 # 128 "/usr/include/glib-2.0/glib/gthread.h"
2411 void g_thread_init_with_errorcheck_mutexes (GThreadFunctions* vtable);
2412 # 138 "/usr/include/glib-2.0/glib/gthread.h"
2413 GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex);
2414 # 208 "/usr/include/glib-2.0/glib/gthread.h"
2415 GThread* g_thread_create_full (GThreadFunc func,
2416 gpointer data,
2417 gulong stack_size,
2418 gboolean joinable,
2419 gboolean bound,
2420 GThreadPriority priority,
2421 GError **error);
2422 GThread* g_thread_self (void);
2423 void g_thread_exit (gpointer retval);
2424 gpointer g_thread_join (GThread *thread);
2425
2426 void g_thread_set_priority (GThread *thread,
2427 GThreadPriority priority);
2428 # 233 "/usr/include/glib-2.0/glib/gthread.h"
2429 void g_static_mutex_init (GStaticMutex *mutex);
2430 void g_static_mutex_free (GStaticMutex *mutex);
2431
2432 struct _GStaticPrivate
2433 {
2434
2435 guint index;
2436 };
2437
2438 void g_static_private_init (GStaticPrivate *private_key);
2439 gpointer g_static_private_get (GStaticPrivate *private_key);
2440 void g_static_private_set (GStaticPrivate *private_key,
2441 gpointer data,
2442 GDestroyNotify notify);
2443 void g_static_private_free (GStaticPrivate *private_key);
2444
2445 typedef struct _GStaticRecMutex GStaticRecMutex;
2446 struct _GStaticRecMutex
2447 {
2448
2449 GStaticMutex mutex;
2450 guint depth;
2451 GSystemThread owner;
2452 };
2453
2454
2455 void g_static_rec_mutex_init (GStaticRecMutex *mutex);
2456 void g_static_rec_mutex_lock (GStaticRecMutex *mutex);
2457 gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex);
2458 void g_static_rec_mutex_unlock (GStaticRecMutex *mutex);
2459 void g_static_rec_mutex_lock_full (GStaticRecMutex *mutex,
2460 guint depth);
2461 guint g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex);
2462 void g_static_rec_mutex_free (GStaticRecMutex *mutex);
2463
2464 typedef struct _GStaticRWLock GStaticRWLock;
2465 struct _GStaticRWLock
2466 {
2467
2468 GStaticMutex mutex;
2469 GCond *read_cond;
2470 GCond *write_cond;
2471 guint read_counter;
2472 gboolean have_writer;
2473 guint want_to_read;
2474 guint want_to_write;
2475 };
2476
2477
2478
2479 void g_static_rw_lock_init (GStaticRWLock* lock);
2480 void g_static_rw_lock_reader_lock (GStaticRWLock* lock);
2481 gboolean g_static_rw_lock_reader_trylock (GStaticRWLock* lock);
2482 void g_static_rw_lock_reader_unlock (GStaticRWLock* lock);
2483 void g_static_rw_lock_writer_lock (GStaticRWLock* lock);
2484 gboolean g_static_rw_lock_writer_trylock (GStaticRWLock* lock);
2485 void g_static_rw_lock_writer_unlock (GStaticRWLock* lock);
2486 void g_static_rw_lock_free (GStaticRWLock* lock);
2487
2488 void g_thread_foreach (GFunc thread_func,
2489 gpointer user_data);
2490
2491 typedef enum
2492 {
2493 G_ONCE_STATUS_NOTCALLED,
2494 G_ONCE_STATUS_PROGRESS,
2495 G_ONCE_STATUS_READY
2496 } GOnceStatus;
2497
2498 typedef struct _GOnce GOnce;
2499 struct _GOnce
2500 {
2501 volatile GOnceStatus status;
2502 volatile gpointer retval;
2503 };
2504
2505
2506
2507 gpointer g_once_impl (GOnce *once, GThreadFunc func, gpointer arg);
2508 # 331 "/usr/include/glib-2.0/glib/gthread.h"
2509 extern void glib_dummy_decl (void);
2510 # 374 "/usr/include/glib-2.0/glib/gthread.h"
2511 # 31 "/usr/include/glib-2.0/glib/gasyncqueue.h" 2
2512
2513
2514
2515 typedef struct _GAsyncQueue GAsyncQueue;
2516
2517
2518
2519
2520 GAsyncQueue* g_async_queue_new (void);
2521
2522
2523
2524
2525
2526 void g_async_queue_lock (GAsyncQueue *queue);
2527 void g_async_queue_unlock (GAsyncQueue *queue);
2528
2529
2530 GAsyncQueue* g_async_queue_ref (GAsyncQueue *queue);
2531 void g_async_queue_unref (GAsyncQueue *queue);
2532
2533
2534
2535 void g_async_queue_ref_unlocked (GAsyncQueue *queue);
2536 void g_async_queue_unref_and_unlock (GAsyncQueue *queue);
2537
2538
2539
2540 void g_async_queue_push (GAsyncQueue *queue,
2541 gpointer data);
2542 void g_async_queue_push_unlocked (GAsyncQueue *queue,
2543 gpointer data);
2544
2545 void g_async_queue_push_sorted (GAsyncQueue *queue,
2546 gpointer data,
2547 GCompareDataFunc func,
2548 gpointer user_data);
2549 void g_async_queue_push_sorted_unlocked (GAsyncQueue *queue,
2550 gpointer data,
2551 GCompareDataFunc func,
2552 gpointer user_data);
2553
2554
2555
2556
2557 gpointer g_async_queue_pop (GAsyncQueue *queue);
2558 gpointer g_async_queue_pop_unlocked (GAsyncQueue *queue);
2559
2560
2561 gpointer g_async_queue_try_pop (GAsyncQueue *queue);
2562 gpointer g_async_queue_try_pop_unlocked (GAsyncQueue *queue);
2563
2564
2565
2566
2567
2568
2569 gpointer g_async_queue_timed_pop (GAsyncQueue *queue,
2570 GTimeVal *end_time);
2571 gpointer g_async_queue_timed_pop_unlocked (GAsyncQueue *queue,
2572 GTimeVal *end_time);
2573 # 100 "/usr/include/glib-2.0/glib/gasyncqueue.h"
2574 gint g_async_queue_length (GAsyncQueue *queue);
2575 gint g_async_queue_length_unlocked (GAsyncQueue *queue);
2576 void g_async_queue_sort (GAsyncQueue *queue,
2577 GCompareDataFunc func,
2578 gpointer user_data);
2579 void g_async_queue_sort_unlocked (GAsyncQueue *queue,
2580 GCompareDataFunc func,
2581 gpointer user_data);
2582
2583
2584 GMutex* _g_async_queue_get_mutex (GAsyncQueue *queue);
2585 # 33 "/usr/include/glib-2.0/glib.h" 2
2586
2587
2588 # 1 "/usr/include/glib-2.0/glib/gbacktrace.h" 1
2589 # 32 "/usr/include/glib-2.0/glib/gbacktrace.h"
2590 # 43 "/usr/include/glib-2.0/glib/gbacktrace.h"
2591 void g_on_error_query (const gchar *prg_name);
2592 void g_on_error_stack_trace (const gchar *prg_name);
2593 # 59 "/usr/include/glib-2.0/glib/gbacktrace.h"
2594 # 35 "/usr/include/glib-2.0/glib.h" 2
2595
2596 # 1 "/usr/include/glib-2.0/glib/gcache.h" 1
2597 # 30 "/usr/include/glib-2.0/glib/gcache.h"
2598
2599 # 1 "/usr/include/glib-2.0/glib/glist.h" 1
2600 # 30 "/usr/include/glib-2.0/glib/glist.h"
2601
2602 # 1 "/usr/include/glib-2.0/glib/gmem.h" 1
2603 # 30 "/usr/include/glib-2.0/glib/gmem.h"
2604
2605 # 1 "/usr/include/glib-2.0/glib/gslice.h" 1
2606 # 28 "/usr/include/glib-2.0/glib/gslice.h"
2607
2608
2609
2610
2611 gpointer g_slice_alloc (gsize block_size) __attribute__((__malloc__));
2612 gpointer g_slice_alloc0 (gsize block_size) __attribute__((__malloc__));
2613 void g_slice_free1 (gsize block_size,
2614 gpointer mem_block);
2615 void g_slice_free_chain_with_offset (gsize block_size,
2616 gpointer mem_chain,
2617 gsize next_offset);
2618 # 63 "/usr/include/glib-2.0/glib/gslice.h"
2619 typedef enum {
2620 G_SLICE_CONFIG_ALWAYS_MALLOC = 1,
2621 G_SLICE_CONFIG_BYPASS_MAGAZINES,
2622 G_SLICE_CONFIG_WORKING_SET_MSECS,
2623 G_SLICE_CONFIG_COLOR_INCREMENT,
2624 G_SLICE_CONFIG_CHUNK_SIZES,
2625 G_SLICE_CONFIG_CONTENTION_COUNTER
2626 } GSliceConfig;
2627 void g_slice_set_config (GSliceConfig ckey, gint64 value);
2628 gint64 g_slice_get_config (GSliceConfig ckey);
2629 gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
2630 # 31 "/usr/include/glib-2.0/glib/gmem.h" 2
2631
2632
2633
2634
2635 typedef struct _GMemVTable GMemVTable;
2636 # 47 "/usr/include/glib-2.0/glib/gmem.h"
2637 gpointer g_malloc (gulong n_bytes) __attribute__((__malloc__));
2638 gpointer g_malloc0 (gulong n_bytes) __attribute__((__malloc__));
2639 gpointer g_realloc (gpointer mem,
2640 gulong n_bytes) __attribute__((warn_unused_result));
2641 void g_free (gpointer mem);
2642 gpointer g_try_malloc (gulong n_bytes) __attribute__((__malloc__));
2643 gpointer g_try_malloc0 (gulong n_bytes) __attribute__((__malloc__));
2644 gpointer g_try_realloc (gpointer mem,
2645 gulong n_bytes) __attribute__((warn_unused_result));
2646 # 79 "/usr/include/glib-2.0/glib/gmem.h"
2647 struct _GMemVTable
2648 {
2649 gpointer (*malloc) (gsize n_bytes);
2650 gpointer (*realloc) (gpointer mem,
2651 gsize n_bytes);
2652 void (*free) (gpointer mem);
2653
2654 gpointer (*calloc) (gsize n_blocks,
2655 gsize n_block_bytes);
2656 gpointer (*try_malloc) (gsize n_bytes);
2657 gpointer (*try_realloc) (gpointer mem,
2658 gsize n_bytes);
2659 };
2660 void g_mem_set_vtable (GMemVTable *vtable);
2661 gboolean g_mem_is_system_malloc (void);
2662
2663 extern gboolean g_mem_gc_friendly;
2664
2665
2666
2667 extern GMemVTable *glib_mem_profiler_table;
2668 void g_mem_profile (void);
2669
2670
2671
2672
2673 typedef struct _GAllocator GAllocator;
2674 typedef struct _GMemChunk GMemChunk;
2675 # 124 "/usr/include/glib-2.0/glib/gmem.h"
2676 GMemChunk* g_mem_chunk_new (const gchar *name,
2677 gint atom_size,
2678 gulong area_size,
2679 gint type);
2680 void g_mem_chunk_destroy (GMemChunk *mem_chunk);
2681 gpointer g_mem_chunk_alloc (GMemChunk *mem_chunk);
2682 gpointer g_mem_chunk_alloc0 (GMemChunk *mem_chunk);
2683 void g_mem_chunk_free (GMemChunk *mem_chunk,
2684 gpointer mem);
2685 void g_mem_chunk_clean (GMemChunk *mem_chunk);
2686 void g_mem_chunk_reset (GMemChunk *mem_chunk);
2687 void g_mem_chunk_print (GMemChunk *mem_chunk);
2688 void g_mem_chunk_info (void);
2689 void g_blow_chunks (void);
2690 GAllocator*g_allocator_new (const gchar *name,
2691 guint n_preallocs);
2692 void g_allocator_free (GAllocator *allocator);
2693 # 31 "/usr/include/glib-2.0/glib/glist.h" 2
2694
2695
2696
2697 typedef struct _GList GList;
2698
2699 struct _GList
2700 {
2701 gpointer data;
2702 GList *next;
2703 GList *prev;
2704 };
2705
2706
2707
2708 GList* g_list_alloc (void) __attribute__((warn_unused_result));
2709 void g_list_free (GList *list);
2710 void g_list_free_1 (GList *list);
2711
2712 GList* g_list_append (GList *list,
2713 gpointer data) __attribute__((warn_unused_result));
2714 GList* g_list_prepend (GList *list,
2715 gpointer data) __attribute__((warn_unused_result));
2716 GList* g_list_insert (GList *list,
2717 gpointer data,
2718 gint position) __attribute__((warn_unused_result));
2719 GList* g_list_insert_sorted (GList *list,
2720 gpointer data,
2721 GCompareFunc func) __attribute__((warn_unused_result));
2722 GList* g_list_insert_sorted_with_data (GList *list,
2723 gpointer data,
2724 GCompareDataFunc func,
2725 gpointer user_data) __attribute__((warn_unused_result));
2726 GList* g_list_insert_before (GList *list,
2727 GList *sibling,
2728 gpointer data) __attribute__((warn_unused_result));
2729 GList* g_list_concat (GList *list1,
2730 GList *list2) __attribute__((warn_unused_result));
2731 GList* g_list_remove (GList *list,
2732 gconstpointer data) __attribute__((warn_unused_result));
2733 GList* g_list_remove_all (GList *list,
2734 gconstpointer data) __attribute__((warn_unused_result));
2735 GList* g_list_remove_link (GList *list,
2736 GList *llink) __attribute__((warn_unused_result));
2737 GList* g_list_delete_link (GList *list,
2738 GList *link_) __attribute__((warn_unused_result));
2739 GList* g_list_reverse (GList *list) __attribute__((warn_unused_result));
2740 GList* g_list_copy (GList *list) __attribute__((warn_unused_result));
2741 GList* g_list_nth (GList *list,
2742 guint n);
2743 GList* g_list_nth_prev (GList *list,
2744 guint n);
2745 GList* g_list_find (GList *list,
2746 gconstpointer data);
2747 GList* g_list_find_custom (GList *list,
2748 gconstpointer data,
2749 GCompareFunc func);
2750 gint g_list_position (GList *list,
2751 GList *llink);
2752 gint g_list_index (GList *list,
2753 gconstpointer data);
2754 GList* g_list_last (GList *list);
2755 GList* g_list_first (GList *list);
2756 guint g_list_length (GList *list);
2757 void g_list_foreach (GList *list,
2758 GFunc func,
2759 gpointer user_data);
2760 GList* g_list_sort (GList *list,
2761 GCompareFunc compare_func) __attribute__((warn_unused_result));
2762 GList* g_list_sort_with_data (GList *list,
2763 GCompareDataFunc compare_func,
2764 gpointer user_data) __attribute__((warn_unused_result));
2765 gpointer g_list_nth_data (GList *list,
2766 guint n);
2767
2768
2769
2770
2771
2772
2773 void g_list_push_allocator (gpointer allocator);
2774 void g_list_pop_allocator (void);
2775 # 31 "/usr/include/glib-2.0/glib/gcache.h" 2
2776
2777
2778
2779 typedef struct _GCache GCache;
2780
2781 typedef gpointer (*GCacheNewFunc) (gpointer key);
2782 typedef gpointer (*GCacheDupFunc) (gpointer value);
2783 typedef void (*GCacheDestroyFunc) (gpointer value);
2784
2785
2786
2787 GCache* g_cache_new (GCacheNewFunc value_new_func,
2788 GCacheDestroyFunc value_destroy_func,
2789 GCacheDupFunc key_dup_func,
2790 GCacheDestroyFunc key_destroy_func,
2791 GHashFunc hash_key_func,
2792 GHashFunc hash_value_func,
2793 GEqualFunc key_equal_func);
2794 void g_cache_destroy (GCache *cache);
2795 gpointer g_cache_insert (GCache *cache,
2796 gpointer key);
2797 void g_cache_remove (GCache *cache,
2798 gconstpointer value);
2799 void g_cache_key_foreach (GCache *cache,
2800 GHFunc func,
2801 gpointer user_data);
2802
2803 void g_cache_value_foreach (GCache *cache,
2804 GHFunc func,
2805 gpointer user_data);
2806 # 36 "/usr/include/glib-2.0/glib.h" 2
2807
2808 # 1 "/usr/include/glib-2.0/glib/gcompletion.h" 1
2809 # 32 "/usr/include/glib-2.0/glib/gcompletion.h"
2810
2811
2812 typedef struct _GCompletion GCompletion;
2813
2814 typedef gchar* (*GCompletionFunc) (gpointer);
2815
2816
2817
2818
2819 typedef gint (*GCompletionStrncmpFunc) (const gchar *s1,
2820 const gchar *s2,
2821 gsize n);
2822
2823 struct _GCompletion
2824 {
2825 GList* items;
2826 GCompletionFunc func;
2827
2828 gchar* prefix;
2829 GList* cache;
2830 GCompletionStrncmpFunc strncmp_func;
2831 };
2832
2833 GCompletion* g_completion_new (GCompletionFunc func);
2834 void g_completion_add_items (GCompletion* cmp,
2835 GList* items);
2836 void g_completion_remove_items (GCompletion* cmp,
2837 GList* items);
2838 void g_completion_clear_items (GCompletion* cmp);
2839 GList* g_completion_complete (GCompletion* cmp,
2840 const gchar* prefix,
2841 gchar** new_prefix);
2842 GList* g_completion_complete_utf8 (GCompletion *cmp,
2843 const gchar* prefix,
2844 gchar** new_prefix);
2845 void g_completion_set_compare (GCompletion *cmp,
2846 GCompletionStrncmpFunc strncmp_func);
2847 void g_completion_free (GCompletion* cmp);
2848 # 37 "/usr/include/glib-2.0/glib.h" 2
2849
2850 # 1 "/usr/include/glib-2.0/glib/gconvert.h" 1
2851 # 30 "/usr/include/glib-2.0/glib/gconvert.h"
2852
2853 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
2854 # 31 "/usr/include/glib-2.0/glib/gconvert.h" 2
2855
2856
2857
2858
2859 typedef enum
2860 {
2861 G_CONVERT_ERROR_NO_CONVERSION,
2862 G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
2863 G_CONVERT_ERROR_FAILED,
2864 G_CONVERT_ERROR_PARTIAL_INPUT,
2865 G_CONVERT_ERROR_BAD_URI,
2866 G_CONVERT_ERROR_NOT_ABSOLUTE_PATH
2867 } GConvertError;
2868
2869
2870 GQuark g_convert_error_quark (void);
2871
2872
2873
2874 typedef struct _GIConv *GIConv;
2875
2876 GIConv g_iconv_open (const gchar *to_codeset,
2877 const gchar *from_codeset);
2878 size_t g_iconv (GIConv converter,
2879 gchar **inbuf,
2880 gsize *inbytes_left,
2881 gchar **outbuf,
2882 gsize *outbytes_left);
2883 gint g_iconv_close (GIConv converter);
2884
2885
2886 gchar* g_convert (const gchar *str,
2887 gssize len,
2888 const gchar *to_codeset,
2889 const gchar *from_codeset,
2890 gsize *bytes_read,
2891 gsize *bytes_written,
2892 GError **error) __attribute__((__malloc__));
2893 gchar* g_convert_with_iconv (const gchar *str,
2894 gssize len,
2895 GIConv converter,
2896 gsize *bytes_read,
2897 gsize *bytes_written,
2898 GError **error) __attribute__((__malloc__));
2899 gchar* g_convert_with_fallback (const gchar *str,
2900 gssize len,
2901 const gchar *to_codeset,
2902 const gchar *from_codeset,
2903 gchar *fallback,
2904 gsize *bytes_read,
2905 gsize *bytes_written,
2906 GError **error) __attribute__((__malloc__));
2907
2908
2909
2910
2911 gchar* g_locale_to_utf8 (const gchar *opsysstring,
2912 gssize len,
2913 gsize *bytes_read,
2914 gsize *bytes_written,
2915 GError **error) __attribute__((__malloc__));
2916 gchar* g_locale_from_utf8 (const gchar *utf8string,
2917 gssize len,
2918 gsize *bytes_read,
2919 gsize *bytes_written,
2920 GError **error) __attribute__((__malloc__));
2921 # 108 "/usr/include/glib-2.0/glib/gconvert.h"
2922 gchar* g_filename_to_utf8 (const gchar *opsysstring,
2923 gssize len,
2924 gsize *bytes_read,
2925 gsize *bytes_written,
2926 GError **error) __attribute__((__malloc__));
2927 gchar* g_filename_from_utf8 (const gchar *utf8string,
2928 gssize len,
2929 gsize *bytes_read,
2930 gsize *bytes_written,
2931 GError **error) __attribute__((__malloc__));
2932
2933 gchar *g_filename_from_uri (const gchar *uri,
2934 gchar **hostname,
2935 GError **error) __attribute__((__malloc__));
2936
2937 gchar *g_filename_to_uri (const gchar *filename,
2938 const gchar *hostname,
2939 GError **error) __attribute__((__malloc__));
2940 gchar *g_filename_display_name (const gchar *filename) __attribute__((__malloc__));
2941 gboolean g_get_filename_charsets (const gchar ***charsets);
2942
2943 gchar *g_filename_display_basename (const gchar *filename) __attribute__((__malloc__));
2944
2945 gchar **g_uri_list_extract_uris (const gchar *uri_list) __attribute__((__malloc__));
2946 # 38 "/usr/include/glib-2.0/glib.h" 2
2947
2948 # 1 "/usr/include/glib-2.0/glib/gdataset.h" 1
2949 # 32 "/usr/include/glib-2.0/glib/gdataset.h"
2950
2951
2952 typedef struct _GData GData;
2953
2954 typedef void (*GDataForeachFunc) (GQuark key_id,
2955 gpointer data,
2956 gpointer user_data);
2957
2958
2959
2960 void g_datalist_init (GData **datalist);
2961 void g_datalist_clear (GData **datalist);
2962 gpointer g_datalist_id_get_data (GData **datalist,
2963 GQuark key_id);
2964 void g_datalist_id_set_data_full (GData **datalist,
2965 GQuark key_id,
2966 gpointer data,
2967 GDestroyNotify destroy_func);
2968 gpointer g_datalist_id_remove_no_notify (GData **datalist,
2969 GQuark key_id);
2970 void g_datalist_foreach (GData **datalist,
2971 GDataForeachFunc func,
2972 gpointer user_data);
2973 # 65 "/usr/include/glib-2.0/glib/gdataset.h"
2974 void g_datalist_set_flags (GData **datalist,
2975 guint flags);
2976 void g_datalist_unset_flags (GData **datalist,
2977 guint flags);
2978 guint g_datalist_get_flags (GData **datalist);
2979 # 89 "/usr/include/glib-2.0/glib/gdataset.h"
2980 void g_dataset_destroy (gconstpointer dataset_location);
2981 gpointer g_dataset_id_get_data (gconstpointer dataset_location,
2982 GQuark key_id);
2983 void g_dataset_id_set_data_full (gconstpointer dataset_location,
2984 GQuark key_id,
2985 gpointer data,
2986 GDestroyNotify destroy_func);
2987 gpointer g_dataset_id_remove_no_notify (gconstpointer dataset_location,
2988 GQuark key_id);
2989 void g_dataset_foreach (gconstpointer dataset_location,
2990 GDataForeachFunc func,
2991 gpointer user_data);
2992 # 116 "/usr/include/glib-2.0/glib/gdataset.h"
2993 # 39 "/usr/include/glib-2.0/glib.h" 2
2994
2995 # 1 "/usr/include/glib-2.0/glib/gdate.h" 1
2996 # 30 "/usr/include/glib-2.0/glib/gdate.h"
2997
2998 # 1 "/usr/include/time.h" 1 3 4
2999 # 31 "/usr/include/time.h" 3 4
3000 # 40 "/usr/include/time.h" 3 4
3001 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
3002 # 40 "/usr/include/time.h" 2 3 4
3003
3004
3005
3006
3007 # 1 "/usr/include/bits/time.h" 1 3 4
3008 # 44 "/usr/include/time.h" 2 3 4
3009 # 59 "/usr/include/time.h" 3 4
3010
3011
3012 typedef __clock_t clock_t;
3013 # 132 "/usr/include/time.h" 3 4
3014
3015
3016 struct tm
3017 {
3018 int tm_sec;
3019 int tm_min;
3020 int tm_hour;
3021 int tm_mday;
3022 int tm_mon;
3023 int tm_year;
3024 int tm_wday;
3025 int tm_yday;
3026 int tm_isdst;
3027
3028
3029 long int tm_gmtoff;
3030 __const char *tm_zone;
3031
3032
3033
3034
3035 };
3036 # 162 "/usr/include/time.h" 3 4
3037 struct itimerspec
3038 {
3039 struct timespec it_interval;
3040 struct timespec it_value;
3041 };
3042
3043
3044 struct sigevent;
3045 # 181 "/usr/include/time.h" 3 4
3046
3047
3048
3049 extern clock_t clock (void) __attribute__ ((__nothrow__));
3050
3051
3052 extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
3053
3054
3055 extern double difftime (time_t __time1, time_t __time0)
3056 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3057
3058
3059 extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
3060
3061
3062
3063
3064
3065 extern size_t strftime (char *__restrict __s, size_t __maxsize,
3066 __const char *__restrict __format,
3067 __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
3068 # 229 "/usr/include/time.h" 3 4
3069
3070
3071
3072 extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
3073
3074
3075
3076 extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
3077
3078
3079
3080
3081
3082 extern struct tm *gmtime_r (__const time_t *__restrict __timer,
3083 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
3084
3085
3086
3087 extern struct tm *localtime_r (__const time_t *__restrict __timer,
3088 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
3089
3090
3091
3092
3093
3094 extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
3095
3096
3097 extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
3098
3099
3100
3101
3102
3103
3104
3105 extern char *asctime_r (__const struct tm *__restrict __tp,
3106 char *__restrict __buf) __attribute__ ((__nothrow__));
3107
3108
3109 extern char *ctime_r (__const time_t *__restrict __timer,
3110 char *__restrict __buf) __attribute__ ((__nothrow__));
3111
3112
3113
3114
3115 extern char *__tzname[2];
3116 extern int __daylight;
3117 extern long int __timezone;
3118
3119
3120
3121
3122 extern char *tzname[2];
3123
3124
3125
3126 extern void tzset (void) __attribute__ ((__nothrow__));
3127
3128
3129
3130 extern int daylight;
3131 extern long int timezone;
3132
3133
3134
3135
3136
3137 extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
3138 # 312 "/usr/include/time.h" 3 4
3139 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
3140
3141
3142 extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
3143
3144
3145 extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3146 # 327 "/usr/include/time.h" 3 4
3147 extern int nanosleep (__const struct timespec *__requested_time,
3148 struct timespec *__remaining);
3149
3150
3151
3152 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
3153
3154
3155 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
3156
3157
3158 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
3159 __attribute__ ((__nothrow__));
3160
3161
3162
3163
3164
3165
3166 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
3167 __const struct timespec *__req,
3168 struct timespec *__rem);
3169
3170
3171 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
3172
3173
3174
3175
3176 extern int timer_create (clockid_t __clock_id,
3177 struct sigevent *__restrict __evp,
3178 timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
3179
3180
3181 extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
3182
3183
3184 extern int timer_settime (timer_t __timerid, int __flags,
3185 __const struct itimerspec *__restrict __value,
3186 struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
3187
3188
3189 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
3190 __attribute__ ((__nothrow__));
3191
3192
3193 extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
3194 # 416 "/usr/include/time.h" 3 4
3195 # 31 "/usr/include/glib-2.0/glib/gdate.h" 2
3196 # 46 "/usr/include/glib-2.0/glib/gdate.h"
3197 typedef gint32 GTime;
3198 typedef guint16 GDateYear;
3199 typedef guint8 GDateDay;
3200 typedef struct _GDate GDate;
3201
3202 struct tm;
3203
3204
3205 typedef enum
3206 {
3207 G_DATE_DAY = 0,
3208 G_DATE_MONTH = 1,
3209 G_DATE_YEAR = 2
3210 } GDateDMY;
3211
3212
3213 typedef enum
3214 {
3215 G_DATE_BAD_WEEKDAY = 0,
3216 G_DATE_MONDAY = 1,
3217 G_DATE_TUESDAY = 2,
3218 G_DATE_WEDNESDAY = 3,
3219 G_DATE_THURSDAY = 4,
3220 G_DATE_FRIDAY = 5,
3221 G_DATE_SATURDAY = 6,
3222 G_DATE_SUNDAY = 7
3223 } GDateWeekday;
3224 typedef enum
3225 {
3226 G_DATE_BAD_MONTH = 0,
3227 G_DATE_JANUARY = 1,
3228 G_DATE_FEBRUARY = 2,
3229 G_DATE_MARCH = 3,
3230 G_DATE_APRIL = 4,
3231 G_DATE_MAY = 5,
3232 G_DATE_JUNE = 6,
3233 G_DATE_JULY = 7,
3234 G_DATE_AUGUST = 8,
3235 G_DATE_SEPTEMBER = 9,
3236 G_DATE_OCTOBER = 10,
3237 G_DATE_NOVEMBER = 11,
3238 G_DATE_DECEMBER = 12
3239 } GDateMonth;
3240 # 99 "/usr/include/glib-2.0/glib/gdate.h"
3241 struct _GDate
3242 {
3243 guint julian_days : 32;
3244
3245
3246
3247
3248
3249 guint julian : 1;
3250 guint dmy : 1;
3251
3252
3253 guint day : 6;
3254 guint month : 4;
3255 guint year : 16;
3256 };
3257
3258
3259
3260
3261
3262 GDate* g_date_new (void);
3263 GDate* g_date_new_dmy (GDateDay day,
3264 GDateMonth month,
3265 GDateYear year);
3266 GDate* g_date_new_julian (guint32 julian_day);
3267 void g_date_free (GDate *date);
3268
3269
3270
3271
3272
3273
3274 gboolean g_date_valid (const GDate *date);
3275 gboolean g_date_valid_day (GDateDay day) __attribute__((__const__));
3276 gboolean g_date_valid_month (GDateMonth month) __attribute__((__const__));
3277 gboolean g_date_valid_year (GDateYear year) __attribute__((__const__));
3278 gboolean g_date_valid_weekday (GDateWeekday weekday) __attribute__((__const__));
3279 gboolean g_date_valid_julian (guint32 julian_date) __attribute__((__const__));
3280 gboolean g_date_valid_dmy (GDateDay day,
3281 GDateMonth month,
3282 GDateYear year) __attribute__((__const__));
3283
3284 GDateWeekday g_date_get_weekday (const GDate *date);
3285 GDateMonth g_date_get_month (const GDate *date);
3286 GDateYear g_date_get_year (const GDate *date);
3287 GDateDay g_date_get_day (const GDate *date);
3288 guint32 g_date_get_julian (const GDate *date);
3289 guint g_date_get_day_of_year (const GDate *date);
3290
3291
3292
3293
3294
3295
3296 guint g_date_get_monday_week_of_year (const GDate *date);
3297 guint g_date_get_sunday_week_of_year (const GDate *date);
3298 guint g_date_get_iso8601_week_of_year (const GDate *date);
3299
3300
3301
3302
3303
3304 void g_date_clear (GDate *date,
3305 guint n_dates);
3306
3307
3308
3309
3310
3311 void g_date_set_parse (GDate *date,
3312 const gchar *str);
3313 void g_date_set_time_t (GDate *date,
3314 time_t timet);
3315 void g_date_set_time_val (GDate *date,
3316 GTimeVal *timeval);
3317
3318 void g_date_set_time (GDate *date,
3319 GTime time_);
3320
3321 void g_date_set_month (GDate *date,
3322 GDateMonth month);
3323 void g_date_set_day (GDate *date,
3324 GDateDay day);
3325 void g_date_set_year (GDate *date,
3326 GDateYear year);
3327 void g_date_set_dmy (GDate *date,
3328 GDateDay day,
3329 GDateMonth month,
3330 GDateYear y);
3331 void g_date_set_julian (GDate *date,
3332 guint32 julian_date);
3333 gboolean g_date_is_first_of_month (const GDate *date);
3334 gboolean g_date_is_last_of_month (const GDate *date);
3335
3336
3337 void g_date_add_days (GDate *date,
3338 guint n_days);
3339 void g_date_subtract_days (GDate *date,
3340 guint n_days);
3341
3342
3343 void g_date_add_months (GDate *date,
3344 guint n_months);
3345 void g_date_subtract_months (GDate *date,
3346 guint n_months);
3347
3348
3349 void g_date_add_years (GDate *date,
3350 guint n_years);
3351 void g_date_subtract_years (GDate *date,
3352 guint n_years);
3353 gboolean g_date_is_leap_year (GDateYear year) __attribute__((__const__));
3354 guint8 g_date_get_days_in_month (GDateMonth month,
3355 GDateYear year) __attribute__((__const__));
3356 guint8 g_date_get_monday_weeks_in_year (GDateYear year) __attribute__((__const__));
3357 guint8 g_date_get_sunday_weeks_in_year (GDateYear year) __attribute__((__const__));
3358
3359
3360
3361 gint g_date_days_between (const GDate *date1,
3362 const GDate *date2);
3363
3364
3365 gint g_date_compare (const GDate *lhs,
3366 const GDate *rhs);
3367 void g_date_to_struct_tm (const GDate *date,
3368 struct tm *tm);
3369
3370 void g_date_clamp (GDate *date,
3371 const GDate *min_date,
3372 const GDate *max_date);
3373
3374
3375 void g_date_order (GDate *date1, GDate *date2);
3376
3377
3378
3379
3380 gsize g_date_strftime (gchar *s,
3381 gsize slen,
3382 const gchar *format,
3383 const GDate *date);
3384 # 259 "/usr/include/glib-2.0/glib/gdate.h"
3385 # 40 "/usr/include/glib-2.0/glib.h" 2
3386
3387 # 1 "/usr/include/glib-2.0/glib/gdir.h" 1
3388 # 28 "/usr/include/glib-2.0/glib/gdir.h"
3389
3390
3391 typedef struct _GDir GDir;
3392
3393
3394
3395
3396
3397
3398
3399 GDir * g_dir_open (const gchar *path,
3400 guint flags,
3401 GError **error);
3402 const gchar *g_dir_read_name (GDir *dir);
3403 void g_dir_rewind (GDir *dir);
3404 void g_dir_close (GDir *dir);
3405 # 41 "/usr/include/glib-2.0/glib.h" 2
3406
3407
3408 # 1 "/usr/include/glib-2.0/glib/gfileutils.h" 1
3409 # 26 "/usr/include/glib-2.0/glib/gfileutils.h"
3410
3411
3412
3413
3414 typedef enum
3415 {
3416 G_FILE_ERROR_EXIST,
3417 G_FILE_ERROR_ISDIR,
3418 G_FILE_ERROR_ACCES,
3419 G_FILE_ERROR_NAMETOOLONG,
3420 G_FILE_ERROR_NOENT,
3421 G_FILE_ERROR_NOTDIR,
3422 G_FILE_ERROR_NXIO,
3423 G_FILE_ERROR_NODEV,
3424 G_FILE_ERROR_ROFS,
3425 G_FILE_ERROR_TXTBSY,
3426 G_FILE_ERROR_FAULT,
3427 G_FILE_ERROR_LOOP,
3428 G_FILE_ERROR_NOSPC,
3429 G_FILE_ERROR_NOMEM,
3430 G_FILE_ERROR_MFILE,
3431 G_FILE_ERROR_NFILE,
3432 G_FILE_ERROR_BADF,
3433 G_FILE_ERROR_INVAL,
3434 G_FILE_ERROR_PIPE,
3435 G_FILE_ERROR_AGAIN,
3436 G_FILE_ERROR_INTR,
3437 G_FILE_ERROR_IO,
3438 G_FILE_ERROR_PERM,
3439 G_FILE_ERROR_NOSYS,
3440 G_FILE_ERROR_FAILED
3441 } GFileError;
3442
3443
3444
3445
3446
3447 typedef enum
3448 {
3449 G_FILE_TEST_IS_REGULAR = 1 << 0,
3450 G_FILE_TEST_IS_SYMLINK = 1 << 1,
3451 G_FILE_TEST_IS_DIR = 1 << 2,
3452 G_FILE_TEST_IS_EXECUTABLE = 1 << 3,
3453 G_FILE_TEST_EXISTS = 1 << 4
3454 } GFileTest;
3455
3456 GQuark g_file_error_quark (void);
3457
3458 GFileError g_file_error_from_errno (gint err_no);
3459 # 83 "/usr/include/glib-2.0/glib/gfileutils.h"
3460 gboolean g_file_test (const gchar *filename,
3461 GFileTest test);
3462 gboolean g_file_get_contents (const gchar *filename,
3463 gchar **contents,
3464 gsize *length,
3465 GError **error);
3466 gboolean g_file_set_contents (const gchar *filename,
3467 const gchar *contents,
3468 gssize length,
3469 GError **error);
3470 gchar *g_file_read_link (const gchar *filename,
3471 GError **error);
3472
3473
3474 gint g_mkstemp (gchar *tmpl);
3475
3476
3477 gint g_file_open_tmp (const gchar *tmpl,
3478 gchar **name_used,
3479 GError **error);
3480
3481 gchar *g_build_path (const gchar *separator,
3482 const gchar *first_element,
3483 ...) __attribute__((__malloc__)) __attribute__((__sentinel__));
3484 gchar *g_build_pathv (const gchar *separator,
3485 gchar **args) __attribute__((__malloc__));
3486
3487 gchar *g_build_filename (const gchar *first_element,
3488 ...) __attribute__((__malloc__)) __attribute__((__sentinel__));
3489 gchar *g_build_filenamev (gchar **args) __attribute__((__malloc__));
3490
3491 int g_mkdir_with_parents (const gchar *pathname,
3492 int mode);
3493 # 43 "/usr/include/glib-2.0/glib.h" 2
3494
3495 # 1 "/usr/include/glib-2.0/glib/ghash.h" 1
3496 # 32 "/usr/include/glib-2.0/glib/ghash.h"
3497
3498
3499 typedef struct _GHashTable GHashTable;
3500
3501 typedef gboolean (*GHRFunc) (gpointer key,
3502 gpointer value,
3503 gpointer user_data);
3504
3505
3506
3507 GHashTable* g_hash_table_new (GHashFunc hash_func,
3508 GEqualFunc key_equal_func);
3509 GHashTable* g_hash_table_new_full (GHashFunc hash_func,
3510 GEqualFunc key_equal_func,
3511 GDestroyNotify key_destroy_func,
3512 GDestroyNotify value_destroy_func);
3513 void g_hash_table_destroy (GHashTable *hash_table);
3514 void g_hash_table_insert (GHashTable *hash_table,
3515 gpointer key,
3516 gpointer value);
3517 void g_hash_table_replace (GHashTable *hash_table,
3518 gpointer key,
3519 gpointer value);
3520 gboolean g_hash_table_remove (GHashTable *hash_table,
3521 gconstpointer key);
3522 gboolean g_hash_table_steal (GHashTable *hash_table,
3523 gconstpointer key);
3524 gpointer g_hash_table_lookup (GHashTable *hash_table,
3525 gconstpointer key);
3526 gboolean g_hash_table_lookup_extended (GHashTable *hash_table,
3527 gconstpointer lookup_key,
3528 gpointer *orig_key,
3529 gpointer *value);
3530 void g_hash_table_foreach (GHashTable *hash_table,
3531 GHFunc func,
3532 gpointer user_data);
3533 gpointer g_hash_table_find (GHashTable *hash_table,
3534 GHRFunc predicate,
3535 gpointer user_data);
3536 guint g_hash_table_foreach_remove (GHashTable *hash_table,
3537 GHRFunc func,
3538 gpointer user_data);
3539 guint g_hash_table_foreach_steal (GHashTable *hash_table,
3540 GHRFunc func,
3541 gpointer user_data);
3542 guint g_hash_table_size (GHashTable *hash_table);
3543
3544
3545 GHashTable* g_hash_table_ref (GHashTable *hash_table);
3546 void g_hash_table_unref (GHashTable *hash_table);
3547 # 94 "/usr/include/glib-2.0/glib/ghash.h"
3548 gboolean g_str_equal (gconstpointer v1,
3549 gconstpointer v2);
3550 guint g_str_hash (gconstpointer v);
3551
3552 gboolean g_int_equal (gconstpointer v1,
3553 gconstpointer v2);
3554 guint g_int_hash (gconstpointer v);
3555
3556
3557
3558
3559
3560
3561
3562 guint g_direct_hash (gconstpointer v) __attribute__((__const__));
3563 gboolean g_direct_equal (gconstpointer v1,
3564 gconstpointer v2) __attribute__((__const__));
3565 # 44 "/usr/include/glib-2.0/glib.h" 2
3566
3567 # 1 "/usr/include/glib-2.0/glib/ghook.h" 1
3568 # 32 "/usr/include/glib-2.0/glib/ghook.h"
3569
3570
3571
3572
3573 typedef struct _GHook GHook;
3574 typedef struct _GHookList GHookList;
3575
3576 typedef gint (*GHookCompareFunc) (GHook *new_hook,
3577 GHook *sibling);
3578 typedef gboolean (*GHookFindFunc) (GHook *hook,
3579 gpointer data);
3580 typedef void (*GHookMarshaller) (GHook *hook,
3581 gpointer marshal_data);
3582 typedef gboolean (*GHookCheckMarshaller) (GHook *hook,
3583 gpointer marshal_data);
3584 typedef void (*GHookFunc) (gpointer data);
3585 typedef gboolean (*GHookCheckFunc) (gpointer data);
3586 typedef void (*GHookFinalizeFunc) (GHookList *hook_list,
3587 GHook *hook);
3588 typedef enum
3589 {
3590 G_HOOK_FLAG_ACTIVE = 1 << 0,
3591 G_HOOK_FLAG_IN_CALL = 1 << 1,
3592 G_HOOK_FLAG_MASK = 0x0f
3593 } GHookFlagMask;
3594
3595
3596
3597
3598 struct _GHookList
3599 {
3600 gulong seq_id;
3601 guint hook_size : 16;
3602 guint is_setup : 1;
3603 GHook *hooks;
3604 gpointer dummy3;
3605 GHookFinalizeFunc finalize_hook;
3606 gpointer dummy[2];
3607 };
3608 struct _GHook
3609 {
3610 gpointer data;
3611 GHook *next;
3612 GHook *prev;
3613 guint ref_count;
3614 gulong hook_id;
3615 guint flags;
3616 gpointer func;
3617 GDestroyNotify destroy;
3618 };
3619 # 102 "/usr/include/glib-2.0/glib/ghook.h"
3620 void g_hook_list_init (GHookList *hook_list,
3621 guint hook_size);
3622 void g_hook_list_clear (GHookList *hook_list);
3623 GHook* g_hook_alloc (GHookList *hook_list);
3624 void g_hook_free (GHookList *hook_list,
3625 GHook *hook);
3626 GHook * g_hook_ref (GHookList *hook_list,
3627 GHook *hook);
3628 void g_hook_unref (GHookList *hook_list,
3629 GHook *hook);
3630 gboolean g_hook_destroy (GHookList *hook_list,
3631 gulong hook_id);
3632 void g_hook_destroy_link (GHookList *hook_list,
3633 GHook *hook);
3634 void g_hook_prepend (GHookList *hook_list,
3635 GHook *hook);
3636 void g_hook_insert_before (GHookList *hook_list,
3637 GHook *sibling,
3638 GHook *hook);
3639 void g_hook_insert_sorted (GHookList *hook_list,
3640 GHook *hook,
3641 GHookCompareFunc func);
3642 GHook* g_hook_get (GHookList *hook_list,
3643 gulong hook_id);
3644 GHook* g_hook_find (GHookList *hook_list,
3645 gboolean need_valids,
3646 GHookFindFunc func,
3647 gpointer data);
3648 GHook* g_hook_find_data (GHookList *hook_list,
3649 gboolean need_valids,
3650 gpointer data);
3651 GHook* g_hook_find_func (GHookList *hook_list,
3652 gboolean need_valids,
3653 gpointer func);
3654 GHook* g_hook_find_func_data (GHookList *hook_list,
3655 gboolean need_valids,
3656 gpointer func,
3657 gpointer data);
3658
3659 GHook* g_hook_first_valid (GHookList *hook_list,
3660 gboolean may_be_in_call);
3661
3662
3663
3664 GHook* g_hook_next_valid (GHookList *hook_list,
3665 GHook *hook,
3666 gboolean may_be_in_call);
3667
3668 gint g_hook_compare_ids (GHook *new_hook,
3669 GHook *sibling);
3670
3671
3672
3673
3674
3675 void g_hook_list_invoke (GHookList *hook_list,
3676 gboolean may_recurse);
3677
3678
3679
3680 void g_hook_list_invoke_check (GHookList *hook_list,
3681 gboolean may_recurse);
3682
3683
3684 void g_hook_list_marshal (GHookList *hook_list,
3685 gboolean may_recurse,
3686 GHookMarshaller marshaller,
3687 gpointer marshal_data);
3688 void g_hook_list_marshal_check (GHookList *hook_list,
3689 gboolean may_recurse,
3690 GHookCheckMarshaller marshaller,
3691 gpointer marshal_data);
3692 # 45 "/usr/include/glib-2.0/glib.h" 2
3693
3694 # 1 "/usr/include/glib-2.0/glib/giochannel.h" 1
3695 # 31 "/usr/include/glib-2.0/glib/giochannel.h"
3696
3697 # 1 "/usr/include/glib-2.0/glib/gmain.h" 1
3698 # 23 "/usr/include/glib-2.0/glib/gmain.h"
3699
3700 # 1 "/usr/include/glib-2.0/glib/gslist.h" 1
3701 # 32 "/usr/include/glib-2.0/glib/gslist.h"
3702
3703
3704 typedef struct _GSList GSList;
3705
3706 struct _GSList
3707 {
3708 gpointer data;
3709 GSList *next;
3710 };
3711
3712
3713
3714 GSList* g_slist_alloc (void) __attribute__((warn_unused_result));
3715 void g_slist_free (GSList *list);
3716 void g_slist_free_1 (GSList *list);
3717
3718 GSList* g_slist_append (GSList *list,
3719 gpointer data) __attribute__((warn_unused_result));
3720 GSList* g_slist_prepend (GSList *list,
3721 gpointer data) __attribute__((warn_unused_result));
3722 GSList* g_slist_insert (GSList *list,
3723 gpointer data,
3724 gint position) __attribute__((warn_unused_result));
3725 GSList* g_slist_insert_sorted (GSList *list,
3726 gpointer data,
3727 GCompareFunc func) __attribute__((warn_unused_result));
3728 GSList* g_slist_insert_sorted_with_data (GSList *list,
3729 gpointer data,
3730 GCompareDataFunc func,
3731 gpointer user_data) __attribute__((warn_unused_result));
3732 GSList* g_slist_insert_before (GSList *slist,
3733 GSList *sibling,
3734 gpointer data) __attribute__((warn_unused_result));
3735 GSList* g_slist_concat (GSList *list1,
3736 GSList *list2) __attribute__((warn_unused_result));
3737 GSList* g_slist_remove (GSList *list,
3738 gconstpointer data) __attribute__((warn_unused_result));
3739 GSList* g_slist_remove_all (GSList *list,
3740 gconstpointer data) __attribute__((warn_unused_result));
3741 GSList* g_slist_remove_link (GSList *list,
3742 GSList *link_) __attribute__((warn_unused_result));
3743 GSList* g_slist_delete_link (GSList *list,
3744 GSList *link_) __attribute__((warn_unused_result));
3745 GSList* g_slist_reverse (GSList *list) __attribute__((warn_unused_result));
3746 GSList* g_slist_copy (GSList *list) __attribute__((warn_unused_result));
3747 GSList* g_slist_nth (GSList *list,
3748 guint n);
3749 GSList* g_slist_find (GSList *list,
3750 gconstpointer data);
3751 GSList* g_slist_find_custom (GSList *list,
3752 gconstpointer data,
3753 GCompareFunc func);
3754 gint g_slist_position (GSList *list,
3755 GSList *llink);
3756 gint g_slist_index (GSList *list,
3757 gconstpointer data);
3758 GSList* g_slist_last (GSList *list);
3759 guint g_slist_length (GSList *list);
3760 void g_slist_foreach (GSList *list,
3761 GFunc func,
3762 gpointer user_data);
3763 GSList* g_slist_sort (GSList *list,
3764 GCompareFunc compare_func) __attribute__((warn_unused_result));
3765 GSList* g_slist_sort_with_data (GSList *list,
3766 GCompareDataFunc compare_func,
3767 gpointer user_data) __attribute__((warn_unused_result));
3768 gpointer g_slist_nth_data (GSList *list,
3769 guint n);
3770
3771
3772
3773
3774 void g_slist_push_allocator (gpointer dummy);
3775 void g_slist_pop_allocator (void);
3776 # 24 "/usr/include/glib-2.0/glib/gmain.h" 2
3777
3778
3779
3780
3781 typedef struct _GMainContext GMainContext;
3782 typedef struct _GMainLoop GMainLoop;
3783 typedef struct _GSource GSource;
3784 typedef struct _GSourceCallbackFuncs GSourceCallbackFuncs;
3785 typedef struct _GSourceFuncs GSourceFuncs;
3786
3787 typedef gboolean (*GSourceFunc) (gpointer data);
3788 typedef void (*GChildWatchFunc) (GPid pid,
3789 gint status,
3790 gpointer data);
3791 struct _GSource
3792 {
3793
3794 gpointer callback_data;
3795 GSourceCallbackFuncs *callback_funcs;
3796
3797 GSourceFuncs *source_funcs;
3798 guint ref_count;
3799
3800 GMainContext *context;
3801
3802 gint priority;
3803 guint flags;
3804 guint source_id;
3805
3806 GSList *poll_fds;
3807
3808 GSource *prev;
3809 GSource *next;
3810
3811 gpointer reserved1;
3812 gpointer reserved2;
3813 };
3814
3815 struct _GSourceCallbackFuncs
3816 {
3817 void (*ref) (gpointer cb_data);
3818 void (*unref) (gpointer cb_data);
3819 void (*get) (gpointer cb_data,
3820 GSource *source,
3821 GSourceFunc *func,
3822 gpointer *data);
3823 };
3824
3825 typedef void (*GSourceDummyMarshal) (void);
3826
3827 struct _GSourceFuncs
3828 {
3829 gboolean (*prepare) (GSource *source,
3830 gint *timeout_);
3831 gboolean (*check) (GSource *source);
3832 gboolean (*dispatch) (GSource *source,
3833 GSourceFunc callback,
3834 gpointer user_data);
3835 void (*finalize) (GSource *source);
3836
3837
3838 GSourceFunc closure_callback;
3839 GSourceDummyMarshal closure_marshal;
3840 };
3841 # 116 "/usr/include/glib-2.0/glib/gmain.h"
3842 typedef struct _GPollFD GPollFD;
3843 typedef gint (*GPollFunc) (GPollFD *ufds,
3844 guint nfsd,
3845 gint timeout_);
3846
3847 struct _GPollFD
3848 {
3849 gint fd;
3850 gushort events;
3851 gushort revents;
3852 };
3853 # 138 "/usr/include/glib-2.0/glib/gmain.h"
3854 GMainContext *g_main_context_new (void);
3855 GMainContext *g_main_context_ref (GMainContext *context);
3856 void g_main_context_unref (GMainContext *context);
3857 GMainContext *g_main_context_default (void);
3858
3859 gboolean g_main_context_iteration (GMainContext *context,
3860 gboolean may_block);
3861 gboolean g_main_context_pending (GMainContext *context);
3862
3863
3864
3865 GSource *g_main_context_find_source_by_id (GMainContext *context,
3866 guint source_id);
3867 GSource *g_main_context_find_source_by_user_data (GMainContext *context,
3868 gpointer user_data);
3869 GSource *g_main_context_find_source_by_funcs_user_data (GMainContext *context,
3870 GSourceFuncs *funcs,
3871 gpointer user_data);
3872
3873
3874
3875 void g_main_context_wakeup (GMainContext *context);
3876 gboolean g_main_context_acquire (GMainContext *context);
3877 void g_main_context_release (GMainContext *context);
3878 gboolean g_main_context_is_owner (GMainContext *context);
3879 gboolean g_main_context_wait (GMainContext *context,
3880 GCond *cond,
3881 GMutex *mutex);
3882
3883 gboolean g_main_context_prepare (GMainContext *context,
3884 gint *priority);
3885 gint g_main_context_query (GMainContext *context,
3886 gint max_priority,
3887 gint *timeout_,
3888 GPollFD *fds,
3889 gint n_fds);
3890 gint g_main_context_check (GMainContext *context,
3891 gint max_priority,
3892 GPollFD *fds,
3893 gint n_fds);
3894 void g_main_context_dispatch (GMainContext *context);
3895
3896 void g_main_context_set_poll_func (GMainContext *context,
3897 GPollFunc func);
3898 GPollFunc g_main_context_get_poll_func (GMainContext *context);
3899
3900
3901
3902 void g_main_context_add_poll (GMainContext *context,
3903 GPollFD *fd,
3904 gint priority);
3905 void g_main_context_remove_poll (GMainContext *context,
3906 GPollFD *fd);
3907
3908 int g_main_depth (void);
3909
3910
3911
3912 GMainLoop *g_main_loop_new (GMainContext *context,
3913 gboolean is_running);
3914 void g_main_loop_run (GMainLoop *loop);
3915 void g_main_loop_quit (GMainLoop *loop);
3916 GMainLoop *g_main_loop_ref (GMainLoop *loop);
3917 void g_main_loop_unref (GMainLoop *loop);
3918 gboolean g_main_loop_is_running (GMainLoop *loop);
3919 GMainContext *g_main_loop_get_context (GMainLoop *loop);
3920
3921
3922
3923 GSource *g_source_new (GSourceFuncs *source_funcs,
3924 guint struct_size);
3925 GSource *g_source_ref (GSource *source);
3926 void g_source_unref (GSource *source);
3927
3928 guint g_source_attach (GSource *source,
3929 GMainContext *context);
3930 void g_source_destroy (GSource *source);
3931
3932 void g_source_set_priority (GSource *source,
3933 gint priority);
3934 gint g_source_get_priority (GSource *source);
3935 void g_source_set_can_recurse (GSource *source,
3936 gboolean can_recurse);
3937 gboolean g_source_get_can_recurse (GSource *source);
3938 guint g_source_get_id (GSource *source);
3939
3940 GMainContext *g_source_get_context (GSource *source);
3941
3942 void g_source_set_callback (GSource *source,
3943 GSourceFunc func,
3944 gpointer data,
3945 GDestroyNotify notify);
3946
3947
3948
3949 void g_source_set_callback_indirect (GSource *source,
3950 gpointer callback_data,
3951 GSourceCallbackFuncs *callback_funcs);
3952
3953 void g_source_add_poll (GSource *source,
3954 GPollFD *fd);
3955 void g_source_remove_poll (GSource *source,
3956 GPollFD *fd);
3957
3958 void g_source_get_current_time (GSource *source,
3959 GTimeVal *timeval);
3960
3961
3962
3963
3964
3965
3966
3967 GSource *g_idle_source_new (void);
3968 GSource *g_child_watch_source_new (GPid pid);
3969 GSource *g_timeout_source_new (guint interval);
3970
3971
3972
3973 void g_get_current_time (GTimeVal *result);
3974 # 282 "/usr/include/glib-2.0/glib/gmain.h"
3975 gboolean g_source_remove (guint tag);
3976 gboolean g_source_remove_by_user_data (gpointer user_data);
3977 gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
3978 gpointer user_data);
3979
3980
3981 guint g_timeout_add_full (gint priority,
3982 guint interval,
3983 GSourceFunc function,
3984 gpointer data,
3985 GDestroyNotify notify);
3986 guint g_timeout_add (guint interval,
3987 GSourceFunc function,
3988 gpointer data);
3989 guint g_child_watch_add_full (gint priority,
3990 GPid pid,
3991 GChildWatchFunc function,
3992 gpointer data,
3993 GDestroyNotify notify);
3994 guint g_child_watch_add (GPid pid,
3995 GChildWatchFunc function,
3996 gpointer data);
3997 guint g_idle_add (GSourceFunc function,
3998 gpointer data);
3999 guint g_idle_add_full (gint priority,
4000 GSourceFunc function,
4001 gpointer data,
4002 GDestroyNotify notify);
4003 gboolean g_idle_remove_by_data (gpointer data);
4004
4005
4006 extern GSourceFuncs g_timeout_funcs;
4007 extern GSourceFuncs g_child_watch_funcs;
4008 extern GSourceFuncs g_idle_funcs;
4009 # 32 "/usr/include/glib-2.0/glib/giochannel.h" 2
4010
4011 # 1 "/usr/include/glib-2.0/glib/gstring.h" 1
4012 # 31 "/usr/include/glib-2.0/glib/gstring.h"
4013
4014 # 1 "/usr/include/glib-2.0/glib/gunicode.h" 1
4015 # 28 "/usr/include/glib-2.0/glib/gunicode.h"
4016
4017
4018 typedef guint32 gunichar;
4019 typedef guint16 gunichar2;
4020
4021
4022
4023
4024 typedef enum
4025 {
4026 G_UNICODE_CONTROL,
4027 G_UNICODE_FORMAT,
4028 G_UNICODE_UNASSIGNED,
4029 G_UNICODE_PRIVATE_USE,
4030 G_UNICODE_SURROGATE,
4031 G_UNICODE_LOWERCASE_LETTER,
4032 G_UNICODE_MODIFIER_LETTER,
4033 G_UNICODE_OTHER_LETTER,
4034 G_UNICODE_TITLECASE_LETTER,
4035 G_UNICODE_UPPERCASE_LETTER,
4036 G_UNICODE_COMBINING_MARK,
4037 G_UNICODE_ENCLOSING_MARK,
4038 G_UNICODE_NON_SPACING_MARK,
4039 G_UNICODE_DECIMAL_NUMBER,
4040 G_UNICODE_LETTER_NUMBER,
4041 G_UNICODE_OTHER_NUMBER,
4042 G_UNICODE_CONNECT_PUNCTUATION,
4043 G_UNICODE_DASH_PUNCTUATION,
4044 G_UNICODE_CLOSE_PUNCTUATION,
4045 G_UNICODE_FINAL_PUNCTUATION,
4046 G_UNICODE_INITIAL_PUNCTUATION,
4047 G_UNICODE_OTHER_PUNCTUATION,
4048 G_UNICODE_OPEN_PUNCTUATION,
4049 G_UNICODE_CURRENCY_SYMBOL,
4050 G_UNICODE_MODIFIER_SYMBOL,
4051 G_UNICODE_MATH_SYMBOL,
4052 G_UNICODE_OTHER_SYMBOL,
4053 G_UNICODE_LINE_SEPARATOR,
4054 G_UNICODE_PARAGRAPH_SEPARATOR,
4055 G_UNICODE_SPACE_SEPARATOR
4056 } GUnicodeType;
4057
4058
4059
4060
4061
4062
4063 typedef enum
4064 {
4065 G_UNICODE_BREAK_MANDATORY,
4066 G_UNICODE_BREAK_CARRIAGE_RETURN,
4067 G_UNICODE_BREAK_LINE_FEED,
4068 G_UNICODE_BREAK_COMBINING_MARK,
4069 G_UNICODE_BREAK_SURROGATE,
4070 G_UNICODE_BREAK_ZERO_WIDTH_SPACE,
4071 G_UNICODE_BREAK_INSEPARABLE,
4072 G_UNICODE_BREAK_NON_BREAKING_GLUE,
4073 G_UNICODE_BREAK_CONTINGENT,
4074 G_UNICODE_BREAK_SPACE,
4075 G_UNICODE_BREAK_AFTER,
4076 G_UNICODE_BREAK_BEFORE,
4077 G_UNICODE_BREAK_BEFORE_AND_AFTER,
4078 G_UNICODE_BREAK_HYPHEN,
4079 G_UNICODE_BREAK_NON_STARTER,
4080 G_UNICODE_BREAK_OPEN_PUNCTUATION,
4081 G_UNICODE_BREAK_CLOSE_PUNCTUATION,
4082 G_UNICODE_BREAK_QUOTATION,
4083 G_UNICODE_BREAK_EXCLAMATION,
4084 G_UNICODE_BREAK_IDEOGRAPHIC,
4085 G_UNICODE_BREAK_NUMERIC,
4086 G_UNICODE_BREAK_INFIX_SEPARATOR,
4087 G_UNICODE_BREAK_SYMBOL,
4088 G_UNICODE_BREAK_ALPHABETIC,
4089 G_UNICODE_BREAK_PREFIX,
4090 G_UNICODE_BREAK_POSTFIX,
4091 G_UNICODE_BREAK_COMPLEX_CONTEXT,
4092 G_UNICODE_BREAK_AMBIGUOUS,
4093 G_UNICODE_BREAK_UNKNOWN,
4094 G_UNICODE_BREAK_NEXT_LINE,
4095 G_UNICODE_BREAK_WORD_JOINER,
4096 G_UNICODE_BREAK_HANGUL_L_JAMO,
4097 G_UNICODE_BREAK_HANGUL_V_JAMO,
4098 G_UNICODE_BREAK_HANGUL_T_JAMO,
4099 G_UNICODE_BREAK_HANGUL_LV_SYLLABLE,
4100 G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE
4101 } GUnicodeBreakType;
4102
4103
4104
4105
4106
4107
4108
4109 gboolean g_get_charset (const char **charset);
4110
4111
4112
4113 gboolean g_unichar_isalnum (gunichar c) __attribute__((__const__));
4114 gboolean g_unichar_isalpha (gunichar c) __attribute__((__const__));
4115 gboolean g_unichar_iscntrl (gunichar c) __attribute__((__const__));
4116 gboolean g_unichar_isdigit (gunichar c) __attribute__((__const__));
4117 gboolean g_unichar_isgraph (gunichar c) __attribute__((__const__));
4118 gboolean g_unichar_islower (gunichar c) __attribute__((__const__));
4119 gboolean g_unichar_isprint (gunichar c) __attribute__((__const__));
4120 gboolean g_unichar_ispunct (gunichar c) __attribute__((__const__));
4121 gboolean g_unichar_isspace (gunichar c) __attribute__((__const__));
4122 gboolean g_unichar_isupper (gunichar c) __attribute__((__const__));
4123 gboolean g_unichar_isxdigit (gunichar c) __attribute__((__const__));
4124 gboolean g_unichar_istitle (gunichar c) __attribute__((__const__));
4125 gboolean g_unichar_isdefined (gunichar c) __attribute__((__const__));
4126 gboolean g_unichar_iswide (gunichar c) __attribute__((__const__));
4127
4128
4129
4130 gunichar g_unichar_toupper (gunichar c) __attribute__((__const__));
4131 gunichar g_unichar_tolower (gunichar c) __attribute__((__const__));
4132 gunichar g_unichar_totitle (gunichar c) __attribute__((__const__));
4133
4134
4135
4136 gint g_unichar_digit_value (gunichar c) __attribute__((__const__));
4137
4138 gint g_unichar_xdigit_value (gunichar c) __attribute__((__const__));
4139
4140
4141 GUnicodeType g_unichar_type (gunichar c) __attribute__((__const__));
4142
4143
4144 GUnicodeBreakType g_unichar_break_type (gunichar c) __attribute__((__const__));
4145
4146
4147
4148
4149
4150 void g_unicode_canonical_ordering (gunichar *string,
4151 gsize len);
4152
4153
4154
4155
4156 gunichar *g_unicode_canonical_decomposition (gunichar ch,
4157 gsize *result_len) __attribute__((__malloc__));
4158
4159
4160
4161 extern const gchar * const g_utf8_skip;
4162
4163
4164
4165 gunichar g_utf8_get_char (const gchar *p);
4166 gunichar g_utf8_get_char_validated (const gchar *p,
4167 gssize max_len);
4168
4169 gchar* g_utf8_offset_to_pointer (const gchar *str,
4170 glong offset);
4171 glong g_utf8_pointer_to_offset (const gchar *str,
4172 const gchar *pos);
4173 gchar* g_utf8_prev_char (const gchar *p);
4174 gchar* g_utf8_find_next_char (const gchar *p,
4175 const gchar *end);
4176 gchar* g_utf8_find_prev_char (const gchar *str,
4177 const gchar *p);
4178
4179 glong g_utf8_strlen (const gchar *p,
4180 gssize max);
4181
4182
4183 gchar* g_utf8_strncpy (gchar *dest,
4184 const gchar *src,
4185 gsize n);
4186
4187
4188
4189 gchar* g_utf8_strchr (const gchar *p,
4190 gssize len,
4191 gunichar c);
4192 gchar* g_utf8_strrchr (const gchar *p,
4193 gssize len,
4194 gunichar c);
4195 gchar* g_utf8_strreverse (const gchar *str,
4196 gssize len);
4197
4198 gunichar2 *g_utf8_to_utf16 (const gchar *str,
4199 glong len,
4200 glong *items_read,
4201 glong *items_written,
4202 GError **error) __attribute__((__malloc__));
4203 gunichar * g_utf8_to_ucs4 (const gchar *str,
4204 glong len,
4205 glong *items_read,
4206 glong *items_written,
4207 GError **error) __attribute__((__malloc__));
4208 gunichar * g_utf8_to_ucs4_fast (const gchar *str,
4209 glong len,
4210 glong *items_written) __attribute__((__malloc__));
4211 gunichar * g_utf16_to_ucs4 (const gunichar2 *str,
4212 glong len,
4213 glong *items_read,
4214 glong *items_written,
4215 GError **error) __attribute__((__malloc__));
4216 gchar* g_utf16_to_utf8 (const gunichar2 *str,
4217 glong len,
4218 glong *items_read,
4219 glong *items_written,
4220 GError **error) __attribute__((__malloc__));
4221 gunichar2 *g_ucs4_to_utf16 (const gunichar *str,
4222 glong len,
4223 glong *items_read,
4224 glong *items_written,
4225 GError **error) __attribute__((__malloc__));
4226 gchar* g_ucs4_to_utf8 (const gunichar *str,
4227 glong len,
4228 glong *items_read,
4229 glong *items_written,
4230 GError **error) __attribute__((__malloc__));
4231
4232
4233
4234
4235
4236 gint g_unichar_to_utf8 (gunichar c,
4237 gchar *outbuf);
4238
4239
4240
4241
4242
4243 gboolean g_utf8_validate (const gchar *str,
4244 gssize max_len,
4245 const gchar **end);
4246
4247
4248 gboolean g_unichar_validate (gunichar ch);
4249
4250 gchar *g_utf8_strup (const gchar *str,
4251 gssize len) __attribute__((__malloc__));
4252 gchar *g_utf8_strdown (const gchar *str,
4253 gssize len) __attribute__((__malloc__));
4254 gchar *g_utf8_casefold (const gchar *str,
4255 gssize len) __attribute__((__malloc__));
4256
4257 typedef enum {
4258 G_NORMALIZE_DEFAULT,
4259 G_NORMALIZE_NFD = G_NORMALIZE_DEFAULT,
4260 G_NORMALIZE_DEFAULT_COMPOSE,
4261 G_NORMALIZE_NFC = G_NORMALIZE_DEFAULT_COMPOSE,
4262 G_NORMALIZE_ALL,
4263 G_NORMALIZE_NFKD = G_NORMALIZE_ALL,
4264 G_NORMALIZE_ALL_COMPOSE,
4265 G_NORMALIZE_NFKC = G_NORMALIZE_ALL_COMPOSE
4266 } GNormalizeMode;
4267
4268 gchar *g_utf8_normalize (const gchar *str,
4269 gssize len,
4270 GNormalizeMode mode) __attribute__((__malloc__));
4271
4272 gint g_utf8_collate (const gchar *str1,
4273 const gchar *str2);
4274 gchar *g_utf8_collate_key (const gchar *str,
4275 gssize len) __attribute__((__malloc__));
4276 gchar *g_utf8_collate_key_for_filename (const gchar *str,
4277 gssize len) __attribute__((__malloc__));
4278
4279 gboolean g_unichar_get_mirror_char (gunichar ch,
4280 gunichar *mirrored_ch);
4281 # 32 "/usr/include/glib-2.0/glib/gstring.h" 2
4282
4283 # 1 "/usr/include/glib-2.0/glib/gutils.h" 1
4284 # 31 "/usr/include/glib-2.0/glib/gutils.h"
4285
4286 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 1 3 4
4287 # 105 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 3 4
4288 typedef __gnuc_va_list va_list;
4289 # 32 "/usr/include/glib-2.0/glib/gutils.h" 2
4290 # 116 "/usr/include/glib-2.0/glib/gutils.h"
4291 const gchar* g_get_user_name (void);
4292 const gchar* g_get_real_name (void);
4293 const gchar* g_get_home_dir (void);
4294 const gchar* g_get_tmp_dir (void);
4295 const gchar* g_get_host_name (void);
4296 gchar* g_get_prgname (void);
4297 void g_set_prgname (const gchar *prgname);
4298 const gchar* g_get_application_name (void);
4299 void g_set_application_name (const gchar *application_name);
4300
4301 const gchar* g_get_user_data_dir (void);
4302 const gchar* g_get_user_config_dir (void);
4303 const gchar* g_get_user_cache_dir (void);
4304 const gchar* const * g_get_system_data_dirs (void);
4305 # 144 "/usr/include/glib-2.0/glib/gutils.h"
4306 const gchar* const * g_get_system_config_dirs (void);
4307
4308 const gchar* const * g_get_language_names (void);
4309
4310 typedef struct _GDebugKey GDebugKey;
4311 struct _GDebugKey
4312 {
4313 gchar *key;
4314 guint value;
4315 };
4316
4317
4318
4319 guint g_parse_debug_string (const gchar *string,
4320 const GDebugKey *keys,
4321 guint nkeys);
4322
4323 gint g_snprintf (gchar *string,
4324 gulong n,
4325 gchar const *format,
4326 ...) __attribute__((__format__ (__printf__, 3, 4)));
4327 gint g_vsnprintf (gchar *string,
4328 gulong n,
4329 gchar const *format,
4330 va_list args);
4331
4332
4333 gboolean g_path_is_absolute (const gchar *file_name);
4334
4335
4336 const gchar* g_path_skip_root (const gchar *file_name);
4337
4338
4339
4340
4341
4342
4343
4344 const gchar* g_basename (const gchar *file_name);
4345 # 192 "/usr/include/glib-2.0/glib/gutils.h"
4346 gchar* g_get_current_dir (void);
4347 gchar* g_path_get_basename (const gchar *file_name) __attribute__((__malloc__));
4348 gchar* g_path_get_dirname (const gchar *file_name) __attribute__((__malloc__));
4349
4350
4351 void g_nullify_pointer (gpointer *nullify_location);
4352 # 208 "/usr/include/glib-2.0/glib/gutils.h"
4353 const gchar* g_getenv (const gchar *variable);
4354 gboolean g_setenv (const gchar *variable,
4355 const gchar *value,
4356 gboolean overwrite);
4357 void g_unsetenv (const gchar *variable);
4358 gchar** g_listenv (void);
4359 const gchar* _g_getenv_nomalloc (const gchar *variable,
4360 gchar buffer[1024]);
4361
4362
4363
4364
4365
4366 typedef void (*GVoidFunc) (void);
4367 # 232 "/usr/include/glib-2.0/glib/gutils.h"
4368 void g_atexit (GVoidFunc func);
4369 # 246 "/usr/include/glib-2.0/glib/gutils.h"
4370 gchar* g_find_program_in_path (const gchar *program);
4371
4372
4373
4374 extern inline gint g_bit_nth_lsf (gulong mask,
4375 gint nth_bit);
4376 extern inline gint g_bit_nth_msf (gulong mask,
4377 gint nth_bit);
4378 extern inline guint g_bit_storage (gulong number);
4379
4380
4381
4382
4383 typedef struct _GTrashStack GTrashStack;
4384 struct _GTrashStack
4385 {
4386 GTrashStack *next;
4387 };
4388
4389 extern inline void g_trash_stack_push (GTrashStack **stack_p,
4390 gpointer data_p);
4391 extern inline gpointer g_trash_stack_pop (GTrashStack **stack_p);
4392 extern inline gpointer g_trash_stack_peek (GTrashStack **stack_p);
4393 extern inline guint g_trash_stack_height (GTrashStack **stack_p);
4394
4395
4396
4397
4398 extern inline gint
4399 g_bit_nth_lsf (gulong mask,
4400 gint nth_bit)
4401 {
4402 do
4403 {
4404 nth_bit++;
4405 if (mask & (1UL << nth_bit))
4406 return nth_bit;
4407 }
4408 while (nth_bit < ((4 * 8) - 1));
4409 return -1;
4410 }
4411 extern inline gint
4412 g_bit_nth_msf (gulong mask,
4413 gint nth_bit)
4414 {
4415 if (nth_bit < 0)
4416 nth_bit = 4 * 8;
4417 do
4418 {
4419 nth_bit--;
4420 if (mask & (1UL << nth_bit))
4421 return nth_bit;
4422 }
4423 while (nth_bit > 0);
4424 return -1;
4425 }
4426 extern inline guint
4427 g_bit_storage (gulong number)
4428 {
4429 register guint n_bits = 0;
4430
4431 do
4432 {
4433 n_bits++;
4434 number >>= 1;
4435 }
4436 while (number);
4437 return n_bits;
4438 }
4439 extern inline void
4440 g_trash_stack_push (GTrashStack **stack_p,
4441 gpointer data_p)
4442 {
4443 GTrashStack *data = (GTrashStack *) data_p;
4444
4445 data->next = *stack_p;
4446 *stack_p = data;
4447 }
4448 extern inline gpointer
4449 g_trash_stack_pop (GTrashStack **stack_p)
4450 {
4451 GTrashStack *data;
4452
4453 data = *stack_p;
4454 if (data)
4455 {
4456 *stack_p = data->next;
4457
4458
4459
4460 data->next = ((void *)0);
4461 }
4462
4463 return data;
4464 }
4465 extern inline gpointer
4466 g_trash_stack_peek (GTrashStack **stack_p)
4467 {
4468 GTrashStack *data;
4469
4470 data = *stack_p;
4471
4472 return data;
4473 }
4474 extern inline guint
4475 g_trash_stack_height (GTrashStack **stack_p)
4476 {
4477 GTrashStack *data;
4478 guint i = 0;
4479
4480 for (data = *stack_p; data; data = data->next)
4481 i++;
4482
4483 return i;
4484 }
4485
4486
4487
4488
4489
4490
4491 extern const guint glib_major_version;
4492 extern const guint glib_minor_version;
4493 extern const guint glib_micro_version;
4494 extern const guint glib_interface_age;
4495 extern const guint glib_binary_age;
4496
4497 const gchar * glib_check_version (guint required_major,
4498 guint required_minor,
4499 guint required_micro);
4500 # 33 "/usr/include/glib-2.0/glib/gstring.h" 2
4501
4502
4503
4504 typedef struct _GString GString;
4505 typedef struct _GStringChunk GStringChunk;
4506
4507 struct _GString
4508 {
4509 gchar *str;
4510 gsize len;
4511 gsize allocated_len;
4512 };
4513
4514
4515
4516 GStringChunk* g_string_chunk_new (gsize size);
4517 void g_string_chunk_free (GStringChunk *chunk);
4518 gchar* g_string_chunk_insert (GStringChunk *chunk,
4519 const gchar *string);
4520 gchar* g_string_chunk_insert_len (GStringChunk *chunk,
4521 const gchar *string,
4522 gssize len);
4523 gchar* g_string_chunk_insert_const (GStringChunk *chunk,
4524 const gchar *string);
4525
4526
4527
4528
4529 GString* g_string_new (const gchar *init);
4530 GString* g_string_new_len (const gchar *init,
4531 gssize len);
4532 GString* g_string_sized_new (gsize dfl_size);
4533 gchar* g_string_free (GString *string,
4534 gboolean free_segment);
4535 gboolean g_string_equal (const GString *v,
4536 const GString *v2);
4537 guint g_string_hash (const GString *str);
4538 GString* g_string_assign (GString *string,
4539 const gchar *rval);
4540 GString* g_string_truncate (GString *string,
4541 gsize len);
4542 GString* g_string_set_size (GString *string,
4543 gsize len);
4544 GString* g_string_insert_len (GString *string,
4545 gssize pos,
4546 const gchar *val,
4547 gssize len);
4548 GString* g_string_append (GString *string,
4549 const gchar *val);
4550 GString* g_string_append_len (GString *string,
4551 const gchar *val,
4552 gssize len);
4553 GString* g_string_append_c (GString *string,
4554 gchar c);
4555 GString* g_string_append_unichar (GString *string,
4556 gunichar wc);
4557 GString* g_string_prepend (GString *string,
4558 const gchar *val);
4559 GString* g_string_prepend_c (GString *string,
4560 gchar c);
4561 GString* g_string_prepend_unichar (GString *string,
4562 gunichar wc);
4563 GString* g_string_prepend_len (GString *string,
4564 const gchar *val,
4565 gssize len);
4566 GString* g_string_insert (GString *string,
4567 gssize pos,
4568 const gchar *val);
4569 GString* g_string_insert_c (GString *string,
4570 gssize pos,
4571 gchar c);
4572 GString* g_string_insert_unichar (GString *string,
4573 gssize pos,
4574 gunichar wc);
4575 GString* g_string_erase (GString *string,
4576 gssize pos,
4577 gssize len);
4578 GString* g_string_ascii_down (GString *string);
4579 GString* g_string_ascii_up (GString *string);
4580 void g_string_printf (GString *string,
4581 const gchar *format,
4582 ...) __attribute__((__format__ (__printf__, 2, 3)));
4583 void g_string_append_printf (GString *string,
4584 const gchar *format,
4585 ...) __attribute__((__format__ (__printf__, 2, 3)));
4586
4587
4588
4589 static inline GString*
4590 g_string_append_c_inline (GString *gstring,
4591 gchar c)
4592 {
4593 if (gstring->len + 1 < gstring->allocated_len)
4594 {
4595 gstring->str[gstring->len++] = c;
4596 gstring->str[gstring->len] = 0;
4597 }
4598 else
4599 g_string_insert_c (gstring, -1, c);
4600 return gstring;
4601 }
4602 # 145 "/usr/include/glib-2.0/glib/gstring.h"
4603 GString* g_string_down (GString *string);
4604 GString* g_string_up (GString *string);
4605 # 33 "/usr/include/glib-2.0/glib/giochannel.h" 2
4606
4607
4608
4609
4610
4611
4612 typedef struct _GIOChannel GIOChannel;
4613 typedef struct _GIOFuncs GIOFuncs;
4614
4615 typedef enum
4616 {
4617 G_IO_ERROR_NONE,
4618 G_IO_ERROR_AGAIN,
4619 G_IO_ERROR_INVAL,
4620 G_IO_ERROR_UNKNOWN
4621 } GIOError;
4622
4623
4624
4625 typedef enum
4626 {
4627
4628 G_IO_CHANNEL_ERROR_FBIG,
4629 G_IO_CHANNEL_ERROR_INVAL,
4630 G_IO_CHANNEL_ERROR_IO,
4631 G_IO_CHANNEL_ERROR_ISDIR,
4632 G_IO_CHANNEL_ERROR_NOSPC,
4633 G_IO_CHANNEL_ERROR_NXIO,
4634 G_IO_CHANNEL_ERROR_OVERFLOW,
4635 G_IO_CHANNEL_ERROR_PIPE,
4636
4637 G_IO_CHANNEL_ERROR_FAILED
4638 } GIOChannelError;
4639
4640 typedef enum
4641 {
4642 G_IO_STATUS_ERROR,
4643 G_IO_STATUS_NORMAL,
4644 G_IO_STATUS_EOF,
4645 G_IO_STATUS_AGAIN
4646 } GIOStatus;
4647
4648 typedef enum
4649 {
4650 G_SEEK_CUR,
4651 G_SEEK_SET,
4652 G_SEEK_END
4653 } GSeekType;
4654
4655 typedef enum
4656 {
4657 G_IO_IN =1,
4658 G_IO_OUT =4,
4659 G_IO_PRI =2,
4660 G_IO_ERR =8,
4661 G_IO_HUP =16,
4662 G_IO_NVAL =32
4663 } GIOCondition;
4664
4665 typedef enum
4666 {
4667 G_IO_FLAG_APPEND = 1 << 0,
4668 G_IO_FLAG_NONBLOCK = 1 << 1,
4669 G_IO_FLAG_IS_READABLE = 1 << 2,
4670 G_IO_FLAG_IS_WRITEABLE = 1 << 3,
4671 G_IO_FLAG_IS_SEEKABLE = 1 << 4,
4672 G_IO_FLAG_MASK = (1 << 5) - 1,
4673 G_IO_FLAG_GET_MASK = G_IO_FLAG_MASK,
4674 G_IO_FLAG_SET_MASK = G_IO_FLAG_APPEND | G_IO_FLAG_NONBLOCK
4675 } GIOFlags;
4676
4677 struct _GIOChannel
4678 {
4679
4680 guint ref_count;
4681 GIOFuncs *funcs;
4682
4683 gchar *encoding;
4684 GIConv read_cd;
4685 GIConv write_cd;
4686 gchar *li