/* --- Private helpers ----------------------------------------------------- */
-#define SO_LINKLIST(O) ((O)->op_next ? (O)->op_next : sub_op_linklist(O))
-
-STATIC OP *sub_op_linklist(pTHX_ OP *o) {
-#define sub_op_linklist(O) sub_op_linklist(aTHX_ (O))
- OP *first;
-
- if (o->op_next)
- return o->op_next;
-
- /* establish postfix order */
- first = cUNOPo->op_first;
- if (first) {
- register OP *kid;
- o->op_next = SO_LINKLIST(first);
- kid = first;
- for (;;) {
- if (kid->op_sibling) {
- kid->op_next = SO_LINKLIST(kid->op_sibling);
- kid = kid->op_sibling;
- } else {
- kid->op_next = o;
- break;
- }
- }
- }
- else
- o->op_next = o;
-
- return o->op_next;
-}
-
STATIC IV sub_op_hint(pTHX) {
#define sub_op_hint() sub_op_hint(aTHX)
SV *hint;
}
}
- sub_op_linklist(o);
-
{
sub_op_name_t *on = PerlMemShared_malloc(sizeof(*on) + len);
Copy(name, &on->buf, len, char);