Search   Feed   Browse   Add
Feed items 1 - 6 of 6 for December 2007

perl.xs

...

Re: OVERLOAD by Torsten Schoenfeld - December 30, 2007

On Mon, 2007-09-10 at 11:15 +0200, Scott Lanning wrote:> I think it&39;s a bug (or lack of C++ functionality) in xsubpp,> but I&39;m not ruling out a self-introduced problem. :)Yep, xsubpp&39;s OVERLOAD support is broken.Here&39;s what&39;s lacking:> XS(XS_Ogre__Animation_nil); prototype to pass -Wmissing-prototypes > XS(XS_Ogre__Animation_nil)> dXSARGS; PERL_UNUSED_VAR (items);> XSRETURN_EMPTY; <--- line 11158> > XS(boot_Ogre); prototype to...
http://www.nntp.perl.org/group/perl.xs/2007/12/msg2438.html

Re: Auto-inserting wrappers to handle C++ exceptions by Nicholas Clark - December 14, 2007

On Thu, Dec 06, 2007 at 03:08:09PM +0000, Olly Betts wrote:> I&39;m wrapping a C++ library, and wanting to add something like this> around (almost) every method:> > try > > code which calls the method> > catch (...) > convert_to_a_perl_exception();> > > And then convert_to_a_perl_exception() rethrows and recatches the> exception to find what type it is and so how to convert it to a Perl> exception.> > Is there a way to insert a...
http://www.nntp.perl.org/group/perl.xs/2007/12/msg2437.html

Re: using perl xs enums in perl scripts by Steve Fink - December 11, 2007

On Dec 8, 2007 3:43 PM, allswellthatendswell <FrankChang91gmail.com> wrote:> use mdNamePerl;> my $g;> Create> mdName Object$g=&mdNamePerl::mdNameCreate();> &mdNamePerl::mdNameSetPrimaryNameHint($g,NameFull);Looks like you&39;ve solved your problem, but I wanted to mention (1)that your mail was horribly wrapped (as you can see above), so Icouldn&39;t make sense of what it was trying to do; and (2) is thatreally the API I would expect it to work as: use mdNamePerl; ..
http://www.nntp.perl.org/group/perl.xs/2007/12/msg2436.html

Re: using perl xs enums in perl scripts by allswellthatendswell - December 9, 2007

On Dec 8, 9:43 pm, FrankChan...gmail.com (Allswellthatendswell)wrote:> Hello. I read Alexander Kolbasov&39;s excellent blog on the pitfalls> of Perl XS with enums. I used the following xs_test.h and got> Alexander&39;s h2xs fixes to work the way the blog described.>> xs_test.h> typedef enum mdNameNameHints > NameFull=1,> NameInverse=2,> NameGovernmentInverse=4,> NameMixedFirst=8,> NameMixedLast=16 xst_NameHints_t;>> I am now trying to call a C...
http://www.nntp.perl.org/group/perl.xs/2007/12/msg2435.html

using perl xs enums in perl scripts by allswellthatendswell - December 8, 2007

Hello. I read Alexander Kolbasov&39;s excellent blog on the pitfallsof Perl XS with enums. I used the following xs_test.h and gotAlexander&39;s h2xs fixes to work the way the blog described. xs_test.htypedef enum mdNameNameHints NameFull=1,NameInverse=2,NameGovernmentInverse=4,NameMixedFirst=8,NameMixedLast=16 xst_NameHints_t; I am now trying to call a C function by passing in one of these enumvalues in perl 5.8.8. This is the perl script:use mdNamePerl;my $g;CreatemdName...
http://www.nntp.perl.org/group/perl.xs/2007/12/msg2434.html

Auto-inserting wrappers to handle C++ exceptions by Olly Betts - December 6, 2007

I&39;m wrapping a C++ library, and wanting to add something like thisaround (almost) every method: try code which calls the method catch (...) convert_to_a_perl_exception(); And then convert_to_a_perl_exception() rethrows and recatches theexception to find what type it is and so how to convert it to a Perlexception.Is there a way to insert a standard wrapper like this around every XSwrapped method in a .xs file Bonus points if certain methods can beexcluded (ones which are...
http://www.nntp.perl.org/group/perl.xs/2007/12/msg2433.html
Available Archives
- October (1 item)
- November (1 item)
- December (6 items)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact