in reply to Extension Functions on Win32

Could it be that the author uses the XS PREFIX keyword in his code? From perlxs

The PREFIX Keyword

The PREFIX keyword designates prefixes which should be removed from the Perl function names. If the C function is rpcb_gettime() and the PREFIX value is rpcb_ then Perl will see this function as gettime().

This keyword should follow the PACKAGE keyword when used. If PACKAGE is not used then PREFIX should follow the MODULE keyword.

MODULE = RPC PREFIX = rpc_ MODULE = RPC PACKAGE = RPCB PREFIX = rpcb_

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Extension Functions on Win32
by jfroebe (Parson) on Mar 23, 2006 at 12:39 UTC

    Thanks!

    After my brain had been rebooted (sleep), I was able to find the mapping the author does:

    newXS( "Win32::Test::GetFileSizes", ExtensionGetFileSizes, pszFile);

    I would have wished the author explained that little detail but oh well.. thanks for the info on PREFIX! :)

    Jason L. Froebe

    Team Sybase member

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1