perl-xs Questions
2
Solved
I am building an XS extension with Perl. I have two files:
A C header file (.h)
A C source file (.c)
Currently what i did is to put all the C file code before the Model= on the XS file and wrap...
Huba asked 23/4, 2014 at 12:28
1
Solved
I am writing an XS module. I allocate some resource (e.g. malloc() or SvREFCNT_inc()) then do some operations involving the Perl API, then free the resource. This is fine in normal C because C has ...
Verified asked 20/8, 2017 at 17:31
2
Given a Perl XS module using a C library, assume there is a Makefile.PL that is set up correctly so that all header and library locations, compiler and linker flags etc work correctly.
Now, let's ...
3
I'm trying to compile an XS into perl [ed(ikegami): which is to say he's using ::MakeMaker's make perl to create a perl with a C vendor library statically linked in ] but when I do, the new version...
1
Solved
Unable to find where the memory leak is happening in this code.
Basically I want to write a XS wrapper for a C-function which returns a two-dimensional array.
C-function:
int CW_returnArray(doub...
Argumentum asked 15/8, 2013 at 19:8
2
Solved
If I write some XS code with a hash that I never expect to return to perl, do I have to free it? If so, how?
The closest I've come up with is hv_undef, but that is only clearing out the contents o...
Dennisedennison asked 24/12, 2012 at 19:46
4
Solved
I need to write an XS module for Perl. It is my understanding that h2xs is pretty much deprecated today, what is the preferred method for starting an XS module today? I looked at Module::Starter, b...
2
Solved
I am writing up a talk on XS and I need to know when the community thinks it is proper to reach for XS.
1
Solved
Ok, this is a very interesting question and there may not be any easy way to do this but figured I would throw this out there before deciding that modifying Perl is my underlying answer.
So I've g...
3
Solved
I've recently started learning XS using perlxstut and the tutorial suggests that I create my module using the old h2xs tool to create an ExtUtils::MakeMaker-based project. However for pure Perl pro...
2
I have a C++ object that I am converting to Perl using Perl XS. This process works fine with Perl 5.8.5 and 5.8.7. But as soon as I try to use Perl 5.10.0, I run into a lot of compile errors. Most ...
1
© 2022 - 2024 — McMap. All rights reserved.