Perl: the Markov chain saw | |
PerlMonks |
ExtUtils::ParseXS has changedby syphilis (Archbishop) |
on Aug 17, 2011 at 06:31 UTC ( [id://920621]=perlquestion: print w/replies, xml ) | Need Help?? |
syphilis has asked for the wisdom of the Perl Monks concerning the following question:
Hi, The PDL source has some XS code that looks like basically this: And that format has been working quite well for quite some time - and still works with ExtUtils-ParseXS-2.2210. But, with the latest ExtUtils-ParseXS-3.03 that produces the error "Could not find a typemap for C type 'PDL_Long *'". It seems that having the PDL_Long * pos declaration *before* the CODE block is now sending the message that the PDL_Long * type needs to be bound to perl via a typemap entry. (Perhaps it should *always* have been sending that message ? ... I don't know.) I can fix the problem by altering the code to: Is that the right thing to do ? Or is ExtUtils-ParseXS-3.03 doing something it shouldn't ? Btw, I don't know what NO_INIT is. It doesn't seem to be defined in the PDL code, so I guess it's some XS symbol. I should also mention that PDL_Long is just a typedef for int (in pdl.h). Cheers, Rob
Back to
Seekers of Perl Wisdom
|
|