Re: using perl xs enums in perl scripts

2007-12-11 Thread Steve Fink
On Dec 8, 2007 3:43 PM, allswellthatendswell <[EMAIL PROTECTED]> wrote: > use mdNamePerl; > my $g; > #Create > mdName Object$g=&mdNamePerl::mdNameCreate(); > &mdNamePerl::mdNameSetPrimaryNameHint($g,NameFull); Looks like you've solved your problem, but I wanted to mention (1) that your mail was ho

Re: using perl xs enums in perl scripts

2007-12-09 Thread allswellthatendswell
On Dec 8, 9:43 pm, [EMAIL PROTECTED] (Allswellthatendswell) wrote: >Hello. I read Alexander Kolbasov's excellent blog on the pitfalls > of Perl XS with enums. I used the following xs_test.h and got > Alexander's h2xs fixes to work the way the blog described. > > // xs_test.h > typedef enum mdNa

using perl xs enums in perl scripts

2007-12-08 Thread allswellthatendswell
Hello. I read Alexander Kolbasov's excellent blog on the pitfalls of Perl XS with enums. I used the following xs_test.h and got Alexander's h2xs fixes to work the way the blog described. // xs_test.h typedef enum mdNameNameHints { NameFull=1, NameInverse=2, NameGovernmentInverse=4, NameMixedFir