Mailinglist Archive: opensuse (1640 mails)
| < Previous | Next > |
Re: How to deploy a dynamically linked perl XS library? (Re: [opensuse] libperl.a gone in opensuse-11.0?)
- From: Michael Schroeder <mls@xxxxxxx>
- Date: Fri, 1 Aug 2008 10:46:39 +0200
- Message-id: <20080801084639.GA21839@xxxxxxx>
On Fri, Aug 01, 2008 at 08:45:06AM +0200, Josef Wolf wrote:
It should be available via the "aTHX" variable/macro. If not,
try Perl_get_context().
Cheers,
Michael.
--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
The question now becomes, how to (painless) deploy a perl XS library
which makes callbacks into perl. That means, the XS library needs
access to the my_perl variable, which is declared as
static PerlInterpreter *my_perl;
in the original libperl.so
Any hints?
It should be available via the "aTHX" variable/macro. If not,
try Perl_get_context().
Cheers,
Michael.
--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |