more ices
[ICEs.git] / 264653 / parse_.i.0
1 # 1 "parse.c"
2 # 1 "/home/hramrach/ruby-1.9.1-rc1//"
3 # 1 "<built-in>"
4 # 1 "<command-line>"
5 # 1 "parse.c"
6 # 68 "parse.c"
7 enum yytokentype {
8 keyword_class = 258,
9 keyword_module = 259,
10 keyword_def = 260,
11 keyword_undef = 261,
12 keyword_begin = 262,
13 keyword_rescue = 263,
14 keyword_ensure = 264,
15 keyword_end = 265,
16 keyword_if = 266,
17 keyword_unless = 267,
18 keyword_then = 268,
19 keyword_elsif = 269,
20 keyword_else = 270,
21 keyword_case = 271,
22 keyword_when = 272,
23 keyword_while = 273,
24 keyword_until = 274,
25 keyword_for = 275,
26 keyword_break = 276,
27 keyword_next = 277,
28 keyword_redo = 278,
29 keyword_retry = 279,
30 keyword_in = 280,
31 keyword_do = 281,
32 keyword_do_cond = 282,
33 keyword_do_block = 283,
34 keyword_do_LAMBDA = 284,
35 keyword_return = 285,
36 keyword_yield = 286,
37 keyword_super = 287,
38 keyword_self = 288,
39 keyword_nil = 289,
40 keyword_true = 290,
41 keyword_false = 291,
42 keyword_and = 292,
43 keyword_or = 293,
44 keyword_not = 294,
45 modifier_if = 295,
46 modifier_unless = 296,
47 modifier_while = 297,
48 modifier_until = 298,
49 modifier_rescue = 299,
50 keyword_alias = 300,
51 keyword_defined = 301,
52 keyword_BEGIN = 302,
53 keyword_END = 303,
54 keyword__LINE__ = 304,
55 keyword__FILE__ = 305,
56 keyword__ENCODING__ = 306,
57 tIDENTIFIER = 307,
58 tFID = 308,
59 tGVAR = 309,
60 tIVAR = 310,
61 tCONSTANT = 311,
62 tCVAR = 312,
63 tLABEL = 313,
64 tINTEGER = 314,
65 tFLOAT = 315,
66 tSTRING_CONTENT = 316,
67 tCHAR = 317,
68 tNTH_REF = 318,
69 tBACK_REF = 319,
70 tREGEXP_END = 320,
71 tUPLUS = 321,
72 tUMINUS = 322,
73 tPOW = 323,
74 tCMP = 324,
75 tEQ = 325,
76 tEQQ = 326,
77 tNEQ = 327,
78 tGEQ = 328,
79 tLEQ = 329,
80 tANDOP = 330,
81 tOROP = 331,
82 tMATCH = 332,
83 tNMATCH = 333,
84 tDOT2 = 334,
85 tDOT3 = 335,
86 tAREF = 336,
87 tASET = 337,
88 tLSHFT = 338,
89 tRSHFT = 339,
90 tCOLON2 = 340,
91 tCOLON3 = 341,
92 tOP_ASGN = 342,
93 tASSOC = 343,
94 tLPAREN = 344,
95 tLPAREN_ARG = 345,
96 tRPAREN = 346,
97 tLBRACK = 347,
98 tLBRACE = 348,
99 tLBRACE_ARG = 349,
100 tSTAR = 350,
101 tAMPER = 351,
102 tLAMBDA = 352,
103 tSYMBEG = 353,
104 tSTRING_BEG = 354,
105 tXSTRING_BEG = 355,
106 tREGEXP_BEG = 356,
107 tWORDS_BEG = 357,
108 tQWORDS_BEG = 358,
109 tSTRING_DBEG = 359,
110 tSTRING_DVAR = 360,
111 tSTRING_END = 361,
112 tLAMBEG = 362,
113 tLOWEST = 363,
114 tUMINUS_NUM = 364,
115 idNULL = 365,
116 idRespond_to = 366,
117 idIFUNC = 367,
118 idCFUNC = 368,
119 idThrowState = 369,
120 id_core_set_method_alias = 370,
121 id_core_set_variable_alias = 371,
122 id_core_undef_method = 372,
123 id_core_define_method = 373,
124 id_core_define_singleton_method = 374,
125 id_core_set_postexe = 375,
126 tLAST_TOKEN = 376
127 };
128 # 12 "parse.y"
129
130
131
132
133
134
135 # 1 "./include/ruby/ruby.h" 1
136 # 25 "./include/ruby/ruby.h"
137 # 1 ".ext/include/i686-linux/ruby/config.h" 1
138 # 26 "./include/ruby/ruby.h" 2
139 # 50 "./include/ruby/ruby.h"
140 # 1 "/usr/include/stdlib.h" 1 3 4
141 # 25 "/usr/include/stdlib.h" 3 4
142 # 1 "/usr/include/features.h" 1 3 4
143 # 330 "/usr/include/features.h" 3 4
144 # 1 "/usr/include/sys/cdefs.h" 1 3 4
145 # 348 "/usr/include/sys/cdefs.h" 3 4
146 # 1 "/usr/include/bits/wordsize.h" 1 3 4
147 # 349 "/usr/include/sys/cdefs.h" 2 3 4
148 # 331 "/usr/include/features.h" 2 3 4
149 # 354 "/usr/include/features.h" 3 4
150 # 1 "/usr/include/gnu/stubs.h" 1 3 4
151
152
153
154 # 1 "/usr/include/bits/wordsize.h" 1 3 4
155 # 5 "/usr/include/gnu/stubs.h" 2 3 4
156
157
158 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
159 # 8 "/usr/include/gnu/stubs.h" 2 3 4
160 # 355 "/usr/include/features.h" 2 3 4
161 # 26 "/usr/include/stdlib.h" 2 3 4
162
163
164
165
166
167
168
169 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 1 3 4
170 # 214 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 3 4
171 typedef unsigned int size_t;
172 # 326 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 3 4
173 typedef int wchar_t;
174 # 34 "/usr/include/stdlib.h" 2 3 4
175
176
177
178
179
180
181
182
183 # 1 "/usr/include/bits/waitflags.h" 1 3 4
184 # 43 "/usr/include/stdlib.h" 2 3 4
185 # 1 "/usr/include/bits/waitstatus.h" 1 3 4
186 # 65 "/usr/include/bits/waitstatus.h" 3 4
187 # 1 "/usr/include/endian.h" 1 3 4
188 # 37 "/usr/include/endian.h" 3 4
189 # 1 "/usr/include/bits/endian.h" 1 3 4
190 # 38 "/usr/include/endian.h" 2 3 4
191 # 66 "/usr/include/bits/waitstatus.h" 2 3 4
192
193 union wait
194 {
195 int w_status;
196 struct
197 {
198
199 unsigned int __w_termsig:7;
200 unsigned int __w_coredump:1;
201 unsigned int __w_retcode:8;
202 unsigned int:16;
203
204
205
206
207
208
209
210 } __wait_terminated;
211 struct
212 {
213
214 unsigned int __w_stopval:8;
215 unsigned int __w_stopsig:8;
216 unsigned int:16;
217
218
219
220
221
222
223 } __wait_stopped;
224 };
225 # 44 "/usr/include/stdlib.h" 2 3 4
226 # 68 "/usr/include/stdlib.h" 3 4
227 typedef union
228 {
229 union wait *__uptr;
230 int *__iptr;
231 } __WAIT_STATUS __attribute__ ((__transparent_union__));
232 # 96 "/usr/include/stdlib.h" 3 4
233
234
235 typedef struct
236 {
237 int quot;
238 int rem;
239 } div_t;
240
241
242
243 typedef struct
244 {
245 long int quot;
246 long int rem;
247 } ldiv_t;
248
249
250
251
252
253
254
255 __extension__ typedef struct
256 {
257 long long int quot;
258 long long int rem;
259 } lldiv_t;
260
261
262 # 140 "/usr/include/stdlib.h" 3 4
263 extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
264
265
266
267
268 extern double atof (__const char *__nptr)
269 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
270
271 extern int atoi (__const char *__nptr)
272 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
273
274 extern long int atol (__const char *__nptr)
275 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
276
277
278
279
280
281 __extension__ extern long long int atoll (__const char *__nptr)
282 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
283
284
285
286
287
288 extern double strtod (__const char *__restrict __nptr,
289 char **__restrict __endptr)
290 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
291
292
293
294
295
296 extern float strtof (__const char *__restrict __nptr,
297 char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
298
299 extern long double strtold (__const char *__restrict __nptr,
300 char **__restrict __endptr)
301 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
302
303
304
305
306
307 extern long int strtol (__const char *__restrict __nptr,
308 char **__restrict __endptr, int __base)
309 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
310
311 extern unsigned long int strtoul (__const char *__restrict __nptr,
312 char **__restrict __endptr, int __base)
313 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
314
315
316
317
318 __extension__
319 extern long long int strtoq (__const char *__restrict __nptr,
320 char **__restrict __endptr, int __base)
321 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
322
323 __extension__
324 extern unsigned long long int strtouq (__const char *__restrict __nptr,
325 char **__restrict __endptr, int __base)
326 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
327
328
329
330
331
332 __extension__
333 extern long long int strtoll (__const char *__restrict __nptr,
334 char **__restrict __endptr, int __base)
335 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
336
337 __extension__
338 extern unsigned long long int strtoull (__const char *__restrict __nptr,
339 char **__restrict __endptr, int __base)
340 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
341
342 # 236 "/usr/include/stdlib.h" 3 4
343 # 1 "/usr/include/xlocale.h" 1 3 4
344 # 28 "/usr/include/xlocale.h" 3 4
345 typedef struct __locale_struct
346 {
347
348 struct locale_data *__locales[13];
349
350
351 const unsigned short int *__ctype_b;
352 const int *__ctype_tolower;
353 const int *__ctype_toupper;
354
355
356 const char *__names[13];
357 } *__locale_t;
358 # 237 "/usr/include/stdlib.h" 2 3 4
359
360
361
362 extern long int strtol_l (__const char *__restrict __nptr,
363 char **__restrict __endptr, int __base,
364 __locale_t __loc) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ;
365
366 extern unsigned long int strtoul_l (__const char *__restrict __nptr,
367 char **__restrict __endptr,
368 int __base, __locale_t __loc)
369 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ;
370
371 __extension__
372 extern long long int strtoll_l (__const char *__restrict __nptr,
373 char **__restrict __endptr, int __base,
374 __locale_t __loc)
375 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ;
376
377 __extension__
378 extern unsigned long long int strtoull_l (__const char *__restrict __nptr,
379 char **__restrict __endptr,
380 int __base, __locale_t __loc)
381 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ;
382
383 extern double strtod_l (__const char *__restrict __nptr,
384 char **__restrict __endptr, __locale_t __loc)
385 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ;
386
387 extern float strtof_l (__const char *__restrict __nptr,
388 char **__restrict __endptr, __locale_t __loc)
389 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ;
390
391 extern long double strtold_l (__const char *__restrict __nptr,
392 char **__restrict __endptr,
393 __locale_t __loc)
394 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ;
395
396
397
398
399
400 extern __inline double
401 __attribute__ ((__nothrow__)) atof (__const char *__nptr)
402 {
403 return strtod (__nptr, (char **) ((void *)0));
404 }
405 extern __inline int
406 __attribute__ ((__nothrow__)) atoi (__const char *__nptr)
407 {
408 return (int) strtol (__nptr, (char **) ((void *)0), 10);
409 }
410 extern __inline long int
411 __attribute__ ((__nothrow__)) atol (__const char *__nptr)
412 {
413 return strtol (__nptr, (char **) ((void *)0), 10);
414 }
415
416
417
418
419 __extension__ extern __inline long long int
420 __attribute__ ((__nothrow__)) atoll (__const char *__nptr)
421 {
422 return strtoll (__nptr, (char **) ((void *)0), 10);
423 }
424
425 # 311 "/usr/include/stdlib.h" 3 4
426 extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
427
428
429 extern long int a64l (__const char *__s)
430 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
431
432
433
434
435 # 1 "/usr/include/sys/types.h" 1 3 4
436 # 29 "/usr/include/sys/types.h" 3 4
437
438
439 # 1 "/usr/include/bits/types.h" 1 3 4
440 # 28 "/usr/include/bits/types.h" 3 4
441 # 1 "/usr/include/bits/wordsize.h" 1 3 4
442 # 29 "/usr/include/bits/types.h" 2 3 4
443
444
445 typedef unsigned char __u_char;
446 typedef unsigned short int __u_short;
447 typedef unsigned int __u_int;
448 typedef unsigned long int __u_long;
449
450
451 typedef signed char __int8_t;
452 typedef unsigned char __uint8_t;
453 typedef signed short int __int16_t;
454 typedef unsigned short int __uint16_t;
455 typedef signed int __int32_t;
456 typedef unsigned int __uint32_t;
457
458
459
460
461 __extension__ typedef signed long long int __int64_t;
462 __extension__ typedef unsigned long long int __uint64_t;
463
464
465
466
467
468
469
470 __extension__ typedef long long int __quad_t;
471 __extension__ typedef unsigned long long int __u_quad_t;
472 # 131 "/usr/include/bits/types.h" 3 4
473 # 1 "/usr/include/bits/typesizes.h" 1 3 4
474 # 132 "/usr/include/bits/types.h" 2 3 4
475
476
477 __extension__ typedef __u_quad_t __dev_t;
478 __extension__ typedef unsigned int __uid_t;
479 __extension__ typedef unsigned int __gid_t;
480 __extension__ typedef unsigned long int __ino_t;
481 __extension__ typedef __u_quad_t __ino64_t;
482 __extension__ typedef unsigned int __mode_t;
483 __extension__ typedef unsigned int __nlink_t;
484 __extension__ typedef long int __off_t;
485 __extension__ typedef __quad_t __off64_t;
486 __extension__ typedef int __pid_t;
487 __extension__ typedef struct { int __val[2]; } __fsid_t;
488 __extension__ typedef long int __clock_t;
489 __extension__ typedef unsigned long int __rlim_t;
490 __extension__ typedef __u_quad_t __rlim64_t;
491 __extension__ typedef unsigned int __id_t;
492 __extension__ typedef long int __time_t;
493 __extension__ typedef unsigned int __useconds_t;
494 __extension__ typedef long int __suseconds_t;
495
496 __extension__ typedef int __daddr_t;
497 __extension__ typedef long int __swblk_t;
498 __extension__ typedef int __key_t;
499
500
501 __extension__ typedef int __clockid_t;
502
503
504 __extension__ typedef void * __timer_t;
505
506
507 __extension__ typedef long int __blksize_t;
508
509
510
511
512 __extension__ typedef long int __blkcnt_t;
513 __extension__ typedef __quad_t __blkcnt64_t;
514
515
516 __extension__ typedef unsigned long int __fsblkcnt_t;
517 __extension__ typedef __u_quad_t __fsblkcnt64_t;
518
519
520 __extension__ typedef unsigned long int __fsfilcnt_t;
521 __extension__ typedef __u_quad_t __fsfilcnt64_t;
522
523 __extension__ typedef int __ssize_t;
524
525
526
527 typedef __off64_t __loff_t;
528 typedef __quad_t *__qaddr_t;
529 typedef char *__caddr_t;
530
531
532 __extension__ typedef int __intptr_t;
533
534
535 __extension__ typedef unsigned int __socklen_t;
536 # 32 "/usr/include/sys/types.h" 2 3 4
537
538
539
540 typedef __u_char u_char;
541 typedef __u_short u_short;
542 typedef __u_int u_int;
543 typedef __u_long u_long;
544 typedef __quad_t quad_t;
545 typedef __u_quad_t u_quad_t;
546 typedef __fsid_t fsid_t;
547
548
549
550
551 typedef __loff_t loff_t;
552
553
554
555
556
557 typedef __ino64_t ino_t;
558
559
560
561
562 typedef __ino64_t ino64_t;
563
564
565
566
567 typedef __dev_t dev_t;
568
569
570
571
572 typedef __gid_t gid_t;
573
574
575
576
577 typedef __mode_t mode_t;
578
579
580
581
582 typedef __nlink_t nlink_t;
583
584
585
586
587 typedef __uid_t uid_t;
588
589
590
591
592
593
594
595 typedef __off64_t off_t;
596
597
598
599
600 typedef __off64_t off64_t;
601
602
603
604
605 typedef __pid_t pid_t;
606
607
608
609
610 typedef __id_t id_t;
611
612
613
614
615 typedef __ssize_t ssize_t;
616
617
618
619
620
621 typedef __daddr_t daddr_t;
622 typedef __caddr_t caddr_t;
623
624
625
626
627
628 typedef __key_t key_t;
629 # 133 "/usr/include/sys/types.h" 3 4
630 # 1 "/usr/include/time.h" 1 3 4
631 # 59 "/usr/include/time.h" 3 4
632
633
634 typedef __clock_t clock_t;
635
636
637
638 # 75 "/usr/include/time.h" 3 4
639
640
641 typedef __time_t time_t;
642
643
644
645 # 93 "/usr/include/time.h" 3 4
646 typedef __clockid_t clockid_t;
647 # 105 "/usr/include/time.h" 3 4
648 typedef __timer_t timer_t;
649 # 134 "/usr/include/sys/types.h" 2 3 4
650
651
652
653 typedef __useconds_t useconds_t;
654
655
656
657 typedef __suseconds_t suseconds_t;
658
659
660
661
662
663 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 1 3 4
664 # 148 "/usr/include/sys/types.h" 2 3 4
665
666
667
668 typedef unsigned long int ulong;
669 typedef unsigned short int ushort;
670 typedef unsigned int uint;
671 # 195 "/usr/include/sys/types.h" 3 4
672 typedef int int8_t __attribute__ ((__mode__ (__QI__)));
673 typedef int int16_t __attribute__ ((__mode__ (__HI__)));
674 typedef int int32_t __attribute__ ((__mode__ (__SI__)));
675 typedef int int64_t __attribute__ ((__mode__ (__DI__)));
676
677
678 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
679 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
680 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
681 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
682
683 typedef int register_t __attribute__ ((__mode__ (__word__)));
684 # 220 "/usr/include/sys/types.h" 3 4
685 # 1 "/usr/include/sys/select.h" 1 3 4
686 # 31 "/usr/include/sys/select.h" 3 4
687 # 1 "/usr/include/bits/select.h" 1 3 4
688 # 32 "/usr/include/sys/select.h" 2 3 4
689
690
691 # 1 "/usr/include/bits/sigset.h" 1 3 4
692 # 24 "/usr/include/bits/sigset.h" 3 4
693 typedef int __sig_atomic_t;
694
695
696
697
698 typedef struct
699 {
700 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
701 } __sigset_t;
702 # 35 "/usr/include/sys/select.h" 2 3 4
703
704
705
706 typedef __sigset_t sigset_t;
707
708
709
710
711
712 # 1 "/usr/include/time.h" 1 3 4
713 # 121 "/usr/include/time.h" 3 4
714 struct timespec
715 {
716 __time_t tv_sec;
717 long int tv_nsec;
718 };
719 # 45 "/usr/include/sys/select.h" 2 3 4
720
721 # 1 "/usr/include/bits/time.h" 1 3 4
722 # 69 "/usr/include/bits/time.h" 3 4
723 struct timeval
724 {
725 __time_t tv_sec;
726 __suseconds_t tv_usec;
727 };
728 # 47 "/usr/include/sys/select.h" 2 3 4
729 # 55 "/usr/include/sys/select.h" 3 4
730 typedef long int __fd_mask;
731 # 67 "/usr/include/sys/select.h" 3 4
732 typedef struct
733 {
734
735
736
737 __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))];
738
739
740
741
742
743 } fd_set;
744
745
746
747
748
749
750 typedef __fd_mask fd_mask;
751 # 99 "/usr/include/sys/select.h" 3 4
752
753 # 109 "/usr/include/sys/select.h" 3 4
754 extern int select (int __nfds, fd_set *__restrict __readfds,
755 fd_set *__restrict __writefds,
756 fd_set *__restrict __exceptfds,
757 struct timeval *__restrict __timeout);
758 # 121 "/usr/include/sys/select.h" 3 4
759 extern int pselect (int __nfds, fd_set *__restrict __readfds,
760 fd_set *__restrict __writefds,
761 fd_set *__restrict __exceptfds,
762 const struct timespec *__restrict __timeout,
763 const __sigset_t *__restrict __sigmask);
764
765
766
767 # 221 "/usr/include/sys/types.h" 2 3 4
768
769
770 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
771 # 30 "/usr/include/sys/sysmacros.h" 3 4
772 __extension__
773 extern unsigned int gnu_dev_major (unsigned long long int __dev)
774 __attribute__ ((__nothrow__));
775 __extension__
776 extern unsigned int gnu_dev_minor (unsigned long long int __dev)
777 __attribute__ ((__nothrow__));
778 __extension__
779 extern unsigned long long int gnu_dev_makedev (unsigned int __major,
780 unsigned int __minor)
781 __attribute__ ((__nothrow__));
782
783
784 __extension__ extern __inline unsigned int
785 __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
786 {
787 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
788 }
789
790 __extension__ extern __inline unsigned int
791 __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
792 {
793 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
794 }
795
796 __extension__ extern __inline unsigned long long int
797 __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
798 {
799 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
800 | (((unsigned long long int) (__minor & ~0xff)) << 12)
801 | (((unsigned long long int) (__major & ~0xfff)) << 32));
802 }
803 # 224 "/usr/include/sys/types.h" 2 3 4
804
805
806
807
808 typedef __blksize_t blksize_t;
809 # 248 "/usr/include/sys/types.h" 3 4
810 typedef __blkcnt64_t blkcnt_t;
811
812
813
814 typedef __fsblkcnt64_t fsblkcnt_t;
815
816
817
818 typedef __fsfilcnt64_t fsfilcnt_t;
819
820
821
822
823
824 typedef __blkcnt64_t blkcnt64_t;
825 typedef __fsblkcnt64_t fsblkcnt64_t;
826 typedef __fsfilcnt64_t fsfilcnt64_t;
827
828
829
830
831
832 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
833 # 23 "/usr/include/bits/pthreadtypes.h" 3 4
834 # 1 "/usr/include/bits/wordsize.h" 1 3 4
835 # 24 "/usr/include/bits/pthreadtypes.h" 2 3 4
836 # 50 "/usr/include/bits/pthreadtypes.h" 3 4
837 typedef unsigned long int pthread_t;
838
839
840 typedef union
841 {
842 char __size[36];
843 long int __align;
844 } pthread_attr_t;
845 # 67 "/usr/include/bits/pthreadtypes.h" 3 4
846 typedef struct __pthread_internal_slist
847 {
848 struct __pthread_internal_slist *__next;
849 } __pthread_slist_t;
850
851
852
853
854
855 typedef union
856 {
857 struct __pthread_mutex_s
858 {
859 int __lock;
860 unsigned int __count;
861 int __owner;
862
863
864
865
866
867 int __kind;
868
869
870
871
872
873 unsigned int __nusers;
874 __extension__ union
875 {
876 int __spins;
877 __pthread_slist_t __list;
878 };
879
880 } __data;
881 char __size[24];
882 long int __align;
883 } pthread_mutex_t;
884
885 typedef union
886 {
887 char __size[4];
888 int __align;
889 } pthread_mutexattr_t;
890
891
892
893
894 typedef union
895 {
896 struct
897 {
898 int __lock;
899 unsigned int __futex;
900 __extension__ unsigned long long int __total_seq;
901 __extension__ unsigned long long int __wakeup_seq;
902 __extension__ unsigned long long int __woken_seq;
903 void *__mutex;
904 unsigned int __nwaiters;
905 unsigned int __broadcast_seq;
906 } __data;
907 char __size[48];
908 __extension__ long long int __align;
909 } pthread_cond_t;
910
911 typedef union
912 {
913 char __size[4];
914 int __align;
915 } pthread_condattr_t;
916
917
918
919 typedef unsigned int pthread_key_t;
920
921
922
923 typedef int pthread_once_t;
924
925
926
927
928
929 typedef union
930 {
931 # 170 "/usr/include/bits/pthreadtypes.h" 3 4
932 struct
933 {
934 int __lock;
935 unsigned int __nr_readers;
936 unsigned int __readers_wakeup;
937 unsigned int __writer_wakeup;
938 unsigned int __nr_readers_queued;
939 unsigned int __nr_writers_queued;
940
941
942 unsigned char __flags;
943 unsigned char __shared;
944 unsigned char __pad1;
945 unsigned char __pad2;
946 int __writer;
947 } __data;
948
949 char __size[32];
950 long int __align;
951 } pthread_rwlock_t;
952
953 typedef union
954 {
955 char __size[8];
956 long int __align;
957 } pthread_rwlockattr_t;
958
959
960
961
962
963 typedef volatile int pthread_spinlock_t;
964
965
966
967
968 typedef union
969 {
970 char __size[20];
971 long int __align;
972 } pthread_barrier_t;
973
974 typedef union
975 {
976 char __size[4];
977 int __align;
978 } pthread_barrierattr_t;
979 # 271 "/usr/include/sys/types.h" 2 3 4
980
981
982
983 # 321 "/usr/include/stdlib.h" 2 3 4
984
985
986
987
988
989
990 extern long int random (void) __attribute__ ((__nothrow__));
991
992
993 extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
994
995
996
997
998
999 extern char *initstate (unsigned int __seed, char *__statebuf,
1000 size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1001
1002
1003
1004 extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1005
1006
1007
1008
1009
1010
1011
1012 struct random_data
1013 {
1014 int32_t *fptr;
1015 int32_t *rptr;
1016 int32_t *state;
1017 int rand_type;
1018 int rand_deg;
1019 int rand_sep;
1020 int32_t *end_ptr;
1021 };
1022
1023 extern int random_r (struct random_data *__restrict __buf,
1024 int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1025
1026 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
1027 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1028
1029 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
1030 size_t __statelen,
1031 struct random_data *__restrict __buf)
1032 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
1033
1034 extern int setstate_r (char *__restrict __statebuf,
1035 struct random_data *__restrict __buf)
1036 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1037
1038
1039
1040
1041
1042
1043 extern int rand (void) __attribute__ ((__nothrow__));
1044
1045 extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
1046
1047
1048
1049
1050 extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
1051
1052
1053
1054
1055
1056
1057
1058 extern double drand48 (void) __attribute__ ((__nothrow__));
1059 extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1060
1061
1062 extern long int lrand48 (void) __attribute__ ((__nothrow__));
1063 extern long int nrand48 (unsigned short int __xsubi[3])
1064 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1065
1066
1067 extern long int mrand48 (void) __attribute__ ((__nothrow__));
1068 extern long int jrand48 (unsigned short int __xsubi[3])
1069 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1070
1071
1072 extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
1073 extern unsigned short int *seed48 (unsigned short int __seed16v[3])
1074 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1075 extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1076
1077
1078
1079
1080
1081 struct drand48_data
1082 {
1083 unsigned short int __x[3];
1084 unsigned short int __old_x[3];
1085 unsigned short int __c;
1086 unsigned short int __init;
1087 unsigned long long int __a;
1088 };
1089
1090
1091 extern int drand48_r (struct drand48_data *__restrict __buffer,
1092 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1093 extern int erand48_r (unsigned short int __xsubi[3],
1094 struct drand48_data *__restrict __buffer,
1095 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1096
1097
1098 extern int lrand48_r (struct drand48_data *__restrict __buffer,
1099 long int *__restrict __result)
1100 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1101 extern int nrand48_r (unsigned short int __xsubi[3],
1102 struct drand48_data *__restrict __buffer,
1103 long int *__restrict __result)
1104 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1105
1106
1107 extern int mrand48_r (struct drand48_data *__restrict __buffer,
1108 long int *__restrict __result)
1109 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1110 extern int jrand48_r (unsigned short int __xsubi[3],
1111 struct drand48_data *__restrict __buffer,
1112 long int *__restrict __result)
1113 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1114
1115
1116 extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
1117 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1118
1119 extern int seed48_r (unsigned short int __seed16v[3],
1120 struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1121
1122 extern int lcong48_r (unsigned short int __param[7],
1123 struct drand48_data *__buffer)
1124 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134 extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1135
1136 extern void *calloc (size_t __nmemb, size_t __size)
1137 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148 extern void *realloc (void *__ptr, size_t __size)
1149 __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
1150
1151 extern void free (void *__ptr) __attribute__ ((__nothrow__));
1152
1153
1154
1155
1156 extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
1157
1158
1159
1160 # 1 "/usr/include/alloca.h" 1 3 4
1161 # 25 "/usr/include/alloca.h" 3 4
1162 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 1 3 4
1163 # 26 "/usr/include/alloca.h" 2 3 4
1164
1165
1166
1167
1168
1169
1170
1171 extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
1172
1173
1174
1175
1176
1177
1178 # 498 "/usr/include/stdlib.h" 2 3 4
1179
1180
1181
1182
1183 extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1184
1185
1186
1187
1188 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
1189 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1190
1191
1192
1193
1194 extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1195
1196
1197
1198 extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1199
1200
1201
1202
1203
1204 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
1205 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1206
1207
1208
1209
1210
1211
1212 extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1213
1214
1215
1216
1217
1218
1219 extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1220
1221
1222
1223
1224
1225
1226 extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1227
1228
1229
1230
1231 extern char *__secure_getenv (__const char *__name)
1232 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1233
1234
1235
1236
1237
1238 extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1239
1240
1241
1242
1243
1244 extern int setenv (__const char *__name, __const char *__value, int __replace)
1245 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1246
1247
1248 extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));
1249
1250
1251
1252
1253
1254
1255 extern int clearenv (void) __attribute__ ((__nothrow__));
1256 # 583 "/usr/include/stdlib.h" 3 4
1257 extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1258 # 597 "/usr/include/stdlib.h" 3 4
1259 extern int mkstemp (char *__template) __asm__ ("" "mkstemp64")
1260 __attribute__ ((__nonnull__ (1))) ;
1261
1262
1263
1264
1265
1266 extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ;
1267 # 614 "/usr/include/stdlib.h" 3 4
1268 extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1269 # 628 "/usr/include/stdlib.h" 3 4
1270 extern int mkostemp (char *__template, int __flags) __asm__ ("" "mkostemp64")
1271 __attribute__ ((__nonnull__ (1))) ;
1272
1273
1274
1275
1276
1277 extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ;
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287 extern int system (__const char *__command) ;
1288
1289
1290
1291
1292
1293
1294 extern char *canonicalize_file_name (__const char *__name)
1295 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1296 # 662 "/usr/include/stdlib.h" 3 4
1297 extern char *realpath (__const char *__restrict __name,
1298 char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
1299
1300
1301
1302
1303
1304
1305 typedef int (*__compar_fn_t) (__const void *, __const void *);
1306
1307
1308 typedef __compar_fn_t comparison_fn_t;
1309
1310
1311
1312
1313
1314
1315 extern void *bsearch (__const void *__key, __const void *__base,
1316 size_t __nmemb, size_t __size, __compar_fn_t __compar)
1317 __attribute__ ((__nonnull__ (1, 2, 5))) ;
1318
1319
1320
1321 extern void qsort (void *__base, size_t __nmemb, size_t __size,
1322 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
1323
1324
1325
1326 extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1327 extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1328
1329
1330
1331 __extension__ extern long long int llabs (long long int __x)
1332 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1333
1334
1335
1336
1337
1338
1339
1340 extern div_t div (int __numer, int __denom)
1341 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1342 extern ldiv_t ldiv (long int __numer, long int __denom)
1343 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1344
1345
1346
1347
1348 __extension__ extern lldiv_t lldiv (long long int __numer,
1349 long long int __denom)
1350 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1351
1352 # 727 "/usr/include/stdlib.h" 3 4
1353 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
1354 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1355
1356
1357
1358
1359 extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
1360 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1361
1362
1363
1364
1365 extern char *gcvt (double __value, int __ndigit, char *__buf)
1366 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
1367
1368
1369
1370
1371 extern char *qecvt (long double __value, int __ndigit,
1372 int *__restrict __decpt, int *__restrict __sign)
1373 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1374 extern char *qfcvt (long double __value, int __ndigit,
1375 int *__restrict __decpt, int *__restrict __sign)
1376 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1377 extern char *qgcvt (long double __value, int __ndigit, char *__buf)
1378 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
1379
1380
1381
1382
1383 extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
1384 int *__restrict __sign, char *__restrict __buf,
1385 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1386 extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
1387 int *__restrict __sign, char *__restrict __buf,
1388 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1389
1390 extern int qecvt_r (long double __value, int __ndigit,
1391 int *__restrict __decpt, int *__restrict __sign,
1392 char *__restrict __buf, size_t __len)
1393 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1394 extern int qfcvt_r (long double __value, int __ndigit,
1395 int *__restrict __decpt, int *__restrict __sign,
1396 char *__restrict __buf, size_t __len)
1397 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1398
1399
1400
1401
1402
1403
1404
1405 extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
1406
1407
1408 extern int mbtowc (wchar_t *__restrict __pwc,
1409 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
1410
1411
1412 extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
1413
1414
1415
1416 extern size_t mbstowcs (wchar_t *__restrict __pwcs,
1417 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
1418
1419 extern size_t wcstombs (char *__restrict __s,
1420 __const wchar_t *__restrict __pwcs, size_t __n)
1421 __attribute__ ((__nothrow__));
1422
1423
1424
1425
1426
1427
1428
1429
1430 extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1431 # 815 "/usr/include/stdlib.h" 3 4
1432 extern int getsubopt (char **__restrict __optionp,
1433 char *__const *__restrict __tokens,
1434 char **__restrict __valuep)
1435 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ;
1436
1437
1438
1439
1440
1441 extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1442
1443
1444
1445
1446
1447
1448
1449 extern int posix_openpt (int __oflag) ;
1450
1451
1452
1453
1454
1455
1456
1457 extern int grantpt (int __fd) __attribute__ ((__nothrow__));
1458
1459
1460
1461 extern int unlockpt (int __fd) __attribute__ ((__nothrow__));
1462
1463
1464
1465
1466 extern char *ptsname (int __fd) __attribute__ ((__nothrow__)) ;
1467
1468
1469
1470
1471
1472
1473 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
1474 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1475
1476
1477 extern int getpt (void);
1478
1479
1480
1481
1482
1483
1484 extern int getloadavg (double __loadavg[], int __nelem)
1485 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1486 # 883 "/usr/include/stdlib.h" 3 4
1487
1488 # 51 "./include/ruby/ruby.h" 2
1489
1490
1491
1492 # 1 "/usr/include/string.h" 1 3 4
1493 # 28 "/usr/include/string.h" 3 4
1494
1495
1496
1497
1498
1499 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 1 3 4
1500 # 34 "/usr/include/string.h" 2 3 4
1501
1502
1503
1504
1505 extern void *memcpy (void *__restrict __dest,
1506 __const void *__restrict __src, size_t __n)
1507 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1508
1509
1510 extern void *memmove (void *__dest, __const void *__src, size_t __n)
1511 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1512
1513
1514
1515
1516
1517
1518 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
1519 int __c, size_t __n)
1520 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1521
1522
1523
1524
1525
1526 extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1527
1528
1529 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
1530 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1531
1532
1533 extern void *memchr (__const void *__s, int __c, size_t __n)
1534 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1535
1536
1537
1538
1539
1540 extern void *rawmemchr (__const void *__s, int __c)
1541 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1542
1543
1544 extern void *memrchr (__const void *__s, int __c, size_t __n)
1545 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1546
1547
1548
1549
1550
1551 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
1552 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1553
1554 extern char *strncpy (char *__restrict __dest,
1555 __const char *__restrict __src, size_t __n)
1556 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1557
1558
1559 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
1560 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1561
1562 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
1563 size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1564
1565
1566 extern int strcmp (__const char *__s1, __const char *__s2)
1567 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1568
1569 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
1570 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1571
1572
1573 extern int strcoll (__const char *__s1, __const char *__s2)
1574 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1575
1576 extern size_t strxfrm (char *__restrict __dest,
1577 __const char *__restrict __src, size_t __n)
1578 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1579
1580 # 121 "/usr/include/string.h" 3 4
1581 extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
1582 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
1583
1584 extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
1585 __locale_t __l) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
1586
1587
1588
1589
1590 extern char *strdup (__const char *__s)
1591 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
1592
1593
1594
1595
1596
1597
1598 extern char *strndup (__const char *__string, size_t __n)
1599 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
1600 # 165 "/usr/include/string.h" 3 4
1601
1602
1603 extern char *strchr (__const char *__s, int __c)
1604 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1605
1606 extern char *strrchr (__const char *__s, int __c)
1607 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1608
1609
1610
1611
1612
1613 extern char *strchrnul (__const char *__s, int __c)
1614 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1615
1616
1617
1618
1619
1620 extern size_t strcspn (__const char *__s, __const char *__reject)
1621 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1622
1623
1624 extern size_t strspn (__const char *__s, __const char *__accept)
1625 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1626
1627 extern char *strpbrk (__const char *__s, __const char *__accept)
1628 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1629
1630 extern char *strstr (__const char *__haystack, __const char *__needle)
1631 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1632
1633
1634
1635 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
1636 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1637
1638
1639
1640
1641 extern char *__strtok_r (char *__restrict __s,
1642 __const char *__restrict __delim,
1643 char **__restrict __save_ptr)
1644 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
1645
1646 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
1647 char **__restrict __save_ptr)
1648 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
1649
1650
1651
1652
1653 extern char *strcasestr (__const char *__haystack, __const char *__needle)
1654 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1655
1656
1657
1658
1659
1660
1661 extern void *memmem (__const void *__haystack, size_t __haystacklen,
1662 __const void *__needle, size_t __needlelen)
1663 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
1664
1665
1666
1667 extern void *__mempcpy (void *__restrict __dest,
1668 __const void *__restrict __src, size_t __n)
1669 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1670 extern void *mempcpy (void *__restrict __dest,
1671 __const void *__restrict __src, size_t __n)
1672 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1673
1674
1675
1676
1677
1678 extern size_t strlen (__const char *__s)
1679 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1680
1681
1682
1683
1684
1685 extern size_t strnlen (__const char *__string, size_t __maxlen)
1686 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1687
1688
1689
1690
1691
1692 extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
1693
1694 # 281 "/usr/include/string.h" 3 4
1695 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
1696 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1697
1698
1699
1700
1701
1702 extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__));
1703
1704
1705
1706
1707
1708 extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1709
1710
1711
1712 extern void bcopy (__const void *__src, void *__dest, size_t __n)
1713 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1714
1715
1716 extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1717
1718
1719 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
1720 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1721
1722
1723 extern char *index (__const char *__s, int __c)
1724 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1725
1726
1727 extern char *rindex (__const char *__s, int __c)
1728 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1729
1730
1731
1732 extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1733
1734
1735
1736
1737 extern int ffsl (long int __l) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1738
1739 __extension__ extern int ffsll (long long int __ll)
1740 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1741
1742
1743
1744
1745 extern int strcasecmp (__const char *__s1, __const char *__s2)
1746 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1747
1748
1749 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
1750 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1751
1752
1753
1754
1755
1756 extern int strcasecmp_l (__const char *__s1, __const char *__s2,
1757 __locale_t __loc)
1758 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
1759
1760 extern int strncasecmp_l (__const char *__s1, __const char *__s2,
1761 size_t __n, __locale_t __loc)
1762 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
1763
1764
1765
1766
1767
1768 extern char *strsep (char **__restrict __stringp,
1769 __const char *__restrict __delim)
1770 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1771
1772
1773
1774
1775 extern int strverscmp (__const char *__s1, __const char *__s2)
1776 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1777
1778
1779 extern char *strsignal (int __sig) __attribute__ ((__nothrow__));
1780
1781
1782 extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
1783 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1784 extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
1785 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1786
1787
1788
1789 extern char *__stpncpy (char *__restrict __dest,
1790 __const char *__restrict __src, size_t __n)
1791 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1792 extern char *stpncpy (char *__restrict __dest,
1793 __const char *__restrict __src, size_t __n)
1794 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1795
1796
1797 extern char *strfry (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1798
1799
1800 extern void *memfrob (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1801
1802
1803
1804
1805
1806
1807 extern char *basename (__const char *__filename) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1808 # 420 "/usr/include/string.h" 3 4
1809 # 1 "/usr/include/bits/string.h" 1 3 4
1810 # 421 "/usr/include/string.h" 2 3 4
1811
1812
1813 # 1 "/usr/include/bits/string2.h" 1 3 4
1814 # 394 "/usr/include/bits/string2.h" 3 4
1815 extern void *__rawmemchr (const void *__s, int __c);
1816 # 969 "/usr/include/bits/string2.h" 3 4
1817 extern __inline size_t __strcspn_c1 (__const char *__s, int __reject);
1818 extern __inline size_t
1819 __strcspn_c1 (__const char *__s, int __reject)
1820 {
1821 register size_t __result = 0;
1822 while (__s[__result] != '\0' && __s[__result] != __reject)
1823 ++__result;
1824 return __result;
1825 }
1826
1827 extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1,
1828 int __reject2);
1829 extern __inline size_t
1830 __strcspn_c2 (__const char *__s, int __reject1, int __reject2)
1831 {
1832 register size_t __result = 0;
1833 while (__s[__result] != '\0' && __s[__result] != __reject1
1834 && __s[__result] != __reject2)
1835 ++__result;
1836 return __result;
1837 }
1838
1839 extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1,
1840 int __reject2, int __reject3);
1841 extern __inline size_t
1842 __strcspn_c3 (__const char *__s, int __reject1, int __reject2,
1843 int __reject3)
1844 {
1845 register size_t __result = 0;
1846 while (__s[__result] != '\0' && __s[__result] != __reject1
1847 && __s[__result] != __reject2 && __s[__result] != __reject3)
1848 ++__result;
1849 return __result;
1850 }
1851 # 1045 "/usr/include/bits/string2.h" 3 4
1852 extern __inline size_t __strspn_c1 (__const char *__s, int __accept);
1853 extern __inline size_t
1854 __strspn_c1 (__const char *__s, int __accept)
1855 {
1856 register size_t __result = 0;
1857
1858 while (__s[__result] == __accept)
1859 ++__result;
1860 return __result;
1861 }
1862
1863 extern __inline size_t __strspn_c2 (__const char *__s, int __accept1,
1864 int __accept2);
1865 extern __inline size_t
1866 __strspn_c2 (__const char *__s, int __accept1, int __accept2)
1867 {
1868 register size_t __result = 0;
1869
1870 while (__s[__result] == __accept1 || __s[__result] == __accept2)
1871 ++__result;
1872 return __result;
1873 }
1874
1875 extern __inline size_t __strspn_c3 (__const char *__s, int __accept1,
1876 int __accept2, int __accept3);
1877 extern __inline size_t
1878 __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3)
1879 {
1880 register size_t __result = 0;
1881
1882 while (__s[__result] == __accept1 || __s[__result] == __accept2
1883 || __s[__result] == __accept3)
1884 ++__result;
1885 return __result;
1886 }
1887 # 1121 "/usr/include/bits/string2.h" 3 4
1888 extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1,
1889 int __accept2);
1890 extern __inline char *
1891 __strpbrk_c2 (__const char *__s, int __accept1, int __accept2)
1892 {
1893
1894 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
1895 ++__s;
1896 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
1897 }
1898
1899 extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1,
1900 int __accept2, int __accept3);
1901 extern __inline char *
1902 __strpbrk_c3 (__const char *__s, int __accept1, int __accept2,
1903 int __accept3)
1904 {
1905
1906 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2
1907 && *__s != __accept3)
1908 ++__s;
1909 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
1910 }
1911 # 1173 "/usr/include/bits/string2.h" 3 4
1912 extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp);
1913 extern __inline char *
1914 __strtok_r_1c (char *__s, char __sep, char **__nextp)
1915 {
1916 char *__result;
1917 if (__s == ((void *)0))
1918 __s = *__nextp;
1919 while (*__s == __sep)
1920 ++__s;
1921 __result = ((void *)0);
1922 if (*__s != '\0')
1923 {
1924 __result = __s++;
1925 while (*__s != '\0')
1926 if (*__s++ == __sep)
1927 {
1928 __s[-1] = '\0';
1929 break;
1930 }
1931 *__nextp = __s;
1932 }
1933 return __result;
1934 }
1935 # 1205 "/usr/include/bits/string2.h" 3 4
1936 extern char *__strsep_g (char **__stringp, __const char *__delim);
1937 # 1223 "/usr/include/bits/string2.h" 3 4
1938 extern __inline char *__strsep_1c (char **__s, char __reject);
1939 extern __inline char *
1940 __strsep_1c (char **__s, char __reject)
1941 {
1942 register char *__retval = *__s;
1943 if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0))
1944 *(*__s)++ = '\0';
1945 return __retval;
1946 }
1947
1948 extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2);
1949 extern __inline char *
1950 __strsep_2c (char **__s, char __reject1, char __reject2)
1951 {
1952 register char *__retval = *__s;
1953 if (__retval != ((void *)0))
1954 {
1955 register char *__cp = __retval;
1956 while (1)
1957 {
1958 if (*__cp == '\0')
1959 {
1960 __cp = ((void *)0);
1961 break;
1962 }
1963 if (*__cp == __reject1 || *__cp == __reject2)
1964 {
1965 *__cp++ = '\0';
1966 break;
1967 }
1968 ++__cp;
1969 }
1970 *__s = __cp;
1971 }
1972 return __retval;
1973 }
1974
1975 extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2,
1976 char __reject3);
1977 extern __inline char *
1978 __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
1979 {
1980 register char *__retval = *__s;
1981 if (__retval != ((void *)0))
1982 {
1983 register char *__cp = __retval;
1984 while (1)
1985 {
1986 if (*__cp == '\0')
1987 {
1988 __cp = ((void *)0);
1989 break;
1990 }
1991 if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
1992 {
1993 *__cp++ = '\0';
1994 break;
1995 }
1996 ++__cp;
1997 }
1998 *__s = __cp;
1999 }
2000 return __retval;
2001 }
2002 # 1304 "/usr/include/bits/string2.h" 3 4
2003 extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
2004 # 1323 "/usr/include/bits/string2.h" 3 4
2005 extern char *__strndup (__const char *__string, size_t __n)
2006 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
2007 # 424 "/usr/include/string.h" 2 3 4
2008 # 432 "/usr/include/string.h" 3 4
2009
2010 # 55 "./include/ruby/ruby.h" 2
2011 # 64 "./include/ruby/ruby.h"
2012 # 1 "/usr/include/inttypes.h" 1 3 4
2013 # 28 "/usr/include/inttypes.h" 3 4
2014 # 1 "/usr/include/stdint.h" 1 3 4
2015 # 27 "/usr/include/stdint.h" 3 4
2016 # 1 "/usr/include/bits/wchar.h" 1 3 4
2017 # 28 "/usr/include/stdint.h" 2 3 4
2018 # 1 "/usr/include/bits/wordsize.h" 1 3 4
2019 # 29 "/usr/include/stdint.h" 2 3 4
2020 # 49 "/usr/include/stdint.h" 3 4
2021 typedef unsigned char uint8_t;
2022 typedef unsigned short int uint16_t;
2023
2024 typedef unsigned int uint32_t;
2025
2026
2027
2028
2029
2030 __extension__
2031 typedef unsigned long long int uint64_t;
2032
2033
2034
2035
2036
2037
2038 typedef signed char int_least8_t;
2039 typedef short int int_least16_t;
2040 typedef int int_least32_t;
2041
2042
2043
2044 __extension__
2045 typedef long long int int_least64_t;
2046
2047
2048
2049 typedef unsigned char uint_least8_t;
2050 typedef unsigned short int uint_least16_t;
2051 typedef unsigned int uint_least32_t;
2052
2053
2054
2055 __extension__
2056 typedef unsigned long long int uint_least64_t;
2057
2058
2059
2060
2061
2062
2063 typedef signed char int_fast8_t;
2064
2065
2066
2067
2068
2069 typedef int int_fast16_t;
2070 typedef int int_fast32_t;
2071 __extension__
2072 typedef long long int int_fast64_t;
2073
2074
2075
2076 typedef unsigned char uint_fast8_t;
2077
2078
2079
2080
2081
2082 typedef unsigned int uint_fast16_t;
2083 typedef unsigned int uint_fast32_t;
2084 __extension__
2085 typedef unsigned long long int uint_fast64_t;
2086 # 126 "/usr/include/stdint.h" 3 4
2087 typedef int intptr_t;
2088
2089
2090 typedef unsigned int uintptr_t;
2091 # 138 "/usr/include/stdint.h" 3 4
2092 __extension__
2093 typedef long long int intmax_t;
2094 __extension__
2095 typedef unsigned long long int uintmax_t;
2096 # 29 "/usr/include/inttypes.h" 2 3 4
2097
2098
2099
2100
2101
2102
2103 typedef int __gwchar_t;
2104 # 274 "/usr/include/inttypes.h" 3 4
2105
2106 # 288 "/usr/include/inttypes.h" 3 4
2107 typedef struct
2108 {
2109 long long int quot;
2110 long long int rem;
2111 } imaxdiv_t;
2112
2113
2114
2115
2116
2117 extern intmax_t imaxabs (intmax_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2118
2119
2120 extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom)
2121 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2122
2123
2124 extern intmax_t strtoimax (__const char *__restrict __nptr,
2125 char **__restrict __endptr, int __base) __attribute__ ((__nothrow__));
2126
2127
2128 extern uintmax_t strtoumax (__const char *__restrict __nptr,
2129 char ** __restrict __endptr, int __base) __attribute__ ((__nothrow__));
2130
2131
2132 extern intmax_t wcstoimax (__const __gwchar_t *__restrict __nptr,
2133 __gwchar_t **__restrict __endptr, int __base)
2134 __attribute__ ((__nothrow__));
2135
2136
2137 extern uintmax_t wcstoumax (__const __gwchar_t *__restrict __nptr,
2138 __gwchar_t ** __restrict __endptr, int __base)
2139 __attribute__ ((__nothrow__));
2140 # 379 "/usr/include/inttypes.h" 3 4
2141 __extension__
2142 extern long long int __strtoll_internal (__const char *__restrict __nptr,
2143 char **__restrict __endptr,
2144 int __base, int __group)
2145 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2146
2147 extern __inline intmax_t
2148 __attribute__ ((__nothrow__)) strtoimax (__const char *__restrict nptr, char **__restrict endptr, int base)
2149
2150 {
2151 return __strtoll_internal (nptr, endptr, base, 0);
2152 }
2153
2154 __extension__
2155 extern unsigned long long int __strtoull_internal (__const char *
2156 __restrict __nptr,
2157 char **
2158 __restrict __endptr,
2159 int __base,
2160 int __group)
2161 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2162
2163 extern __inline uintmax_t
2164 __attribute__ ((__nothrow__)) strtoumax (__const char *__restrict nptr, char **__restrict endptr, int base)
2165
2166 {
2167 return __strtoull_internal (nptr, endptr, base, 0);
2168 }
2169
2170 __extension__
2171 extern long long int __wcstoll_internal (__const __gwchar_t *
2172 __restrict __nptr,
2173 __gwchar_t **__restrict __endptr,
2174 int __base, int __group)
2175 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2176
2177 extern __inline intmax_t
2178 __attribute__ ((__nothrow__)) wcstoimax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base)
2179
2180 {
2181 return __wcstoll_internal (nptr, endptr, base, 0);
2182 }
2183
2184
2185 __extension__
2186 extern unsigned long long int __wcstoull_internal (__const __gwchar_t *
2187 __restrict __nptr,
2188 __gwchar_t **
2189 __restrict __endptr,
2190 int __base,
2191 int __group)
2192 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2193
2194 extern __inline uintmax_t
2195 __attribute__ ((__nothrow__)) wcstoumax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base)
2196
2197 {
2198 return __wcstoull_internal (nptr, endptr, base, 0);
2199 }
2200
2201
2202
2203
2204
2205 # 65 "./include/ruby/ruby.h" 2
2206
2207
2208 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 1 3 4
2209 # 152 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 3 4
2210 typedef int ptrdiff_t;
2211 # 68 "./include/ruby/ruby.h" 2
2212 # 1 "/usr/include/stdio.h" 1 3 4
2213 # 30 "/usr/include/stdio.h" 3 4
2214
2215
2216
2217
2218 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 1 3 4
2219 # 35 "/usr/include/stdio.h" 2 3 4
2220 # 45 "/usr/include/stdio.h" 3 4
2221 struct _IO_FILE;
2222
2223
2224
2225 typedef struct _IO_FILE FILE;
2226
2227
2228
2229
2230
2231 # 65 "/usr/include/stdio.h" 3 4
2232 typedef struct _IO_FILE __FILE;
2233 # 75 "/usr/include/stdio.h" 3 4
2234 # 1 "/usr/include/libio.h" 1 3 4
2235 # 32 "/usr/include/libio.h" 3 4
2236 # 1 "/usr/include/_G_config.h" 1 3 4
2237 # 15 "/usr/include/_G_config.h" 3 4
2238 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 1 3 4
2239 # 16 "/usr/include/_G_config.h" 2 3 4
2240
2241
2242
2243
2244 # 1 "/usr/include/wchar.h" 1 3 4
2245 # 78 "/usr/include/wchar.h" 3 4
2246 typedef struct
2247 {
2248 int __count;
2249 union
2250 {
2251
2252 unsigned int __wch;
2253
2254
2255
2256 char __wchb[4];
2257 } __value;
2258 } __mbstate_t;
2259 # 21 "/usr/include/_G_config.h" 2 3 4
2260
2261 typedef struct
2262 {
2263 __off_t __pos;
2264 __mbstate_t __state;
2265 } _G_fpos_t;
2266 typedef struct
2267 {
2268 __off64_t __pos;
2269 __mbstate_t __state;
2270 } _G_fpos64_t;
2271 # 53 "/usr/include/_G_config.h" 3 4
2272 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
2273 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
2274 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
2275 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
2276 # 33 "/usr/include/libio.h" 2 3 4
2277 # 53 "/usr/include/libio.h" 3 4
2278 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stdarg.h" 1 3 4
2279 # 43 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stdarg.h" 3 4
2280 typedef __builtin_va_list __gnuc_va_list;
2281 # 54 "/usr/include/libio.h" 2 3 4
2282 # 170 "/usr/include/libio.h" 3 4
2283 struct _IO_jump_t; struct _IO_FILE;
2284 # 180 "/usr/include/libio.h" 3 4
2285 typedef void _IO_lock_t;
2286
2287
2288
2289
2290
2291 struct _IO_marker {
2292 struct _IO_marker *_next;
2293 struct _IO_FILE *_sbuf;
2294
2295
2296
2297 int _pos;
2298 # 203 "/usr/include/libio.h" 3 4
2299 };
2300
2301
2302 enum __codecvt_result
2303 {
2304 __codecvt_ok,
2305 __codecvt_partial,
2306 __codecvt_error,
2307 __codecvt_noconv
2308 };
2309 # 271 "/usr/include/libio.h" 3 4
2310 struct _IO_FILE {
2311 int _flags;
2312
2313
2314
2315
2316 char* _IO_read_ptr;
2317 char* _IO_read_end;
2318 char* _IO_read_base;
2319 char* _IO_write_base;
2320 char* _IO_write_ptr;
2321 char* _IO_write_end;
2322 char* _IO_buf_base;
2323 char* _IO_buf_end;
2324
2325 char *_IO_save_base;
2326 char *_IO_backup_base;
2327 char *_IO_save_end;
2328
2329 struct _IO_marker *_markers;
2330
2331 struct _IO_FILE *_chain;
2332
2333 int _fileno;
2334
2335
2336
2337 int _flags2;
2338
2339 __off_t _old_offset;
2340
2341
2342
2343 unsigned short _cur_column;
2344 signed char _vtable_offset;
2345 char _shortbuf[1];
2346
2347
2348
2349 _IO_lock_t *_lock;
2350 # 319 "/usr/include/libio.h" 3 4
2351 __off64_t _offset;
2352 # 328 "/usr/include/libio.h" 3 4
2353 void *__pad1;
2354 void *__pad2;
2355 void *__pad3;
2356 void *__pad4;
2357 size_t __pad5;
2358
2359 int _mode;
2360
2361 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
2362
2363 };
2364
2365
2366 typedef struct _IO_FILE _IO_FILE;
2367
2368
2369 struct _IO_FILE_plus;
2370
2371 extern struct _IO_FILE_plus _IO_2_1_stdin_;
2372 extern struct _IO_FILE_plus _IO_2_1_stdout_;
2373 extern struct _IO_FILE_plus _IO_2_1_stderr_;
2374 # 364 "/usr/include/libio.h" 3 4
2375 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
2376
2377
2378
2379
2380
2381
2382
2383 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
2384 size_t __n);
2385
2386
2387
2388
2389
2390
2391
2392 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
2393
2394
2395 typedef int __io_close_fn (void *__cookie);
2396
2397
2398
2399
2400 typedef __io_read_fn cookie_read_function_t;
2401 typedef __io_write_fn cookie_write_function_t;
2402 typedef __io_seek_fn cookie_seek_function_t;
2403 typedef __io_close_fn cookie_close_function_t;
2404
2405
2406 typedef struct
2407 {
2408 __io_read_fn *read;
2409 __io_write_fn *write;
2410 __io_seek_fn *seek;
2411 __io_close_fn *close;
2412 } _IO_cookie_io_functions_t;
2413 typedef _IO_cookie_io_functions_t cookie_io_functions_t;
2414
2415 struct _IO_cookie_file;
2416
2417
2418 extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write,
2419 void *__cookie, _IO_cookie_io_functions_t __fns);
2420
2421
2422
2423
2424
2425
2426
2427 extern int __underflow (_IO_FILE *);
2428 extern int __uflow (_IO_FILE *);
2429 extern int __overflow (_IO_FILE *, int);
2430 # 458 "/usr/include/libio.h" 3 4
2431 extern int _IO_getc (_IO_FILE *__fp);
2432 extern int _IO_putc (int __c, _IO_FILE *__fp);
2433 extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
2434 extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
2435
2436 extern int _IO_peekc_locked (_IO_FILE *__fp);
2437
2438
2439
2440
2441
2442 extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
2443 extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
2444 extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
2445 # 488 "/usr/include/libio.h" 3 4
2446 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
2447 __gnuc_va_list, int *__restrict);
2448 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
2449 __gnuc_va_list);
2450 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
2451 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
2452
2453 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
2454 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
2455
2456 extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
2457 # 76 "/usr/include/stdio.h" 2 3 4
2458
2459
2460
2461
2462 typedef __gnuc_va_list va_list;
2463 # 89 "/usr/include/stdio.h" 3 4
2464
2465
2466
2467
2468 typedef _G_fpos64_t fpos_t;
2469
2470
2471
2472 typedef _G_fpos64_t fpos64_t;
2473 # 141 "/usr/include/stdio.h" 3 4
2474 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
2475 # 142 "/usr/include/stdio.h" 2 3 4
2476
2477
2478
2479 extern struct _IO_FILE *stdin;
2480 extern struct _IO_FILE *stdout;
2481 extern struct _IO_FILE *stderr;
2482
2483
2484
2485
2486
2487
2488
2489 extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
2490
2491 extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
2492
2493
2494
2495
2496 extern int renameat (int __oldfd, __const char *__old, int __newfd,
2497 __const char *__new) __attribute__ ((__nothrow__));
2498
2499
2500
2501 # 175 "/usr/include/stdio.h" 3 4
2502 extern FILE *tmpfile (void) __asm__ ("" "tmpfile64") ;
2503
2504
2505
2506
2507
2508
2509 extern FILE *tmpfile64 (void) ;
2510
2511
2512
2513 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ;
2514
2515
2516
2517
2518
2519 extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ;
2520 # 204 "/usr/include/stdio.h" 3 4
2521 extern char *tempnam (__const char *__dir, __const char *__pfx)
2522 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
2523
2524
2525
2526
2527
2528
2529
2530
2531 extern int fclose (FILE *__stream);
2532
2533
2534
2535
2536 extern int fflush (FILE *__stream);
2537
2538 # 229 "/usr/include/stdio.h" 3 4
2539 extern int fflush_unlocked (FILE *__stream);
2540 # 239 "/usr/include/stdio.h" 3 4
2541 extern int fcloseall (void);
2542
2543
2544
2545
2546 # 260 "/usr/include/stdio.h" 3 4
2547 extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64")
2548
2549 ;
2550 extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64")
2551
2552
2553 ;
2554
2555
2556
2557
2558
2559
2560
2561 extern FILE *fopen64 (__const char *__restrict __filename,
2562 __const char *__restrict __modes) ;
2563 extern FILE *freopen64 (__const char *__restrict __filename,
2564 __const char *__restrict __modes,
2565 FILE *__restrict __stream) ;
2566
2567
2568
2569
2570 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ;
2571
2572
2573
2574
2575
2576 extern FILE *fopencookie (void *__restrict __magic_cookie,
2577 __const char *__restrict __modes,
2578 _IO_cookie_io_functions_t __io_funcs) __attribute__ ((__nothrow__)) ;
2579
2580
2581 extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
2582 __attribute__ ((__nothrow__)) ;
2583
2584
2585
2586
2587 extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__)) ;
2588
2589
2590
2591
2592
2593
2594 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
2595
2596
2597
2598 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
2599 int __modes, size_t __n) __attribute__ ((__nothrow__));
2600
2601
2602
2603
2604
2605 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
2606 size_t __size) __attribute__ ((__nothrow__));
2607
2608
2609 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
2610
2611
2612
2613
2614
2615
2616
2617
2618 extern int fprintf (FILE *__restrict __stream,
2619 __const char *__restrict __format, ...);
2620
2621
2622
2623
2624 extern int printf (__const char *__restrict __format, ...);
2625
2626 extern int sprintf (char *__restrict __s,
2627 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
2628
2629
2630
2631
2632
2633 extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
2634 __gnuc_va_list __arg);
2635
2636
2637
2638
2639 extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
2640
2641 extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
2642 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
2643
2644
2645
2646
2647
2648 extern int snprintf (char *__restrict __s, size_t __maxlen,
2649 __const char *__restrict __format, ...)
2650 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
2651
2652 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
2653 __const char *__restrict __format, __gnuc_va_list __arg)
2654 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
2655
2656
2657
2658
2659
2660
2661 extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
2662 __gnuc_va_list __arg)
2663 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0))) ;
2664 extern int __asprintf (char **__restrict __ptr,
2665 __const char *__restrict __fmt, ...)
2666 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))) ;
2667 extern int asprintf (char **__restrict __ptr,
2668 __const char *__restrict __fmt, ...)
2669 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))) ;
2670
2671
2672
2673
2674
2675
2676
2677 extern int vdprintf (int __fd, __const char *__restrict __fmt,
2678 __gnuc_va_list __arg)
2679 __attribute__ ((__format__ (__printf__, 2, 0)));
2680 extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
2681 __attribute__ ((__format__ (__printf__, 2, 3)));
2682
2683
2684
2685
2686
2687
2688
2689
2690 extern int fscanf (FILE *__restrict __stream,
2691 __const char *__restrict __format, ...) ;
2692
2693
2694
2695
2696 extern int scanf (__const char *__restrict __format, ...) ;
2697
2698 extern int sscanf (__const char *__restrict __s,
2699 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
2700 # 441 "/usr/include/stdio.h" 3 4
2701
2702
2703
2704
2705
2706
2707
2708
2709 extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
2710 __gnuc_va_list __arg)
2711 __attribute__ ((__format__ (__scanf__, 2, 0))) ;
2712
2713
2714
2715
2716
2717 extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
2718 __attribute__ ((__format__ (__scanf__, 1, 0))) ;
2719
2720
2721 extern int vsscanf (__const char *__restrict __s,
2722 __const char *__restrict __format, __gnuc_va_list __arg)
2723 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
2724 # 500 "/usr/include/stdio.h" 3 4
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734 extern int fgetc (FILE *__stream);
2735 extern int getc (FILE *__stream);
2736
2737
2738
2739
2740
2741 extern int getchar (void);
2742
2743 # 528 "/usr/include/stdio.h" 3 4
2744 extern int getc_unlocked (FILE *__stream);
2745 extern int getchar_unlocked (void);
2746 # 539 "/usr/include/stdio.h" 3 4
2747 extern int fgetc_unlocked (FILE *__stream);
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759 extern int fputc (int __c, FILE *__stream);
2760 extern int putc (int __c, FILE *__stream);
2761
2762
2763
2764
2765
2766 extern int putchar (int __c);
2767
2768 # 572 "/usr/include/stdio.h" 3 4
2769 extern int fputc_unlocked (int __c, FILE *__stream);
2770
2771
2772
2773
2774
2775
2776
2777 extern int putc_unlocked (int __c, FILE *__stream);
2778 extern int putchar_unlocked (int __c);
2779
2780
2781
2782
2783
2784
2785 extern int getw (FILE *__stream);
2786
2787
2788 extern int putw (int __w, FILE *__stream);
2789
2790
2791
2792
2793
2794
2795
2796
2797 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
2798 ;
2799
2800
2801
2802
2803
2804
2805 extern char *gets (char *__s) ;
2806
2807 # 618 "/usr/include/stdio.h" 3 4
2808 extern char *fgets_unlocked (char *__restrict __s, int __n,
2809 FILE *__restrict __stream) ;
2810 # 634 "/usr/include/stdio.h" 3 4
2811 extern __ssize_t __getdelim (char **__restrict __lineptr,
2812 size_t *__restrict __n, int __delimiter,
2813 FILE *__restrict __stream) ;
2814 extern __ssize_t getdelim (char **__restrict __lineptr,
2815 size_t *__restrict __n, int __delimiter,
2816 FILE *__restrict __stream) ;
2817
2818
2819
2820
2821
2822
2823
2824 extern __ssize_t getline (char **__restrict __lineptr,
2825 size_t *__restrict __n,
2826 FILE *__restrict __stream) ;
2827
2828
2829
2830
2831
2832
2833
2834
2835 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
2836
2837
2838
2839
2840
2841 extern int puts (__const char *__s);
2842
2843
2844
2845
2846
2847
2848 extern int ungetc (int __c, FILE *__stream);
2849
2850
2851
2852
2853
2854
2855 extern size_t fread (void *__restrict __ptr, size_t __size,
2856 size_t __n, FILE *__restrict __stream) ;
2857
2858
2859
2860
2861 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
2862 size_t __n, FILE *__restrict __s) ;
2863
2864 # 695 "/usr/include/stdio.h" 3 4
2865 extern int fputs_unlocked (__const char *__restrict __s,
2866 FILE *__restrict __stream);
2867 # 706 "/usr/include/stdio.h" 3 4
2868 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
2869 size_t __n, FILE *__restrict __stream) ;
2870 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
2871 size_t __n, FILE *__restrict __stream) ;
2872
2873
2874
2875
2876
2877
2878
2879
2880 extern int fseek (FILE *__stream, long int __off, int __whence);
2881
2882
2883
2884
2885 extern long int ftell (FILE *__stream) ;
2886
2887
2888
2889
2890 extern void rewind (FILE *__stream);
2891
2892 # 750 "/usr/include/stdio.h" 3 4
2893 extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64");
2894
2895
2896 extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64");
2897
2898
2899
2900
2901
2902
2903
2904
2905 # 775 "/usr/include/stdio.h" 3 4
2906 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64");
2907
2908 extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64");
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
2919 extern __off64_t ftello64 (FILE *__stream) ;
2920 extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
2921 extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
2922
2923
2924
2925
2926 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
2927
2928 extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
2929
2930 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
2931
2932
2933
2934
2935 extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
2936 extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
2937 extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
2938
2939
2940
2941
2942
2943
2944
2945
2946 extern void perror (__const char *__s);
2947
2948
2949
2950
2951
2952
2953 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
2954 # 27 "/usr/include/bits/sys_errlist.h" 3 4
2955 extern int sys_nerr;
2956 extern __const char *__const sys_errlist[];
2957
2958
2959 extern int _sys_nerr;
2960 extern __const char *__const _sys_errlist[];
2961 # 823 "/usr/include/stdio.h" 2 3 4
2962
2963
2964
2965
2966 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
2967
2968
2969
2970
2971 extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
2972 # 842 "/usr/include/stdio.h" 3 4
2973 extern FILE *popen (__const char *__command, __const char *__modes) ;
2974
2975
2976
2977
2978
2979 extern int pclose (FILE *__stream);
2980
2981
2982
2983
2984
2985 extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
2986
2987
2988
2989
2990
2991 extern char *cuserid (char *__s);
2992
2993
2994
2995
2996 struct obstack;
2997
2998
2999 extern int obstack_printf (struct obstack *__restrict __obstack,
3000 __const char *__restrict __format, ...)
3001 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3)));
3002 extern int obstack_vprintf (struct obstack *__restrict __obstack,
3003 __const char *__restrict __format,
3004 __gnuc_va_list __args)
3005 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0)));
3006
3007
3008
3009
3010
3011
3012
3013 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
3014
3015
3016
3017 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
3018
3019
3020 extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
3021 # 903 "/usr/include/stdio.h" 3 4
3022 # 1 "/usr/include/bits/stdio.h" 1 3 4
3023 # 36 "/usr/include/bits/stdio.h" 3 4
3024 extern __inline int
3025 vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
3026 {
3027 return vfprintf (stdout, __fmt, __arg);
3028 }
3029
3030
3031
3032 extern __inline int
3033 getchar (void)
3034 {
3035 return _IO_getc (stdin);
3036 }
3037
3038
3039
3040
3041 extern __inline int
3042 fgetc_unlocked (FILE *__fp)
3043 {
3044 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
3045 }
3046
3047
3048
3049
3050
3051 extern __inline int
3052 getc_unlocked (FILE *__fp)
3053 {
3054 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
3055 }
3056
3057
3058 extern __inline int
3059 getchar_unlocked (void)
3060 {
3061 return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
3062 }
3063
3064
3065
3066
3067 extern __inline int
3068 putchar (int __c)
3069 {
3070 return _IO_putc (__c, stdout);
3071 }
3072
3073
3074
3075
3076 extern __inline int
3077 fputc_unlocked (int __c, FILE *__stream)
3078 {
3079 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
3080 }
3081
3082
3083
3084
3085
3086 extern __inline int
3087 putc_unlocked (int __c, FILE *__stream)
3088 {
3089 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
3090 }
3091
3092
3093 extern __inline int
3094 putchar_unlocked (int __c)
3095 {
3096 return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
3097 }
3098
3099
3100
3101
3102
3103 extern __inline __ssize_t
3104 getline (char **__lineptr, size_t *__n, FILE *__stream)
3105 {
3106 return __getdelim (__lineptr, __n, '\n', __stream);
3107 }
3108
3109
3110
3111
3112
3113 extern __inline int
3114 __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream)
3115 {
3116 return (((__stream)->_flags & 0x10) != 0);
3117 }
3118
3119
3120 extern __inline int
3121 __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream)
3122 {
3123 return (((__stream)->_flags & 0x20) != 0);
3124 }
3125 # 904 "/usr/include/stdio.h" 2 3 4
3126 # 912 "/usr/include/stdio.h" 3 4
3127
3128 # 69 "./include/ruby/ruby.h" 2
3129
3130 # 1 "./include/ruby/defines.h" 1
3131 # 59 "./include/ruby/defines.h"
3132 void *ruby_xmalloc(size_t);
3133 void *ruby_xmalloc2(size_t,size_t);
3134 void *ruby_xcalloc(size_t,size_t);
3135 void *ruby_xrealloc(void*,size_t);
3136 void *ruby_xrealloc2(void*,size_t,size_t);
3137 void ruby_xfree(void*);
3138 # 71 "./include/ruby/ruby.h" 2
3139 # 81 "./include/ruby/ruby.h"
3140 typedef unsigned long VALUE;
3141 typedef unsigned long ID;
3142 # 132 "./include/ruby/ruby.h"
3143 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed/limits.h" 1 3 4
3144 # 11 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed/limits.h" 3 4
3145 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed/syslimits.h" 1 3 4
3146
3147
3148
3149
3150
3151
3152 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed/limits.h" 1 3 4
3153 # 122 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed/limits.h" 3 4
3154 # 1 "/usr/include/limits.h" 1 3 4
3155 # 145 "/usr/include/limits.h" 3 4
3156 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
3157 # 153 "/usr/include/bits/posix1_lim.h" 3 4
3158 # 1 "/usr/include/bits/local_lim.h" 1 3 4
3159 # 36 "/usr/include/bits/local_lim.h" 3 4
3160 # 1 "/usr/include/linux/limits.h" 1 3 4
3161 # 37 "/usr/include/bits/local_lim.h" 2 3 4
3162 # 154 "/usr/include/bits/posix1_lim.h" 2 3 4
3163 # 146 "/usr/include/limits.h" 2 3 4
3164
3165
3166
3167 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
3168 # 150 "/usr/include/limits.h" 2 3 4
3169
3170
3171
3172 # 1 "/usr/include/bits/xopen_lim.h" 1 3 4
3173 # 34 "/usr/include/bits/xopen_lim.h" 3 4
3174 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
3175 # 35 "/usr/include/bits/xopen_lim.h" 2 3 4
3176 # 154 "/usr/include/limits.h" 2 3 4
3177 # 123 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed/limits.h" 2 3 4
3178 # 8 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed/syslimits.h" 2 3 4
3179 # 12 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed/limits.h" 2 3 4
3180 # 133 "./include/ruby/ruby.h" 2
3181 # 182 "./include/ruby/ruby.h"
3182 VALUE rb_int2inum(long);
3183
3184
3185 VALUE rb_uint2inum(VALUE);
3186
3187
3188
3189
3190 VALUE rb_ll2inum(long long);
3191
3192 VALUE rb_ull2inum(unsigned long long);
3193 # 264 "./include/ruby/ruby.h"
3194 enum ruby_special_consts {
3195 RUBY_Qfalse = 0,
3196 RUBY_Qtrue = 2,
3197 RUBY_Qnil = 4,
3198 RUBY_Qundef = 6,
3199
3200 RUBY_IMMEDIATE_MASK = 0x03,
3201 RUBY_FIXNUM_FLAG = 0x01,
3202 RUBY_SYMBOL_FLAG = 0x0e,
3203 RUBY_SPECIAL_SHIFT = 8
3204 };
3205 # 289 "./include/ruby/ruby.h"
3206 enum ruby_value_type {
3207 RUBY_T_NONE = 0x00,
3208
3209 RUBY_T_OBJECT = 0x01,
3210 RUBY_T_CLASS = 0x02,
3211 RUBY_T_MODULE = 0x03,
3212 RUBY_T_FLOAT = 0x04,
3213 RUBY_T_STRING = 0x05,
3214 RUBY_T_REGEXP = 0x06,
3215 RUBY_T_ARRAY = 0x07,
3216 RUBY_T_HASH = 0x08,
3217 RUBY_T_STRUCT = 0x09,
3218 RUBY_T_BIGNUM = 0x0a,
3219 RUBY_T_FILE = 0x0b,
3220 RUBY_T_DATA = 0x0c,
3221 RUBY_T_MATCH = 0x0d,
3222 RUBY_T_COMPLEX = 0x0e,
3223 RUBY_T_RATIONAL = 0x0f,
3224
3225 RUBY_T_NIL = 0x11,
3226 RUBY_T_TRUE = 0x12,
3227 RUBY_T_FALSE = 0x13,
3228 RUBY_T_SYMBOL = 0x14,
3229 RUBY_T_FIXNUM = 0x15,
3230
3231 RUBY_T_UNDEF = 0x1b,
3232 RUBY_T_NODE = 0x1c,
3233 RUBY_T_ICLASS = 0x1d,
3234 RUBY_T_ZOMBIE = 0x1e,
3235
3236 RUBY_T_MASK = 0x1f
3237 };
3238 # 355 "./include/ruby/ruby.h"
3239 void rb_check_type(VALUE,int);
3240
3241
3242 VALUE rb_str_to_str(VALUE);
3243 VALUE rb_string_value(volatile VALUE*);
3244 char *rb_string_value_ptr(volatile VALUE*);
3245 char *rb_string_value_cstr(volatile VALUE*);
3246
3247
3248
3249
3250
3251 void rb_check_safe_obj(VALUE);
3252 void rb_check_safe_str(VALUE);
3253
3254
3255
3256
3257
3258
3259
3260 VALUE rb_str_export(VALUE);
3261
3262
3263
3264
3265 VALUE rb_str_export_locale(VALUE);
3266
3267 VALUE rb_get_path(VALUE);
3268
3269
3270 VALUE rb_get_path_no_checksafe(VALUE);
3271
3272
3273 void rb_secure(int);
3274 int rb_safe_level(void);
3275 void rb_set_safe_level(int);
3276 void rb_set_safe_level_force(int);
3277 void rb_secure_update(VALUE);
3278
3279 VALUE rb_errinfo(void);
3280 void rb_set_errinfo(VALUE);
3281
3282 long rb_num2long(VALUE);
3283 VALUE rb_num2ulong(VALUE);
3284 static inline long
3285 NUM2LONG(VALUE x)
3286 {
3287 return (((long)(x))&RUBY_FIXNUM_FLAG) ? (((long)x)>>(int)1) : rb_num2long(x);
3288 }
3289 # 427 "./include/ruby/ruby.h"
3290 long long rb_num2ll(VALUE);
3291 unsigned long long rb_num2ull(VALUE);
3292 static inline long long
3293 NUM2LL(VALUE x)
3294 {
3295 return (((long)(x))&RUBY_FIXNUM_FLAG) ? (((long)x)>>(int)1) : rb_num2ll(x);
3296 }
3297 # 451 "./include/ruby/ruby.h"
3298 double rb_num2dbl(VALUE);
3299
3300
3301 VALUE rb_uint2big(VALUE);
3302 VALUE rb_int2big(long);
3303
3304
3305
3306
3307
3308 static inline VALUE
3309 INT2NUM(int v)
3310 {
3311 if (!(((v) < (2147483647L>>1)+1) && ((v) >= (((long)(-2147483647L - 1L))>>(int)1))))
3312 return rb_int2big(v);
3313 return ((VALUE)(((long)(v))<<1 | RUBY_FIXNUM_FLAG));
3314 }
3315
3316 static inline VALUE
3317 UINT2NUM(unsigned int v)
3318 {
3319 if (!((v) < (2147483647L>>1)+1))
3320 return rb_uint2big(v);
3321 return ((VALUE)(((long)(v))<<1 | RUBY_FIXNUM_FLAG));
3322 }
3323
3324
3325 static inline VALUE
3326 LONG2NUM(long v)
3327 {
3328 if ((((v) < (2147483647L>>1)+1) && ((v) >= (((long)(-2147483647L - 1L))>>(int)1)))) return ((VALUE)(((long)(v))<<1 | RUBY_FIXNUM_FLAG));
3329 return rb_int2big(v);
3330 }
3331
3332 static inline VALUE
3333 ULONG2NUM(unsigned long v)
3334 {
3335 if (((v) < (2147483647L>>1)+1)) return ((VALUE)(((long)(v))<<1 | RUBY_FIXNUM_FLAG));
3336 return rb_uint2big(v);
3337 }
3338
3339
3340 char *rb_str2cstr(VALUE,long*);
3341
3342
3343
3344
3345
3346
3347
3348 VALUE rb_newobj(void);
3349 # 518 "./include/ruby/ruby.h"
3350 struct RBasic {
3351 VALUE flags;
3352 VALUE klass;
3353 };
3354
3355
3356 struct RObject {
3357 struct RBasic basic;
3358 union {
3359 struct {
3360 long numiv;
3361 VALUE *ivptr;
3362 struct st_table *iv_index_tbl;
3363 } heap;
3364 VALUE ary[3];
3365 } as;
3366 };
3367 # 549 "./include/ruby/ruby.h"
3368 typedef struct {
3369 VALUE super;
3370 struct st_table *iv_tbl;
3371 } rb_classext_t;
3372
3373 struct RClass {
3374 struct RBasic basic;
3375 rb_classext_t *ptr;
3376 struct st_table *m_tbl;
3377 struct st_table *iv_index_tbl;
3378 };
3379 # 568 "./include/ruby/ruby.h"
3380 struct RFloat {
3381 struct RBasic basic;
3382 double float_value;
3383 };
3384
3385
3386
3387
3388
3389
3390 struct RString {
3391 struct RBasic basic;
3392 union {
3393 struct {
3394 long len;
3395 char *ptr;
3396 union {
3397 long capa;
3398 VALUE shared;
3399 } aux;
3400 } heap;
3401 char ary[((sizeof(VALUE)*3)/sizeof(char)-1) + 1];
3402 } as;
3403 };
3404 # 607 "./include/ruby/ruby.h"
3405 struct RArray {
3406 struct RBasic basic;
3407 union {
3408 struct {
3409 long len;
3410 union {
3411 long capa;
3412 VALUE shared;
3413 } aux;
3414 VALUE *ptr;
3415 } heap;
3416 VALUE ary[3];
3417 } as;
3418 };
3419 # 635 "./include/ruby/ruby.h"
3420 struct RRegexp {
3421 struct RBasic basic;
3422 struct re_pattern_buffer *ptr;
3423 VALUE src;
3424 unsigned long usecnt;
3425 };
3426
3427
3428
3429
3430 struct RHash {
3431 struct RBasic basic;
3432 struct st_table *ntbl;
3433 int iter_lev;
3434 VALUE ifnone;
3435 };
3436
3437
3438
3439
3440
3441
3442
3443 struct RFile {
3444 struct RBasic basic;
3445 struct rb_io_t *fptr;
3446 };
3447
3448 struct RRational {
3449 struct RBasic basic;
3450 VALUE num;
3451 VALUE den;
3452 };
3453
3454 struct RComplex {
3455 struct RBasic basic;
3456 VALUE real;
3457 VALUE imag;
3458 };
3459
3460 struct RData {
3461 struct RBasic basic;
3462 void (*dmark)(void*);
3463 void (*dfree)(void*);
3464 void *data;
3465 };
3466
3467
3468
3469
3470
3471
3472 typedef void (*RUBY_DATA_FUNC)(void*);
3473
3474 VALUE rb_data_object_alloc(VALUE,void*,RUBY_DATA_FUNC,RUBY_DATA_FUNC);
3475 # 706 "./include/ruby/ruby.h"
3476 struct RStruct {
3477 struct RBasic basic;
3478 union {
3479 struct {
3480 long len;
3481 VALUE *ptr;
3482 } heap;
3483 VALUE ary[3];
3484 } as;
3485 };
3486 # 729 "./include/ruby/ruby.h"
3487 struct RBignum {
3488 struct RBasic basic;
3489 union {
3490 struct {
3491 long len;
3492 unsigned int *digits;
3493 } heap;
3494 unsigned int ary[((sizeof(VALUE)*3)/sizeof(unsigned int))];
3495 } as;
3496 };
3497 # 841 "./include/ruby/ruby.h"
3498 void rb_obj_infect(VALUE,VALUE);
3499
3500 typedef int ruby_glob_func(const char*,VALUE, void*);
3501 void rb_glob(const char*,void(*)(const char*,VALUE,void*),VALUE);
3502 int ruby_glob(const char*,int,ruby_glob_func*,VALUE);
3503 int ruby_brace_glob(const char*,int,ruby_glob_func*,VALUE);
3504
3505 VALUE rb_define_class(const char*,VALUE);
3506 VALUE rb_define_module(const char*);
3507 VALUE rb_define_class_under(VALUE, const char*, VALUE);
3508 VALUE rb_define_module_under(VALUE, const char*);
3509
3510 void rb_include_module(VALUE,VALUE);
3511 void rb_extend_object(VALUE,VALUE);
3512
3513 struct rb_global_variable;
3514
3515 typedef VALUE rb_gvar_getter_t(ID id, void *data, struct rb_global_variable *gvar);
3516 typedef void rb_gvar_setter_t(VALUE val, ID id, void *data, struct rb_global_variable *gvar);
3517 typedef void rb_gvar_marker_t(VALUE *var);
3518
3519 VALUE rb_gvar_undef_getter(ID id, void *data, struct rb_global_variable *gvar);
3520 void rb_gvar_undef_setter(VALUE val, ID id, void *data, struct rb_global_variable *gvar);
3521 void rb_gvar_undef_marker(VALUE *var);
3522
3523 VALUE rb_gvar_val_getter(ID id, void *data, struct rb_global_variable *gvar);
3524 void rb_gvar_val_setter(VALUE val, ID id, void *data, struct rb_global_variable *gvar);
3525 void rb_gvar_val_marker(VALUE *var);
3526
3527 VALUE rb_gvar_var_getter(ID id, void *data, struct rb_global_variable *gvar);
3528 void rb_gvar_var_setter(VALUE val, ID id, void *data, struct rb_global_variable *gvar);
3529 void rb_gvar_var_marker(VALUE *var);
3530
3531 void rb_gvar_readonly_setter(VALUE val, ID id, void *data, struct rb_global_variable *gvar);
3532
3533 void rb_define_variable(const char*,VALUE*);
3534 void rb_define_virtual_variable(const char*,VALUE(*)(),void(*)());
3535 void rb_define_hooked_variable(const char*,VALUE*,VALUE(*)(),void(*)());
3536 void rb_define_readonly_variable(const char*,VALUE*);
3537 void rb_define_const(VALUE,const char*,VALUE);
3538 void rb_define_global_const(const char*,VALUE);
3539
3540
3541 void rb_define_method(VALUE,const char*,VALUE(*)(),int);
3542 void rb_define_module_function(VALUE,const char*,VALUE(*)(),int);
3543 void rb_define_global_function(const char*,VALUE(*)(),int);
3544
3545 void rb_undef_method(VALUE,const char*);
3546 void rb_define_alias(VALUE,const char*,const char*);
3547 void rb_define_attr(VALUE,const char*,int,int);
3548
3549 void rb_global_variable(VALUE*);
3550 void rb_gc_register_mark_object(VALUE);
3551 void rb_gc_register_address(VALUE*);
3552 void rb_gc_unregister_address(VALUE*);
3553
3554 ID rb_intern(const char*);
3555 ID rb_intern2(const char*, long);
3556 ID rb_intern_str(VALUE str);
3557 const char *rb_id2name(ID);
3558 ID rb_to_id(VALUE);
3559 VALUE rb_id2str(ID);
3560 # 928 "./include/ruby/ruby.h"
3561 const char *rb_class2name(VALUE);
3562 const char *rb_obj_classname(VALUE);
3563
3564 void rb_p(VALUE);
3565
3566 VALUE rb_eval_string(const char*);
3567 VALUE rb_eval_string_protect(const char*, int*);
3568 VALUE rb_eval_string_wrap(const char*, int*);
3569 VALUE rb_funcall(VALUE, ID, int, ...);
3570 VALUE rb_funcall2(VALUE, ID, int, const VALUE*);
3571 VALUE rb_funcall3(VALUE, ID, int, const VALUE*);
3572 int rb_scan_args(int, const VALUE*, const char*, ...);
3573 VALUE rb_call_super(int, const VALUE*);
3574
3575 VALUE rb_gv_set(const char*, VALUE);
3576 VALUE rb_gv_get(const char*);
3577 VALUE rb_iv_get(VALUE, const char*);
3578 VALUE rb_iv_set(VALUE, const char*, VALUE);
3579
3580 VALUE rb_equal(VALUE,VALUE);
3581
3582 VALUE *rb_ruby_verbose_ptr(void);
3583 VALUE *rb_ruby_debug_ptr(void);
3584
3585
3586
3587 __attribute__ ((noreturn)) void rb_raise(VALUE, const char*, ...) __attribute__((format(printf, 2, 3)));
3588 __attribute__ ((noreturn)) void rb_fatal(const char*, ...) __attribute__((format(printf, 1, 2)));
3589 __attribute__ ((noreturn)) void rb_bug(const char*, ...) __attribute__((format(printf, 1, 2)));
3590 __attribute__ ((noreturn)) void rb_sys_fail(const char*);
3591 __attribute__ ((noreturn)) void rb_iter_break(void);
3592 __attribute__ ((noreturn)) void rb_exit(int);
3593 __attribute__ ((noreturn)) void rb_notimplement(void);
3594
3595
3596 void rb_warning(const char*, ...) __attribute__((format(printf, 1, 2)));
3597 void rb_compile_warning(const char *, int, const char*, ...) __attribute__((format(printf, 3, 4)));
3598 void rb_sys_warning(const char*, ...) __attribute__((format(printf, 1, 2)));
3599
3600 void rb_warn(const char*, ...) __attribute__((format(printf, 1, 2)));
3601 void rb_compile_warn(const char *, int, const char*, ...) __attribute__((format(printf, 3, 4)));
3602
3603 typedef VALUE rb_block_call_func(VALUE, VALUE, int, VALUE*);
3604
3605 VALUE rb_each(VALUE);
3606 VALUE rb_yield(VALUE);
3607 VALUE rb_yield_values(int n, ...);
3608 VALUE rb_yield_values2(int n, const VALUE *argv);
3609 VALUE rb_yield_splat(VALUE);
3610 int rb_block_given_p(void);
3611 void rb_need_block(void);
3612 VALUE rb_iterate(VALUE(*)(VALUE),VALUE,VALUE(*)(),VALUE);
3613 VALUE rb_block_call(VALUE,ID,int,VALUE*,VALUE(*)(),VALUE);
3614 VALUE rb_rescue(VALUE(*)(),VALUE,VALUE(*)(),VALUE);
3615 VALUE rb_rescue2(VALUE(*)(),VALUE,VALUE(*)(),VALUE,...);
3616 VALUE rb_ensure(VALUE(*)(),VALUE,VALUE(*)(),VALUE);
3617 VALUE rb_catch(const char*,VALUE(*)(),VALUE);
3618 VALUE rb_catch_obj(VALUE,VALUE(*)(),VALUE);
3619 __attribute__ ((noreturn)) void rb_throw(const char*,VALUE);
3620 __attribute__ ((noreturn)) void rb_throw_obj(VALUE,VALUE);
3621
3622 VALUE rb_require(const char*);
3623
3624
3625
3626
3627
3628 void ruby_init_stack(VALUE*);
3629
3630
3631
3632
3633 void ruby_init(void);
3634 void *ruby_options(int, char**);
3635 int ruby_run_node(void *);
3636
3637 extern VALUE rb_mKernel;
3638 extern VALUE rb_mComparable;
3639 extern VALUE rb_mEnumerable;
3640 extern VALUE rb_mErrno;
3641 extern VALUE rb_mFileTest;
3642 extern VALUE rb_mGC;
3643 extern VALUE rb_mMath;
3644 extern VALUE rb_mProcess;
3645
3646 extern VALUE rb_cBasicObject;
3647 extern VALUE rb_cObject;
3648 extern VALUE rb_cArray;
3649 extern VALUE rb_cBignum;
3650 extern VALUE rb_cBinding;
3651 extern VALUE rb_cClass;
3652 extern VALUE rb_cCont;
3653 extern VALUE rb_cDir;
3654 extern VALUE rb_cData;
3655 extern VALUE rb_cFalseClass;
3656 extern VALUE rb_cEncoding;
3657 extern VALUE rb_cEnumerator;
3658 extern VALUE rb_cFile;
3659 extern VALUE rb_cFixnum;
3660 extern VALUE rb_cFloat;
3661 extern VALUE rb_cHash;
3662 extern VALUE rb_cInteger;
3663 extern VALUE rb_cIO;
3664 extern VALUE rb_cMatch;
3665 extern VALUE rb_cMethod;
3666 extern VALUE rb_cModule;
3667 extern VALUE rb_cNameErrorMesg;
3668 extern VALUE rb_cNilClass;
3669 extern VALUE rb_cNumeric;
3670 extern VALUE rb_cProc;
3671 extern VALUE rb_cRange;
3672 extern VALUE rb_cRational;
3673 extern VALUE rb_cComplex;
3674 extern VALUE rb_cRegexp;
3675 extern VALUE rb_cStat;
3676 extern VALUE rb_cString;
3677 extern VALUE rb_cStruct;
3678 extern VALUE rb_cSymbol;
3679 extern VALUE rb_cThread;
3680 extern VALUE rb_cTime;
3681 extern VALUE rb_cTrueClass;
3682 extern VALUE rb_cUnboundMethod;
3683
3684 extern VALUE rb_eException;
3685 extern VALUE rb_eStandardError;
3686 extern VALUE rb_eSystemExit;
3687 extern VALUE rb_eInterrupt;
3688 extern VALUE rb_eSignal;
3689 extern VALUE rb_eFatal;
3690 extern VALUE rb_eArgError;
3691 extern VALUE rb_eEOFError;
3692 extern VALUE rb_eIndexError;
3693 extern VALUE rb_eStopIteration;
3694 extern VALUE rb_eKeyError;
3695 extern VALUE rb_eRangeError;
3696 extern VALUE rb_eIOError;
3697 extern VALUE rb_eRuntimeError;
3698 extern VALUE rb_eSecurityError;
3699 extern VALUE rb_eSystemCallError;
3700 extern VALUE rb_eThreadError;
3701 extern VALUE rb_eTypeError;
3702 extern VALUE rb_eZeroDivError;
3703 extern VALUE rb_eNotImpError;
3704 extern VALUE rb_eNoMemError;
3705 extern VALUE rb_eNoMethodError;
3706 extern VALUE rb_eFloatDomainError;
3707 extern VALUE rb_eLocalJumpError;
3708 extern VALUE rb_eSysStackError;
3709 extern VALUE rb_eRegexpError;
3710 extern VALUE rb_eEncodingError;
3711 extern VALUE rb_eEncCompatError;
3712
3713 extern VALUE rb_eScriptError;
3714 extern VALUE rb_eNameError;
3715 extern VALUE rb_eSyntaxError;
3716 extern VALUE rb_eLoadError;
3717
3718 extern VALUE rb_stdin, rb_stdout, rb_stderr;
3719
3720 static inline VALUE
3721 rb_class_of(VALUE obj)
3722 {
3723 if (((VALUE)(obj) & RUBY_IMMEDIATE_MASK)) {
3724 if ((((long)(obj))&RUBY_FIXNUM_FLAG)) return rb_cFixnum;
3725 if (obj == ((VALUE)RUBY_Qtrue)) return rb_cTrueClass;
3726 if ((((VALUE)(obj)&~(~(VALUE)0<<RUBY_SPECIAL_SHIFT))==RUBY_SYMBOL_FLAG)) return rb_cSymbol;
3727 }
3728 else if (!(((VALUE)(obj) & ~((VALUE)RUBY_Qnil)) != 0)) {
3729 if (obj == ((VALUE)RUBY_Qnil)) return rb_cNilClass;
3730 if (obj == ((VALUE)RUBY_Qfalse)) return rb_cFalseClass;
3731 }
3732 return ((struct RBasic*)(obj))->klass;
3733 }
3734
3735 static inline int
3736 rb_type(VALUE obj)
3737 {
3738 if (((VALUE)(obj) & RUBY_IMMEDIATE_MASK)) {
3739 if ((((long)(obj))&RUBY_FIXNUM_FLAG)) return RUBY_T_FIXNUM;
3740 if (obj == ((VALUE)RUBY_Qtrue)) return RUBY_T_TRUE;
3741 if ((((VALUE)(obj)&~(~(VALUE)0<<RUBY_SPECIAL_SHIFT))==RUBY_SYMBOL_FLAG)) return RUBY_T_SYMBOL;
3742 if (obj == ((VALUE)RUBY_Qundef)) return RUBY_T_UNDEF;
3743 }
3744 else if (!(((VALUE)(obj) & ~((VALUE)RUBY_Qnil)) != 0)) {
3745 if (obj == ((VALUE)RUBY_Qnil)) return RUBY_T_NIL;
3746 if (obj == ((VALUE)RUBY_Qfalse)) return RUBY_T_FALSE;
3747 }
3748 return (((struct RBasic*)(obj))->flags & RUBY_T_MASK);
3749 }
3750
3751 static inline int
3752 rb_special_const_p(VALUE obj)
3753 {
3754 if ((((VALUE)(obj) & RUBY_IMMEDIATE_MASK) || !(((VALUE)(obj) & ~((VALUE)RUBY_Qnil)) != 0))) return ((VALUE)RUBY_Qtrue);
3755 return ((VALUE)RUBY_Qfalse);
3756 }
3757
3758 # 1 "./include/ruby/missing.h" 1
3759 # 22 "./include/ruby/missing.h"
3760 # 1 "/usr/include/sys/time.h" 1 3 4
3761 # 27 "/usr/include/sys/time.h" 3 4
3762 # 1 "/usr/include/time.h" 1 3 4
3763 # 28 "/usr/include/sys/time.h" 2 3 4
3764
3765 # 1 "/usr/include/bits/time.h" 1 3 4
3766 # 30 "/usr/include/sys/time.h" 2 3 4
3767 # 39 "/usr/include/sys/time.h" 3 4
3768
3769 # 57 "/usr/include/sys/time.h" 3 4
3770 struct timezone
3771 {
3772 int tz_minuteswest;
3773 int tz_dsttime;
3774 };
3775
3776 typedef struct timezone *__restrict __timezone_ptr_t;
3777 # 73 "/usr/include/sys/time.h" 3 4
3778 extern int gettimeofday (struct timeval *__restrict __tv,
3779 __timezone_ptr_t __tz) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3780
3781
3782
3783
3784 extern int settimeofday (__const struct timeval *__tv,
3785 __const struct timezone *__tz)
3786 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3787
3788
3789
3790
3791
3792 extern int adjtime (__const struct timeval *__delta,
3793 struct timeval *__olddelta) __attribute__ ((__nothrow__));
3794
3795
3796
3797
3798 enum __itimer_which
3799 {
3800
3801 ITIMER_REAL = 0,
3802
3803
3804 ITIMER_VIRTUAL = 1,
3805
3806
3807
3808 ITIMER_PROF = 2
3809
3810 };
3811
3812
3813
3814 struct itimerval
3815 {
3816
3817 struct timeval it_interval;
3818
3819 struct timeval it_value;
3820 };
3821
3822
3823
3824
3825 typedef enum __itimer_which __itimer_which_t;
3826
3827
3828
3829
3830
3831
3832 extern int getitimer (__itimer_which_t __which,
3833 struct itimerval *__value) __attribute__ ((__nothrow__));
3834
3835
3836
3837
3838 extern int setitimer (__itimer_which_t __which,
3839 __const struct itimerval *__restrict __new,
3840 struct itimerval *__restrict __old) __attribute__ ((__nothrow__));
3841
3842
3843
3844
3845 extern int utimes (__const char *__file, __const struct timeval __tvp[2])
3846 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3847
3848
3849
3850 extern int lutimes (__const char *__file, __const struct timeval __tvp[2])
3851 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3852
3853
3854 extern int futimes (int __fd, __const struct timeval __tvp[2]) __attribute__ ((__nothrow__));
3855
3856
3857
3858
3859
3860
3861 extern int futimesat (int __fd, __const char *__file,
3862 __const struct timeval __tvp[2]) __attribute__ ((__nothrow__));
3863 # 191 "/usr/include/sys/time.h" 3 4
3864
3865 # 23 "./include/ruby/missing.h" 2
3866 # 148 "./include/ruby/missing.h"
3867 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stdarg.h" 1 3 4
3868 # 149 "./include/ruby/missing.h" 2
3869 # 158 "./include/ruby/missing.h"
3870 extern size_t strlcpy(char *, const char*, size_t);
3871
3872
3873
3874 extern size_t strlcat(char *, const char*, size_t);
3875 # 1126 "./include/ruby/ruby.h" 2
3876 # 1 "./include/ruby/intern.h" 1
3877 # 29 "./include/ruby/intern.h"
3878 # 1 "./include/ruby/st.h" 1
3879 # 24 "./include/ruby/st.h"
3880 # 1 "/usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h" 1 3 4
3881 # 25 "./include/ruby/st.h" 2
3882
3883
3884
3885
3886
3887 typedef unsigned long st_data_t;
3888 # 56 "./include/ruby/st.h"
3889 typedef struct st_table st_table;
3890
3891 typedef int st_compare_func(st_data_t, st_data_t);
3892 typedef int st_hash_func(st_data_t);
3893
3894 struct st_hash_type {
3895 int (*compare)( );
3896 int (*hash)( );
3897 };
3898
3899 typedef st_data_t st_index_t;
3900
3901
3902 struct st_table {
3903 const struct st_hash_type *type;
3904 st_index_t num_bins;
3905 unsigned int entries_packed : 1;
3906
3907 __extension__
3908
3909 st_index_t num_entries : (sizeof(st_index_t) * 8) - 1;
3910 struct st_table_entry **bins;
3911 struct st_table_entry *head;
3912 };
3913
3914
3915
3916 enum st_retval {ST_CONTINUE, ST_STOP, ST_DELETE, ST_CHECK};
3917
3918 st_table *st_init_table(const struct st_hash_type *);
3919 st_table *st_init_table_with_size(const struct st_hash_type *, int);
3920 st_table *st_init_numtable(void);
3921 st_table *st_init_numtable_with_size(int);
3922 st_table *st_init_strtable(void);
3923 st_table *st_init_strtable_with_size(int);
3924 st_table *st_init_strcasetable(void);
3925 st_table *st_init_strcasetable_with_size(int);
3926 int st_delete(st_table *, st_data_t *, st_data_t *);
3927 int st_delete_safe(st_table *, st_data_t *, st_data_t *, st_data_t);
3928 int st_insert(st_table *, st_data_t, st_data_t);
3929 int st_lookup(st_table *, st_data_t, st_data_t *);
3930 int st_get_key(st_table *, st_data_t, st_data_t *);
3931 int st_foreach(st_table *, int (*)(), st_data_t);
3932 int st_reverse_foreach(st_table *, int (*)(), st_data_t);
3933 void st_add_direct(st_table *, st_data_t, st_data_t);
3934 void st_free_table(st_table *);
3935 void st_cleanup_safe(st_table *, st_data_t);
3936 void st_clear(st_table *);
3937 st_table *st_copy(st_table *);
3938 int st_numcmp(st_data_t, st_data_t);
3939 int st_numhash(st_data_t);
3940 int st_strcasecmp(const char *s1, const char *s2);
3941 int st_strncasecmp(const char *s1, const char *s2, size_t n);
3942 # 30 "./include/ruby/intern.h" 2
3943 # 39 "./include/ruby/intern.h"
3944 void rb_mem_clear(register VALUE*, register long);
3945 VALUE rb_assoc_new(VALUE, VALUE);
3946 VALUE rb_check_array_type(VALUE);
3947 VALUE rb_ary_new(void);
3948 VALUE rb_ary_new2(long);
3949 VALUE rb_ary_new3(long,...);
3950 VALUE rb_ary_new4(long, const VALUE *);
3951 VALUE rb_ary_tmp_new(long);
3952 void rb_ary_free(VALUE);
3953 VALUE rb_ary_freeze(VALUE);
3954 VALUE rb_ary_aref(int, VALUE*, VALUE);
3955 VALUE rb_ary_subseq(VALUE, long, long);
3956 void rb_ary_store(VALUE, long, VALUE);
3957 VALUE rb_ary_dup(VALUE);
3958 VALUE rb_ary_to_ary(VALUE);
3959 VALUE rb_ary_to_s(VALUE);
3960 VALUE rb_ary_push(VALUE, VALUE);
3961 VALUE rb_ary_pop(VALUE);
3962 VALUE rb_ary_shift(VALUE);
3963 VALUE rb_ary_unshift(VALUE, VALUE);
3964 VALUE rb_ary_entry(VALUE, long);
3965 VALUE rb_ary_each(VALUE);
3966 VALUE rb_ary_join(VALUE, VALUE);
3967 VALUE rb_ary_print_on(VALUE, VALUE);
3968 VALUE rb_ary_reverse(VALUE);
3969 VALUE rb_ary_sort(VALUE);
3970 VALUE rb_ary_sort_bang(VALUE);
3971 VALUE rb_ary_delete(VALUE, VALUE);
3972 VALUE rb_ary_delete_at(VALUE, long);
3973 VALUE rb_ary_clear(VALUE);
3974 VALUE rb_ary_plus(VALUE, VALUE);
3975 VALUE rb_ary_concat(VALUE, VALUE);
3976 VALUE rb_ary_assoc(VALUE, VALUE);
3977 VALUE rb_ary_rassoc(VALUE, VALUE);
3978 VALUE rb_ary_includes(VALUE, VALUE);
3979 VALUE rb_ary_cmp(VALUE, VALUE);
3980 VALUE rb_ary_replace(VALUE copy, VALUE orig);
3981 VALUE rb_get_values_at(VALUE, long, int, VALUE*, VALUE(*)(VALUE,long));
3982
3983 VALUE rb_big_clone(VALUE);
3984 void rb_big_2comp(VALUE);
3985 VALUE rb_big_norm(VALUE);
3986 void rb_big_resize(VALUE big, long len);
3987 VALUE rb_uint2big(VALUE);
3988 VALUE rb_int2big(long);
3989 VALUE rb_uint2inum(VALUE);
3990 VALUE rb_int2inum(long);
3991 VALUE rb_cstr_to_inum(const char*, int, int);
3992 VALUE rb_str_to_inum(VALUE, int, int);
3993 VALUE rb_cstr2inum(const char*, int);
3994 VALUE rb_str2inum(VALUE, int);
3995 VALUE rb_big2str(VALUE, int);
3996 VALUE rb_big2str0(VALUE, int, int);
3997 long rb_big2long(VALUE);
3998
3999 VALUE rb_big2ulong(VALUE);
4000
4001
4002 VALUE rb_ll2inum(long long);
4003 VALUE rb_ull2inum(unsigned long long);
4004 long long rb_big2ll(VALUE);
4005 unsigned long long rb_big2ull(VALUE);
4006
4007 void rb_quad_pack(char*,VALUE);
4008 VALUE rb_quad_unpack(const char*,int);
4009 int rb_uv_to_utf8(char[6],unsigned long);
4010 VALUE rb_dbl2big(double);
4011 double rb_big2dbl(VALUE);
4012 VALUE rb_big_cmp(VALUE, VALUE);
4013 VALUE rb_big_eq(VALUE, VALUE);
4014 VALUE rb_big_plus(VALUE, VALUE);
4015 VALUE rb_big_minus(VALUE, VALUE);
4016 VALUE rb_big_mul(VALUE, VALUE);
4017 VALUE rb_big_div(VALUE, VALUE);
4018 VALUE rb_big_modulo(VALUE, VALUE);
4019 VALUE rb_big_divmod(VALUE, VALUE);
4020 VALUE rb_big_pow(VALUE, VALUE);
4021 VALUE rb_big_and(VALUE, VALUE);
4022 VALUE rb_big_or(VALUE, VALUE);
4023 VALUE rb_big_xor(VALUE, VALUE);
4024 VALUE rb_big_lshift(VALUE, VALUE);
4025 VALUE rb_big_rshift(VALUE, VALUE);
4026
4027 VALUE rb_rational_raw(VALUE, VALUE);
4028
4029
4030 VALUE rb_rational_new(VALUE, VALUE);
4031
4032
4033 VALUE rb_Rational(VALUE, VALUE);
4034
4035
4036
4037 VALUE rb_complex_raw(VALUE, VALUE);
4038
4039
4040 VALUE rb_complex_new(VALUE, VALUE);
4041
4042
4043 VALUE rb_complex_polar(VALUE, VALUE);
4044 VALUE rb_Complex(VALUE, VALUE);
4045
4046
4047
4048 VALUE rb_class_boot(VALUE);
4049 VALUE rb_class_new(VALUE);
4050 VALUE rb_mod_init_copy(VALUE, VALUE);
4051 VALUE rb_class_init_copy(VALUE, VALUE);
4052 VALUE rb_singleton_class_clone(VALUE);
4053 void rb_singleton_class_attached(VALUE,VALUE);
4054 VALUE rb_make_metaclass(VALUE, VALUE);
4055 void rb_check_inheritable(VALUE);
4056 VALUE rb_class_inherited(VALUE, VALUE);
4057 VALUE rb_define_class_id(ID, VALUE);
4058 VALUE rb_module_new(void);
4059 VALUE rb_define_module_id(ID);
4060 VALUE rb_mod_included_modules(VALUE);
4061 VALUE rb_mod_include_p(VALUE, VALUE);
4062 VALUE rb_mod_ancestors(VALUE);
4063 VALUE rb_class_instance_methods(int, VALUE*, VALUE);
4064 VALUE rb_class_public_instance_methods(int, VALUE*, VALUE);
4065 VALUE rb_class_protected_instance_methods(int, VALUE*, VALUE);
4066 VALUE rb_class_private_instance_methods(int, VALUE*, VALUE);
4067 VALUE rb_obj_singleton_methods(int, VALUE*, VALUE);
4068 void rb_define_method_id(VALUE, ID, VALUE (*)(), int);
4069 void rb_frozen_class_p(VALUE);
4070 void rb_undef(VALUE, ID);
4071 void rb_define_protected_method(VALUE, const char*, VALUE (*)(), int);
4072 void rb_define_private_method(VALUE, const char*, VALUE (*)(), int);
4073 void rb_define_singleton_method(VALUE, const char*, VALUE(*)(), int);
4074 VALUE rb_singleton_class(VALUE);
4075
4076 int rb_cmpint(VALUE, VALUE, VALUE);
4077 __attribute__ ((noreturn)) void rb_cmperr(VALUE, VALUE);
4078
4079 VALUE rb_fiber_new(VALUE (*)(), VALUE);
4080 VALUE rb_fiber_resume(VALUE fib, int argc, VALUE *args);
4081 VALUE rb_fiber_yield(int argc, VALUE *args);
4082 VALUE rb_fiber_current(void);
4083 VALUE rb_fiber_alive_p(VALUE);
4084
4085
4086 VALUE rb_enumeratorize(VALUE, VALUE, int, VALUE *);
4087
4088
4089
4090
4091
4092
4093 VALUE rb_exc_new(VALUE, const char*, long);
4094 VALUE rb_exc_new2(VALUE, const char*);
4095 VALUE rb_exc_new3(VALUE, VALUE);
4096 __attribute__ ((noreturn)) void rb_loaderror(const char*, ...) __attribute__((format(printf, 1, 2)));
4097 __attribute__ ((noreturn)) void rb_name_error(ID, const char*, ...) __attribute__((format(printf, 2, 3)));
4098 __attribute__ ((noreturn)) void rb_invalid_str(const char*, const char*);
4099 void rb_compile_error(const char*, int, const char*, ...) __attribute__((format(printf, 3, 4)));
4100 void rb_compile_error_append(const char*, ...) __attribute__((format(printf, 1, 2)));
4101 __attribute__ ((noreturn)) void rb_load_fail(const char*);
4102 __attribute__ ((noreturn)) void rb_error_frozen(const char*);
4103 void rb_check_frozen(VALUE);
4104
4105 int rb_sourceline(void);
4106 const char *rb_sourcefile(void);
4107
4108
4109 typedef struct {
4110 int maxfd;
4111 fd_set *fdset;
4112 } rb_fdset_t;
4113
4114 void rb_fd_init(volatile rb_fdset_t *);
4115 void rb_fd_term(rb_fdset_t *);
4116 void rb_fd_zero(rb_fdset_t *);
4117 void rb_fd_set(int, rb_fdset_t *);
4118 void rb_fd_clr(int, rb_fdset_t *);
4119 int rb_fd_isset(int, const rb_fdset_t *);
4120 void rb_fd_copy(rb_fdset_t *, const fd_set *, int);
4121 int rb_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
4122 # 237 "./include/ruby/intern.h"
4123 __attribute__ ((noreturn)) void rb_exc_raise(VALUE);
4124 __attribute__ ((noreturn)) void rb_exc_fatal(VALUE);
4125 VALUE rb_f_exit(int,VALUE*);
4126 VALUE rb_f_abort(int,VALUE*);
4127 void rb_remove_method(VALUE, const char*);
4128
4129
4130
4131 typedef VALUE (*rb_alloc_func_t)(VALUE);
4132 void rb_define_alloc_func(VALUE, rb_alloc_func_t);
4133 void rb_undef_alloc_func(VALUE);
4134 rb_alloc_func_t rb_get_alloc_func(VALUE);
4135 void rb_clear_cache(void);
4136 void rb_clear_cache_by_class(VALUE);
4137 void rb_alias(VALUE, ID, ID);
4138 void rb_attr(VALUE,ID,int,int,int);
4139 int rb_method_boundp(VALUE, ID, int);
4140 int rb_method_basic_definition_p(VALUE, ID);
4141 VALUE rb_eval_cmd(VALUE, VALUE, int);
4142 int rb_obj_respond_to(VALUE, ID, int);
4143 int rb_respond_to(VALUE, ID);
4144 void rb_interrupt(void);
4145 VALUE rb_apply(VALUE, ID, VALUE);
4146 void rb_backtrace(void);
4147 ID rb_frame_this_func(void);
4148 VALUE rb_obj_instance_eval(int, VALUE*, VALUE);
4149 VALUE rb_obj_instance_exec(int, VALUE*, VALUE);
4150 VALUE rb_mod_module_eval(int, VALUE*, VALUE);
4151 VALUE rb_mod_module_exec(int, VALUE*, VALUE);
4152 void rb_load(VALUE, int);
4153 void rb_load_protect(VALUE, int, int*);
4154 __attribute__ ((noreturn)) void rb_jump_tag(int);
4155 int rb_provided(const char*);
4156 int rb_feature_provided(const char *, const char **);
4157 void rb_provide(const char*);
4158 VALUE rb_f_require(VALUE, VALUE);
4159 VALUE rb_require_safe(VALUE, int);
4160 void rb_obj_call_init(VALUE, int, VALUE*);
4161 VALUE rb_class_new_instance(int, VALUE*, VALUE);
4162 VALUE rb_block_proc(void);
4163 VALUE rb_f_lambda(void);
4164 VALUE rb_proc_new(VALUE (*)( ), VALUE);
4165 VALUE rb_proc_call(VALUE, VALUE);
4166 VALUE rb_proc_call_with_block(VALUE, int argc, VALUE *argv, VALUE);
4167 int rb_proc_arity(VALUE);
4168 VALUE rb_binding_new(void);
4169 VALUE rb_obj_method(VALUE, VALUE);
4170 VALUE rb_method_call(int, VALUE*, VALUE);
4171 int rb_mod_method_arity(VALUE, ID);
4172 int rb_obj_method_arity(VALUE, ID);
4173 VALUE rb_protect(VALUE (*)(VALUE), VALUE, int*);
4174 void rb_set_end_proc(void (*)(VALUE), VALUE);
4175 void rb_mark_end_proc(void);
4176 void rb_exec_end_proc(void);
4177 void Init_jump(void);
4178 void ruby_finalize(void);
4179 __attribute__ ((noreturn)) void ruby_stop(int);
4180 int ruby_cleanup(int);
4181 void rb_gc_mark_threads(void);
4182 void rb_thread_schedule(void);
4183 void rb_thread_wait_fd(int);
4184 int rb_thread_fd_writable(int);
4185 void rb_thread_fd_close(int);
4186 int rb_thread_alone(void);
4187 void rb_thread_polling(void);
4188 void rb_thread_sleep(int);
4189 void rb_thread_sleep_forever(void);
4190 VALUE rb_thread_stop(void);
4191 VALUE rb_thread_wakeup(VALUE);
4192 VALUE rb_thread_run(VALUE);
4193 VALUE rb_thread_kill(VALUE);
4194 VALUE rb_thread_create(VALUE (*)(), void*);
4195 void rb_thread_signal_raise(void *, int);
4196 void rb_thread_signal_exit(void *);
4197 int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
4198 void rb_thread_wait_for(struct timeval);
4199 VALUE rb_thread_current(void);
4200 VALUE rb_thread_main(void);
4201 VALUE rb_thread_local_aref(VALUE, ID);
4202 VALUE rb_thread_local_aset(VALUE, ID, VALUE);
4203 void rb_thread_atfork(void);
4204 void rb_thread_atfork_before_exec(void);
4205 VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
4206
4207 VALUE rb_file_s_expand_path(int, VALUE *);
4208 VALUE rb_file_expand_path(VALUE, VALUE);
4209 VALUE rb_file_s_absolute_path(int, VALUE *);
4210 VALUE rb_file_absolute_path(VALUE, VALUE);
4211 void rb_file_const(const char*, VALUE);
4212 int rb_find_file_ext(VALUE*, const char* const*);
4213 VALUE rb_find_file(VALUE);
4214 char *rb_path_next(const char *);
4215 char *rb_path_skip_prefix(const char *);
4216 char *rb_path_last_separator(const char *);
4217 char *rb_path_end(const char *);
4218 VALUE rb_file_directory_p(VALUE,VALUE);
4219
4220 void ruby_set_stack_size(size_t);
4221 __attribute__ ((noreturn)) void rb_memerror(void);
4222 int ruby_stack_check(void);
4223 size_t ruby_stack_length(VALUE**);
4224 int rb_during_gc(void);
4225 void rb_gc_mark_locations(VALUE*, VALUE*);
4226 void rb_mark_tbl(struct st_table*);
4227 void rb_mark_set(struct st_table*);
4228 void rb_mark_hash(struct st_table*);
4229 void rb_gc_mark_maybe(VALUE);
4230 void rb_gc_mark(VALUE);
4231 void rb_gc_force_recycle(VALUE);
4232 void rb_gc(void);
4233 void rb_gc_copy_finalizer(VALUE,VALUE);
4234 void rb_gc_finalize_deferred(void);
4235 void rb_gc_call_finalizer_at_exit(void);
4236 VALUE rb_gc_enable(void);
4237 VALUE rb_gc_disable(void);
4238 VALUE rb_gc_start(void);
4239
4240 void st_foreach_safe(struct st_table *, int (*)(), st_data_t);
4241 void rb_hash_foreach(VALUE, int (*)(), VALUE);
4242 VALUE rb_hash(VALUE);
4243 VALUE rb_hash_new(void);
4244 VALUE rb_hash_dup(VALUE);
4245 VALUE rb_hash_freeze(VALUE);
4246 VALUE rb_hash_aref(VALUE, VALUE);
4247 VALUE rb_hash_lookup(VALUE, VALUE);
4248 VALUE rb_hash_lookup2(VALUE, VALUE, VALUE);
4249 VALUE rb_hash_fetch(VALUE, VALUE);
4250 VALUE rb_hash_aset(VALUE, VALUE, VALUE);
4251 VALUE rb_hash_delete_if(VALUE);
4252 VALUE rb_hash_delete(VALUE,VALUE);
4253 struct st_table *rb_hash_tbl(VALUE);
4254 int rb_path_check(const char*);
4255 int rb_env_path_tainted(void);
4256 VALUE rb_env_clear(void);
4257
4258
4259 extern VALUE rb_fs;
4260 extern VALUE rb_output_fs;
4261 extern VALUE rb_rs;
4262 extern VALUE rb_default_rs;
4263 extern VALUE rb_output_rs;
4264 VALUE rb_io_write(VALUE, VALUE);
4265 VALUE rb_io_gets(VALUE);
4266 VALUE rb_io_getbyte(VALUE);
4267 VALUE rb_io_ungetc(VALUE, VALUE);
4268 VALUE rb_io_ungetbyte(VALUE, VALUE);
4269 VALUE rb_io_close(VALUE);
4270 VALUE rb_io_flush(VALUE);
4271 VALUE rb_io_eof(VALUE);
4272 VALUE rb_io_binmode(VALUE);
4273 VALUE rb_io_ascii8bit_binmode(VALUE);
4274 VALUE rb_io_addstr(VALUE, VALUE);
4275 VALUE rb_io_printf(int, VALUE*, VALUE);
4276 VALUE rb_io_print(int, VALUE*, VALUE);
4277 VALUE rb_io_puts(int, VALUE*, VALUE);
4278 VALUE rb_io_fdopen(int, int, const char*);
4279 VALUE rb_file_open(const char*, const char*);
4280 VALUE rb_file_open_str(VALUE, const char*);
4281 VALUE rb_gets(void);
4282 void rb_write_error(const char*);
4283 void rb_write_error2(const char*, long);
4284 void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds);
4285 int rb_pipe(int *pipes);
4286
4287 VALUE rb_marshal_dump(VALUE, VALUE);
4288 VALUE rb_marshal_load(VALUE);
4289 void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE (*dumper)(VALUE), VALUE (*loader)(VALUE, VALUE));
4290
4291 void rb_num_zerodiv(void);
4292 VALUE rb_num_coerce_bin(VALUE, VALUE, ID);
4293 VALUE rb_num_coerce_cmp(VALUE, VALUE, ID);
4294 VALUE rb_num_coerce_relop(VALUE, VALUE, ID);
4295 VALUE rb_float_new(double);
4296 VALUE rb_num2fix(VALUE);
4297 VALUE rb_fix2str(VALUE, int);
4298 VALUE rb_dbl_cmp(double, double);
4299
4300 int rb_eql(VALUE, VALUE);
4301 VALUE rb_any_to_s(VALUE);
4302 VALUE rb_inspect(VALUE);
4303 VALUE rb_obj_is_instance_of(VALUE, VALUE);
4304 VALUE rb_obj_is_kind_of(VALUE, VALUE);
4305 VALUE rb_obj_alloc(VALUE);
4306 VALUE rb_obj_clone(VALUE);
4307 VALUE rb_obj_dup(VALUE);
4308 VALUE rb_obj_init_copy(VALUE,VALUE);
4309 VALUE rb_obj_taint(VALUE);
4310 VALUE rb_obj_tainted(VALUE);
4311 VALUE rb_obj_untaint(VALUE);
4312 VALUE rb_obj_freeze(VALUE);
4313 VALUE rb_obj_frozen_p(VALUE);
4314 VALUE rb_obj_id(VALUE);
4315 VALUE rb_obj_class(VALUE);
4316 VALUE rb_class_real(VALUE);
4317 VALUE rb_class_inherited_p(VALUE, VALUE);
4318 VALUE rb_convert_type(VALUE,int,const char*,const char*);
4319 VALUE rb_check_convert_type(VALUE,int,const char*,const char*);
4320 VALUE rb_check_to_integer(VALUE, const char *);
4321 VALUE rb_to_int(VALUE);
4322 VALUE rb_Integer(VALUE);
4323 VALUE rb_Float(VALUE);
4324 VALUE rb_String(VALUE);
4325 VALUE rb_Array(VALUE);
4326 double rb_cstr_to_dbl(const char*, int);
4327 double rb_str_to_dbl(VALUE, int);
4328
4329 extern int ruby_sourceline;
4330 extern char *ruby_sourcefile;
4331 ID rb_id_attrset(ID);
4332 void rb_gc_mark_parser(void);
4333 int rb_is_const_id(ID);
4334 int rb_is_instance_id(ID);
4335 int rb_is_class_id(ID);
4336 int rb_is_local_id(ID);
4337 int rb_is_junk_id(ID);
4338 int rb_symname_p(const char*);
4339 int rb_sym_interned_p(VALUE);
4340 void rb_gc_mark_symbols(void);
4341 VALUE rb_backref_get(void);
4342 void rb_backref_set(VALUE);
4343 VALUE rb_lastline_get(void);
4344 void rb_lastline_set(VALUE);
4345 VALUE rb_sym_all_symbols(void);
4346
4347 void rb_last_status_set(int status, pid_t pid);
4348 VALUE rb_last_status_get(void);
4349 struct rb_exec_arg {
4350 int argc;
4351 VALUE *argv;
4352 const char *prog;
4353 VALUE options;
4354 VALUE redirect_fds;
4355 };
4356 int rb_proc_exec_n(int, VALUE*, const char*);
4357 int rb_proc_exec(const char*);
4358 VALUE rb_exec_arg_init(int argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e);
4359 int rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val);
4360 void rb_exec_arg_fixup(struct rb_exec_arg *e);
4361 int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s);
4362 int rb_exec(const struct rb_exec_arg*);
4363 pid_t rb_fork(int*, int (*)(void*), void*, VALUE);
4364 VALUE rb_f_exec(int,VALUE*);
4365 pid_t rb_waitpid(pid_t pid, int *status, int flags);
4366 void rb_syswait(pid_t pid);
4367 pid_t rb_spawn(int, VALUE*);
4368 VALUE rb_proc_times(VALUE);
4369 VALUE rb_detach_process(pid_t pid);
4370
4371 VALUE rb_range_new(VALUE, VALUE, int);
4372 VALUE rb_range_beg_len(VALUE, long*, long*, long, int);
4373
4374 unsigned long rb_genrand_int32(void);
4375 double rb_genrand_real(void);
4376 void rb_reset_random_seed(void);
4377
4378
4379 int rb_memcicmp(const void*,const void*,long);
4380 void rb_match_busy(VALUE);
4381 VALUE rb_reg_nth_defined(int, VALUE);
4382 VALUE rb_reg_nth_match(int, VALUE);
4383 VALUE rb_reg_last_match(VALUE);
4384 VALUE rb_reg_match_pre(VALUE);
4385 VALUE rb_reg_match_post(VALUE);
4386 VALUE rb_reg_match_last(VALUE);
4387
4388 VALUE rb_reg_new_str(VALUE, int);
4389 VALUE rb_reg_new(const char *, long, int);
4390 VALUE rb_reg_match(VALUE, VALUE);
4391 VALUE rb_reg_match2(VALUE);
4392 int rb_reg_options(VALUE);
4393 void rb_set_kcode(const char*);
4394 const char* rb_get_kcode(void);
4395
4396
4397 extern VALUE rb_argv0;
4398 VALUE rb_get_argv(void);
4399 void *rb_load_file(const char*);
4400 void ruby_script(const char*);
4401 void ruby_prog_init(void);
4402 void ruby_set_argv(int, char**);
4403 void *ruby_process_options(int, char**);
4404 void ruby_init_loadpath(void);
4405 void ruby_incpush(const char*);
4406
4407 VALUE rb_f_kill(int, VALUE*);
4408 void rb_gc_mark_trap_list(void);
4409
4410
4411 void (*ruby_posix_signal(int, void (*)(int)))(int);
4412
4413 void ruby_sig_finalize(void);
4414 void rb_trap_exit(void);
4415 void rb_trap_exec(void);
4416 const char *ruby_signal_name(int);
4417 void ruby_default_signal(int);
4418
4419 VALUE rb_f_sprintf(int, const VALUE*);
4420 VALUE rb_sprintf(const char*, ...) __attribute__((format(printf, 1, 2)));
4421 VALUE rb_vsprintf(const char*, va_list);
4422 VALUE rb_str_catf(VALUE, const char*, ...) __attribute__((format(printf, 2, 3)));
4423 VALUE rb_str_vcatf(VALUE, const char*, va_list);
4424 VALUE rb_str_format(int, const VALUE *, VALUE);
4425
4426 VALUE rb_str_new(const char*, long);
4427 VALUE rb_str_new_cstr(const char*);
4428 VALUE rb_str_new2(const char*);
4429 VALUE rb_str_new_shared(VALUE);
4430 VALUE rb_str_new3(VALUE);
4431 VALUE rb_str_new_frozen(VALUE);
4432 VALUE rb_str_new4(VALUE);
4433 VALUE rb_str_new_with_class(VALUE, const char*, long);
4434 VALUE rb_str_new5(VALUE, const char*, long);
4435 VALUE rb_tainted_str_new_cstr(const char*);
4436 VALUE rb_tainted_str_new(const char*, long);
4437 VALUE rb_tainted_str_new2(const char*);
4438 VALUE rb_external_str_new(const char*, long);
4439 VALUE rb_external_str_new_cstr(const char*);
4440 VALUE rb_locale_str_new(const char*, long);
4441 VALUE rb_locale_str_new_cstr(const char*);
4442 VALUE rb_str_buf_new(long);
4443 VALUE rb_str_buf_new_cstr(const char*);
4444 VALUE rb_str_buf_new2(const char*);
4445 VALUE rb_str_tmp_new(long);
4446 VALUE rb_usascii_str_new(const char*, long);
4447 VALUE rb_usascii_str_new_cstr(const char*);
4448 VALUE rb_usascii_str_new2(const char*);
4449 void rb_str_free(VALUE);
4450 void rb_str_shared_replace(VALUE, VALUE);
4451 VALUE rb_str_buf_append(VALUE, VALUE);
4452 VALUE rb_str_buf_cat(VALUE, const char*, long);
4453 VALUE rb_str_buf_cat2(VALUE, const char*);
4454 VALUE rb_str_buf_cat_ascii(VALUE, const char*);
4455 VALUE rb_obj_as_string(VALUE);
4456 VALUE rb_check_string_type(VALUE);
4457 VALUE rb_str_dup(VALUE);
4458 VALUE rb_str_locktmp(VALUE);
4459 VALUE rb_str_unlocktmp(VALUE);
4460 VALUE rb_str_dup_frozen(VALUE);
4461
4462 VALUE rb_str_plus(VALUE, VALUE);
4463 VALUE rb_str_times(VALUE, VALUE);
4464 long rb_str_sublen(VALUE, long);
4465 VALUE rb_str_substr(VALUE, long, long);
4466 VALUE rb_str_subseq(VALUE, long, long);
4467 void rb_str_modify(VALUE);
4468 VALUE rb_str_freeze(VALUE);
4469 void rb_str_set_len(VALUE, long);
4470 VALUE rb_str_resize(VALUE, long);
4471 VALUE rb_str_cat(VALUE, const char*, long);
4472 VALUE rb_str_cat2(VALUE, const char*);
4473 VALUE rb_str_append(VALUE, VALUE);
4474 VALUE rb_str_concat(VALUE, VALUE);
4475 int rb_memhash(const void *ptr, long len);
4476 int rb_str_hash(VALUE);
4477 int rb_str_hash_cmp(VALUE,VALUE);
4478 int rb_str_comparable(VALUE, VALUE);
4479 int rb_str_cmp(VALUE, VALUE);
4480 VALUE rb_str_equal(VALUE str1, VALUE str2);
4481 VALUE rb_str_drop_bytes(VALUE, long);
4482 void rb_str_update(VALUE, long, long, VALUE);
4483 VALUE rb_str_inspect(VALUE);
4484 VALUE rb_str_dump(VALUE);
4485 VALUE rb_str_split(VALUE, const char*);
4486 void rb_str_associate(VALUE, VALUE);
4487 VALUE rb_str_associated(VALUE);
4488 void rb_str_setter(VALUE, ID, VALUE*);
4489 VALUE rb_str_intern(VALUE);
4490 VALUE rb_sym_to_s(VALUE);
4491 VALUE rb_str_length(VALUE);
4492 size_t rb_str_capacity(VALUE);
4493 # 666 "./include/ruby/intern.h"
4494 VALUE rb_struct_new(VALUE, ...);
4495 VALUE rb_struct_define(const char*, ...);
4496 VALUE rb_struct_alloc(VALUE, VALUE);
4497 VALUE rb_struct_initialize(VALUE, VALUE);
4498 VALUE rb_struct_aref(VALUE, VALUE);
4499 VALUE rb_struct_aset(VALUE, VALUE, VALUE);
4500 VALUE rb_struct_getmember(VALUE, ID);
4501 VALUE rb_struct_iv_get(VALUE, const char*);
4502 VALUE rb_struct_s_members(VALUE);
4503 VALUE rb_struct_members(VALUE);
4504 VALUE rb_struct_alloc_noinit(VALUE);
4505 VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t, ...);
4506
4507 typedef void rb_unblock_function_t(void *);
4508 typedef VALUE rb_blocking_function_t(void *);
4509 void rb_thread_check_ints(void);
4510 int rb_thread_interrupted(VALUE thval);
4511 VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1,
4512 rb_unblock_function_t *ubf, void *data2);
4513
4514
4515 VALUE rb_mutex_new(void);
4516 VALUE rb_mutex_locked_p(VALUE mutex);
4517 VALUE rb_mutex_try_lock(VALUE mutex);
4518 VALUE rb_mutex_lock(VALUE mutex);
4519 VALUE rb_mutex_unlock(VALUE mutex);
4520 VALUE rb_mutex_sleep(VALUE self, VALUE timeout);
4521 VALUE rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg);
4522 VALUE rb_barrier_new(void);
4523 VALUE rb_barrier_wait(VALUE self);
4524 VALUE rb_barrier_release(VALUE self);
4525 VALUE rb_barrier_destroy(VALUE self);
4526
4527 VALUE rb_time_new(time_t, long);
4528 VALUE rb_time_nano_new(time_t, long);
4529
4530 VALUE rb_mod_name(VALUE);
4531 VALUE rb_class_path(VALUE);
4532 void rb_set_class_path(VALUE, VALUE, const char*);
4533 VALUE rb_path2class(const char*);
4534 void rb_name_class(VALUE, ID);
4535 VALUE rb_class_name(VALUE);
4536 void rb_autoload(VALUE, ID, const char*);
4537 VALUE rb_autoload_load(VALUE, ID);
4538 VALUE rb_autoload_p(VALUE, ID);
4539 void rb_gc_mark_global_tbl(void);
4540 VALUE rb_f_trace_var(int, VALUE*);
4541 VALUE rb_f_untrace_var(int, VALUE*);
4542 VALUE rb_f_global_variables(void);
4543 void rb_alias_variable(ID, ID);
4544 struct st_table* rb_generic_ivar_table(VALUE);
4545 void rb_copy_generic_ivar(VALUE,VALUE);
4546 void rb_mark_generic_ivar(VALUE);
4547 void rb_mark_generic_ivar_tbl(void);
4548 void rb_free_generic_ivar(VALUE);
4549 VALUE rb_ivar_get(VALUE, ID);
4550 VALUE rb_ivar_set(VALUE, ID, VALUE);
4551 VALUE rb_ivar_defined(VALUE, ID);
4552 void rb_ivar_foreach(VALUE, int (*)(), st_data_t);
4553 VALUE rb_iv_set(VALUE, const char*, VALUE);
4554 VALUE rb_iv_get(VALUE, const char*);
4555 VALUE rb_attr_get(VALUE, ID);
4556 VALUE rb_obj_instance_variables(VALUE);
4557 VALUE rb_obj_remove_instance_variable(VALUE, VALUE);
4558 void *rb_mod_const_at(VALUE, void*);
4559 void *rb_mod_const_of(VALUE, void*);
4560 VALUE rb_const_list(void*);
4561 VALUE rb_mod_constants(int, VALUE *, VALUE);
4562 VALUE rb_mod_remove_const(VALUE, VALUE);
4563 int rb_const_defined(VALUE, ID);
4564 int rb_const_defined_at(VALUE, ID);
4565 int rb_const_defined_from(VALUE, ID);
4566 VALUE rb_const_get(VALUE, ID);
4567 VALUE rb_const_get_at(VALUE, ID);
4568 VALUE rb_const_get_from(VALUE, ID);
4569 void rb_const_set(VALUE, ID, VALUE);
4570 VALUE rb_mod_const_missing(VALUE,VALUE);
4571 VALUE rb_cvar_defined(VALUE, ID);
4572 void rb_cvar_set(VALUE, ID, VALUE);
4573 VALUE rb_cvar_get(VALUE, ID);
4574 void rb_cv_set(VALUE, const char*, VALUE);
4575 VALUE rb_cv_get(VALUE, const char*);
4576 void rb_define_class_variable(VALUE, const char*, VALUE);
4577 VALUE rb_mod_class_variables(VALUE);
4578 VALUE rb_mod_remove_cvar(VALUE, VALUE);
4579
4580 void ruby_show_version(void);
4581 void ruby_show_copyright(void);
4582
4583 ID rb_frame_callee(void);
4584 VALUE rb_str_succ(VALUE);
4585 VALUE rb_time_succ(VALUE);
4586
4587 void rb_frame_pop(void);
4588 int rb_frame_method_id_and_class(ID *idp, VALUE *klassp);
4589 # 1127 "./include/ruby/ruby.h" 2
4590 # 1140 "./include/ruby/ruby.h"
4591 void ruby_sysinit(int *, char ***);
4592
4593
4594
4595 int ruby_native_thread_p(void);
4596 # 1160 "./include/ruby/ruby.h"
4597 typedef unsigned int rb_event_flag_t;
4598 typedef void (*rb_event_hook_func_t)(rb_event_flag_t, VALUE data, VALUE, ID, VALUE klass);
4599
4600 typedef struct rb_event_hook_struct {
4601 rb_event_flag_t flag;
4602 rb_event_hook_func_t func;
4603 VALUE data;
4604 struct rb_event_hook_struct *next;
4605 } rb_event_hook_t;
4606
4607 void rb_add_event_hook(rb_event_hook_func_t func, rb_event_flag_t events,
4608 VALUE data);
4609 int rb_remove_event_hook(rb_event_hook_func_t func);
4610
4611
4612
4613
4614 int rb_isalnum(int c);
4615 int rb_isalpha(int c);
4616 int rb_isblank(int c);
4617 int rb_iscntrl(int c);
4618 int rb_isdigit(int c);
4619 int rb_isgraph(int c);
4620 int rb_islower(int c);
4621 int rb_isprint(int c);
4622 int rb_ispunct(int c);
4623 int rb_isspace(int c);
4624 int rb_isupper(int c);
4625 int rb_isxdigit(int c);
4626 int rb_tolower(int c);
4627 int rb_toupper(int c);
4628 # 1207 "./include/ruby/ruby.h"
4629 int st_strcasecmp(const char *s1, const char *s2);
4630 int st_strncasecmp(const char *s1, const char *s2, size_t n);
4631