Hi,
The PDL source has some XS code that looks like basically this:
SV * at_c(x,position) pdl* x PDL_Long * pos = NO_INIT CODE: // code that does stuff OUTPUT: RETVAL
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:
SV * at_c(x,position) pdl* x CODE: PDL_Long * pos; // code that does stuff OUTPUT: RETVAL
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

In reply to ExtUtils::ParseXS has changed by syphilis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.