| 1 |
/* vi: set ft=c : */ |
| 2 |
|
| 3 |
#ifndef scalarseq |
| 4 |
|
| 5 |
#define scalarseq(A) S_scalarseq(aTHX_ A) |
| 6 |
|
| 7 |
static OP *S_scalarseq(pTHX_ OP *o) { |
| 8 |
dVAR; |
| 9 |
if (o) { |
| 10 |
const OPCODE type = o->op_type; |
| 11 |
|
| 12 |
if (type == OP_LINESEQ || type == OP_SCOPE || |
| 13 |
type == OP_LEAVE || type == OP_LEAVETRY) |
| 14 |
{ |
| 15 |
OP *kid; |
| 16 |
for (kid = cLISTOPo->op_first; kid; kid = kid->op_sibling) { |
| 17 |
if (kid->op_sibling) { |
| 18 |
op_contextualize(kid, G_VOID); |
| 19 |
} |
| 20 |
} |
| 21 |
PL_curcop = &PL_compiling; |
| 22 |
} |
| 23 |
o->op_flags &= ~OPf_PARENS; |
| 24 |
if (PL_hints & HINT_BLOCK_SCOPE) |
| 25 |
o->op_flags |= OPf_PARENS; |
| 26 |
} |
| 27 |
else |
| 28 |
o = newOP(OP_STUB, 0); |
| 29 |
return o; |
| 30 |
} |
| 31 |
|
| 32 |
#endif |