-
Notifications
You must be signed in to change notification settings - Fork 32
/
ffi_parser.c
5063 lines (4929 loc) · 131 KB
/
ffi_parser.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2018 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Dmitry Stogov <[email protected]> |
+----------------------------------------------------------------------+
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "php.h"
#include "php_ffi.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define yy_buf FFI_G(buf)
#define yy_end FFI_G(end)
#define yy_pos FFI_G(pos)
#define yy_text FFI_G(text)
#define yy_line FFI_G(line)
/* forward declarations */
static void yy_error(const char *msg);
static void yy_error_sym(const char *msg, int sym);
#define YYPOS cpos
#define YYEND cend
#define YY_EOF 0
#define YY__COMMA 1
#define YY__SEMICOLON 2
#define YY_TYPEDEF 3
#define YY_EXTERN 4
#define YY_STATIC 5
#define YY_AUTO 6
#define YY_REGISTER 7
#define YY_INLINE 8
#define YY___INLINE 9
#define YY___INLINE__ 10
#define YY__NORETURN 11
#define YY___CDECL 12
#define YY___STDCALL 13
#define YY___FASTCALL 14
#define YY___THISCALL 15
#define YY__ALIGNAS 16
#define YY__LPAREN 17
#define YY__RPAREN 18
#define YY_CONST 19
#define YY___CONST 20
#define YY___CONST__ 21
#define YY_RESTRICT 22
#define YY___RESTICT 23
#define YY___RESTRICT__ 24
#define YY_VOLATILE 25
#define YY___VOLATILE 26
#define YY___VOLATILE__ 27
#define YY__ATOMIC 28
#define YY_VOID 29
#define YY_CHAR 30
#define YY_SHORT 31
#define YY_INT 32
#define YY_LONG 33
#define YY_FLOAT 34
#define YY_DOUBLE 35
#define YY_SIGNED 36
#define YY_UNSIGNED 37
#define YY__BOOL 38
#define YY__COMPLEX 39
#define YY_COMPLEX 40
#define YY___COMPLEX 41
#define YY___COMPLEX__ 42
#define YY_STRUCT 43
#define YY_UNION 44
#define YY__LBRACE 45
#define YY__RBRACE 46
#define YY__COLON 47
#define YY_ENUM 48
#define YY__EQUAL 49
#define YY__STAR 50
#define YY__LBRACK 51
#define YY__RBRACK 52
#define YY__POINT_POINT_POINT 53
#define YY___ATTRIBUTE 54
#define YY___ATTRIBUTE__ 55
#define YY___DECLSPEC 56
#define YY__POINT 57
#define YY__QUERY 58
#define YY__BAR_BAR 59
#define YY__AND_AND 60
#define YY__BAR 61
#define YY__UPARROW 62
#define YY__AND 63
#define YY__EQUAL_EQUAL 64
#define YY__BANG_EQUAL 65
#define YY__LESS 66
#define YY__GREATER 67
#define YY__LESS_EQUAL 68
#define YY__GREATER_EQUAL 69
#define YY__LESS_LESS 70
#define YY__GREATER_GREATER 71
#define YY__PLUS 72
#define YY__MINUS 73
#define YY__SLASH 74
#define YY__PERCENT 75
#define YY__MINUS_GREATER 76
#define YY__PLUS_PLUS 77
#define YY__MINUS_MINUS 78
#define YY__TILDE 79
#define YY__BANG 80
#define YY_SIZEOF 81
#define YY__ALIGNOF 82
#define YY___ALIGNOF 83
#define YY___ALIGNOF__ 84
#define YY_ID 85
#define YY_OCTNUMBER 86
#define YY_DECNUMBER 87
#define YY_HEXNUMBER 88
#define YY_FLOATNUMBER 89
#define YY_STRING 90
#define YY_CHARACTER 91
#define YY_EOL 92
#define YY_WS 93
#define YY_ONE_LINE_COMMENT 94
#define YY_COMMENT 95
static const char * sym_name[] = {
"<EOF>",
",",
";",
"typedef",
"extern",
"static",
"auto",
"register",
"inline",
"__inline",
"__inline__",
"_Noreturn",
"__cdecl",
"__stdcall",
"__fastcall",
"__thiscall",
"_Alignas",
"(",
")",
"const",
"__const",
"__const__",
"restrict",
"__restict",
"__restrict__",
"volatile",
"__volatile",
"__volatile__",
"_Atomic",
"void",
"char",
"short",
"int",
"long",
"float",
"double",
"signed",
"unsigned",
"_Bool",
"_Complex",
"complex",
"__complex",
"__complex__",
"struct",
"union",
"{",
"}",
":",
"enum",
"=",
"*",
"[",
"]",
"...",
"__attribute",
"__attribute__",
"__declspec",
".",
"?",
"||",
"&&",
"|",
"^",
"&",
"==",
"!=",
"<",
">",
"<=",
">=",
"<<",
">>",
"+",
"-",
"/",
"%",
"->",
"++",
"--",
"~",
"!",
"sizeof",
"_Alignof",
"__alignof",
"__alignof__",
"<ID>",
"<OCTNUMBER>",
"<DECNUMBER>",
"<HEXNUMBER>",
"<FLOATNUMBER>",
"<STRING>",
"<CHARACTER>",
"<EOL>",
"<WS>",
"<ONE_LINE_COMMENT>",
"<COMMENT>",
NULL
};
#define YY_IN_SET(sym, set, bitset) \
(bitset[sym>>3] & (1 << (sym & 0x7)))
static int skip_EOL(int sym);
static int skip_WS(int sym);
static int skip_ONE_LINE_COMMENT(int sym);
static int skip_COMMENT(int sym);
static int get_sym(void);
static int check_specifier_qualifier_list(int sym);
static int check_type_qualifier_list(int sym);
static int check_type_qualifier(int sym);
static int check_type_specifier(int sym);
static int check_struct_or_union_specifier(int sym);
static int check_struct_contents(int sym);
static int check_struct_declaration(int sym);
static int check_struct_declarator(int sym);
static int check_enum_specifier(int sym);
static int check_enumerator_list(int sym);
static int check_enumerator(int sym);
static int check_declarator(int sym);
static int check_abstract_declarator(int sym);
static int check_nested_abstract_declarator(int sym);
static int check_pointer(int sym);
static int check_array_or_function_declarators(int sym);
static int check_parameter_declaration(int sym);
static int check_type_name(int sym);
static int check_attributes(int sym);
static int check_attrib(int sym);
static int check_expr_list(int sym);
static int check_expression(int sym);
static int check_assignment_expression(int sym);
static int check_constant_expression(int sym);
static int check_conditional_expression(int sym);
static int check_logical_or_expression(int sym);
static int check_logical_and_expression(int sym);
static int check_inclusive_or_expression(int sym);
static int check_exclusive_or_expression(int sym);
static int check_and_expression(int sym);
static int check_equality_expression(int sym);
static int check_relational_expression(int sym);
static int check_shift_expression(int sym);
static int check_additive_expression(int sym);
static int check_multiplicative_expression(int sym);
static int check_cast_expression(int sym);
static int check_unary_expression(int sym);
static int check_ID(int sym);
static int check_OCTNUMBER(int sym);
static int check_DECNUMBER(int sym);
static int check_HEXNUMBER(int sym);
static int check_FLOATNUMBER(int sym);
static int check_STRING(int sym);
static int check_CHARACTER(int sym);
static int parse_declarations(int sym);
static int parse_declaration_specifiers(int sym, zend_ffi_dcl *dcl);
static int parse_specifier_qualifier_list(int sym, zend_ffi_dcl *dcl);
static int parse_type_qualifier_list(int sym, zend_ffi_dcl *dcl);
static int parse_type_qualifier(int sym, zend_ffi_dcl *dcl);
static int parse_type_specifier(int sym, zend_ffi_dcl *dcl);
static int parse_struct_or_union_specifier(int sym, zend_ffi_dcl *dcl);
static int parse_struct_contents(int sym, zend_ffi_dcl *dcl);
static int parse_struct_declaration(int sym, zend_ffi_dcl *struct_dcl);
static int parse_struct_declarator(int sym, zend_ffi_dcl *struct_dcl, zend_ffi_dcl *field_dcl);
static int parse_enum_specifier(int sym, zend_ffi_dcl *dcl);
static int parse_enumerator_list(int sym, zend_ffi_dcl *enum_dcl);
static int parse_enumerator(int sym, zend_ffi_dcl *enum_dcl, int64_t *min, int64_t *max, int64_t *last);
static int parse_declarator(int sym, zend_ffi_dcl *dcl, const char **name, size_t *name_len);
static int parse_abstract_declarator(int sym, zend_ffi_dcl *dcl, const char **name, size_t *name_len);
static int parse_nested_abstract_declarator(int sym, zend_ffi_dcl *dcl, const char **name, size_t *name_len);
static int parse_pointer(int sym, zend_ffi_dcl *dcl);
static int parse_array_or_function_declarators(int sym, zend_ffi_dcl *dcl);
static int parse_parameter_declaration(int sym, HashTable **args);
static int parse_type_name(int sym, zend_ffi_dcl *dcl);
static int parse_attributes(int sym, zend_ffi_dcl *dcl);
static int parse_attrib(int sym, zend_ffi_dcl *dcl);
static int parse_initializer(int sym);
static int parse_designation(int sym);
static int parse_expr_list(int sym);
static int parse_expression(int sym, zend_ffi_val *val);
static int parse_assignment_expression(int sym, zend_ffi_val *val);
static int parse_constant_expression(int sym, zend_ffi_val *val);
static int parse_conditional_expression(int sym, zend_ffi_val *val);
static int parse_logical_or_expression(int sym, zend_ffi_val *val);
static int parse_logical_and_expression(int sym, zend_ffi_val *val);
static int parse_inclusive_or_expression(int sym, zend_ffi_val *val);
static int parse_exclusive_or_expression(int sym, zend_ffi_val *val);
static int parse_and_expression(int sym, zend_ffi_val *val);
static int parse_equality_expression(int sym, zend_ffi_val *val);
static int parse_relational_expression(int sym, zend_ffi_val *val);
static int parse_shift_expression(int sym, zend_ffi_val *val);
static int parse_additive_expression(int sym, zend_ffi_val *val);
static int parse_multiplicative_expression(int sym, zend_ffi_val *val);
static int parse_cast_expression(int sym, zend_ffi_val *val);
static int parse_unary_expression(int sym, zend_ffi_val *val);
static int parse_ID(int sym, const char **name, size_t *name_len);
static int parse_OCTNUMBER(int sym, zend_ffi_val *val);
static int parse_DECNUMBER(int sym, zend_ffi_val *val);
static int parse_HEXNUMBER(int sym, zend_ffi_val *val);
static int parse_FLOATNUMBER(int sym, zend_ffi_val *val);
static int parse_STRING(int sym, zend_ffi_val *val);
static int parse_CHARACTER(int sym, zend_ffi_val *val);
static int synpred_1(int sym);
static int synpred_2(int sym);
static int synpred_3(int sym);
static int synpred_4(int sym);
static int synpred_5(int sym);
static int synpred_6(int sym);
static int synpred_7(int sym);
static int get_skip_sym(void) {
int ch;
int ret;
int accept = -1;
const unsigned char *accept_pos;
const unsigned char *cpos = yy_pos;
const unsigned char *cend = yy_end;
_yy_state_start:
yy_text = YYPOS;
ch = *YYPOS;
switch (ch) {
case 't':
ch = *++YYPOS;
if (ch != 'y') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'p') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'd') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'f') goto _yy_tunnel_15;
ret = YY_TYPEDEF;
goto _yy_state_366;
case 'e':
ch = *++YYPOS;
if (ch == 'x') {
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'r') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ret = YY_EXTERN;
goto _yy_state_366;
} else if (ch == 'n') {
ch = *++YYPOS;
if (ch != 'u') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'm') goto _yy_tunnel_15;
ret = YY_ENUM;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
case 's':
ch = *++YYPOS;
if (ch == 't') {
ch = *++YYPOS;
if (ch == 'a') {
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ret = YY_STATIC;
goto _yy_state_366;
} else if (ch == 'r') {
ch = *++YYPOS;
if (ch != 'u') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ret = YY_STRUCT;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
} else if (ch == 'h') {
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'r') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ret = YY_SHORT;
goto _yy_state_366;
} else if (ch == 'i') {
ch = *++YYPOS;
if (ch == 'g') {
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'd') goto _yy_tunnel_15;
ret = YY_SIGNED;
goto _yy_state_366;
} else if (ch == 'z') {
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'f') goto _yy_tunnel_15;
ret = YY_SIZEOF;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
} else {
goto _yy_tunnel_15;
}
case 'a':
ch = *++YYPOS;
if (ch != 'u') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ret = YY_AUTO;
goto _yy_state_366;
case 'r':
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch == 'g') {
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 's') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'r') goto _yy_tunnel_15;
ret = YY_REGISTER;
goto _yy_state_366;
} else if (ch == 's') {
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'r') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ret = YY_RESTRICT;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
case 'i':
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch == 'l') {
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ret = YY_INLINE;
goto _yy_state_366;
} else if (ch == 't') {
ret = YY_INT;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
case '_':
ch = *++YYPOS;
switch (ch) {
case '_':
ch = *++YYPOS;
switch (ch) {
case 'i':
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != '_') {ret = YY___INLINE; goto _yy_tunnel_366;}
ch = *++YYPOS;
if (ch != '_') goto _yy_tunnel_15;
ret = YY___INLINE__;
goto _yy_state_366;
case 'c':
ch = *++YYPOS;
if (ch == 'd') {
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ret = YY___CDECL;
goto _yy_state_366;
} else if (ch == 'o') {
ch = *++YYPOS;
if (ch == 'm') {
ch = *++YYPOS;
if (ch != 'p') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'x') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != '_') {ret = YY___COMPLEX; goto _yy_tunnel_366;}
ch = *++YYPOS;
if (ch != '_') goto _yy_tunnel_15;
ret = YY___COMPLEX__;
goto _yy_state_366;
} else if (ch == 'n') {
ch = *++YYPOS;
if (ch != 's') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != '_') {ret = YY___CONST; goto _yy_tunnel_366;}
ch = *++YYPOS;
if (ch != '_') goto _yy_tunnel_15;
ret = YY___CONST__;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
} else {
goto _yy_tunnel_15;
}
case 's':
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'd') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'a') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ret = YY___STDCALL;
goto _yy_state_366;
case 'f':
ch = *++YYPOS;
if (ch != 'a') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 's') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'a') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ret = YY___FASTCALL;
goto _yy_state_366;
case 't':
ch = *++YYPOS;
if (ch != 'h') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 's') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'a') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ret = YY___THISCALL;
goto _yy_state_366;
case 'a':
ch = *++YYPOS;
if (ch == 't') {
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'r') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'b') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'u') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != '_') {ret = YY___ATTRIBUTE; goto _yy_tunnel_366;}
ch = *++YYPOS;
if (ch != '_') goto _yy_tunnel_15;
ret = YY___ATTRIBUTE__;
goto _yy_state_366;
} else if (ch == 'l') {
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'g') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'f') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != '_') {ret = YY___ALIGNOF; goto _yy_tunnel_366;}
ch = *++YYPOS;
if (ch != '_') goto _yy_tunnel_15;
ret = YY___ALIGNOF__;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
case 'd':
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 's') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'p') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ret = YY___DECLSPEC;
goto _yy_state_366;
case 'r':
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 's') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch == 'i') {
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ret = YY___RESTICT;
goto _yy_state_366;
} else if (ch == 'r') {
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != '_') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != '_') goto _yy_tunnel_15;
ret = YY___RESTRICT__;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
case 'v':
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'a') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != '_') {ret = YY___VOLATILE; goto _yy_tunnel_366;}
ch = *++YYPOS;
if (ch != '_') goto _yy_tunnel_15;
ret = YY___VOLATILE__;
goto _yy_state_366;
default:
goto _yy_tunnel_15;
}
case 'N':
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'r') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'u') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'r') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ret = YY__NORETURN;
goto _yy_state_366;
case 'A':
ch = *++YYPOS;
if (ch == 'l') {
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'g') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch == 'a') {
ch = *++YYPOS;
if (ch != 's') goto _yy_tunnel_15;
ret = YY__ALIGNAS;
goto _yy_state_366;
} else if (ch == 'o') {
ch = *++YYPOS;
if (ch != 'f') goto _yy_tunnel_15;
ret = YY__ALIGNOF;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
} else if (ch == 't') {
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'm') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'c') goto _yy_tunnel_15;
ret = YY__ATOMIC;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
case 'B':
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ret = YY__BOOL;
goto _yy_state_366;
case 'C':
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'm') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'p') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'x') goto _yy_tunnel_15;
ret = YY__COMPLEX;
goto _yy_state_366;
default:
goto _yy_tunnel_15;
}
case '(':
YYPOS++;
ret = YY__LPAREN;
goto _yy_fin;
case 'v':
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch == 'i') {
ch = *++YYPOS;
if (ch != 'd') goto _yy_tunnel_15;
ret = YY_VOID;
goto _yy_state_366;
} else if (ch == 'l') {
ch = *++YYPOS;
if (ch != 'a') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ret = YY_VOLATILE;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
case 'c':
ch = *++YYPOS;
if (ch == 'h') {
ch = *++YYPOS;
if (ch != 'a') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'r') goto _yy_tunnel_15;
ret = YY_CHAR;
goto _yy_state_366;
} else if (ch == 'o') {
ch = *++YYPOS;
if (ch == 'm') {
ch = *++YYPOS;
if (ch != 'p') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'x') goto _yy_tunnel_15;
ret = YY_COMPLEX;
goto _yy_state_366;
} else if (ch == 'n') {
ch = *++YYPOS;
if (ch != 's') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ret = YY_CONST;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
} else {
goto _yy_tunnel_15;
}
case 'l':
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'g') goto _yy_tunnel_15;
ret = YY_LONG;
goto _yy_state_366;
case 'f':
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'a') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 't') goto _yy_tunnel_15;
ret = YY_FLOAT;
goto _yy_state_366;
case 'd':
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'u') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'b') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'l') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ret = YY_DOUBLE;
goto _yy_state_366;
case 'u':
ch = *++YYPOS;
if (ch == 'n') {
ch = *++YYPOS;
if (ch == 's') {
ch = *++YYPOS;
if (ch != 'i') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'g') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'e') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'd') goto _yy_tunnel_15;
ret = YY_UNSIGNED;
goto _yy_state_366;
} else if (ch == 'i') {
ch = *++YYPOS;
if (ch != 'o') goto _yy_tunnel_15;
ch = *++YYPOS;
if (ch != 'n') goto _yy_tunnel_15;
ret = YY_UNION;
goto _yy_state_366;
} else {
goto _yy_tunnel_15;
}
} else if (ch == '8') {
ch = *++YYPOS;
if (ch != '"') goto _yy_tunnel_15;
goto _yy_state_27;
} else if (ch == '"') {
goto _yy_state_27;
} else if (ch == '\'') {
goto _yy_state_28;
} else {
goto _yy_tunnel_15;
}
case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'M':
case 'N':
case 'O':
case 'P':
case 'Q':
case 'R':
case 'S':
case 'T':
case 'V':
case 'W':
case 'X':
case 'Y':
case 'Z':
case 'b':
case 'g':
case 'h':
case 'j':
case 'k':
case 'm':
case 'n':
case 'o':
case 'p':
case 'q':