SV* get_parent(SV* self) { Node* me = (Node*)SvIV(SvRV(self)); SV* parent = me->parent; SvREFCNT_inc(parent); return parent; }