On Wed, Sep 03, 2003 at 10:21:52AM +0200, Patrik Jacoby wrote:

> >It's just that the inline function can't be found for some reason - so 
> >perl assumes the function must be loadable from an .al file - but can't 
> >find that file because it doesn't (and shouldn't) exist.
> >
> 
> ok, I'm trying to include the c functions to encode punycode in my perl 
> script:
>

Hi,
        since you have PREFIX specified I think you need to call
Xcode_puny_decodeString when you wish to use the function from perl.

> #!/usr/bin/perl
> 
> use Inline C => DATA =>
>    LIBS => '-lxcode',
>    TYPEMAPS => './typemap',
>    BUILD_NOISY => '1',
>    PREFIX => 'c_';
> 
> my $arg = shift;
> my $result;
> my $len;
> 
> c_Xcode_puny_decodeString( $arg, length($arg), $result, $len );

Xcode_puny_decodeString( $arg, length($arg), $result, $len );

> 
> print "$arg . :  $result\n";
> 
> #include <xcode.h>
> int c_Xcode_puny_encodeString( void * pdwzInputString,
>    int iInputSize,

-- 
The customer can count on us to assertively create scalable solutions while 
maintaining the highest standards

Reply via email to