Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
e700b208
Commit
e700b208
authored
Aug 06, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment
parent
ecbb8ff3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
295 additions
and
294 deletions
+295
-294
libasn1parser/asn1p_y.c
libasn1parser/asn1p_y.c
+294
-294
libasn1parser/asn1p_y.y
libasn1parser/asn1p_y.y
+1
-0
No files found.
libasn1parser/asn1p_y.c
View file @
e700b208
...
@@ -859,35 +859,35 @@ static const yytype_uint16 yyrline[] =
...
@@ -859,35 +859,35 @@ static const yytype_uint16 yyrline[] =
0
,
358
,
358
,
361
,
367
,
372
,
389
,
389
,
418
,
419
,
0
,
358
,
358
,
361
,
367
,
372
,
389
,
389
,
418
,
419
,
423
,
426
,
432
,
438
,
447
,
451
,
455
,
465
,
466
,
475
,
423
,
426
,
432
,
438
,
447
,
451
,
455
,
465
,
466
,
475
,
478
,
487
,
490
,
493
,
496
,
500
,
521
,
522
,
531
,
544
,
478
,
487
,
490
,
493
,
496
,
500
,
521
,
522
,
531
,
544
,
547
,
564
,
571
,
58
4
,
592
,
591
,
605
,
618
,
619
,
622
,
547
,
564
,
571
,
58
5
,
593
,
592
,
606
,
619
,
620
,
623
,
63
2
,
638
,
639
,
642
,
647
,
654
,
655
,
659
,
670
,
675
,
63
3
,
639
,
640
,
643
,
648
,
655
,
656
,
660
,
671
,
676
,
68
2
,
688
,
694
,
704
,
705
,
717
,
720
,
723
,
731
,
736
,
68
3
,
689
,
695
,
705
,
706
,
718
,
721
,
724
,
732
,
737
,
74
3
,
749
,
755
,
764
,
767
,
777
,
790
,
800
,
820
,
826
,
74
4
,
750
,
756
,
765
,
768
,
778
,
791
,
801
,
821
,
827
,
84
2
,
848
,
856
,
865
,
876
,
880
,
888
,
896
,
904
,
915
,
84
3
,
849
,
857
,
866
,
877
,
881
,
889
,
897
,
905
,
916
,
92
0
,
927
,
930
,
938
,
949
,
972
,
973
,
976
,
981
,
985
,
92
1
,
928
,
931
,
939
,
950
,
973
,
974
,
977
,
982
,
986
,
99
3
,
1000
,
1006
,
1013
,
1019
,
1024
,
1031
,
1036
,
1039
,
1046
,
99
4
,
1001
,
1007
,
1014
,
1020
,
1025
,
1032
,
1037
,
1040
,
1047
,
105
6
,
1057
,
1061
,
1068
,
1078
,
1088
,
1099
,
1109
,
1120
,
1130
,
105
7
,
1058
,
1062
,
1069
,
1079
,
1089
,
1100
,
1110
,
1121
,
1131
,
114
1
,
1153
,
1154
,
1161
,
1160
,
1169
,
1173
,
1180
,
1184
,
1187
,
114
2
,
1154
,
1155
,
1162
,
1161
,
1170
,
1174
,
1181
,
1185
,
1188
,
119
1
,
1197
,
1205
,
1214
,
1226
,
1250
,
1257
,
1276
,
1279
,
1285
,
119
2
,
1198
,
1206
,
1215
,
1227
,
1251
,
1258
,
1277
,
1280
,
1286
,
129
1
,
1297
,
1307
,
1317
,
1323
,
1335
,
1350
,
1358
,
1369
,
1380
,
129
2
,
1298
,
1308
,
1318
,
1324
,
1336
,
1351
,
1359
,
1370
,
1381
,
139
1
,
1399
,
1421
,
1429
,
1438
,
1442
,
1447
,
1456
,
1461
,
1466
,
139
2
,
1400
,
1422
,
1430
,
1439
,
1443
,
1448
,
1457
,
1462
,
1467
,
147
4
,
1497
,
1507
,
1508
,
1509
,
1516
,
1516
,
1521
,
1529
,
1534
,
147
5
,
1498
,
1508
,
1509
,
1510
,
1517
,
1517
,
1522
,
1530
,
1535
,
15
39
,
1544
,
1549
,
1552
,
1558
,
1569
,
1587
,
1591
,
1596
,
1604
,
15
40
,
1545
,
1550
,
1553
,
1559
,
1570
,
1588
,
1592
,
1597
,
1605
,
161
3
,
1628
,
1629
,
1630
,
1631
,
1632
,
1633
,
1634
,
1635
,
1636
,
161
4
,
1629
,
1630
,
1631
,
1632
,
1633
,
1634
,
1635
,
1636
,
1637
,
163
7
,
1638
,
1639
,
1640
,
1647
,
1648
,
1649
,
1653
,
1659
,
1672
,
163
8
,
1639
,
1640
,
1641
,
1648
,
1649
,
1650
,
1654
,
1660
,
1673
,
167
3
,
1677
,
1681
,
1682
,
1683
,
1684
,
1685
,
1689
,
1690
,
1691
,
167
4
,
1678
,
1682
,
1683
,
1684
,
1685
,
1686
,
1690
,
1691
,
1692
,
169
2
,
1696
,
1697
,
1704
,
1704
,
1705
,
1705
,
1708
,
1709
,
1715
,
169
3
,
1697
,
1698
,
1705
,
1705
,
1706
,
1706
,
1709
,
1710
,
1716
,
17
19
,
1722
,
1732
,
1735
,
1741
,
1744
,
1750
,
1754
,
1757
,
1763
,
17
20
,
1723
,
1733
,
1736
,
1742
,
1745
,
1751
,
1755
,
1758
,
1764
,
177
4
,
1775
,
1781
,
1782
,
1788
,
1789
,
1796
,
1797
,
1803
,
1811
,
177
5
,
1776
,
1782
,
1783
,
1789
,
1790
,
1797
,
1798
,
1804
,
1812
,
18
19
,
1825
,
1831
,
1838
,
1846
,
1854
,
1863
,
1866
,
1869
,
1869
,
18
20
,
1826
,
1832
,
1839
,
1847
,
1855
,
1864
,
1867
,
1870
,
1870
,
18
79
,
1884
,
1896
,
1899
,
1905
,
1910
,
1915
,
1916
,
1917
,
1918
,
18
80
,
1885
,
1897
,
1900
,
1906
,
1911
,
1916
,
1917
,
1918
,
1919
,
193
2
,
1937
,
1945
,
1965
,
1968
,
1974
,
1977
,
1983
,
1989
,
2003
,
193
3
,
1938
,
1946
,
1966
,
1969
,
1975
,
1978
,
1984
,
1990
,
2004
,
200
4
,
2008
,
2011
,
2014
,
2022
,
2023
,
2024
,
2029
,
2028
,
2040
,
200
5
,
2009
,
2012
,
2015
,
2023
,
2024
,
2025
,
2030
,
2029
,
2041
,
20
49
,
2050
,
2051
,
2052
,
2055
,
2058
,
2067
,
2083
,
2089
,
2095
,
20
50
,
2051
,
2052
,
2053
,
2056
,
2059
,
2068
,
2084
,
2090
,
2096
,
21
09
,
2120
,
2136
,
2139
,
2159
,
2163
,
2167
,
2171
,
2194
,
2198
,
21
10
,
2121
,
2137
,
2140
,
2160
,
2164
,
2168
,
2172
,
2195
,
2199
,
220
4
,
2209
,
2216
,
2223
,
2231
,
2239
,
2246
,
2257
,
2261
,
2268
,
220
5
,
2210
,
2217
,
2224
,
2232
,
2240
,
2247
,
2258
,
2262
,
2269
,
22
69
,
2300
,
2301
,
2305
,
2312
,
2318
,
2319
,
2320
,
2321
,
2325
,
22
70
,
2301
,
2302
,
2306
,
2313
,
2319
,
2320
,
2321
,
2322
,
2326
,
232
6
,
2327
,
2331
,
2335
,
2343
,
2350
,
2351
,
2357
232
7
,
2328
,
2332
,
2336
,
2344
,
2351
,
2352
,
2358
};
};
#endif
#endif
...
@@ -2514,7 +2514,7 @@ yyreduce:
...
@@ -2514,7 +2514,7 @@ yyreduce:
break
;
break
;
case
33
:
case
33
:
#line 58
4
"asn1p_y.y"
#line 58
5
"asn1p_y.y"
{
{
(
yyval
.
a_module
)
=
asn1p_module_new
();
(
yyval
.
a_module
)
=
asn1p_module_new
();
checkmem
((
yyval
.
a_module
));
checkmem
((
yyval
.
a_module
));
...
@@ -2525,12 +2525,12 @@ yyreduce:
...
@@ -2525,12 +2525,12 @@ yyreduce:
break
;
break
;
case
34
:
case
34
:
#line 59
2
"asn1p_y.y"
#line 59
3
"asn1p_y.y"
{
asn1p_lexer_hack_push_encoding_control
();
}
{
asn1p_lexer_hack_push_encoding_control
();
}
break
;
break
;
case
35
:
case
35
:
#line 59
3
"asn1p_y.y"
#line 59
4
"asn1p_y.y"
{
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"WARNING: ENCODING-CONTROL %s "
"WARNING: ENCODING-CONTROL %s "
...
@@ -2542,7 +2542,7 @@ yyreduce:
...
@@ -2542,7 +2542,7 @@ yyreduce:
break
;
break
;
case
36
:
case
36
:
#line 60
5
"asn1p_y.y"
#line 60
6
"asn1p_y.y"
{
{
return
yyerror
(
return
yyerror
(
"Attempt to redefine a standard basic string type, "
"Attempt to redefine a standard basic string type, "
...
@@ -2551,12 +2551,12 @@ yyreduce:
...
@@ -2551,12 +2551,12 @@ yyreduce:
break
;
break
;
case
37
:
case
37
:
#line 61
8
"asn1p_y.y"
#line 61
9
"asn1p_y.y"
{
(
yyval
.
a_module
)
=
0
;
}
{
(
yyval
.
a_module
)
=
0
;
}
break
;
break
;
case
39
:
case
39
:
#line 62
2
"asn1p_y.y"
#line 62
3
"asn1p_y.y"
{
{
if
(
!
saved_aid
&&
0
)
if
(
!
saved_aid
&&
0
)
return
yyerror
(
"Unterminated IMPORTS FROM, "
return
yyerror
(
"Unterminated IMPORTS FROM, "
...
@@ -2567,19 +2567,19 @@ yyreduce:
...
@@ -2567,19 +2567,19 @@ yyreduce:
break
;
break
;
case
40
:
case
40
:
#line 63
2
"asn1p_y.y"
#line 63
3
"asn1p_y.y"
{
{
return
yyerror
(
"Empty IMPORTS list"
);
return
yyerror
(
"Empty IMPORTS list"
);
}
}
break
;
break
;
case
41
:
case
41
:
#line 63
8
"asn1p_y.y"
#line 63
9
"asn1p_y.y"
{
(
yyval
.
a_module
)
=
asn1p_module_new
();
}
{
(
yyval
.
a_module
)
=
asn1p_module_new
();
}
break
;
break
;
case
43
:
case
43
:
#line 64
2
"asn1p_y.y"
#line 64
3
"asn1p_y.y"
{
{
(
yyval
.
a_module
)
=
asn1p_module_new
();
(
yyval
.
a_module
)
=
asn1p_module_new
();
checkmem
((
yyval
.
a_module
));
checkmem
((
yyval
.
a_module
));
...
@@ -2588,7 +2588,7 @@ yyreduce:
...
@@ -2588,7 +2588,7 @@ yyreduce:
break
;
break
;
case
44
:
case
44
:
#line 64
7
"asn1p_y.y"
#line 64
8
"asn1p_y.y"
{
{
(
yyval
.
a_module
)
=
(
yyvsp
[(
1
)
-
(
2
)].
a_module
);
(
yyval
.
a_module
)
=
(
yyvsp
[(
1
)
-
(
2
)].
a_module
);
TQ_ADD
(
&
((
yyval
.
a_module
)
->
imports
),
(
yyvsp
[(
2
)
-
(
2
)].
a_xports
),
xp_next
);
TQ_ADD
(
&
((
yyval
.
a_module
)
->
imports
),
(
yyvsp
[(
2
)
-
(
2
)].
a_xports
),
xp_next
);
...
@@ -2596,17 +2596,17 @@ yyreduce:
...
@@ -2596,17 +2596,17 @@ yyreduce:
break
;
break
;
case
45
:
case
45
:
#line 65
4
"asn1p_y.y"
#line 65
5
"asn1p_y.y"
{
memset
(
&
(
yyval
.
a_aid
),
0
,
sizeof
((
yyval
.
a_aid
)));
}
{
memset
(
&
(
yyval
.
a_aid
),
0
,
sizeof
((
yyval
.
a_aid
)));
}
break
;
break
;
case
46
:
case
46
:
#line 65
5
"asn1p_y.y"
#line 65
6
"asn1p_y.y"
{
(
yyval
.
a_aid
).
oid
=
(
yyvsp
[(
1
)
-
(
1
)].
a_oid
);
}
{
(
yyval
.
a_aid
).
oid
=
(
yyvsp
[(
1
)
-
(
1
)].
a_oid
);
}
break
;
break
;
case
47
:
case
47
:
#line 6
59
"asn1p_y.y"
#line 6
60
"asn1p_y.y"
{
{
(
yyval
.
a_xports
)
=
(
yyvsp
[(
1
)
-
(
4
)].
a_xports
);
(
yyval
.
a_xports
)
=
(
yyvsp
[(
1
)
-
(
4
)].
a_xports
);
(
yyval
.
a_xports
)
->
fromModuleName
=
(
yyvsp
[(
3
)
-
(
4
)].
tv_str
);
(
yyval
.
a_xports
)
->
fromModuleName
=
(
yyvsp
[(
3
)
-
(
4
)].
tv_str
);
...
@@ -2618,7 +2618,7 @@ yyreduce:
...
@@ -2618,7 +2618,7 @@ yyreduce:
break
;
break
;
case
48
:
case
48
:
#line 67
0
"asn1p_y.y"
#line 67
1
"asn1p_y.y"
{
{
(
yyval
.
a_xports
)
=
asn1p_xports_new
();
(
yyval
.
a_xports
)
=
asn1p_xports_new
();
checkmem
((
yyval
.
a_xports
));
checkmem
((
yyval
.
a_xports
));
...
@@ -2627,7 +2627,7 @@ yyreduce:
...
@@ -2627,7 +2627,7 @@ yyreduce:
break
;
break
;
case
49
:
case
49
:
#line 67
5
"asn1p_y.y"
#line 67
6
"asn1p_y.y"
{
{
(
yyval
.
a_xports
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_xports
);
(
yyval
.
a_xports
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_xports
);
TQ_ADD
(
&
((
yyval
.
a_xports
)
->
members
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
),
next
);
TQ_ADD
(
&
((
yyval
.
a_xports
)
->
members
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
),
next
);
...
@@ -2635,7 +2635,7 @@ yyreduce:
...
@@ -2635,7 +2635,7 @@ yyreduce:
break
;
break
;
case
50
:
case
50
:
#line 68
2
"asn1p_y.y"
#line 68
3
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2645,7 +2645,7 @@ yyreduce:
...
@@ -2645,7 +2645,7 @@ yyreduce:
break
;
break
;
case
51
:
case
51
:
#line 68
8
"asn1p_y.y"
#line 68
9
"asn1p_y.y"
{
/* Completely equivalent to above */
{
/* Completely equivalent to above */
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2655,7 +2655,7 @@ yyreduce:
...
@@ -2655,7 +2655,7 @@ yyreduce:
break
;
break
;
case
52
:
case
52
:
#line 69
4
"asn1p_y.y"
#line 69
5
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2665,12 +2665,12 @@ yyreduce:
...
@@ -2665,12 +2665,12 @@ yyreduce:
break
;
break
;
case
53
:
case
53
:
#line 70
4
"asn1p_y.y"
#line 70
5
"asn1p_y.y"
{
(
yyval
.
a_module
)
=
0
;
}
{
(
yyval
.
a_module
)
=
0
;
}
break
;
break
;
case
54
:
case
54
:
#line 70
5
"asn1p_y.y"
#line 70
6
"asn1p_y.y"
{
{
(
yyval
.
a_module
)
=
asn1p_module_new
();
(
yyval
.
a_module
)
=
asn1p_module_new
();
checkmem
((
yyval
.
a_module
));
checkmem
((
yyval
.
a_module
));
...
@@ -2683,21 +2683,21 @@ yyreduce:
...
@@ -2683,21 +2683,21 @@ yyreduce:
break
;
break
;
case
55
:
case
55
:
#line 71
7
"asn1p_y.y"
#line 71
8
"asn1p_y.y"
{
{
(
yyval
.
a_xports
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_xports
);
(
yyval
.
a_xports
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_xports
);
}
}
break
;
break
;
case
56
:
case
56
:
#line 72
0
"asn1p_y.y"
#line 72
1
"asn1p_y.y"
{
{
(
yyval
.
a_xports
)
=
0
;
(
yyval
.
a_xports
)
=
0
;
}
}
break
;
break
;
case
57
:
case
57
:
#line 72
3
"asn1p_y.y"
#line 72
4
"asn1p_y.y"
{
{
/* Empty EXPORTS clause effectively prohibits export. */
/* Empty EXPORTS clause effectively prohibits export. */
(
yyval
.
a_xports
)
=
asn1p_xports_new
();
(
yyval
.
a_xports
)
=
asn1p_xports_new
();
...
@@ -2706,7 +2706,7 @@ yyreduce:
...
@@ -2706,7 +2706,7 @@ yyreduce:
break
;
break
;
case
58
:
case
58
:
#line 73
1
"asn1p_y.y"
#line 73
2
"asn1p_y.y"
{
{
(
yyval
.
a_xports
)
=
asn1p_xports_new
();
(
yyval
.
a_xports
)
=
asn1p_xports_new
();
assert
((
yyval
.
a_xports
));
assert
((
yyval
.
a_xports
));
...
@@ -2715,7 +2715,7 @@ yyreduce:
...
@@ -2715,7 +2715,7 @@ yyreduce:
break
;
break
;
case
59
:
case
59
:
#line 73
6
"asn1p_y.y"
#line 73
7
"asn1p_y.y"
{
{
(
yyval
.
a_xports
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_xports
);
(
yyval
.
a_xports
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_xports
);
TQ_ADD
(
&
((
yyval
.
a_xports
)
->
members
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
),
next
);
TQ_ADD
(
&
((
yyval
.
a_xports
)
->
members
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
),
next
);
...
@@ -2723,7 +2723,7 @@ yyreduce:
...
@@ -2723,7 +2723,7 @@ yyreduce:
break
;
break
;
case
60
:
case
60
:
#line 74
3
"asn1p_y.y"
#line 74
4
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2733,7 +2733,7 @@ yyreduce:
...
@@ -2733,7 +2733,7 @@ yyreduce:
break
;
break
;
case
61
:
case
61
:
#line 7
49
"asn1p_y.y"
#line 7
50
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2743,7 +2743,7 @@ yyreduce:
...
@@ -2743,7 +2743,7 @@ yyreduce:
break
;
break
;
case
62
:
case
62
:
#line 75
5
"asn1p_y.y"
#line 75
6
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2753,12 +2753,12 @@ yyreduce:
...
@@ -2753,12 +2753,12 @@ yyreduce:
break
;
break
;
case
63
:
case
63
:
#line 76
4
"asn1p_y.y"
#line 76
5
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_constr
);
}
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_constr
);
}
break
;
break
;
case
64
:
case
64
:
#line 76
7
"asn1p_y.y"
#line 76
8
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
4
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
4
)].
a_expr
);
assert
((
yyval
.
a_expr
)
->
Identifier
==
0
);
assert
((
yyval
.
a_expr
)
->
Identifier
==
0
);
...
@@ -2769,14 +2769,14 @@ yyreduce:
...
@@ -2769,14 +2769,14 @@ yyreduce:
break
;
break
;
case
65
:
case
65
:
#line 77
7
"asn1p_y.y"
#line 77
8
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
}
}
break
;
break
;
case
66
:
case
66
:
#line 79
0
"asn1p_y.y"
#line 79
1
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2787,7 +2787,7 @@ yyreduce:
...
@@ -2787,7 +2787,7 @@ yyreduce:
break
;
break
;
case
67
:
case
67
:
#line 80
0
"asn1p_y.y"
#line 80
1
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2799,7 +2799,7 @@ yyreduce:
...
@@ -2799,7 +2799,7 @@ yyreduce:
break
;
break
;
case
68
:
case
68
:
#line 82
0
"asn1p_y.y"
#line 82
1
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
3
)].
tv_str
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
3
)].
tv_str
);
...
@@ -2809,7 +2809,7 @@ yyreduce:
...
@@ -2809,7 +2809,7 @@ yyreduce:
break
;
break
;
case
69
:
case
69
:
#line 82
6
"asn1p_y.y"
#line 82
7
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
3
)].
tv_str
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
3
)].
tv_str
);
...
@@ -2819,7 +2819,7 @@ yyreduce:
...
@@ -2819,7 +2819,7 @@ yyreduce:
break
;
break
;
case
70
:
case
70
:
#line 84
2
"asn1p_y.y"
#line 84
3
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
6
)
-
(
6
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
6
)
-
(
6
)].
a_expr
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
6
)].
tv_str
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
6
)].
tv_str
);
...
@@ -2828,7 +2828,7 @@ yyreduce:
...
@@ -2828,7 +2828,7 @@ yyreduce:
break
;
break
;
case
71
:
case
71
:
#line 84
8
"asn1p_y.y"
#line 84
9
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
6
)
-
(
6
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
6
)
-
(
6
)].
a_expr
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
6
)].
tv_str
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
6
)].
tv_str
);
...
@@ -2837,7 +2837,7 @@ yyreduce:
...
@@ -2837,7 +2837,7 @@ yyreduce:
break
;
break
;
case
72
:
case
72
:
#line 85
6
"asn1p_y.y"
#line 85
7
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_plist
)
=
asn1p_paramlist_new
(
yylineno
);
(
yyval
.
a_plist
)
=
asn1p_paramlist_new
(
yylineno
);
...
@@ -2850,7 +2850,7 @@ yyreduce:
...
@@ -2850,7 +2850,7 @@ yyreduce:
break
;
break
;
case
73
:
case
73
:
#line 86
5
"asn1p_y.y"
#line 86
6
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_plist
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_plist
);
(
yyval
.
a_plist
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_plist
);
...
@@ -2862,7 +2862,7 @@ yyreduce:
...
@@ -2862,7 +2862,7 @@ yyreduce:
break
;
break
;
case
74
:
case
74
:
#line 87
6
"asn1p_y.y"
#line 87
7
"asn1p_y.y"
{
{
(
yyval
.
a_parg
).
governor
=
NULL
;
(
yyval
.
a_parg
).
governor
=
NULL
;
(
yyval
.
a_parg
).
argument
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
(
yyval
.
a_parg
).
argument
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
...
@@ -2870,7 +2870,7 @@ yyreduce:
...
@@ -2870,7 +2870,7 @@ yyreduce:
break
;
break
;
case
75
:
case
75
:
#line 88
0
"asn1p_y.y"
#line 88
1
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_parg
).
governor
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_parg
).
governor
=
asn1p_ref_new
(
yylineno
,
currentModule
);
...
@@ -2882,7 +2882,7 @@ yyreduce:
...
@@ -2882,7 +2882,7 @@ yyreduce:
break
;
break
;
case
76
:
case
76
:
#line 88
8
"asn1p_y.y"
#line 88
9
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_parg
).
governor
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_parg
).
governor
=
asn1p_ref_new
(
yylineno
,
currentModule
);
...
@@ -2894,7 +2894,7 @@ yyreduce:
...
@@ -2894,7 +2894,7 @@ yyreduce:
break
;
break
;
case
77
:
case
77
:
#line 89
6
"asn1p_y.y"
#line 89
7
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_parg
).
governor
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_parg
).
governor
=
asn1p_ref_new
(
yylineno
,
currentModule
);
...
@@ -2906,7 +2906,7 @@ yyreduce:
...
@@ -2906,7 +2906,7 @@ yyreduce:
break
;
break
;
case
78
:
case
78
:
#line 90
4
"asn1p_y.y"
#line 90
5
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_parg
).
governor
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_parg
).
governor
=
asn1p_ref_new
(
yylineno
,
currentModule
);
...
@@ -2918,7 +2918,7 @@ yyreduce:
...
@@ -2918,7 +2918,7 @@ yyreduce:
break
;
break
;
case
79
:
case
79
:
#line 91
5
"asn1p_y.y"
#line 91
6
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2927,7 +2927,7 @@ yyreduce:
...
@@ -2927,7 +2927,7 @@ yyreduce:
break
;
break
;
case
80
:
case
80
:
#line 92
0
"asn1p_y.y"
#line 92
1
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
...
@@ -2935,14 +2935,14 @@ yyreduce:
...
@@ -2935,14 +2935,14 @@ yyreduce:
break
;
break
;
case
81
:
case
81
:
#line 92
7
"asn1p_y.y"
#line 92
8
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
}
}
break
;
break
;
case
82
:
case
82
:
#line 93
0
"asn1p_y.y"
#line 93
1
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2954,7 +2954,7 @@ yyreduce:
...
@@ -2954,7 +2954,7 @@ yyreduce:
break
;
break
;
case
83
:
case
83
:
#line 93
8
"asn1p_y.y"
#line 93
9
"asn1p_y.y"
{
{
asn1p_ref_t
*
ref
;
asn1p_ref_t
*
ref
;
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
...
@@ -2969,7 +2969,7 @@ yyreduce:
...
@@ -2969,7 +2969,7 @@ yyreduce:
break
;
break
;
case
84
:
case
84
:
#line 9
49
"asn1p_y.y"
#line 9
50
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
->
expr_type
=
A1TC_VALUESET
;
(
yyval
.
a_expr
)
->
expr_type
=
A1TC_VALUESET
;
...
@@ -2979,17 +2979,17 @@ yyreduce:
...
@@ -2979,17 +2979,17 @@ yyreduce:
break
;
break
;
case
85
:
case
85
:
#line 97
2
"asn1p_y.y"
#line 97
3
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
}
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
}
break
;
break
;
case
86
:
case
86
:
#line 97
3
"asn1p_y.y"
#line 97
4
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
}
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
}
break
;
break
;
case
87
:
case
87
:
#line 97
6
"asn1p_y.y"
#line 97
7
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -2998,7 +2998,7 @@ yyreduce:
...
@@ -2998,7 +2998,7 @@ yyreduce:
break
;
break
;
case
88
:
case
88
:
#line 98
1
"asn1p_y.y"
#line 98
2
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
...
@@ -3006,7 +3006,7 @@ yyreduce:
...
@@ -3006,7 +3006,7 @@ yyreduce:
break
;
break
;
case
89
:
case
89
:
#line 98
5
"asn1p_y.y"
#line 98
6
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
5
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
5
)].
a_expr
);
asn1p_expr_add_many
((
yyval
.
a_expr
),
(
yyvsp
[(
4
)
-
(
5
)].
a_expr
));
asn1p_expr_add_many
((
yyval
.
a_expr
),
(
yyvsp
[(
4
)
-
(
5
)].
a_expr
));
...
@@ -3015,7 +3015,7 @@ yyreduce:
...
@@ -3015,7 +3015,7 @@ yyreduce:
break
;
break
;
case
90
:
case
90
:
#line 99
3
"asn1p_y.y"
#line 99
4
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_expr
);
assert
((
yyval
.
a_expr
)
->
Identifier
==
0
);
assert
((
yyval
.
a_expr
)
->
Identifier
==
0
);
...
@@ -3026,7 +3026,7 @@ yyreduce:
...
@@ -3026,7 +3026,7 @@ yyreduce:
break
;
break
;
case
91
:
case
91
:
#line 100
0
"asn1p_y.y"
#line 100
1
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
2
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
2
)].
a_expr
);
(
yyvsp
[(
2
)
-
(
2
)].
a_marker
).
flags
|=
(
yyval
.
a_expr
)
->
marker
.
flags
;
(
yyvsp
[(
2
)
-
(
2
)].
a_marker
).
flags
|=
(
yyval
.
a_expr
)
->
marker
.
flags
;
...
@@ -3036,7 +3036,7 @@ yyreduce:
...
@@ -3036,7 +3036,7 @@ yyreduce:
break
;
break
;
case
92
:
case
92
:
#line 100
6
"asn1p_y.y"
#line 100
7
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3047,14 +3047,14 @@ yyreduce:
...
@@ -3047,14 +3047,14 @@ yyreduce:
break
;
break
;
case
93
:
case
93
:
#line 101
3
"asn1p_y.y"
#line 101
4
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
}
}
break
;
break
;
case
94
:
case
94
:
#line 10
19
"asn1p_y.y"
#line 10
20
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3063,7 +3063,7 @@ yyreduce:
...
@@ -3063,7 +3063,7 @@ yyreduce:
break
;
break
;
case
95
:
case
95
:
#line 102
4
"asn1p_y.y"
#line 102
5
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
...
@@ -3071,7 +3071,7 @@ yyreduce:
...
@@ -3071,7 +3071,7 @@ yyreduce:
break
;
break
;
case
96
:
case
96
:
#line 103
1
"asn1p_y.y"
#line 103
2
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
2
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
2
)].
a_expr
);
assert
((
yyval
.
a_expr
)
->
Identifier
==
0
);
assert
((
yyval
.
a_expr
)
->
Identifier
==
0
);
...
@@ -3080,14 +3080,14 @@ yyreduce:
...
@@ -3080,14 +3080,14 @@ yyreduce:
break
;
break
;
case
97
:
case
97
:
#line 103
6
"asn1p_y.y"
#line 103
7
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
}
}
break
;
break
;
case
98
:
case
98
:
#line 10
39
"asn1p_y.y"
#line 10
40
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
_fixup_anonymous_identifier
((
yyval
.
a_expr
));
_fixup_anonymous_identifier
((
yyval
.
a_expr
));
...
@@ -3095,7 +3095,7 @@ yyreduce:
...
@@ -3095,7 +3095,7 @@ yyreduce:
break
;
break
;
case
99
:
case
99
:
#line 104
6
"asn1p_y.y"
#line 104
7
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
5
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
5
)].
a_expr
);
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3106,17 +3106,17 @@ yyreduce:
...
@@ -3106,17 +3106,17 @@ yyreduce:
break
;
break
;
case
100
:
case
100
:
#line 105
6
"asn1p_y.y"
#line 105
7
"asn1p_y.y"
{
(
yyval
.
a_int
)
=
0
;
}
{
(
yyval
.
a_int
)
=
0
;
}
break
;
break
;
case
101
:
case
101
:
#line 105
7
"asn1p_y.y"
#line 105
8
"asn1p_y.y"
{
(
yyval
.
a_int
)
=
1
;
}
{
(
yyval
.
a_int
)
=
1
;
}
break
;
break
;
case
102
:
case
102
:
#line 106
1
"asn1p_y.y"
#line 106
2
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3127,7 +3127,7 @@ yyreduce:
...
@@ -3127,7 +3127,7 @@ yyreduce:
break
;
break
;
case
103
:
case
103
:
#line 106
8
"asn1p_y.y"
#line 106
9
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
...
@@ -3135,7 +3135,7 @@ yyreduce:
...
@@ -3135,7 +3135,7 @@ yyreduce:
break
;
break
;
case
104
:
case
104
:
#line 107
8
"asn1p_y.y"
#line 107
9
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3147,7 +3147,7 @@ yyreduce:
...
@@ -3147,7 +3147,7 @@ yyreduce:
break
;
break
;
case
105
:
case
105
:
#line 108
8
"asn1p_y.y"
#line 108
9
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
4
)].
tv_str
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
4
)].
tv_str
);
...
@@ -3160,7 +3160,7 @@ yyreduce:
...
@@ -3160,7 +3160,7 @@ yyreduce:
break
;
break
;
case
106
:
case
106
:
#line 1
099
"asn1p_y.y"
#line 1
100
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
3
)].
tv_str
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
3
)].
tv_str
);
...
@@ -3172,7 +3172,7 @@ yyreduce:
...
@@ -3172,7 +3172,7 @@ yyreduce:
break
;
break
;
case
107
:
case
107
:
#line 11
09
"asn1p_y.y"
#line 11
10
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3185,7 +3185,7 @@ yyreduce:
...
@@ -3185,7 +3185,7 @@ yyreduce:
break
;
break
;
case
108
:
case
108
:
#line 112
0
"asn1p_y.y"
#line 112
1
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
3
)].
tv_str
);
(
yyval
.
a_expr
)
->
Identifier
=
(
yyvsp
[(
1
)
-
(
3
)].
tv_str
);
...
@@ -3197,7 +3197,7 @@ yyreduce:
...
@@ -3197,7 +3197,7 @@ yyreduce:
break
;
break
;
case
109
:
case
109
:
#line 113
0
"asn1p_y.y"
#line 113
1
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3210,7 +3210,7 @@ yyreduce:
...
@@ -3210,7 +3210,7 @@ yyreduce:
break
;
break
;
case
110
:
case
110
:
#line 114
1
"asn1p_y.y"
#line 114
2
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3223,31 +3223,31 @@ yyreduce:
...
@@ -3223,31 +3223,31 @@ yyreduce:
break
;
break
;
case
111
:
case
111
:
#line 115
3
"asn1p_y.y"
#line 115
4
"asn1p_y.y"
{
(
yyval
.
a_wsynt
)
=
0
;
}
{
(
yyval
.
a_wsynt
)
=
0
;
}
break
;
break
;
case
112
:
case
112
:
#line 115
4
"asn1p_y.y"
#line 115
5
"asn1p_y.y"
{
{
(
yyval
.
a_wsynt
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_wsynt
);
(
yyval
.
a_wsynt
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_wsynt
);
}
}
break
;
break
;
case
113
:
case
113
:
#line 116
1
"asn1p_y.y"
#line 116
2
"asn1p_y.y"
{
asn1p_lexer_hack_enable_with_syntax
();
}
{
asn1p_lexer_hack_enable_with_syntax
();
}
break
;
break
;
case
114
:
case
114
:
#line 116
3
"asn1p_y.y"
#line 116
4
"asn1p_y.y"
{
{
(
yyval
.
a_wsynt
)
=
(
yyvsp
[(
5
)
-
(
6
)].
a_wsynt
);
(
yyval
.
a_wsynt
)
=
(
yyvsp
[(
5
)
-
(
6
)].
a_wsynt
);
}
}
break
;
break
;
case
115
:
case
115
:
#line 11
69
"asn1p_y.y"
#line 11
70
"asn1p_y.y"
{
{
(
yyval
.
a_wsynt
)
=
asn1p_wsyntx_new
();
(
yyval
.
a_wsynt
)
=
asn1p_wsyntx_new
();
TQ_ADD
(
&
((
yyval
.
a_wsynt
)
->
chunks
),
(
yyvsp
[(
1
)
-
(
1
)].
a_wchunk
),
next
);
TQ_ADD
(
&
((
yyval
.
a_wsynt
)
->
chunks
),
(
yyvsp
[(
1
)
-
(
1
)].
a_wchunk
),
next
);
...
@@ -3255,7 +3255,7 @@ yyreduce:
...
@@ -3255,7 +3255,7 @@ yyreduce:
break
;
break
;
case
116
:
case
116
:
#line 117
3
"asn1p_y.y"
#line 117
4
"asn1p_y.y"
{
{
(
yyval
.
a_wsynt
)
=
(
yyvsp
[(
1
)
-
(
2
)].
a_wsynt
);
(
yyval
.
a_wsynt
)
=
(
yyvsp
[(
1
)
-
(
2
)].
a_wsynt
);
TQ_ADD
(
&
((
yyval
.
a_wsynt
)
->
chunks
),
(
yyvsp
[(
2
)
-
(
2
)].
a_wchunk
),
next
);
TQ_ADD
(
&
((
yyval
.
a_wsynt
)
->
chunks
),
(
yyvsp
[(
2
)
-
(
2
)].
a_wchunk
),
next
);
...
@@ -3263,7 +3263,7 @@ yyreduce:
...
@@ -3263,7 +3263,7 @@ yyreduce:
break
;
break
;
case
117
:
case
117
:
#line 118
0
"asn1p_y.y"
#line 118
1
"asn1p_y.y"
{
{
(
yyval
.
a_wchunk
)
=
asn1p_wsyntx_chunk_fromstring
((
yyvsp
[(
1
)
-
(
1
)].
tv_opaque
).
buf
,
0
);
(
yyval
.
a_wchunk
)
=
asn1p_wsyntx_chunk_fromstring
((
yyvsp
[(
1
)
-
(
1
)].
tv_opaque
).
buf
,
0
);
(
yyval
.
a_wchunk
)
->
type
=
WC_WHITESPACE
;
(
yyval
.
a_wchunk
)
->
type
=
WC_WHITESPACE
;
...
@@ -3271,14 +3271,14 @@ yyreduce:
...
@@ -3271,14 +3271,14 @@ yyreduce:
break
;
break
;
case
118
:
case
118
:
#line 118
4
"asn1p_y.y"
#line 118
5
"asn1p_y.y"
{
{
(
yyval
.
a_wchunk
)
=
asn1p_wsyntx_chunk_fromstring
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
0
);
(
yyval
.
a_wchunk
)
=
asn1p_wsyntx_chunk_fromstring
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
0
);
}
}
break
;
break
;
case
119
:
case
119
:
#line 118
7
"asn1p_y.y"
#line 118
8
"asn1p_y.y"
{
{
(
yyval
.
a_wchunk
)
=
asn1p_wsyntx_chunk_fromstring
((
yyvsp
[(
1
)
-
(
1
)].
a_refcomp
).
name
,
0
);
(
yyval
.
a_wchunk
)
=
asn1p_wsyntx_chunk_fromstring
((
yyvsp
[(
1
)
-
(
1
)].
a_refcomp
).
name
,
0
);
(
yyval
.
a_wchunk
)
->
type
=
WC_FIELD
;
(
yyval
.
a_wchunk
)
->
type
=
WC_FIELD
;
...
@@ -3286,14 +3286,14 @@ yyreduce:
...
@@ -3286,14 +3286,14 @@ yyreduce:
break
;
break
;
case
120
:
case
120
:
#line 119
1
"asn1p_y.y"
#line 119
2
"asn1p_y.y"
{
{
(
yyval
.
a_wchunk
)
=
asn1p_wsyntx_chunk_fromsyntax
((
yyvsp
[(
2
)
-
(
3
)].
a_wsynt
));
(
yyval
.
a_wchunk
)
=
asn1p_wsyntx_chunk_fromsyntax
((
yyvsp
[(
2
)
-
(
3
)].
a_wsynt
));
}
}
break
;
break
;
case
121
:
case
121
:
#line 119
7
"asn1p_y.y"
#line 119
8
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3305,7 +3305,7 @@ yyreduce:
...
@@ -3305,7 +3305,7 @@ yyreduce:
break
;
break
;
case
122
:
case
122
:
#line 120
5
"asn1p_y.y"
#line 120
6
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3318,7 +3318,7 @@ yyreduce:
...
@@ -3318,7 +3318,7 @@ yyreduce:
break
;
break
;
case
123
:
case
123
:
#line 121
4
"asn1p_y.y"
#line 121
5
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3331,7 +3331,7 @@ yyreduce:
...
@@ -3331,7 +3331,7 @@ yyreduce:
break
;
break
;
case
124
:
case
124
:
#line 122
6
"asn1p_y.y"
#line 122
7
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
->
tag
=
(
yyvsp
[(
1
)
-
(
3
)].
a_tag
);
(
yyval
.
a_expr
)
->
tag
=
(
yyvsp
[(
1
)
-
(
3
)].
a_tag
);
...
@@ -3356,7 +3356,7 @@ yyreduce:
...
@@ -3356,7 +3356,7 @@ yyreduce:
break
;
break
;
case
125
:
case
125
:
#line 125
0
"asn1p_y.y"
#line 125
1
"asn1p_y.y"
{
{
(
yyval
.
a_int
)
=
asn1p_as_pointer
?
EM_INDIRECT
:
0
;
(
yyval
.
a_int
)
=
asn1p_as_pointer
?
EM_INDIRECT
:
0
;
asn1p_as_pointer
=
0
;
asn1p_as_pointer
=
0
;
...
@@ -3364,7 +3364,7 @@ yyreduce:
...
@@ -3364,7 +3364,7 @@ yyreduce:
break
;
break
;
case
126
:
case
126
:
#line 125
7
"asn1p_y.y"
#line 125
8
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
2
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
2
)].
a_expr
);
(
yyval
.
a_expr
)
->
marker
.
flags
|=
(
yyvsp
[(
1
)
-
(
2
)].
a_int
);
(
yyval
.
a_expr
)
->
marker
.
flags
|=
(
yyvsp
[(
1
)
-
(
2
)].
a_int
);
...
@@ -3384,14 +3384,14 @@ yyreduce:
...
@@ -3384,14 +3384,14 @@ yyreduce:
break
;
break
;
case
127
:
case
127
:
#line 127
6
"asn1p_y.y"
#line 127
7
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
}
}
break
;
break
;
case
128
:
case
128
:
#line 12
79
"asn1p_y.y"
#line 12
80
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
4
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
4
)].
a_expr
);
assert
((
yyval
.
a_expr
)
->
expr_type
==
A1TC_INVALID
);
assert
((
yyval
.
a_expr
)
->
expr_type
==
A1TC_INVALID
);
...
@@ -3401,7 +3401,7 @@ yyreduce:
...
@@ -3401,7 +3401,7 @@ yyreduce:
break
;
break
;
case
129
:
case
129
:
#line 128
5
"asn1p_y.y"
#line 128
6
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
4
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
4
)].
a_expr
);
assert
((
yyval
.
a_expr
)
->
expr_type
==
A1TC_INVALID
);
assert
((
yyval
.
a_expr
)
->
expr_type
==
A1TC_INVALID
);
...
@@ -3411,7 +3411,7 @@ yyreduce:
...
@@ -3411,7 +3411,7 @@ yyreduce:
break
;
break
;
case
130
:
case
130
:
#line 129
1
"asn1p_y.y"
#line 129
2
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
4
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
3
)
-
(
4
)].
a_expr
);
assert
((
yyval
.
a_expr
)
->
expr_type
==
A1TC_INVALID
);
assert
((
yyval
.
a_expr
)
->
expr_type
==
A1TC_INVALID
);
...
@@ -3421,7 +3421,7 @@ yyreduce:
...
@@ -3421,7 +3421,7 @@ yyreduce:
break
;
break
;
case
131
:
case
131
:
#line 129
7
"asn1p_y.y"
#line 129
8
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3435,7 +3435,7 @@ yyreduce:
...
@@ -3435,7 +3435,7 @@ yyreduce:
break
;
break
;
case
132
:
case
132
:
#line 130
7
"asn1p_y.y"
#line 130
8
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3449,7 +3449,7 @@ yyreduce:
...
@@ -3449,7 +3449,7 @@ yyreduce:
break
;
break
;
case
133
:
case
133
:
#line 131
7
"asn1p_y.y"
#line 131
8
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3459,7 +3459,7 @@ yyreduce:
...
@@ -3459,7 +3459,7 @@ yyreduce:
break
;
break
;
case
134
:
case
134
:
#line 132
3
"asn1p_y.y"
#line 132
4
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
...
@@ -3475,7 +3475,7 @@ yyreduce:
...
@@ -3475,7 +3475,7 @@ yyreduce:
break
;
break
;
case
135
:
case
135
:
#line 133
5
"asn1p_y.y"
#line 133
6
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3486,7 +3486,7 @@ yyreduce:
...
@@ -3486,7 +3486,7 @@ yyreduce:
break
;
break
;
case
136
:
case
136
:
#line 135
0
"asn1p_y.y"
#line 135
1
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
...
@@ -3498,7 +3498,7 @@ yyreduce:
...
@@ -3498,7 +3498,7 @@ yyreduce:
break
;
break
;
case
137
:
case
137
:
#line 135
8
"asn1p_y.y"
#line 135
9
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
...
@@ -3513,7 +3513,7 @@ yyreduce:
...
@@ -3513,7 +3513,7 @@ yyreduce:
break
;
break
;
case
138
:
case
138
:
#line 13
69
"asn1p_y.y"
#line 13
70
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
...
@@ -3528,7 +3528,7 @@ yyreduce:
...
@@ -3528,7 +3528,7 @@ yyreduce:
break
;
break
;
case
139
:
case
139
:
#line 138
0
"asn1p_y.y"
#line 138
1
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
...
@@ -3543,7 +3543,7 @@ yyreduce:
...
@@ -3543,7 +3543,7 @@ yyreduce:
break
;
break
;
case
140
:
case
140
:
#line 139
1
"asn1p_y.y"
#line 139
2
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
...
@@ -3555,7 +3555,7 @@ yyreduce:
...
@@ -3555,7 +3555,7 @@ yyreduce:
break
;
break
;
case
141
:
case
141
:
#line 1
399
"asn1p_y.y"
#line 1
400
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_ref
)
=
(
yyvsp
[(
3
)
-
(
3
)].
a_ref
);
(
yyval
.
a_ref
)
=
(
yyvsp
[(
3
)
-
(
3
)].
a_ref
);
...
@@ -3578,7 +3578,7 @@ yyreduce:
...
@@ -3578,7 +3578,7 @@ yyreduce:
break
;
break
;
case
142
:
case
142
:
#line 142
1
"asn1p_y.y"
#line 142
2
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
...
@@ -3590,7 +3590,7 @@ yyreduce:
...
@@ -3590,7 +3590,7 @@ yyreduce:
break
;
break
;
case
143
:
case
143
:
#line 14
29
"asn1p_y.y"
#line 14
30
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_ref
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_ref
);
(
yyval
.
a_ref
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_ref
);
...
@@ -3601,7 +3601,7 @@ yyreduce:
...
@@ -3601,7 +3601,7 @@ yyreduce:
break
;
break
;
case
145
:
case
145
:
#line 144
2
"asn1p_y.y"
#line 144
3
"asn1p_y.y"
{
{
(
yyval
.
a_refcomp
).
lex_type
=
RLT_AmpUppercase
;
(
yyval
.
a_refcomp
).
lex_type
=
RLT_AmpUppercase
;
(
yyval
.
a_refcomp
).
name
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
(
yyval
.
a_refcomp
).
name
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
...
@@ -3609,7 +3609,7 @@ yyreduce:
...
@@ -3609,7 +3609,7 @@ yyreduce:
break
;
break
;
case
146
:
case
146
:
#line 144
7
"asn1p_y.y"
#line 144
8
"asn1p_y.y"
{
{
(
yyval
.
a_refcomp
).
lex_type
=
RLT_Amplowercase
;
(
yyval
.
a_refcomp
).
lex_type
=
RLT_Amplowercase
;
(
yyval
.
a_refcomp
).
name
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
(
yyval
.
a_refcomp
).
name
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
...
@@ -3617,7 +3617,7 @@ yyreduce:
...
@@ -3617,7 +3617,7 @@ yyreduce:
break
;
break
;
case
147
:
case
147
:
#line 145
6
"asn1p_y.y"
#line 145
7
"asn1p_y.y"
{
{
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
asn1p_ref_add_component
((
yyval
.
a_ref
),
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
RLT_AmpUppercase
);
asn1p_ref_add_component
((
yyval
.
a_ref
),
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
RLT_AmpUppercase
);
...
@@ -3626,7 +3626,7 @@ yyreduce:
...
@@ -3626,7 +3626,7 @@ yyreduce:
break
;
break
;
case
148
:
case
148
:
#line 146
1
"asn1p_y.y"
#line 146
2
"asn1p_y.y"
{
{
(
yyval
.
a_ref
)
=
(
yyval
.
a_ref
);
(
yyval
.
a_ref
)
=
(
yyval
.
a_ref
);
asn1p_ref_add_component
((
yyval
.
a_ref
),
(
yyvsp
[(
3
)
-
(
3
)].
tv_str
),
RLT_AmpUppercase
);
asn1p_ref_add_component
((
yyval
.
a_ref
),
(
yyvsp
[(
3
)
-
(
3
)].
tv_str
),
RLT_AmpUppercase
);
...
@@ -3635,7 +3635,7 @@ yyreduce:
...
@@ -3635,7 +3635,7 @@ yyreduce:
break
;
break
;
case
149
:
case
149
:
#line 146
6
"asn1p_y.y"
#line 146
7
"asn1p_y.y"
{
{
(
yyval
.
a_ref
)
=
(
yyval
.
a_ref
);
(
yyval
.
a_ref
)
=
(
yyval
.
a_ref
);
asn1p_ref_add_component
((
yyval
.
a_ref
),
(
yyvsp
[(
3
)
-
(
3
)].
tv_str
),
RLT_Amplowercase
);
asn1p_ref_add_component
((
yyval
.
a_ref
),
(
yyvsp
[(
3
)
-
(
3
)].
tv_str
),
RLT_Amplowercase
);
...
@@ -3644,7 +3644,7 @@ yyreduce:
...
@@ -3644,7 +3644,7 @@ yyreduce:
break
;
break
;
case
150
:
case
150
:
#line 147
4
"asn1p_y.y"
#line 147
5
"asn1p_y.y"
{
{
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
asn1p_ref_add_component
((
yyval
.
a_ref
),
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
RLT_CAPITALS
);
asn1p_ref_add_component
((
yyval
.
a_ref
),
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
RLT_CAPITALS
);
...
@@ -3653,7 +3653,7 @@ yyreduce:
...
@@ -3653,7 +3653,7 @@ yyreduce:
break
;
break
;
case
151
:
case
151
:
#line 149
7
"asn1p_y.y"
#line 149
8
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
4
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
4
)].
a_expr
);
assert
((
yyval
.
a_expr
)
->
Identifier
==
NULL
);
assert
((
yyval
.
a_expr
)
->
Identifier
==
NULL
);
...
@@ -3664,7 +3664,7 @@ yyreduce:
...
@@ -3664,7 +3664,7 @@ yyreduce:
break
;
break
;
case
154
:
case
154
:
#line 15
09
"asn1p_y.y"
#line 15
10
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
0
);
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
0
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -3675,12 +3675,12 @@ yyreduce:
...
@@ -3675,12 +3675,12 @@ yyreduce:
break
;
break
;
case
155
:
case
155
:
#line 151
6
"asn1p_y.y"
#line 151
7
"asn1p_y.y"
{
asn1p_lexer_hack_push_opaque_state
();
}
{
asn1p_lexer_hack_push_opaque_state
();
}
break
;
break
;
case
156
:
case
156
:
#line 151
6
"asn1p_y.y"
#line 151
7
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_frombuf
((
yyvsp
[(
3
)
-
(
3
)].
tv_opaque
).
buf
,
(
yyvsp
[(
3
)
-
(
3
)].
tv_opaque
).
len
,
0
);
(
yyval
.
a_value
)
=
asn1p_value_frombuf
((
yyvsp
[(
3
)
-
(
3
)].
tv_opaque
).
buf
,
(
yyvsp
[(
3
)
-
(
3
)].
tv_opaque
).
len
,
0
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -3689,7 +3689,7 @@ yyreduce:
...
@@ -3689,7 +3689,7 @@ yyreduce:
break
;
break
;
case
157
:
case
157
:
#line 152
1
"asn1p_y.y"
#line 152
2
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
0
);
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
0
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -3698,7 +3698,7 @@ yyreduce:
...
@@ -3698,7 +3698,7 @@ yyreduce:
break
;
break
;
case
158
:
case
158
:
#line 15
29
"asn1p_y.y"
#line 15
30
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
0
);
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
0
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -3707,7 +3707,7 @@ yyreduce:
...
@@ -3707,7 +3707,7 @@ yyreduce:
break
;
break
;
case
159
:
case
159
:
#line 153
4
"asn1p_y.y"
#line 153
5
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
0
);
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
0
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -3716,7 +3716,7 @@ yyreduce:
...
@@ -3716,7 +3716,7 @@ yyreduce:
break
;
break
;
case
160
:
case
160
:
#line 15
39
"asn1p_y.y"
#line 15
40
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
_convert_bitstring2binary
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
'B'
);
(
yyval
.
a_value
)
=
_convert_bitstring2binary
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
'B'
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -3725,7 +3725,7 @@ yyreduce:
...
@@ -3725,7 +3725,7 @@ yyreduce:
break
;
break
;
case
161
:
case
161
:
#line 154
4
"asn1p_y.y"
#line 154
5
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
_convert_bitstring2binary
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
'H'
);
(
yyval
.
a_value
)
=
_convert_bitstring2binary
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
'H'
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -3734,21 +3734,21 @@ yyreduce:
...
@@ -3734,21 +3734,21 @@ yyreduce:
break
;
break
;
case
162
:
case
162
:
#line 15
49
"asn1p_y.y"
#line 15
50
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
(
yyval
.
a_value
);
(
yyval
.
a_value
)
=
(
yyval
.
a_value
);
}
}
break
;
break
;
case
163
:
case
163
:
#line 155
2
"asn1p_y.y"
#line 155
3
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_value
);
(
yyval
.
a_value
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_value
);
}
}
break
;
break
;
case
164
:
case
164
:
#line 155
8
"asn1p_y.y"
#line 155
9
"asn1p_y.y"
{
{
asn1p_ref_t
*
ref
;
asn1p_ref_t
*
ref
;
int
ret
;
int
ret
;
...
@@ -3763,7 +3763,7 @@ yyreduce:
...
@@ -3763,7 +3763,7 @@ yyreduce:
break
;
break
;
case
165
:
case
165
:
#line 15
69
"asn1p_y.y"
#line 15
70
"asn1p_y.y"
{
{
asn1p_ref_t
*
ref
;
asn1p_ref_t
*
ref
;
int
ret
;
int
ret
;
...
@@ -3781,7 +3781,7 @@ yyreduce:
...
@@ -3781,7 +3781,7 @@ yyreduce:
break
;
break
;
case
166
:
case
166
:
#line 158
7
"asn1p_y.y"
#line 158
8
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_frombuf
((
yyvsp
[(
1
)
-
(
1
)].
tv_opaque
).
buf
,
(
yyvsp
[(
1
)
-
(
1
)].
tv_opaque
).
len
,
0
);
(
yyval
.
a_value
)
=
asn1p_value_frombuf
((
yyvsp
[(
1
)
-
(
1
)].
tv_opaque
).
buf
,
(
yyvsp
[(
1
)
-
(
1
)].
tv_opaque
).
len
,
0
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -3789,7 +3789,7 @@ yyreduce:
...
@@ -3789,7 +3789,7 @@ yyreduce:
break
;
break
;
case
167
:
case
167
:
#line 159
1
"asn1p_y.y"
#line 159
2
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
((
yyvsp
[(
1
)
-
(
1
)].
a_int
));
(
yyval
.
a_value
)
=
asn1p_value_fromint
((
yyvsp
[(
1
)
-
(
1
)].
a_int
));
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -3798,7 +3798,7 @@ yyreduce:
...
@@ -3798,7 +3798,7 @@ yyreduce:
break
;
break
;
case
168
:
case
168
:
#line 159
6
"asn1p_y.y"
#line 159
7
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
((
yyvsp
[(
1
)
-
(
1
)].
a_int
));
(
yyval
.
a_value
)
=
asn1p_value_fromint
((
yyvsp
[(
1
)
-
(
1
)].
a_int
));
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -3807,7 +3807,7 @@ yyreduce:
...
@@ -3807,7 +3807,7 @@ yyreduce:
break
;
break
;
case
169
:
case
169
:
#line 160
4
"asn1p_y.y"
#line 160
5
"asn1p_y.y"
{
{
(
yyval
.
tv_opaque
).
len
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_opaque
).
len
+
1
;
(
yyval
.
tv_opaque
).
len
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_opaque
).
len
+
1
;
(
yyval
.
tv_opaque
).
buf
=
malloc
((
yyval
.
tv_opaque
).
len
+
1
);
(
yyval
.
tv_opaque
).
buf
=
malloc
((
yyval
.
tv_opaque
).
len
+
1
);
...
@@ -3820,7 +3820,7 @@ yyreduce:
...
@@ -3820,7 +3820,7 @@ yyreduce:
break
;
break
;
case
170
:
case
170
:
#line 161
3
"asn1p_y.y"
#line 161
4
"asn1p_y.y"
{
{
int
newsize
=
(
yyvsp
[(
1
)
-
(
2
)].
tv_opaque
).
len
+
(
yyvsp
[(
2
)
-
(
2
)].
tv_opaque
).
len
;
int
newsize
=
(
yyvsp
[(
1
)
-
(
2
)].
tv_opaque
).
len
+
(
yyvsp
[(
2
)
-
(
2
)].
tv_opaque
).
len
;
char
*
p
=
malloc
(
newsize
+
1
);
char
*
p
=
malloc
(
newsize
+
1
);
...
@@ -3836,87 +3836,87 @@ yyreduce:
...
@@ -3836,87 +3836,87 @@ yyreduce:
break
;
break
;
case
171
:
case
171
:
#line 162
8
"asn1p_y.y"
#line 162
9
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_BOOLEAN
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_BOOLEAN
;
}
break
;
break
;
case
172
:
case
172
:
#line 16
29
"asn1p_y.y"
#line 16
30
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_NULL
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_NULL
;
}
break
;
break
;
case
173
:
case
173
:
#line 163
0
"asn1p_y.y"
#line 163
1
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_REAL
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_REAL
;
}
break
;
break
;
case
174
:
case
174
:
#line 163
1
"asn1p_y.y"
#line 163
2
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_type
);
}
{
(
yyval
.
a_type
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_type
);
}
break
;
break
;
case
175
:
case
175
:
#line 163
2
"asn1p_y.y"
#line 163
3
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_OCTET_STRING
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_OCTET_STRING
;
}
break
;
break
;
case
176
:
case
176
:
#line 163
3
"asn1p_y.y"
#line 163
4
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_OBJECT_IDENTIFIER
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_OBJECT_IDENTIFIER
;
}
break
;
break
;
case
177
:
case
177
:
#line 163
4
"asn1p_y.y"
#line 163
5
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_RELATIVE_OID
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_RELATIVE_OID
;
}
break
;
break
;
case
178
:
case
178
:
#line 163
5
"asn1p_y.y"
#line 163
6
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_EXTERNAL
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_EXTERNAL
;
}
break
;
break
;
case
179
:
case
179
:
#line 163
6
"asn1p_y.y"
#line 163
7
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_EMBEDDED_PDV
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_EMBEDDED_PDV
;
}
break
;
break
;
case
180
:
case
180
:
#line 163
7
"asn1p_y.y"
#line 163
8
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_CHARACTER_STRING
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_CHARACTER_STRING
;
}
break
;
break
;
case
181
:
case
181
:
#line 163
8
"asn1p_y.y"
#line 163
9
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_UTCTime
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_UTCTime
;
}
break
;
break
;
case
182
:
case
182
:
#line 16
39
"asn1p_y.y"
#line 16
40
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_GeneralizedTime
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_GeneralizedTime
;
}
break
;
break
;
case
183
:
case
183
:
#line 164
0
"asn1p_y.y"
#line 164
1
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_type
);
}
{
(
yyval
.
a_type
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_type
);
}
break
;
break
;
case
184
:
case
184
:
#line 164
7
"asn1p_y.y"
#line 164
8
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_INTEGER
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_INTEGER
;
}
break
;
break
;
case
185
:
case
185
:
#line 164
8
"asn1p_y.y"
#line 164
9
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_ENUMERATED
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_ENUMERATED
;
}
break
;
break
;
case
186
:
case
186
:
#line 16
49
"asn1p_y.y"
#line 16
50
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_BIT_STRING
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_BIT_STRING
;
}
break
;
break
;
case
187
:
case
187
:
#line 165
3
"asn1p_y.y"
#line 165
4
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -3926,7 +3926,7 @@ yyreduce:
...
@@ -3926,7 +3926,7 @@ yyreduce:
break
;
break
;
case
188
:
case
188
:
#line 16
59
"asn1p_y.y"
#line 16
60
"asn1p_y.y"
{
{
if
((
yyvsp
[(
2
)
-
(
2
)].
a_expr
))
{
if
((
yyvsp
[(
2
)
-
(
2
)].
a_expr
))
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
2
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
2
)].
a_expr
);
...
@@ -3940,12 +3940,12 @@ yyreduce:
...
@@ -3940,12 +3940,12 @@ yyreduce:
break
;
break
;
case
189
:
case
189
:
#line 167
2
"asn1p_y.y"
#line 167
3
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_STRING_BMPString
;
}
{
(
yyval
.
a_type
)
=
ASN_STRING_BMPString
;
}
break
;
break
;
case
190
:
case
190
:
#line 167
3
"asn1p_y.y"
#line 167
4
"asn1p_y.y"
{
{
(
yyval
.
a_type
)
=
ASN_STRING_GeneralString
;
(
yyval
.
a_type
)
=
ASN_STRING_GeneralString
;
fprintf
(
stderr
,
"WARNING: GeneralString is not fully supported
\n
"
);
fprintf
(
stderr
,
"WARNING: GeneralString is not fully supported
\n
"
);
...
@@ -3953,7 +3953,7 @@ yyreduce:
...
@@ -3953,7 +3953,7 @@ yyreduce:
break
;
break
;
case
191
:
case
191
:
#line 167
7
"asn1p_y.y"
#line 167
8
"asn1p_y.y"
{
{
(
yyval
.
a_type
)
=
ASN_STRING_GraphicString
;
(
yyval
.
a_type
)
=
ASN_STRING_GraphicString
;
fprintf
(
stderr
,
"WARNING: GraphicString is not fully supported
\n
"
);
fprintf
(
stderr
,
"WARNING: GraphicString is not fully supported
\n
"
);
...
@@ -3961,27 +3961,27 @@ yyreduce:
...
@@ -3961,27 +3961,27 @@ yyreduce:
break
;
break
;
case
192
:
case
192
:
#line 168
1
"asn1p_y.y"
#line 168
2
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_STRING_IA5String
;
}
{
(
yyval
.
a_type
)
=
ASN_STRING_IA5String
;
}
break
;
break
;
case
193
:
case
193
:
#line 168
2
"asn1p_y.y"
#line 168
3
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_STRING_ISO646String
;
}
{
(
yyval
.
a_type
)
=
ASN_STRING_ISO646String
;
}
break
;
break
;
case
194
:
case
194
:
#line 168
3
"asn1p_y.y"
#line 168
4
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_STRING_NumericString
;
}
{
(
yyval
.
a_type
)
=
ASN_STRING_NumericString
;
}
break
;
break
;
case
195
:
case
195
:
#line 168
4
"asn1p_y.y"
#line 168
5
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_STRING_PrintableString
;
}
{
(
yyval
.
a_type
)
=
ASN_STRING_PrintableString
;
}
break
;
break
;
case
196
:
case
196
:
#line 168
5
"asn1p_y.y"
#line 168
6
"asn1p_y.y"
{
{
(
yyval
.
a_type
)
=
ASN_STRING_T61String
;
(
yyval
.
a_type
)
=
ASN_STRING_T61String
;
fprintf
(
stderr
,
"WARNING: T61String is not fully supported
\n
"
);
fprintf
(
stderr
,
"WARNING: T61String is not fully supported
\n
"
);
...
@@ -3989,22 +3989,22 @@ yyreduce:
...
@@ -3989,22 +3989,22 @@ yyreduce:
break
;
break
;
case
197
:
case
197
:
#line 16
89
"asn1p_y.y"
#line 16
90
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_STRING_TeletexString
;
}
{
(
yyval
.
a_type
)
=
ASN_STRING_TeletexString
;
}
break
;
break
;
case
198
:
case
198
:
#line 169
0
"asn1p_y.y"
#line 169
1
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_STRING_UniversalString
;
}
{
(
yyval
.
a_type
)
=
ASN_STRING_UniversalString
;
}
break
;
break
;
case
199
:
case
199
:
#line 169
1
"asn1p_y.y"
#line 169
2
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_STRING_UTF8String
;
}
{
(
yyval
.
a_type
)
=
ASN_STRING_UTF8String
;
}
break
;
break
;
case
200
:
case
200
:
#line 169
2
"asn1p_y.y"
#line 169
3
"asn1p_y.y"
{
{
(
yyval
.
a_type
)
=
ASN_STRING_VideotexString
;
(
yyval
.
a_type
)
=
ASN_STRING_VideotexString
;
fprintf
(
stderr
,
"WARNING: VideotexString is not fully supported
\n
"
);
fprintf
(
stderr
,
"WARNING: VideotexString is not fully supported
\n
"
);
...
@@ -4012,36 +4012,36 @@ yyreduce:
...
@@ -4012,36 +4012,36 @@ yyreduce:
break
;
break
;
case
201
:
case
201
:
#line 169
6
"asn1p_y.y"
#line 169
7
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_STRING_VisibleString
;
}
{
(
yyval
.
a_type
)
=
ASN_STRING_VisibleString
;
}
break
;
break
;
case
202
:
case
202
:
#line 169
7
"asn1p_y.y"
#line 169
8
"asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_STRING_ObjectDescriptor
;
}
{
(
yyval
.
a_type
)
=
ASN_STRING_ObjectDescriptor
;
}
break
;
break
;
case
207
:
case
207
:
#line 170
8
"asn1p_y.y"
#line 170
9
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
0
;
}
{
(
yyval
.
a_constr
)
=
0
;
}
break
;
break
;
case
208
:
case
208
:
#line 17
09
"asn1p_y.y"
#line 17
10
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
}
break
;
break
;
case
210
:
case
210
:
#line 17
19
"asn1p_y.y"
#line 17
20
"asn1p_y.y"
{
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_SET
,
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
),
0
);
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_SET
,
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
),
0
);
}
}
break
;
break
;
case
211
:
case
211
:
#line 172
2
"asn1p_y.y"
#line 172
3
"asn1p_y.y"
{
{
/*
/*
* This is a special case, for compatibility purposes.
* This is a special case, for compatibility purposes.
...
@@ -4052,35 +4052,35 @@ yyreduce:
...
@@ -4052,35 +4052,35 @@ yyreduce:
break
;
break
;
case
212
:
case
212
:
#line 173
2
"asn1p_y.y"
#line 173
3
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_constr
);
(
yyval
.
a_constr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_constr
);
}
}
break
;
break
;
case
213
:
case
213
:
#line 173
5
"asn1p_y.y"
#line 173
6
"asn1p_y.y"
{
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_SET
,
(
yyvsp
[(
1
)
-
(
4
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
4
)].
a_constr
));
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_SET
,
(
yyvsp
[(
1
)
-
(
4
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
4
)].
a_constr
));
}
}
break
;
break
;
case
214
:
case
214
:
#line 174
1
"asn1p_y.y"
#line 174
2
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
}
break
;
break
;
case
215
:
case
215
:
#line 174
4
"asn1p_y.y"
#line 174
5
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
}
break
;
break
;
case
216
:
case
216
:
#line 175
0
"asn1p_y.y"
#line 175
1
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
->
type
=
ACT_EL_EXT
;
(
yyval
.
a_constr
)
->
type
=
ACT_EL_EXT
;
...
@@ -4088,14 +4088,14 @@ yyreduce:
...
@@ -4088,14 +4088,14 @@ yyreduce:
break
;
break
;
case
217
:
case
217
:
#line 175
4
"asn1p_y.y"
#line 175
5
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
}
break
;
break
;
case
218
:
case
218
:
#line 175
7
"asn1p_y.y"
#line 175
8
"asn1p_y.y"
{
{
asn1p_constraint_t
*
ct
;
asn1p_constraint_t
*
ct
;
ct
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
ct
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
...
@@ -4105,7 +4105,7 @@ yyreduce:
...
@@ -4105,7 +4105,7 @@ yyreduce:
break
;
break
;
case
219
:
case
219
:
#line 176
3
"asn1p_y.y"
#line 176
4
"asn1p_y.y"
{
{
asn1p_constraint_t
*
ct
;
asn1p_constraint_t
*
ct
;
ct
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
ct
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
...
@@ -4117,35 +4117,35 @@ yyreduce:
...
@@ -4117,35 +4117,35 @@ yyreduce:
break
;
break
;
case
221
:
case
221
:
#line 177
5
"asn1p_y.y"
#line 177
6
"asn1p_y.y"
{
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_AEX
,
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
),
0
);
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_AEX
,
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
),
0
);
}
}
break
;
break
;
case
223
:
case
223
:
#line 178
2
"asn1p_y.y"
#line 178
3
"asn1p_y.y"
{
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_UNI
,
(
yyvsp
[(
1
)
-
(
3
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
));
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_UNI
,
(
yyvsp
[(
1
)
-
(
3
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
));
}
}
break
;
break
;
case
225
:
case
225
:
#line 17
89
"asn1p_y.y"
#line 17
90
"asn1p_y.y"
{
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_INT
,
(
yyvsp
[(
1
)
-
(
3
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
));
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_INT
,
(
yyvsp
[(
1
)
-
(
3
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
));
}
}
break
;
break
;
case
227
:
case
227
:
#line 179
7
"asn1p_y.y"
#line 179
8
"asn1p_y.y"
{
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_EXC
,
(
yyvsp
[(
1
)
-
(
3
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
));
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_EXC
,
(
yyvsp
[(
1
)
-
(
3
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
));
}
}
break
;
break
;
case
228
:
case
228
:
#line 180
3
"asn1p_y.y"
#line 180
4
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
...
@@ -4157,7 +4157,7 @@ yyreduce:
...
@@ -4157,7 +4157,7 @@ yyreduce:
break
;
break
;
case
229
:
case
229
:
#line 181
1
"asn1p_y.y"
#line 181
2
"asn1p_y.y"
{
{
int
ret
;
int
ret
;
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
...
@@ -4169,7 +4169,7 @@ yyreduce:
...
@@ -4169,7 +4169,7 @@ yyreduce:
break
;
break
;
case
230
:
case
230
:
#line 18
19
"asn1p_y.y"
#line 18
20
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4179,7 +4179,7 @@ yyreduce:
...
@@ -4179,7 +4179,7 @@ yyreduce:
break
;
break
;
case
231
:
case
231
:
#line 182
5
"asn1p_y.y"
#line 182
6
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4189,7 +4189,7 @@ yyreduce:
...
@@ -4189,7 +4189,7 @@ yyreduce:
break
;
break
;
case
232
:
case
232
:
#line 183
1
"asn1p_y.y"
#line 183
2
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4200,7 +4200,7 @@ yyreduce:
...
@@ -4200,7 +4200,7 @@ yyreduce:
break
;
break
;
case
233
:
case
233
:
#line 183
8
"asn1p_y.y"
#line 183
9
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4212,7 +4212,7 @@ yyreduce:
...
@@ -4212,7 +4212,7 @@ yyreduce:
break
;
break
;
case
234
:
case
234
:
#line 184
6
"asn1p_y.y"
#line 184
7
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4224,7 +4224,7 @@ yyreduce:
...
@@ -4224,7 +4224,7 @@ yyreduce:
break
;
break
;
case
235
:
case
235
:
#line 185
4
"asn1p_y.y"
#line 185
5
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4237,26 +4237,26 @@ yyreduce:
...
@@ -4237,26 +4237,26 @@ yyreduce:
break
;
break
;
case
236
:
case
236
:
#line 186
3
"asn1p_y.y"
#line 186
4
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
}
break
;
break
;
case
237
:
case
237
:
#line 186
6
"asn1p_y.y"
#line 186
7
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
}
break
;
break
;
case
238
:
case
238
:
#line 18
69
"asn1p_y.y"
#line 18
70
"asn1p_y.y"
{
asn1p_lexer_hack_push_opaque_state
();
}
{
asn1p_lexer_hack_push_opaque_state
();
}
break
;
break
;
case
239
:
case
239
:
#line 18
69
"asn1p_y.y"
#line 18
70
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4267,7 +4267,7 @@ yyreduce:
...
@@ -4267,7 +4267,7 @@ yyreduce:
break
;
break
;
case
240
:
case
240
:
#line 18
79
"asn1p_y.y"
#line 18
80
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
->
type
=
ACT_CT_PATTERN
;
(
yyval
.
a_constr
)
->
type
=
ACT_CT_PATTERN
;
...
@@ -4276,7 +4276,7 @@ yyreduce:
...
@@ -4276,7 +4276,7 @@ yyreduce:
break
;
break
;
case
241
:
case
241
:
#line 188
4
"asn1p_y.y"
#line 188
5
"asn1p_y.y"
{
{
asn1p_ref_t
*
ref
;
asn1p_ref_t
*
ref
;
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
...
@@ -4289,21 +4289,21 @@ yyreduce:
...
@@ -4289,21 +4289,21 @@ yyreduce:
break
;
break
;
case
242
:
case
242
:
#line 189
6
"asn1p_y.y"
#line 189
7
"asn1p_y.y"
{
{
(
yyval
.
a_ctype
)
=
ACT_CT_SIZE
;
(
yyval
.
a_ctype
)
=
ACT_CT_SIZE
;
}
}
break
;
break
;
case
243
:
case
243
:
#line 1
899
"asn1p_y.y"
#line 1
900
"asn1p_y.y"
{
{
(
yyval
.
a_ctype
)
=
ACT_CT_FROM
;
(
yyval
.
a_ctype
)
=
ACT_CT_FROM
;
}
}
break
;
break
;
case
244
:
case
244
:
#line 190
5
"asn1p_y.y"
#line 190
6
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
0
);
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
0
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -4312,7 +4312,7 @@ yyreduce:
...
@@ -4312,7 +4312,7 @@ yyreduce:
break
;
break
;
case
245
:
case
245
:
#line 191
0
"asn1p_y.y"
#line 191
1
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
1
);
(
yyval
.
a_value
)
=
asn1p_value_fromint
(
1
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -4321,7 +4321,7 @@ yyreduce:
...
@@ -4321,7 +4321,7 @@ yyreduce:
break
;
break
;
case
249
:
case
249
:
#line 191
8
"asn1p_y.y"
#line 191
9
"asn1p_y.y"
{
{
asn1p_ref_t
*
ref
;
asn1p_ref_t
*
ref
;
int
ret
;
int
ret
;
...
@@ -4336,7 +4336,7 @@ yyreduce:
...
@@ -4336,7 +4336,7 @@ yyreduce:
break
;
break
;
case
250
:
case
250
:
#line 193
2
"asn1p_y.y"
#line 193
3
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
_convert_bitstring2binary
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
'B'
);
(
yyval
.
a_value
)
=
_convert_bitstring2binary
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
'B'
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -4345,7 +4345,7 @@ yyreduce:
...
@@ -4345,7 +4345,7 @@ yyreduce:
break
;
break
;
case
251
:
case
251
:
#line 193
7
"asn1p_y.y"
#line 193
8
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
_convert_bitstring2binary
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
'H'
);
(
yyval
.
a_value
)
=
_convert_bitstring2binary
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
'H'
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -4354,7 +4354,7 @@ yyreduce:
...
@@ -4354,7 +4354,7 @@ yyreduce:
break
;
break
;
case
252
:
case
252
:
#line 194
5
"asn1p_y.y"
#line 194
6
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromref
((
yyvsp
[(
1
)
-
(
1
)].
a_ref
),
0
);
(
yyval
.
a_value
)
=
asn1p_value_fromref
((
yyvsp
[(
1
)
-
(
1
)].
a_ref
),
0
);
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -4362,35 +4362,35 @@ yyreduce:
...
@@ -4362,35 +4362,35 @@ yyreduce:
break
;
break
;
case
253
:
case
253
:
#line 196
5
"asn1p_y.y"
#line 196
6
"asn1p_y.y"
{
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CT_WCOMP
,
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
),
0
);
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CT_WCOMP
,
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
),
0
);
}
}
break
;
break
;
case
254
:
case
254
:
#line 196
8
"asn1p_y.y"
#line 196
9
"asn1p_y.y"
{
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CT_WCOMPS
,
(
yyvsp
[(
4
)
-
(
5
)].
a_constr
),
0
);
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CT_WCOMPS
,
(
yyvsp
[(
4
)
-
(
5
)].
a_constr
),
0
);
}
}
break
;
break
;
case
255
:
case
255
:
#line 197
4
"asn1p_y.y"
#line 197
5
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
}
break
;
break
;
case
256
:
case
256
:
#line 197
7
"asn1p_y.y"
#line 197
8
"asn1p_y.y"
{
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CT_WCOMPS
,
(
yyvsp
[(
1
)
-
(
3
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
));
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CT_WCOMPS
,
(
yyvsp
[(
1
)
-
(
3
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
));
}
}
break
;
break
;
case
257
:
case
257
:
#line 198
3
"asn1p_y.y"
#line 198
4
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4400,7 +4400,7 @@ yyreduce:
...
@@ -4400,7 +4400,7 @@ yyreduce:
break
;
break
;
case
258
:
case
258
:
#line 19
89
"asn1p_y.y"
#line 19
90
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4412,43 +4412,43 @@ yyreduce:
...
@@ -4412,43 +4412,43 @@ yyreduce:
break
;
break
;
case
259
:
case
259
:
#line 200
3
"asn1p_y.y"
#line 200
4
"asn1p_y.y"
{
(
yyval
.
a_pres
)
=
ACPRES_DEFAULT
;
}
{
(
yyval
.
a_pres
)
=
ACPRES_DEFAULT
;
}
break
;
break
;
case
260
:
case
260
:
#line 200
4
"asn1p_y.y"
#line 200
5
"asn1p_y.y"
{
(
yyval
.
a_pres
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_pres
);
}
{
(
yyval
.
a_pres
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_pres
);
}
break
;
break
;
case
261
:
case
261
:
#line 200
8
"asn1p_y.y"
#line 200
9
"asn1p_y.y"
{
{
(
yyval
.
a_pres
)
=
ACPRES_PRESENT
;
(
yyval
.
a_pres
)
=
ACPRES_PRESENT
;
}
}
break
;
break
;
case
262
:
case
262
:
#line 201
1
"asn1p_y.y"
#line 201
2
"asn1p_y.y"
{
{
(
yyval
.
a_pres
)
=
ACPRES_ABSENT
;
(
yyval
.
a_pres
)
=
ACPRES_ABSENT
;
}
}
break
;
break
;
case
263
:
case
263
:
#line 201
4
"asn1p_y.y"
#line 201
5
"asn1p_y.y"
{
{
(
yyval
.
a_pres
)
=
ACPRES_OPTIONAL
;
(
yyval
.
a_pres
)
=
ACPRES_OPTIONAL
;
}
}
break
;
break
;
case
267
:
case
267
:
#line 20
29
"asn1p_y.y"
#line 20
30
"asn1p_y.y"
{
asn1p_lexer_hack_push_opaque_state
();
}
{
asn1p_lexer_hack_push_opaque_state
();
}
break
;
break
;
case
268
:
case
268
:
#line 20
29
"asn1p_y.y"
#line 20
30
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4460,7 +4460,7 @@ yyreduce:
...
@@ -4460,7 +4460,7 @@ yyreduce:
break
;
break
;
case
269
:
case
269
:
#line 204
0
"asn1p_y.y"
#line 204
1
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
->
type
=
ACT_CT_CTNG
;
(
yyval
.
a_constr
)
->
type
=
ACT_CT_CTNG
;
...
@@ -4470,41 +4470,41 @@ yyreduce:
...
@@ -4470,41 +4470,41 @@ yyreduce:
break
;
break
;
case
270
:
case
270
:
#line 20
49
"asn1p_y.y"
#line 20
50
"asn1p_y.y"
{
(
yyval
.
a_ctype
)
=
ACT_EL_RANGE
;
}
{
(
yyval
.
a_ctype
)
=
ACT_EL_RANGE
;
}
break
;
break
;
case
271
:
case
271
:
#line 205
0
"asn1p_y.y"
#line 205
1
"asn1p_y.y"
{
(
yyval
.
a_ctype
)
=
ACT_EL_RLRANGE
;
}
{
(
yyval
.
a_ctype
)
=
ACT_EL_RLRANGE
;
}
break
;
break
;
case
272
:
case
272
:
#line 205
1
"asn1p_y.y"
#line 205
2
"asn1p_y.y"
{
(
yyval
.
a_ctype
)
=
ACT_EL_LLRANGE
;
}
{
(
yyval
.
a_ctype
)
=
ACT_EL_LLRANGE
;
}
break
;
break
;
case
273
:
case
273
:
#line 205
2
"asn1p_y.y"
#line 205
3
"asn1p_y.y"
{
(
yyval
.
a_ctype
)
=
ACT_EL_ULRANGE
;
}
{
(
yyval
.
a_ctype
)
=
ACT_EL_ULRANGE
;
}
break
;
break
;
case
274
:
case
274
:
#line 205
5
"asn1p_y.y"
#line 205
6
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
}
break
;
break
;
case
275
:
case
275
:
#line 205
8
"asn1p_y.y"
#line 205
9
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
}
break
;
break
;
case
276
:
case
276
:
#line 206
7
"asn1p_y.y"
#line 206
8
"asn1p_y.y"
{
{
asn1p_ref_t
*
ref
=
asn1p_ref_new
(
yylineno
,
currentModule
);
asn1p_ref_t
*
ref
=
asn1p_ref_new
(
yylineno
,
currentModule
);
asn1p_constraint_t
*
ct
;
asn1p_constraint_t
*
ct
;
...
@@ -4521,14 +4521,14 @@ yyreduce:
...
@@ -4521,14 +4521,14 @@ yyreduce:
break
;
break
;
case
277
:
case
277
:
#line 208
3
"asn1p_y.y"
#line 208
4
"asn1p_y.y"
{
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_CRC
,
(
yyvsp
[(
1
)
-
(
4
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
4
)].
a_constr
));
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_CRC
,
(
yyvsp
[(
1
)
-
(
4
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
4
)].
a_constr
));
}
}
break
;
break
;
case
278
:
case
278
:
#line 20
89
"asn1p_y.y"
#line 20
90
"asn1p_y.y"
{
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
checkmem
((
yyval
.
a_constr
));
...
@@ -4538,7 +4538,7 @@ yyreduce:
...
@@ -4538,7 +4538,7 @@ yyreduce:
break
;
break
;
case
279
:
case
279
:
#line 209
5
"asn1p_y.y"
#line 209
6
"asn1p_y.y"
{
{
asn1p_constraint_t
*
ct
;
asn1p_constraint_t
*
ct
;
ct
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
ct
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
...
@@ -4550,7 +4550,7 @@ yyreduce:
...
@@ -4550,7 +4550,7 @@ yyreduce:
break
;
break
;
case
280
:
case
280
:
#line 21
09
"asn1p_y.y"
#line 21
10
"asn1p_y.y"
{
{
char
*
p
=
malloc
(
strlen
((
yyvsp
[(
2
)
-
(
2
)].
tv_str
))
+
2
);
char
*
p
=
malloc
(
strlen
((
yyvsp
[(
2
)
-
(
2
)].
tv_str
))
+
2
);
int
ret
;
int
ret
;
...
@@ -4565,7 +4565,7 @@ yyreduce:
...
@@ -4565,7 +4565,7 @@ yyreduce:
break
;
break
;
case
281
:
case
281
:
#line 212
0
"asn1p_y.y"
#line 212
1
"asn1p_y.y"
{
{
char
*
p
=
malloc
(
strlen
((
yyvsp
[(
3
)
-
(
3
)].
tv_str
))
+
3
);
char
*
p
=
malloc
(
strlen
((
yyvsp
[(
3
)
-
(
3
)].
tv_str
))
+
3
);
int
ret
;
int
ret
;
...
@@ -4581,14 +4581,14 @@ yyreduce:
...
@@ -4581,14 +4581,14 @@ yyreduce:
break
;
break
;
case
282
:
case
282
:
#line 213
6
"asn1p_y.y"
#line 213
7
"asn1p_y.y"
{
{
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
}
}
break
;
break
;
case
283
:
case
283
:
#line 21
39
"asn1p_y.y"
#line 21
40
"asn1p_y.y"
{
{
int
l1
=
strlen
((
yyvsp
[(
1
)
-
(
3
)].
tv_str
));
int
l1
=
strlen
((
yyvsp
[(
1
)
-
(
3
)].
tv_str
));
int
l3
=
strlen
((
yyvsp
[(
3
)
-
(
3
)].
tv_str
));
int
l3
=
strlen
((
yyvsp
[(
3
)
-
(
3
)].
tv_str
));
...
@@ -4603,7 +4603,7 @@ yyreduce:
...
@@ -4603,7 +4603,7 @@ yyreduce:
break
;
break
;
case
284
:
case
284
:
#line 21
59
"asn1p_y.y"
#line 21
60
"asn1p_y.y"
{
{
(
yyval
.
a_marker
).
flags
=
EM_NOMARK
;
(
yyval
.
a_marker
).
flags
=
EM_NOMARK
;
(
yyval
.
a_marker
).
default_value
=
0
;
(
yyval
.
a_marker
).
default_value
=
0
;
...
@@ -4611,12 +4611,12 @@ yyreduce:
...
@@ -4611,12 +4611,12 @@ yyreduce:
break
;
break
;
case
285
:
case
285
:
#line 216
3
"asn1p_y.y"
#line 216
4
"asn1p_y.y"
{
(
yyval
.
a_marker
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_marker
);
}
{
(
yyval
.
a_marker
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_marker
);
}
break
;
break
;
case
286
:
case
286
:
#line 216
7
"asn1p_y.y"
#line 216
8
"asn1p_y.y"
{
{
(
yyval
.
a_marker
).
flags
=
EM_OPTIONAL
|
EM_INDIRECT
;
(
yyval
.
a_marker
).
flags
=
EM_OPTIONAL
|
EM_INDIRECT
;
(
yyval
.
a_marker
).
default_value
=
0
;
(
yyval
.
a_marker
).
default_value
=
0
;
...
@@ -4624,7 +4624,7 @@ yyreduce:
...
@@ -4624,7 +4624,7 @@ yyreduce:
break
;
break
;
case
287
:
case
287
:
#line 217
1
"asn1p_y.y"
#line 217
2
"asn1p_y.y"
{
{
(
yyval
.
a_marker
).
flags
=
EM_DEFAULT
;
(
yyval
.
a_marker
).
flags
=
EM_DEFAULT
;
(
yyval
.
a_marker
).
default_value
=
(
yyvsp
[(
2
)
-
(
2
)].
a_value
);
(
yyval
.
a_marker
).
default_value
=
(
yyvsp
[(
2
)
-
(
2
)].
a_value
);
...
@@ -4632,7 +4632,7 @@ yyreduce:
...
@@ -4632,7 +4632,7 @@ yyreduce:
break
;
break
;
case
288
:
case
288
:
#line 219
4
"asn1p_y.y"
#line 219
5
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -4640,14 +4640,14 @@ yyreduce:
...
@@ -4640,14 +4640,14 @@ yyreduce:
break
;
break
;
case
289
:
case
289
:
#line 219
8
"asn1p_y.y"
#line 219
9
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_expr
);
}
}
break
;
break
;
case
290
:
case
290
:
#line 220
4
"asn1p_y.y"
#line 220
5
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -4656,7 +4656,7 @@ yyreduce:
...
@@ -4656,7 +4656,7 @@ yyreduce:
break
;
break
;
case
291
:
case
291
:
#line 22
09
"asn1p_y.y"
#line 22
10
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
...
@@ -4664,7 +4664,7 @@ yyreduce:
...
@@ -4664,7 +4664,7 @@ yyreduce:
break
;
break
;
case
292
:
case
292
:
#line 221
6
"asn1p_y.y"
#line 221
7
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -4675,7 +4675,7 @@ yyreduce:
...
@@ -4675,7 +4675,7 @@ yyreduce:
break
;
break
;
case
293
:
case
293
:
#line 222
3
"asn1p_y.y"
#line 222
4
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -4687,7 +4687,7 @@ yyreduce:
...
@@ -4687,7 +4687,7 @@ yyreduce:
break
;
break
;
case
294
:
case
294
:
#line 223
1
"asn1p_y.y"
#line 223
2
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -4699,7 +4699,7 @@ yyreduce:
...
@@ -4699,7 +4699,7 @@ yyreduce:
break
;
break
;
case
295
:
case
295
:
#line 22
39
"asn1p_y.y"
#line 22
40
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -4710,7 +4710,7 @@ yyreduce:
...
@@ -4710,7 +4710,7 @@ yyreduce:
break
;
break
;
case
296
:
case
296
:
#line 224
6
"asn1p_y.y"
#line 224
7
"asn1p_y.y"
{
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
checkmem
((
yyval
.
a_expr
));
...
@@ -4722,7 +4722,7 @@ yyreduce:
...
@@ -4722,7 +4722,7 @@ yyreduce:
break
;
break
;
case
297
:
case
297
:
#line 225
7
"asn1p_y.y"
#line 225
8
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
((
yyvsp
[(
1
)
-
(
1
)].
a_int
));
(
yyval
.
a_value
)
=
asn1p_value_fromint
((
yyvsp
[(
1
)
-
(
1
)].
a_int
));
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -4730,7 +4730,7 @@ yyreduce:
...
@@ -4730,7 +4730,7 @@ yyreduce:
break
;
break
;
case
298
:
case
298
:
#line 226
1
"asn1p_y.y"
#line 226
2
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
((
yyvsp
[(
1
)
-
(
1
)].
a_int
));
(
yyval
.
a_value
)
=
asn1p_value_fromint
((
yyvsp
[(
1
)
-
(
1
)].
a_int
));
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -4738,7 +4738,7 @@ yyreduce:
...
@@ -4738,7 +4738,7 @@ yyreduce:
break
;
break
;
case
300
:
case
300
:
#line 22
69
"asn1p_y.y"
#line 22
70
"asn1p_y.y"
{
{
(
yyval
.
a_value
)
=
asn1p_value_fromdouble
((
yyvsp
[(
1
)
-
(
1
)].
a_dbl
));
(
yyval
.
a_value
)
=
asn1p_value_fromdouble
((
yyvsp
[(
1
)
-
(
1
)].
a_dbl
));
checkmem
((
yyval
.
a_value
));
checkmem
((
yyval
.
a_value
));
...
@@ -4746,17 +4746,17 @@ yyreduce:
...
@@ -4746,17 +4746,17 @@ yyreduce:
break
;
break
;
case
301
:
case
301
:
#line 230
0
"asn1p_y.y"
#line 230
1
"asn1p_y.y"
{
memset
(
&
(
yyval
.
a_tag
),
0
,
sizeof
((
yyval
.
a_tag
)));
}
{
memset
(
&
(
yyval
.
a_tag
),
0
,
sizeof
((
yyval
.
a_tag
)));
}
break
;
break
;
case
302
:
case
302
:
#line 230
1
"asn1p_y.y"
#line 230
2
"asn1p_y.y"
{
(
yyval
.
a_tag
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_tag
);
}
{
(
yyval
.
a_tag
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_tag
);
}
break
;
break
;
case
303
:
case
303
:
#line 230
5
"asn1p_y.y"
#line 230
6
"asn1p_y.y"
{
{
(
yyval
.
a_tag
)
=
(
yyvsp
[(
1
)
-
(
2
)].
a_tag
);
(
yyval
.
a_tag
)
=
(
yyvsp
[(
1
)
-
(
2
)].
a_tag
);
(
yyval
.
a_tag
).
tag_mode
=
(
yyvsp
[(
2
)
-
(
2
)].
a_tag
).
tag_mode
;
(
yyval
.
a_tag
).
tag_mode
=
(
yyvsp
[(
2
)
-
(
2
)].
a_tag
).
tag_mode
;
...
@@ -4764,7 +4764,7 @@ yyreduce:
...
@@ -4764,7 +4764,7 @@ yyreduce:
break
;
break
;
case
304
:
case
304
:
#line 231
2
"asn1p_y.y"
#line 231
3
"asn1p_y.y"
{
{
(
yyval
.
a_tag
)
=
(
yyvsp
[(
2
)
-
(
4
)].
a_tag
);
(
yyval
.
a_tag
)
=
(
yyvsp
[(
2
)
-
(
4
)].
a_tag
);
(
yyval
.
a_tag
).
tag_value
=
(
yyvsp
[(
3
)
-
(
4
)].
a_int
);
(
yyval
.
a_tag
).
tag_value
=
(
yyvsp
[(
3
)
-
(
4
)].
a_int
);
...
@@ -4772,42 +4772,42 @@ yyreduce:
...
@@ -4772,42 +4772,42 @@ yyreduce:
break
;
break
;
case
305
:
case
305
:
#line 231
8
"asn1p_y.y"
#line 231
9
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_class
=
TC_CONTEXT_SPECIFIC
;
}
{
(
yyval
.
a_tag
).
tag_class
=
TC_CONTEXT_SPECIFIC
;
}
break
;
break
;
case
306
:
case
306
:
#line 23
19
"asn1p_y.y"
#line 23
20
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_class
=
TC_UNIVERSAL
;
}
{
(
yyval
.
a_tag
).
tag_class
=
TC_UNIVERSAL
;
}
break
;
break
;
case
307
:
case
307
:
#line 232
0
"asn1p_y.y"
#line 232
1
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_class
=
TC_APPLICATION
;
}
{
(
yyval
.
a_tag
).
tag_class
=
TC_APPLICATION
;
}
break
;
break
;
case
308
:
case
308
:
#line 232
1
"asn1p_y.y"
#line 232
2
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_class
=
TC_PRIVATE
;
}
{
(
yyval
.
a_tag
).
tag_class
=
TC_PRIVATE
;
}
break
;
break
;
case
309
:
case
309
:
#line 232
5
"asn1p_y.y"
#line 232
6
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_mode
=
TM_DEFAULT
;
}
{
(
yyval
.
a_tag
).
tag_mode
=
TM_DEFAULT
;
}
break
;
break
;
case
310
:
case
310
:
#line 232
6
"asn1p_y.y"
#line 232
7
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_mode
=
TM_IMPLICIT
;
}
{
(
yyval
.
a_tag
).
tag_mode
=
TM_IMPLICIT
;
}
break
;
break
;
case
311
:
case
311
:
#line 232
7
"asn1p_y.y"
#line 232
8
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_mode
=
TM_EXPLICIT
;
}
{
(
yyval
.
a_tag
).
tag_mode
=
TM_EXPLICIT
;
}
break
;
break
;
case
312
:
case
312
:
#line 233
1
"asn1p_y.y"
#line 233
2
"asn1p_y.y"
{
{
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
...
@@ -4815,7 +4815,7 @@ yyreduce:
...
@@ -4815,7 +4815,7 @@ yyreduce:
break
;
break
;
case
313
:
case
313
:
#line 233
5
"asn1p_y.y"
#line 233
6
"asn1p_y.y"
{
{
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
...
@@ -4823,7 +4823,7 @@ yyreduce:
...
@@ -4823,7 +4823,7 @@ yyreduce:
break
;
break
;
case
314
:
case
314
:
#line 234
3
"asn1p_y.y"
#line 234
4
"asn1p_y.y"
{
{
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
...
@@ -4831,19 +4831,19 @@ yyreduce:
...
@@ -4831,19 +4831,19 @@ yyreduce:
break
;
break
;
case
315
:
case
315
:
#line 235
0
"asn1p_y.y"
#line 235
1
"asn1p_y.y"
{
(
yyval
.
tv_str
)
=
0
;
}
{
(
yyval
.
tv_str
)
=
0
;
}
break
;
break
;
case
316
:
case
316
:
#line 235
1
"asn1p_y.y"
#line 235
2
"asn1p_y.y"
{
{
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
}
}
break
;
break
;
case
317
:
case
317
:
#line 235
7
"asn1p_y.y"
#line 235
8
"asn1p_y.y"
{
{
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
...
@@ -5066,7 +5066,7 @@ yyreturn:
...
@@ -5066,7 +5066,7 @@ yyreturn:
}
}
#line 236
3
"asn1p_y.y"
#line 236
4
"asn1p_y.y"
...
...
libasn1parser/asn1p_y.y
View file @
e700b208
...
@@ -580,6 +580,7 @@ Assignment:
...
@@ -580,6 +580,7 @@ Assignment:
* === EXAMPLE ===
* === EXAMPLE ===
* EvenNumbers INTEGER ::= { 2 | 4 | 6 | 8 }
* EvenNumbers INTEGER ::= { 2 | 4 | 6 | 8 }
* === EOF ===
* === EOF ===
* Also ObjectClassSet.
*/
*/
| ValueSetTypeAssignment {
| ValueSetTypeAssignment {
$$ = asn1p_module_new();
$$ = asn1p_module_new();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment