Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: XS: EXTEND/mPUSHi

by ikegami (Pope)
on Sep 26, 2011 at 23:02 UTC ( #927971=note: print w/ replies, xml ) Need Help??


in reply to Re^3: XS: EXTEND/mPUSHi
in thread XS: EXTEND/mPUSHi

dXSARGS is the most comprehensive.

Or you could just look at the error message you get and add the appropriate declaration (spdSP;, axdAX;, markdMARK;, etc).

Inline/C.pm uses sp = mark;, when it should probably use SP = MARK;, and I'd not even sure if that's officially allowed.


Comment on Re^4: XS: EXTEND/mPUSHi
Select or Download Code
Re^5: XS: EXTEND/mPUSHi
by syphilis (Canon) on Sep 27, 2011 at 01:19 UTC
    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:
    #define SP sp #define MARK mark
    So I'm guessing that case is not going to be critical.

    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

      So I'm guessing that case is not going to be critical.

      Until they change macros, which they can do since you're suppose to be using the macros?

      How would you adjust the stack pointer if you wanted to ? Is altering it something that you would prefer to avoid ?

      I'd let xsubpp do it. See Re^6: XS: EXTEND/mPUSHi.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://927971]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-12-28 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls