-
Notifications
You must be signed in to change notification settings - Fork 2
/
my.map
181 lines (159 loc) · 4.89 KB
/
my.map
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
Clipper* O_OBJECT
PolyType T_UV
ClipType T_UV
PolyFillType T_UV
JoinType T_UV
ClipperLib::Polygon T_VECTOR_POINT
ClipperLib::Polygon* T_VECTOR_POINT_PTR
ClipperLib::Polygons T_VECTOR_VECTOR_POINT
ClipperLib::Polygons* T_VECTOR_VECTOR_POINT_PTR
ClipperLib::PolyTree* T_POLYTREE_PTR
ExPolygon T_EXPOLY
ExPolygon* T_EXPOLY_PTR
ExPolygons T_VECTOR_EXPOLY
ExPolygons* T_VECTOR_EXPOLY_PTR
INPUT
T_VECTOR_POINT
if (SvROK($arg) && SvTYPE(SvRV($arg))==SVt_PVAV) {
$type* tmp = perl2polygon(aTHX_ (AV*)SvRV($arg));
if (tmp == NULL) {
Perl_croak(aTHX_ \"%s: %s is not an array reference or contains invalid data\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
}
else {
$var = *tmp;
delete tmp;
}
}
else
Perl_croak(aTHX_ \"%s: %s is not an array reference\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
T_VECTOR_POINT_PTR
if (SvROK($arg) && SvTYPE(SvRV($arg))==SVt_PVAV) {
$var = perl2polygon(aTHX_ (AV*)SvRV($arg));
if (($var) == NULL) {
Perl_croak(aTHX_ \"%s: %s is not an array reference or contains invalid data\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
}
}
else
Perl_croak(aTHX_ \"%s: %s is not an array reference\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
T_VECTOR_VECTOR_POINT
if (SvROK($arg) && SvTYPE(SvRV($arg))==SVt_PVAV) {
$type* tmp = perl2polygons(aTHX_ (AV*)SvRV($arg));
if (tmp == NULL) {
Perl_croak(aTHX_ \"%s: %s is not an array reference or contains invalid data\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
}
else {
$var = *tmp;
delete tmp;
}
}
else
Perl_croak(aTHX_ \"%s: %s is not an array reference\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
T_VECTOR_VECTOR_POINT_PTR
if (SvROK($arg) && SvTYPE(SvRV($arg))==SVt_PVAV) {
$var = perl2polygons(aTHX_ (AV*)SvRV($arg));
if (($var) == NULL) {
Perl_croak(aTHX_ \"%s: %s is not an array reference or contains invalid data\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
}
}
else
Perl_croak(aTHX_ \"%s: %s is not an array reference\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
T_EXPOLY
if (SvROK($arg) && SvTYPE(SvRV($arg))==SVt_PVHV) {
$type* tmp = perl2expolygon(aTHX_ (HV*)SvRV($arg));
if (tmp == NULL) {
Perl_croak(aTHX_ \"%s: %s is not a hash reference or contains invalid data\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
}
else {
$var = *tmp;
delete tmp;
}
}
else
Perl_croak(aTHX_ \"%s: %s is not a hash reference\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
T_EXPOLY_PTR
if (SvROK($arg) && SvTYPE(SvRV($arg))==SVt_PVHV) {
$var = perl2expolygon(aTHX_ (HV*)SvRV($arg));
if (($var) == NULL) {
Perl_croak(aTHX_ \"%s: %s is not a hash reference or contains invalid data\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
}
}
else
Perl_croak(aTHX_ \"%s: %s is not a hash reference\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
T_VECTOR_EXPOLY
if (SvROK($arg) && SvTYPE(SvRV($arg))==SVt_PVAV) {
$type* tmp = perl2expolygons(aTHX_ (AV*)SvRV($arg));
if (tmp == NULL) {
Perl_croak(aTHX_ \"%s: %s is not an array reference or contains invalid data\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
}
else {
$var = *tmp;
delete tmp;
}
}
else
Perl_croak(aTHX_ \"%s: %s is not an array reference\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
T_VECTOR_EXPOLY_PTR
if (SvROK($arg) && SvTYPE(SvRV($arg))==SVt_PVAV) {
$var = perl2expolygons(aTHX_ (AV*)SvRV($arg));
if (($var) == NULL) {
Perl_croak(aTHX_ \"%s: %s is not an array reference or contains invalid data\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
}
}
else
Perl_croak(aTHX_ \"%s: %s is not an array reference\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
OUTPUT
T_VECTOR_POINT
$arg = polygon2perl(aTHX_ $var);
T_VECTOR_POINT_PTR
$arg = polygon2perl(aTHX_ *$var);
delete $var;
T_VECTOR_VECTOR_POINT
$arg = polygons2perl(aTHX_ $var);
T_VECTOR_VECTOR_POINT_PTR
$arg = polygons2perl(aTHX_ *$var);
delete $var;
T_EXPOLY
$arg = expolygon2perl(aTHX_ $var);
T_EXPOLY_PTR
$arg = expolygon2perl(aTHX_ *$var);
delete $var;
T_VECTOR_EXPOLY
$arg = expolygons2perl(aTHX_ $var);
T_VECTOR_EXPOLY_PTR
$arg = expolygons2perl(aTHX_ *$var);
delete $var;
T_POLYTREE_PTR
$arg = polytree2perl(aTHX_ *$var);
delete $var;