perl-xs
Integrating XS code into Moose Class definition files
I have written a XS based Perl module which provides access to functions in a C Library - lets call it MyLib_XS for now. I want开发者_C百科 to move ahead from here by using these functions for definin[详细]
2023-02-02 03:13 分类:问答Calling C function from Perl within embedded C application
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.[详细]
2023-01-22 17:27 分类:问答How can Perl's XSUB die?
I have written a Perl XS wrapper for a C library consisting of about ~80 functions. Right now my general strategy is to substitute the error from a C[详细]
2023-01-14 19:50 分类:问答What tools can help build an XS project?
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 proje[详细]
2023-01-13 18:09 分类:问答How can I uniquely identify all of the calls to a function?
I know that caller will give me the file name and line number where a function was called, but how can I get the character or byte offset?It is okay if I must drop down to XS for it (the function will[详细]
2023-01-04 22:31 分类:问答How can I tell if a C struct has a member in Perl XS?
Is there an ExtUtils::* or Module::Build (or other) analog to Ruby\'s mkmf.have_struct_member? I\'d like to do something like (in the manner of a hints/ file):[详细]
2022-12-17 09:17 分类:问答