Commit | Line | Data |
---|---|---|
a8a597b2 MB |
1 | /* B.xs |
2 | * | |
3 | * Copyright (c) 1996 Malcolm Beattie | |
4 | * | |
5 | * You may distribute under the terms of either the GNU General Public | |
6 | * License or the Artistic License, as specified in the README file. | |
7 | * | |
8 | */ | |
9 | ||
c5be433b | 10 | #define PERL_NO_GET_CONTEXT |
a8a597b2 MB |
11 | #include "EXTERN.h" |
12 | #include "perl.h" | |
13 | #include "XSUB.h" | |
a8a597b2 | 14 | |
51aa15f3 | 15 | #ifdef PERL_OBJECT |
22c35a8c GS |
16 | #undef PL_op_name |
17 | #undef PL_opargs | |
18 | #undef PL_op_desc | |
0cb96387 GS |
19 | #define PL_op_name (get_op_names()) |
20 | #define PL_opargs (get_opargs()) | |
21 | #define PL_op_desc (get_op_descs()) | |
51aa15f3 GS |
22 | #endif |
23 | ||
24 | #ifdef PerlIO | |
25 | typedef PerlIO * InputStream; | |
26 | #else | |
27 | typedef FILE * InputStream; | |
28 | #endif | |
29 | ||
30 | ||
a8a597b2 MB |
31 | static char *svclassnames[] = { |
32 | "B::NULL", | |
33 | "B::IV", | |
34 | "B::NV", | |
35 | "B::RV", | |
36 | "B::PV", | |
37 | "B::PVIV", | |
38 | "B::PVNV", | |
39 | "B::PVMG", | |
40 | "B::BM", | |
41 | "B::PVLV", | |
42 | "B::AV", | |
43 | "B::HV", | |
44 | "B::CV", | |
45 | "B::GV", | |
46 | "B::FM", | |
47 | "B::IO", | |
48 | }; | |
49 | ||
50 | typedef enum { | |
51 | OPc_NULL, /* 0 */ | |
52 | OPc_BASEOP, /* 1 */ | |
53 | OPc_UNOP, /* 2 */ | |
54 | OPc_BINOP, /* 3 */ | |
55 | OPc_LOGOP, /* 4 */ | |
1a67a97c SM |
56 | OPc_LISTOP, /* 5 */ |
57 | OPc_PMOP, /* 6 */ | |
58 | OPc_SVOP, /* 7 */ | |
7934575e | 59 | OPc_PADOP, /* 8 */ |
1a67a97c SM |
60 | OPc_PVOP, /* 9 */ |
61 | OPc_CVOP, /* 10 */ | |
62 | OPc_LOOP, /* 11 */ | |
63 | OPc_COP /* 12 */ | |
a8a597b2 MB |
64 | } opclass; |
65 | ||
66 | static char *opclassnames[] = { | |
67 | "B::NULL", | |
68 | "B::OP", | |
69 | "B::UNOP", | |
70 | "B::BINOP", | |
71 | "B::LOGOP", | |
a8a597b2 MB |
72 | "B::LISTOP", |
73 | "B::PMOP", | |
74 | "B::SVOP", | |
7934575e | 75 | "B::PADOP", |
a8a597b2 MB |
76 | "B::PVOP", |
77 | "B::CVOP", | |
78 | "B::LOOP", | |
79 | "B::COP" | |
80 | }; | |
81 | ||
82 | static int walkoptree_debug = 0; /* Flag for walkoptree debug hook */ | |
83 | ||
e8edd1e6 TH |
84 | static SV *specialsv_list[4]; |
85 | ||
a8a597b2 | 86 | static opclass |
cea2e8a9 | 87 | cc_opclass(pTHX_ OP *o) |
a8a597b2 MB |
88 | { |
89 | if (!o) | |
90 | return OPc_NULL; | |
91 | ||
92 | if (o->op_type == 0) | |
93 | return (o->op_flags & OPf_KIDS) ? OPc_UNOP : OPc_BASEOP; | |
94 | ||
95 | if (o->op_type == OP_SASSIGN) | |
96 | return ((o->op_private & OPpASSIGN_BACKWARDS) ? OPc_UNOP : OPc_BINOP); | |
97 | ||
22c35a8c | 98 | switch (PL_opargs[o->op_type] & OA_CLASS_MASK) { |
a8a597b2 MB |
99 | case OA_BASEOP: |
100 | return OPc_BASEOP; | |
101 | ||
102 | case OA_UNOP: | |
103 | return OPc_UNOP; | |
104 | ||
105 | case OA_BINOP: | |
106 | return OPc_BINOP; | |
107 | ||
108 | case OA_LOGOP: | |
109 | return OPc_LOGOP; | |
110 | ||
a8a597b2 MB |
111 | case OA_LISTOP: |
112 | return OPc_LISTOP; | |
113 | ||
114 | case OA_PMOP: | |
115 | return OPc_PMOP; | |
116 | ||
117 | case OA_SVOP: | |
118 | return OPc_SVOP; | |
119 | ||
7934575e GS |
120 | case OA_PADOP: |
121 | return OPc_PADOP; | |
a8a597b2 | 122 | |
293d3ffa SM |
123 | case OA_PVOP_OR_SVOP: |
124 | /* | |
125 | * Character translations (tr///) are usually a PVOP, keeping a | |
126 | * pointer to a table of shorts used to look up translations. | |
127 | * Under utf8, however, a simple table isn't practical; instead, | |
128 | * the OP is an SVOP, and the SV is a reference to a swash | |
129 | * (i.e., an RV pointing to an HV). | |
130 | */ | |
131 | return (o->op_private & (OPpTRANS_TO_UTF|OPpTRANS_FROM_UTF)) | |
132 | ? OPc_SVOP : OPc_PVOP; | |
a8a597b2 MB |
133 | |
134 | case OA_LOOP: | |
135 | return OPc_LOOP; | |
136 | ||
137 | case OA_COP: | |
138 | return OPc_COP; | |
139 | ||
140 | case OA_BASEOP_OR_UNOP: | |
141 | /* | |
142 | * UNI(OP_foo) in toke.c returns token UNI or FUNC1 depending on | |
45f6cd40 SM |
143 | * whether parens were seen. perly.y uses OPf_SPECIAL to |
144 | * signal whether a BASEOP had empty parens or none. | |
145 | * Some other UNOPs are created later, though, so the best | |
146 | * test is OPf_KIDS, which is set in newUNOP. | |
a8a597b2 | 147 | */ |
45f6cd40 | 148 | return (o->op_flags & OPf_KIDS) ? OPc_UNOP : OPc_BASEOP; |
a8a597b2 MB |
149 | |
150 | case OA_FILESTATOP: | |
151 | /* | |
152 | * The file stat OPs are created via UNI(OP_foo) in toke.c but use | |
153 | * the OPf_REF flag to distinguish between OP types instead of the | |
154 | * usual OPf_SPECIAL flag. As usual, if OPf_KIDS is set, then we | |
155 | * return OPc_UNOP so that walkoptree can find our children. If | |
156 | * OPf_KIDS is not set then we check OPf_REF. Without OPf_REF set | |
157 | * (no argument to the operator) it's an OP; with OPf_REF set it's | |
7934575e | 158 | * an SVOP (and op_sv is the GV for the filehandle argument). |
a8a597b2 MB |
159 | */ |
160 | return ((o->op_flags & OPf_KIDS) ? OPc_UNOP : | |
7934575e | 161 | (o->op_flags & OPf_REF) ? OPc_SVOP : OPc_BASEOP); |
a8a597b2 MB |
162 | |
163 | case OA_LOOPEXOP: | |
164 | /* | |
165 | * next, last, redo, dump and goto use OPf_SPECIAL to indicate that a | |
166 | * label was omitted (in which case it's a BASEOP) or else a term was | |
167 | * seen. In this last case, all except goto are definitely PVOP but | |
168 | * goto is either a PVOP (with an ordinary constant label), an UNOP | |
169 | * with OPf_STACKED (with a non-constant non-sub) or an UNOP for | |
170 | * OP_REFGEN (with goto &sub) in which case OPf_STACKED also seems to | |
171 | * get set. | |
172 | */ | |
173 | if (o->op_flags & OPf_STACKED) | |
174 | return OPc_UNOP; | |
175 | else if (o->op_flags & OPf_SPECIAL) | |
176 | return OPc_BASEOP; | |
177 | else | |
178 | return OPc_PVOP; | |
179 | } | |
180 | warn("can't determine class of operator %s, assuming BASEOP\n", | |
22c35a8c | 181 | PL_op_name[o->op_type]); |
a8a597b2 MB |
182 | return OPc_BASEOP; |
183 | } | |
184 | ||
185 | static char * | |
cea2e8a9 | 186 | cc_opclassname(pTHX_ OP *o) |
a8a597b2 | 187 | { |
cea2e8a9 | 188 | return opclassnames[cc_opclass(aTHX_ o)]; |
a8a597b2 MB |
189 | } |
190 | ||
191 | static SV * | |
cea2e8a9 | 192 | make_sv_object(pTHX_ SV *arg, SV *sv) |
a8a597b2 MB |
193 | { |
194 | char *type = 0; | |
195 | IV iv; | |
196 | ||
e8edd1e6 TH |
197 | for (iv = 0; iv < sizeof(specialsv_list)/sizeof(SV*); iv++) { |
198 | if (sv == specialsv_list[iv]) { | |
a8a597b2 MB |
199 | type = "B::SPECIAL"; |
200 | break; | |
201 | } | |
202 | } | |
203 | if (!type) { | |
204 | type = svclassnames[SvTYPE(sv)]; | |
56431972 | 205 | iv = PTR2IV(sv); |
a8a597b2 MB |
206 | } |
207 | sv_setiv(newSVrv(arg, type), iv); | |
208 | return arg; | |
209 | } | |
210 | ||
211 | static SV * | |
cea2e8a9 | 212 | make_mg_object(pTHX_ SV *arg, MAGIC *mg) |
a8a597b2 | 213 | { |
56431972 | 214 | sv_setiv(newSVrv(arg, "B::MAGIC"), PTR2IV(mg)); |
a8a597b2 MB |
215 | return arg; |
216 | } | |
217 | ||
218 | static SV * | |
cea2e8a9 | 219 | cstring(pTHX_ SV *sv) |
a8a597b2 | 220 | { |
79cb57f6 | 221 | SV *sstr = newSVpvn("", 0); |
a8a597b2 MB |
222 | STRLEN len; |
223 | char *s; | |
224 | ||
225 | if (!SvOK(sv)) | |
226 | sv_setpvn(sstr, "0", 1); | |
227 | else | |
228 | { | |
229 | /* XXX Optimise? */ | |
230 | s = SvPV(sv, len); | |
231 | sv_catpv(sstr, "\""); | |
232 | for (; len; len--, s++) | |
233 | { | |
234 | /* At least try a little for readability */ | |
235 | if (*s == '"') | |
236 | sv_catpv(sstr, "\\\""); | |
237 | else if (*s == '\\') | |
238 | sv_catpv(sstr, "\\\\"); | |
239 | else if (*s >= ' ' && *s < 127) /* XXX not portable */ | |
240 | sv_catpvn(sstr, s, 1); | |
241 | else if (*s == '\n') | |
242 | sv_catpv(sstr, "\\n"); | |
243 | else if (*s == '\r') | |
244 | sv_catpv(sstr, "\\r"); | |
245 | else if (*s == '\t') | |
246 | sv_catpv(sstr, "\\t"); | |
247 | else if (*s == '\a') | |
248 | sv_catpv(sstr, "\\a"); | |
249 | else if (*s == '\b') | |
250 | sv_catpv(sstr, "\\b"); | |
251 | else if (*s == '\f') | |
252 | sv_catpv(sstr, "\\f"); | |
253 | else if (*s == '\v') | |
254 | sv_catpv(sstr, "\\v"); | |
255 | else | |
256 | { | |
257 | /* no trigraph support */ | |
258 | char escbuff[5]; /* to fit backslash, 3 octals + trailing \0 */ | |
259 | /* Don't want promotion of a signed -1 char in sprintf args */ | |
260 | unsigned char c = (unsigned char) *s; | |
261 | sprintf(escbuff, "\\%03o", c); | |
262 | sv_catpv(sstr, escbuff); | |
263 | } | |
264 | /* XXX Add line breaks if string is long */ | |
265 | } | |
266 | sv_catpv(sstr, "\""); | |
267 | } | |
268 | return sstr; | |
269 | } | |
270 | ||
271 | static SV * | |
cea2e8a9 | 272 | cchar(pTHX_ SV *sv) |
a8a597b2 | 273 | { |
79cb57f6 | 274 | SV *sstr = newSVpvn("'", 1); |
2d8e6c8d GS |
275 | STRLEN n_a; |
276 | char *s = SvPV(sv, n_a); | |
a8a597b2 MB |
277 | |
278 | if (*s == '\'') | |
279 | sv_catpv(sstr, "\\'"); | |
280 | else if (*s == '\\') | |
281 | sv_catpv(sstr, "\\\\"); | |
282 | else if (*s >= ' ' && *s < 127) /* XXX not portable */ | |
283 | sv_catpvn(sstr, s, 1); | |
284 | else if (*s == '\n') | |
285 | sv_catpv(sstr, "\\n"); | |
286 | else if (*s == '\r') | |
287 | sv_catpv(sstr, "\\r"); | |
288 | else if (*s == '\t') | |
289 | sv_catpv(sstr, "\\t"); | |
290 | else if (*s == '\a') | |
291 | sv_catpv(sstr, "\\a"); | |
292 | else if (*s == '\b') | |
293 | sv_catpv(sstr, "\\b"); | |
294 | else if (*s == '\f') | |
295 | sv_catpv(sstr, "\\f"); | |
296 | else if (*s == '\v') | |
297 | sv_catpv(sstr, "\\v"); | |
298 | else | |
299 | { | |
300 | /* no trigraph support */ | |
301 | char escbuff[5]; /* to fit backslash, 3 octals + trailing \0 */ | |
302 | /* Don't want promotion of a signed -1 char in sprintf args */ | |
303 | unsigned char c = (unsigned char) *s; | |
304 | sprintf(escbuff, "\\%03o", c); | |
305 | sv_catpv(sstr, escbuff); | |
306 | } | |
307 | sv_catpv(sstr, "'"); | |
308 | return sstr; | |
309 | } | |
310 | ||
a8a597b2 | 311 | void |
cea2e8a9 | 312 | walkoptree(pTHX_ SV *opsv, char *method) |
a8a597b2 MB |
313 | { |
314 | dSP; | |
315 | OP *o; | |
316 | ||
317 | if (!SvROK(opsv)) | |
318 | croak("opsv is not a reference"); | |
319 | opsv = sv_mortalcopy(opsv); | |
56431972 | 320 | o = INT2PTR(OP*,SvIV((SV*)SvRV(opsv))); |
a8a597b2 MB |
321 | if (walkoptree_debug) { |
322 | PUSHMARK(sp); | |
323 | XPUSHs(opsv); | |
324 | PUTBACK; | |
325 | perl_call_method("walkoptree_debug", G_DISCARD); | |
326 | } | |
327 | PUSHMARK(sp); | |
328 | XPUSHs(opsv); | |
329 | PUTBACK; | |
330 | perl_call_method(method, G_DISCARD); | |
331 | if (o && (o->op_flags & OPf_KIDS)) { | |
332 | OP *kid; | |
333 | for (kid = ((UNOP*)o)->op_first; kid; kid = kid->op_sibling) { | |
334 | /* Use the same opsv. Rely on methods not to mess it up. */ | |
56431972 | 335 | sv_setiv(newSVrv(opsv, cc_opclassname(aTHX_ kid)), PTR2IV(kid)); |
cea2e8a9 | 336 | walkoptree(aTHX_ opsv, method); |
a8a597b2 MB |
337 | } |
338 | } | |
339 | } | |
340 | ||
341 | typedef OP *B__OP; | |
342 | typedef UNOP *B__UNOP; | |
343 | typedef BINOP *B__BINOP; | |
344 | typedef LOGOP *B__LOGOP; | |
a8a597b2 MB |
345 | typedef LISTOP *B__LISTOP; |
346 | typedef PMOP *B__PMOP; | |
347 | typedef SVOP *B__SVOP; | |
7934575e | 348 | typedef PADOP *B__PADOP; |
a8a597b2 MB |
349 | typedef PVOP *B__PVOP; |
350 | typedef LOOP *B__LOOP; | |
351 | typedef COP *B__COP; | |
352 | ||
353 | typedef SV *B__SV; | |
354 | typedef SV *B__IV; | |
355 | typedef SV *B__PV; | |
356 | typedef SV *B__NV; | |
357 | typedef SV *B__PVMG; | |
358 | typedef SV *B__PVLV; | |
359 | typedef SV *B__BM; | |
360 | typedef SV *B__RV; | |
361 | typedef AV *B__AV; | |
362 | typedef HV *B__HV; | |
363 | typedef CV *B__CV; | |
364 | typedef GV *B__GV; | |
365 | typedef IO *B__IO; | |
366 | ||
367 | typedef MAGIC *B__MAGIC; | |
368 | ||
369 | MODULE = B PACKAGE = B PREFIX = B_ | |
370 | ||
371 | PROTOTYPES: DISABLE | |
372 | ||
373 | BOOT: | |
4c1f658f NIS |
374 | { |
375 | HV *stash = gv_stashpvn("B", 1, TRUE); | |
376 | AV *export_ok = perl_get_av("B::EXPORT_OK",TRUE); | |
e8edd1e6 TH |
377 | specialsv_list[0] = Nullsv; |
378 | specialsv_list[1] = &PL_sv_undef; | |
379 | specialsv_list[2] = &PL_sv_yes; | |
380 | specialsv_list[3] = &PL_sv_no; | |
4c1f658f NIS |
381 | #include "defsubs.h" |
382 | } | |
a8a597b2 | 383 | |
3280af22 | 384 | #define B_main_cv() PL_main_cv |
31d7d75a | 385 | #define B_init_av() PL_initav |
3280af22 NIS |
386 | #define B_main_root() PL_main_root |
387 | #define B_main_start() PL_main_start | |
56eca212 | 388 | #define B_amagic_generation() PL_amagic_generation |
3280af22 NIS |
389 | #define B_comppadlist() (PL_main_cv ? CvPADLIST(PL_main_cv) : CvPADLIST(PL_compcv)) |
390 | #define B_sv_undef() &PL_sv_undef | |
391 | #define B_sv_yes() &PL_sv_yes | |
392 | #define B_sv_no() &PL_sv_no | |
a8a597b2 | 393 | |
31d7d75a NIS |
394 | B::AV |
395 | B_init_av() | |
396 | ||
a8a597b2 MB |
397 | B::CV |
398 | B_main_cv() | |
399 | ||
400 | B::OP | |
401 | B_main_root() | |
402 | ||
403 | B::OP | |
404 | B_main_start() | |
405 | ||
56eca212 GS |
406 | long |
407 | B_amagic_generation() | |
408 | ||
a8a597b2 MB |
409 | B::AV |
410 | B_comppadlist() | |
411 | ||
412 | B::SV | |
413 | B_sv_undef() | |
414 | ||
415 | B::SV | |
416 | B_sv_yes() | |
417 | ||
418 | B::SV | |
419 | B_sv_no() | |
420 | ||
421 | MODULE = B PACKAGE = B | |
422 | ||
423 | ||
424 | void | |
425 | walkoptree(opsv, method) | |
426 | SV * opsv | |
427 | char * method | |
cea2e8a9 GS |
428 | CODE: |
429 | walkoptree(aTHX_ opsv, method); | |
a8a597b2 MB |
430 | |
431 | int | |
432 | walkoptree_debug(...) | |
433 | CODE: | |
434 | RETVAL = walkoptree_debug; | |
435 | if (items > 0 && SvTRUE(ST(1))) | |
436 | walkoptree_debug = 1; | |
437 | OUTPUT: | |
438 | RETVAL | |
439 | ||
56431972 | 440 | #define address(sv) PTR2IV(sv) |
a8a597b2 MB |
441 | |
442 | IV | |
443 | address(sv) | |
444 | SV * sv | |
445 | ||
446 | B::SV | |
447 | svref_2object(sv) | |
448 | SV * sv | |
449 | CODE: | |
450 | if (!SvROK(sv)) | |
451 | croak("argument is not a reference"); | |
452 | RETVAL = (SV*)SvRV(sv); | |
453 | OUTPUT: | |
0cc1d052 NIS |
454 | RETVAL |
455 | ||
456 | void | |
457 | opnumber(name) | |
458 | char * name | |
459 | CODE: | |
460 | { | |
461 | int i; | |
462 | IV result = -1; | |
463 | ST(0) = sv_newmortal(); | |
464 | if (strncmp(name,"pp_",3) == 0) | |
465 | name += 3; | |
466 | for (i = 0; i < PL_maxo; i++) | |
467 | { | |
468 | if (strcmp(name, PL_op_name[i]) == 0) | |
469 | { | |
470 | result = i; | |
471 | break; | |
472 | } | |
473 | } | |
474 | sv_setiv(ST(0),result); | |
475 | } | |
a8a597b2 MB |
476 | |
477 | void | |
478 | ppname(opnum) | |
479 | int opnum | |
480 | CODE: | |
481 | ST(0) = sv_newmortal(); | |
3280af22 | 482 | if (opnum >= 0 && opnum < PL_maxo) { |
a8a597b2 | 483 | sv_setpvn(ST(0), "pp_", 3); |
22c35a8c | 484 | sv_catpv(ST(0), PL_op_name[opnum]); |
a8a597b2 MB |
485 | } |
486 | ||
487 | void | |
488 | hash(sv) | |
489 | SV * sv | |
490 | CODE: | |
491 | char *s; | |
492 | STRLEN len; | |
493 | U32 hash = 0; | |
faccc32b | 494 | char hexhash[19]; /* must fit "0xffffffffffffffff" plus trailing \0 */ |
a8a597b2 | 495 | s = SvPV(sv, len); |
cf86991c | 496 | PERL_HASH(hash, s, len); |
faccc32b | 497 | sprintf(hexhash, "0x%"UVxf, (UV)hash); |
a8a597b2 MB |
498 | ST(0) = sv_2mortal(newSVpv(hexhash, 0)); |
499 | ||
500 | #define cast_I32(foo) (I32)foo | |
501 | IV | |
502 | cast_I32(i) | |
503 | IV i | |
504 | ||
505 | void | |
506 | minus_c() | |
507 | CODE: | |
3280af22 | 508 | PL_minus_c = TRUE; |
a8a597b2 MB |
509 | |
510 | SV * | |
511 | cstring(sv) | |
512 | SV * sv | |
cea2e8a9 GS |
513 | CODE: |
514 | RETVAL = cstring(aTHX_ sv); | |
515 | OUTPUT: | |
516 | RETVAL | |
a8a597b2 MB |
517 | |
518 | SV * | |
519 | cchar(sv) | |
520 | SV * sv | |
cea2e8a9 GS |
521 | CODE: |
522 | RETVAL = cchar(aTHX_ sv); | |
523 | OUTPUT: | |
524 | RETVAL | |
a8a597b2 MB |
525 | |
526 | void | |
527 | threadsv_names() | |
528 | PPCODE: | |
529 | #ifdef USE_THREADS | |
530 | int i; | |
533c011a | 531 | STRLEN len = strlen(PL_threadsv_names); |
a8a597b2 MB |
532 | |
533 | EXTEND(sp, len); | |
534 | for (i = 0; i < len; i++) | |
79cb57f6 | 535 | PUSHs(sv_2mortal(newSVpvn(&PL_threadsv_names[i], 1))); |
a8a597b2 MB |
536 | #endif |
537 | ||
538 | ||
539 | #define OP_next(o) o->op_next | |
540 | #define OP_sibling(o) o->op_sibling | |
22c35a8c | 541 | #define OP_desc(o) PL_op_desc[o->op_type] |
a8a597b2 MB |
542 | #define OP_targ(o) o->op_targ |
543 | #define OP_type(o) o->op_type | |
544 | #define OP_seq(o) o->op_seq | |
545 | #define OP_flags(o) o->op_flags | |
546 | #define OP_private(o) o->op_private | |
547 | ||
548 | MODULE = B PACKAGE = B::OP PREFIX = OP_ | |
549 | ||
550 | B::OP | |
551 | OP_next(o) | |
552 | B::OP o | |
553 | ||
554 | B::OP | |
555 | OP_sibling(o) | |
556 | B::OP o | |
557 | ||
558 | char * | |
3f872cb9 GS |
559 | OP_name(o) |
560 | B::OP o | |
561 | CODE: | |
562 | ST(0) = sv_newmortal(); | |
563 | sv_setpv(ST(0), PL_op_name[o->op_type]); | |
564 | ||
565 | ||
566 | char * | |
a8a597b2 MB |
567 | OP_ppaddr(o) |
568 | B::OP o | |
dc333d64 GS |
569 | PREINIT: |
570 | int i; | |
571 | SV *sv = sv_newmortal(); | |
a8a597b2 | 572 | CODE: |
dc333d64 GS |
573 | sv_setpvn(sv, "PL_ppaddr[OP_", 13); |
574 | sv_catpv(sv, PL_op_name[o->op_type]); | |
575 | for (i=13; i<SvCUR(sv); ++i) | |
576 | SvPVX(sv)[i] = toUPPER(SvPVX(sv)[i]); | |
577 | sv_catpv(sv, "]"); | |
578 | ST(0) = sv; | |
a8a597b2 MB |
579 | |
580 | char * | |
581 | OP_desc(o) | |
582 | B::OP o | |
583 | ||
7934575e | 584 | PADOFFSET |
a8a597b2 MB |
585 | OP_targ(o) |
586 | B::OP o | |
587 | ||
588 | U16 | |
589 | OP_type(o) | |
590 | B::OP o | |
591 | ||
592 | U16 | |
593 | OP_seq(o) | |
594 | B::OP o | |
595 | ||
596 | U8 | |
597 | OP_flags(o) | |
598 | B::OP o | |
599 | ||
600 | U8 | |
601 | OP_private(o) | |
602 | B::OP o | |
603 | ||
604 | #define UNOP_first(o) o->op_first | |
605 | ||
606 | MODULE = B PACKAGE = B::UNOP PREFIX = UNOP_ | |
607 | ||
608 | B::OP | |
609 | UNOP_first(o) | |
610 | B::UNOP o | |
611 | ||
612 | #define BINOP_last(o) o->op_last | |
613 | ||
614 | MODULE = B PACKAGE = B::BINOP PREFIX = BINOP_ | |
615 | ||
616 | B::OP | |
617 | BINOP_last(o) | |
618 | B::BINOP o | |
619 | ||
620 | #define LOGOP_other(o) o->op_other | |
621 | ||
622 | MODULE = B PACKAGE = B::LOGOP PREFIX = LOGOP_ | |
623 | ||
624 | B::OP | |
625 | LOGOP_other(o) | |
626 | B::LOGOP o | |
627 | ||
a8a597b2 MB |
628 | #define LISTOP_children(o) o->op_children |
629 | ||
630 | MODULE = B PACKAGE = B::LISTOP PREFIX = LISTOP_ | |
631 | ||
632 | U32 | |
633 | LISTOP_children(o) | |
634 | B::LISTOP o | |
635 | ||
636 | #define PMOP_pmreplroot(o) o->op_pmreplroot | |
637 | #define PMOP_pmreplstart(o) o->op_pmreplstart | |
638 | #define PMOP_pmnext(o) o->op_pmnext | |
639 | #define PMOP_pmregexp(o) o->op_pmregexp | |
640 | #define PMOP_pmflags(o) o->op_pmflags | |
641 | #define PMOP_pmpermflags(o) o->op_pmpermflags | |
642 | ||
643 | MODULE = B PACKAGE = B::PMOP PREFIX = PMOP_ | |
644 | ||
645 | void | |
646 | PMOP_pmreplroot(o) | |
647 | B::PMOP o | |
648 | OP * root = NO_INIT | |
649 | CODE: | |
650 | ST(0) = sv_newmortal(); | |
651 | root = o->op_pmreplroot; | |
652 | /* OP_PUSHRE stores an SV* instead of an OP* in op_pmreplroot */ | |
653 | if (o->op_type == OP_PUSHRE) { | |
654 | sv_setiv(newSVrv(ST(0), root ? | |
655 | svclassnames[SvTYPE((SV*)root)] : "B::SV"), | |
56431972 | 656 | PTR2IV(root)); |
a8a597b2 MB |
657 | } |
658 | else { | |
56431972 | 659 | sv_setiv(newSVrv(ST(0), cc_opclassname(aTHX_ root)), PTR2IV(root)); |
a8a597b2 MB |
660 | } |
661 | ||
662 | B::OP | |
663 | PMOP_pmreplstart(o) | |
664 | B::PMOP o | |
665 | ||
666 | B::PMOP | |
667 | PMOP_pmnext(o) | |
668 | B::PMOP o | |
669 | ||
670 | U16 | |
671 | PMOP_pmflags(o) | |
672 | B::PMOP o | |
673 | ||
674 | U16 | |
675 | PMOP_pmpermflags(o) | |
676 | B::PMOP o | |
677 | ||
678 | void | |
679 | PMOP_precomp(o) | |
680 | B::PMOP o | |
681 | REGEXP * rx = NO_INIT | |
682 | CODE: | |
683 | ST(0) = sv_newmortal(); | |
684 | rx = o->op_pmregexp; | |
685 | if (rx) | |
686 | sv_setpvn(ST(0), rx->precomp, rx->prelen); | |
687 | ||
562d31b8 GS |
688 | #define SVOP_sv(o) cSVOPx_sv(o) |
689 | #define SVOP_gv(o) cGVOPx_gv(o) | |
a8a597b2 MB |
690 | |
691 | MODULE = B PACKAGE = B::SVOP PREFIX = SVOP_ | |
692 | ||
a8a597b2 MB |
693 | B::SV |
694 | SVOP_sv(o) | |
695 | B::SVOP o | |
696 | ||
7934575e GS |
697 | B::GV |
698 | SVOP_gv(o) | |
699 | B::SVOP o | |
a8a597b2 | 700 | |
7934575e GS |
701 | #define PADOP_padix(o) o->op_padix |
702 | #define PADOP_sv(o) (o->op_padix ? PL_curpad[o->op_padix] : Nullsv) | |
703 | #define PADOP_gv(o) ((o->op_padix \ | |
704 | && SvTYPE(PL_curpad[o->op_padix]) == SVt_PVGV) \ | |
705 | ? (GV*)PL_curpad[o->op_padix] : Nullgv) | |
a8a597b2 | 706 | |
7934575e GS |
707 | MODULE = B PACKAGE = B::PADOP PREFIX = PADOP_ |
708 | ||
709 | PADOFFSET | |
710 | PADOP_padix(o) | |
711 | B::PADOP o | |
712 | ||
713 | B::SV | |
714 | PADOP_sv(o) | |
715 | B::PADOP o | |
a8a597b2 MB |
716 | |
717 | B::GV | |
7934575e GS |
718 | PADOP_gv(o) |
719 | B::PADOP o | |
a8a597b2 MB |
720 | |
721 | MODULE = B PACKAGE = B::PVOP PREFIX = PVOP_ | |
722 | ||
723 | void | |
724 | PVOP_pv(o) | |
725 | B::PVOP o | |
726 | CODE: | |
727 | /* | |
728 | * OP_TRANS uses op_pv to point to a table of 256 shorts | |
729 | * whereas other PVOPs point to a null terminated string. | |
730 | */ | |
731 | ST(0) = sv_2mortal(newSVpv(o->op_pv, (o->op_type == OP_TRANS) ? | |
732 | 256 * sizeof(short) : 0)); | |
733 | ||
734 | #define LOOP_redoop(o) o->op_redoop | |
735 | #define LOOP_nextop(o) o->op_nextop | |
736 | #define LOOP_lastop(o) o->op_lastop | |
737 | ||
738 | MODULE = B PACKAGE = B::LOOP PREFIX = LOOP_ | |
739 | ||
740 | ||
741 | B::OP | |
742 | LOOP_redoop(o) | |
743 | B::LOOP o | |
744 | ||
745 | B::OP | |
746 | LOOP_nextop(o) | |
747 | B::LOOP o | |
748 | ||
749 | B::OP | |
750 | LOOP_lastop(o) | |
751 | B::LOOP o | |
752 | ||
753 | #define COP_label(o) o->cop_label | |
11faa288 GS |
754 | #define COP_stashpv(o) CopSTASHPV(o) |
755 | #define COP_stash(o) CopSTASH(o) | |
57843af0 | 756 | #define COP_file(o) CopFILE(o) |
a8a597b2 MB |
757 | #define COP_cop_seq(o) o->cop_seq |
758 | #define COP_arybase(o) o->cop_arybase | |
57843af0 | 759 | #define COP_line(o) CopLINE(o) |
b295d113 | 760 | #define COP_warnings(o) o->cop_warnings |
a8a597b2 MB |
761 | |
762 | MODULE = B PACKAGE = B::COP PREFIX = COP_ | |
763 | ||
764 | char * | |
765 | COP_label(o) | |
766 | B::COP o | |
767 | ||
11faa288 GS |
768 | char * |
769 | COP_stashpv(o) | |
770 | B::COP o | |
771 | ||
a8a597b2 MB |
772 | B::HV |
773 | COP_stash(o) | |
774 | B::COP o | |
775 | ||
57843af0 GS |
776 | char * |
777 | COP_file(o) | |
a8a597b2 MB |
778 | B::COP o |
779 | ||
780 | U32 | |
781 | COP_cop_seq(o) | |
782 | B::COP o | |
783 | ||
784 | I32 | |
785 | COP_arybase(o) | |
786 | B::COP o | |
787 | ||
788 | U16 | |
789 | COP_line(o) | |
790 | B::COP o | |
791 | ||
b295d113 TH |
792 | B::SV |
793 | COP_warnings(o) | |
794 | B::COP o | |
795 | ||
a8a597b2 MB |
796 | MODULE = B PACKAGE = B::SV PREFIX = Sv |
797 | ||
798 | U32 | |
799 | SvREFCNT(sv) | |
800 | B::SV sv | |
801 | ||
802 | U32 | |
803 | SvFLAGS(sv) | |
804 | B::SV sv | |
805 | ||
806 | MODULE = B PACKAGE = B::IV PREFIX = Sv | |
807 | ||
808 | IV | |
809 | SvIV(sv) | |
810 | B::IV sv | |
811 | ||
812 | IV | |
813 | SvIVX(sv) | |
814 | B::IV sv | |
815 | ||
0ca04487 VB |
816 | UV |
817 | SvUVX(sv) | |
818 | B::IV sv | |
819 | ||
820 | ||
a8a597b2 MB |
821 | MODULE = B PACKAGE = B::IV |
822 | ||
823 | #define needs64bits(sv) ((I32)SvIVX(sv) != SvIVX(sv)) | |
824 | ||
825 | int | |
826 | needs64bits(sv) | |
827 | B::IV sv | |
828 | ||
829 | void | |
830 | packiv(sv) | |
831 | B::IV sv | |
832 | CODE: | |
833 | if (sizeof(IV) == 8) { | |
834 | U32 wp[2]; | |
835 | IV iv = SvIVX(sv); | |
836 | /* | |
837 | * The following way of spelling 32 is to stop compilers on | |
838 | * 32-bit architectures from moaning about the shift count | |
839 | * being >= the width of the type. Such architectures don't | |
840 | * reach this code anyway (unless sizeof(IV) > 8 but then | |
841 | * everything else breaks too so I'm not fussed at the moment). | |
842 | */ | |
42718184 RB |
843 | #ifdef UV_IS_QUAD |
844 | wp[0] = htonl(((UV)iv) >> (sizeof(UV)*4)); | |
845 | #else | |
846 | wp[0] = htonl(((U32)iv) >> (sizeof(UV)*4)); | |
847 | #endif | |
a8a597b2 | 848 | wp[1] = htonl(iv & 0xffffffff); |
79cb57f6 | 849 | ST(0) = sv_2mortal(newSVpvn((char *)wp, 8)); |
a8a597b2 MB |
850 | } else { |
851 | U32 w = htonl((U32)SvIVX(sv)); | |
79cb57f6 | 852 | ST(0) = sv_2mortal(newSVpvn((char *)&w, 4)); |
a8a597b2 MB |
853 | } |
854 | ||
855 | MODULE = B PACKAGE = B::NV PREFIX = Sv | |
856 | ||
857 | double | |
858 | SvNV(sv) | |
859 | B::NV sv | |
860 | ||
861 | double | |
862 | SvNVX(sv) | |
863 | B::NV sv | |
864 | ||
865 | MODULE = B PACKAGE = B::RV PREFIX = Sv | |
866 | ||
867 | B::SV | |
868 | SvRV(sv) | |
869 | B::RV sv | |
870 | ||
871 | MODULE = B PACKAGE = B::PV PREFIX = Sv | |
872 | ||
873 | void | |
874 | SvPV(sv) | |
875 | B::PV sv | |
876 | CODE: | |
877 | ST(0) = sv_newmortal(); | |
878 | sv_setpvn(ST(0), SvPVX(sv), SvCUR(sv)); | |
879 | ||
445a12f6 DM |
880 | STRLEN |
881 | SvLEN(sv) | |
882 | B::PV sv | |
883 | ||
884 | STRLEN | |
885 | SvCUR(sv) | |
886 | B::PV sv | |
887 | ||
a8a597b2 MB |
888 | MODULE = B PACKAGE = B::PVMG PREFIX = Sv |
889 | ||
890 | void | |
891 | SvMAGIC(sv) | |
892 | B::PVMG sv | |
893 | MAGIC * mg = NO_INIT | |
894 | PPCODE: | |
895 | for (mg = SvMAGIC(sv); mg; mg = mg->mg_moremagic) | |
cea2e8a9 | 896 | XPUSHs(make_mg_object(aTHX_ sv_newmortal(), mg)); |
a8a597b2 MB |
897 | |
898 | MODULE = B PACKAGE = B::PVMG | |
899 | ||
900 | B::HV | |
901 | SvSTASH(sv) | |
902 | B::PVMG sv | |
903 | ||
904 | #define MgMOREMAGIC(mg) mg->mg_moremagic | |
905 | #define MgPRIVATE(mg) mg->mg_private | |
906 | #define MgTYPE(mg) mg->mg_type | |
907 | #define MgFLAGS(mg) mg->mg_flags | |
908 | #define MgOBJ(mg) mg->mg_obj | |
88b39979 | 909 | #define MgLENGTH(mg) mg->mg_len |
a8a597b2 MB |
910 | |
911 | MODULE = B PACKAGE = B::MAGIC PREFIX = Mg | |
912 | ||
913 | B::MAGIC | |
914 | MgMOREMAGIC(mg) | |
915 | B::MAGIC mg | |
916 | ||
917 | U16 | |
918 | MgPRIVATE(mg) | |
919 | B::MAGIC mg | |
920 | ||
921 | char | |
922 | MgTYPE(mg) | |
923 | B::MAGIC mg | |
924 | ||
925 | U8 | |
926 | MgFLAGS(mg) | |
927 | B::MAGIC mg | |
928 | ||
929 | B::SV | |
930 | MgOBJ(mg) | |
931 | B::MAGIC mg | |
932 | ||
88b39979 VB |
933 | I32 |
934 | MgLENGTH(mg) | |
935 | B::MAGIC mg | |
936 | ||
a8a597b2 MB |
937 | void |
938 | MgPTR(mg) | |
939 | B::MAGIC mg | |
940 | CODE: | |
941 | ST(0) = sv_newmortal(); | |
88b39979 VB |
942 | if (mg->mg_ptr){ |
943 | if (mg->mg_len >= 0){ | |
944 | sv_setpvn(ST(0), mg->mg_ptr, mg->mg_len); | |
945 | } else { | |
946 | if (mg->mg_len == HEf_SVKEY) | |
947 | sv_setsv(ST(0),newRV((SV*)mg->mg_ptr)); | |
948 | } | |
949 | } | |
a8a597b2 MB |
950 | |
951 | MODULE = B PACKAGE = B::PVLV PREFIX = Lv | |
952 | ||
953 | U32 | |
954 | LvTARGOFF(sv) | |
955 | B::PVLV sv | |
956 | ||
957 | U32 | |
958 | LvTARGLEN(sv) | |
959 | B::PVLV sv | |
960 | ||
961 | char | |
962 | LvTYPE(sv) | |
963 | B::PVLV sv | |
964 | ||
965 | B::SV | |
966 | LvTARG(sv) | |
967 | B::PVLV sv | |
968 | ||
969 | MODULE = B PACKAGE = B::BM PREFIX = Bm | |
970 | ||
971 | I32 | |
972 | BmUSEFUL(sv) | |
973 | B::BM sv | |
974 | ||
975 | U16 | |
976 | BmPREVIOUS(sv) | |
977 | B::BM sv | |
978 | ||
979 | U8 | |
980 | BmRARE(sv) | |
981 | B::BM sv | |
982 | ||
983 | void | |
984 | BmTABLE(sv) | |
985 | B::BM sv | |
986 | STRLEN len = NO_INIT | |
987 | char * str = NO_INIT | |
988 | CODE: | |
989 | str = SvPV(sv, len); | |
990 | /* Boyer-Moore table is just after string and its safety-margin \0 */ | |
79cb57f6 | 991 | ST(0) = sv_2mortal(newSVpvn(str + len + 1, 256)); |
a8a597b2 MB |
992 | |
993 | MODULE = B PACKAGE = B::GV PREFIX = Gv | |
994 | ||
995 | void | |
996 | GvNAME(gv) | |
997 | B::GV gv | |
998 | CODE: | |
79cb57f6 | 999 | ST(0) = sv_2mortal(newSVpvn(GvNAME(gv), GvNAMELEN(gv))); |
a8a597b2 MB |
1000 | |
1001 | B::HV | |
1002 | GvSTASH(gv) | |
1003 | B::GV gv | |
1004 | ||
1005 | B::SV | |
1006 | GvSV(gv) | |
1007 | B::GV gv | |
1008 | ||
1009 | B::IO | |
1010 | GvIO(gv) | |
1011 | B::GV gv | |
1012 | ||
1013 | B::CV | |
1014 | GvFORM(gv) | |
1015 | B::GV gv | |
1016 | ||
1017 | B::AV | |
1018 | GvAV(gv) | |
1019 | B::GV gv | |
1020 | ||
1021 | B::HV | |
1022 | GvHV(gv) | |
1023 | B::GV gv | |
1024 | ||
1025 | B::GV | |
1026 | GvEGV(gv) | |
1027 | B::GV gv | |
1028 | ||
1029 | B::CV | |
1030 | GvCV(gv) | |
1031 | B::GV gv | |
1032 | ||
1033 | U32 | |
1034 | GvCVGEN(gv) | |
1035 | B::GV gv | |
1036 | ||
1037 | U16 | |
1038 | GvLINE(gv) | |
1039 | B::GV gv | |
1040 | ||
b195d487 GS |
1041 | char * |
1042 | GvFILE(gv) | |
1043 | B::GV gv | |
1044 | ||
a8a597b2 MB |
1045 | B::GV |
1046 | GvFILEGV(gv) | |
1047 | B::GV gv | |
1048 | ||
1049 | MODULE = B PACKAGE = B::GV | |
1050 | ||
1051 | U32 | |
1052 | GvREFCNT(gv) | |
1053 | B::GV gv | |
1054 | ||
1055 | U8 | |
1056 | GvFLAGS(gv) | |
1057 | B::GV gv | |
1058 | ||
1059 | MODULE = B PACKAGE = B::IO PREFIX = Io | |
1060 | ||
1061 | long | |
1062 | IoLINES(io) | |
1063 | B::IO io | |
1064 | ||
1065 | long | |
1066 | IoPAGE(io) | |
1067 | B::IO io | |
1068 | ||
1069 | long | |
1070 | IoPAGE_LEN(io) | |
1071 | B::IO io | |
1072 | ||
1073 | long | |
1074 | IoLINES_LEFT(io) | |
1075 | B::IO io | |
1076 | ||
1077 | char * | |
1078 | IoTOP_NAME(io) | |
1079 | B::IO io | |
1080 | ||
1081 | B::GV | |
1082 | IoTOP_GV(io) | |
1083 | B::IO io | |
1084 | ||
1085 | char * | |
1086 | IoFMT_NAME(io) | |
1087 | B::IO io | |
1088 | ||
1089 | B::GV | |
1090 | IoFMT_GV(io) | |
1091 | B::IO io | |
1092 | ||
1093 | char * | |
1094 | IoBOTTOM_NAME(io) | |
1095 | B::IO io | |
1096 | ||
1097 | B::GV | |
1098 | IoBOTTOM_GV(io) | |
1099 | B::IO io | |
1100 | ||
1101 | short | |
1102 | IoSUBPROCESS(io) | |
1103 | B::IO io | |
1104 | ||
1105 | MODULE = B PACKAGE = B::IO | |
1106 | ||
1107 | char | |
1108 | IoTYPE(io) | |
1109 | B::IO io | |
1110 | ||
1111 | U8 | |
1112 | IoFLAGS(io) | |
1113 | B::IO io | |
1114 | ||
1115 | MODULE = B PACKAGE = B::AV PREFIX = Av | |
1116 | ||
1117 | SSize_t | |
1118 | AvFILL(av) | |
1119 | B::AV av | |
1120 | ||
1121 | SSize_t | |
1122 | AvMAX(av) | |
1123 | B::AV av | |
1124 | ||
1125 | #define AvOFF(av) ((XPVAV*)SvANY(av))->xof_off | |
1126 | ||
1127 | IV | |
1128 | AvOFF(av) | |
1129 | B::AV av | |
1130 | ||
1131 | void | |
1132 | AvARRAY(av) | |
1133 | B::AV av | |
1134 | PPCODE: | |
1135 | if (AvFILL(av) >= 0) { | |
1136 | SV **svp = AvARRAY(av); | |
1137 | I32 i; | |
1138 | for (i = 0; i <= AvFILL(av); i++) | |
cea2e8a9 | 1139 | XPUSHs(make_sv_object(aTHX_ sv_newmortal(), svp[i])); |
a8a597b2 MB |
1140 | } |
1141 | ||
1142 | MODULE = B PACKAGE = B::AV | |
1143 | ||
1144 | U8 | |
1145 | AvFLAGS(av) | |
1146 | B::AV av | |
1147 | ||
1148 | MODULE = B PACKAGE = B::CV PREFIX = Cv | |
1149 | ||
1150 | B::HV | |
1151 | CvSTASH(cv) | |
1152 | B::CV cv | |
1153 | ||
1154 | B::OP | |
1155 | CvSTART(cv) | |
1156 | B::CV cv | |
1157 | ||
1158 | B::OP | |
1159 | CvROOT(cv) | |
1160 | B::CV cv | |
1161 | ||
1162 | B::GV | |
1163 | CvGV(cv) | |
1164 | B::CV cv | |
1165 | ||
57843af0 GS |
1166 | char * |
1167 | CvFILE(cv) | |
1168 | B::CV cv | |
1169 | ||
a8a597b2 MB |
1170 | long |
1171 | CvDEPTH(cv) | |
1172 | B::CV cv | |
1173 | ||
1174 | B::AV | |
1175 | CvPADLIST(cv) | |
1176 | B::CV cv | |
1177 | ||
1178 | B::CV | |
1179 | CvOUTSIDE(cv) | |
1180 | B::CV cv | |
1181 | ||
1182 | void | |
1183 | CvXSUB(cv) | |
1184 | B::CV cv | |
1185 | CODE: | |
56431972 | 1186 | ST(0) = sv_2mortal(newSViv(PTR2IV(CvXSUB(cv)))); |
a8a597b2 MB |
1187 | |
1188 | ||
1189 | void | |
1190 | CvXSUBANY(cv) | |
1191 | B::CV cv | |
1192 | CODE: | |
1193 | ST(0) = sv_2mortal(newSViv(CvXSUBANY(cv).any_iv)); | |
1194 | ||
5cfd8ad4 VB |
1195 | MODULE = B PACKAGE = B::CV |
1196 | ||
1197 | U8 | |
1198 | CvFLAGS(cv) | |
1199 | B::CV cv | |
1200 | ||
1201 | ||
a8a597b2 MB |
1202 | MODULE = B PACKAGE = B::HV PREFIX = Hv |
1203 | ||
1204 | STRLEN | |
1205 | HvFILL(hv) | |
1206 | B::HV hv | |
1207 | ||
1208 | STRLEN | |
1209 | HvMAX(hv) | |
1210 | B::HV hv | |
1211 | ||
1212 | I32 | |
1213 | HvKEYS(hv) | |
1214 | B::HV hv | |
1215 | ||
1216 | I32 | |
1217 | HvRITER(hv) | |
1218 | B::HV hv | |
1219 | ||
1220 | char * | |
1221 | HvNAME(hv) | |
1222 | B::HV hv | |
1223 | ||
1224 | B::PMOP | |
1225 | HvPMROOT(hv) | |
1226 | B::HV hv | |
1227 | ||
1228 | void | |
1229 | HvARRAY(hv) | |
1230 | B::HV hv | |
1231 | PPCODE: | |
1232 | if (HvKEYS(hv) > 0) { | |
1233 | SV *sv; | |
1234 | char *key; | |
1235 | I32 len; | |
1236 | (void)hv_iterinit(hv); | |
1237 | EXTEND(sp, HvKEYS(hv) * 2); | |
1238 | while (sv = hv_iternextsv(hv, &key, &len)) { | |
79cb57f6 | 1239 | PUSHs(newSVpvn(key, len)); |
cea2e8a9 | 1240 | PUSHs(make_sv_object(aTHX_ sv_newmortal(), sv)); |
a8a597b2 MB |
1241 | } |
1242 | } |