in reply to Re^4: XS: EXTEND/mPUSHi
in thread XS: EXTEND/mPUSHi
Inline/C.pm uses sp = mark;, when it should probably use SP = MARK;, and I'd not even sure if that's officially allowed
In pp.h I can see:
But I don't know whether the assignment is officially allowed. The perl source itself makes that assignment in a number of places - but that doesn't necessarily give that usage the green light.
How would you adjust the stack pointer if you wanted to ? Is altering it something that you would prefer to avoid ?
Cheers,
Rob
In pp.h I can see:
So I'm guessing that case is not going to be critical.#define SP sp #define MARK mark
But I don't know whether the assignment is officially allowed. The perl source itself makes that assignment in a number of places - but that doesn't necessarily give that usage the green light.
How would you adjust the stack pointer if you wanted to ? Is altering it something that you would prefer to avoid ?
Cheers,
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: XS: EXTEND/mPUSHi
by ikegami (Patriarch) on Sep 27, 2011 at 02:04 UTC |
In Section
Seekers of Perl Wisdom