develooper Front page | perl.perl6.internals | Postings from September 2005

Re: loadlib and libraries with '.' in the name

Thread Previous | Thread Next
From:
Leopold Toetsch
Date:
September 24, 2005 04:59
Subject:
Re: loadlib and libraries with '.' in the name
Message ID:
e25a1d9dfb3e650f6cbf525e34b36249@toetsch.at

On Sep 24, 2005, at 6:36, Ross McFarland wrote:

>
>
> On Sep 22, 2005, at 10:51 PM, Ross McFarland wrote:
>
>>
>> i was playing around with NCI stuff tonight and ran across a problem 
>> in loadlib. the following code does not work:
>
> for those of you interested:
>     https://rt.perl.org/rt3/Ticket/Display.html?id=37258

This patch seems to simplify things. Two remarks:
- use mem_sys_allocate() instead of malloc - it deals w out-of-mem
- I don't understand the extra check:
   +    if (path)
   +        goto done;

>
> i'll work on porting the pir to a .t test at some point if that would 
> be desirable.

Tests are very welcome albeit a bit non-trivial as platforms and 
availability of libs most be taken into account.
>
> later,
> -rm

leo


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About