Dan Sugalski <[EMAIL PROTECTED]> writes:
>At 10:15 PM 10/1/00 -0700, Rob Tanner wrote:
>>Is there a good heavy duty typemap reference available either on the net
>>or at the bookstore? Or barring that, can someone tell me what the
>>appropriate macro is for a struct ** type value?
A struct ** smells of a "list of objects" to me.
Once you get to that level it is much better to think about what the
function does and what it should look like to perl user.
You may want a type map for inner most struct but even that is not
necessary.
Basically an XSUB's "natural" typemap is
void/SV *
Func(...)
>
>While it's probably not what you wanted to hear, I find that after a
>certain level of complexity (basically if you move past the basics of long,
>char *, double, and void *) it's better to do all the work by hand. Not
>particularly fun, but you'll find yourself fighting typemaps and odd
>boundary cases otherwise.
>
> Dan
>
>--------------------------------------"it's like this"-------------------
>Dan Sugalski even samurai
>[EMAIL PROTECTED] have teddy bears and even
> teddy bears get drunk
--
Nick Ing-Simmons