Search   Feed   Browse   Add
Feed items 1 - 10 of 11 for April 2008

perl.xs

...

RE: Used only once in Perl 5.10 by Erland Sommarskog - April 30, 2008

"Jan Dubois" (jandactivestate.com) writes:> You were always supposed to get the warning; that you got away without> one is a bug. :)Alright! > Use the GV_ADDMULTI flag:> > if (sv = get_sv("Win32::SqlServer::Version", TRUE GV_ADDMULTI))> > Look it up in perlguts.pod:That did the trick. Thanks Jan and Nicholas for the information!-- Erland Sommarskog, Stockholm, esquelsommarskog.se
http://www.nntp.perl.org/group/perl.xs/2008/04/msg2455.html

Re: perl extension statically linked - xsub not called by manojkbhatti - April 29, 2008

On Apr 28, 9:06 pm, j...activestate.com (Jan Dubois) wrote:> On Mon, 28 Apr 2008, manojkbha...yahoo.com wrote:> > On Apr 28, 12:49 pm, j...activestate.com (Jan Dubois) wrote:> > > If you are using the mechanism from win32Makefile, then you must make sure> > > you add your extension to the list in STATIC_EXT to make sure it gets> > > initialized properly.  Otherwise you need to add some code to your> > > xs_init() function to define the.
http://www.nntp.perl.org/group/perl.xs/2008/04/msg2454.html

RE: Used only once in Perl 5.10 by Jan Dubois - April 28, 2008

On Mon, 28 Apr 2008, Nicholas Clark wrote:> On Mon, Apr 28, 2008 at 11:50:37PM +0100, Nicholas Clark wrote:> > On Mon, Apr 28, 2008 at 03:48:35PM -0700, Jan Dubois wrote:> >> > > Use the GV_ADDMULTI flag:> > >> > > if (sv = get_sv("Win32::SqlServer::Version", TRUE GV_ADDMULTI))> >> > Really that should be> >> > if (sv = get_sv("Win32::SqlServer::Version", GV_ADD GV_ADDMULTI))> >>...
http://www.nntp.perl.org/group/perl.xs/2008/04/msg2453.html

Re: Used only once in Perl 5.10 by Nicholas Clark - April 28, 2008

On Mon, Apr 28, 2008 at 11:50:37PM +0100, Nicholas Clark wrote:> On Mon, Apr 28, 2008 at 03:48:35PM -0700, Jan Dubois wrote:> > > Use the GV_ADDMULTI flag:> > > > if (sv = get_sv("Win32::SqlServer::Version", TRUE GV_ADDMULTI))> > Really that should be> > if (sv = get_sv("Win32::SqlServer::Version", GV_ADD GV_ADDMULTI))> > The flags to get_sv() were always a bitmask, never a simple TRUEFALSE, but> until recently...
http://www.nntp.perl.org/group/perl.xs/2008/04/msg2452.html

Re: Used only once in Perl 5.10 by Nicholas Clark - April 28, 2008

On Mon, Apr 28, 2008 at 03:48:35PM -0700, Jan Dubois wrote:> Use the GV_ADDMULTI flag:> > if (sv = get_sv("Win32::SqlServer::Version", TRUE GV_ADDMULTI))Really that should be if (sv = get_sv("Win32::SqlServer::Version", GV_ADD GV_ADDMULTI))The flags to get_sv() were always a bitmask, never a simple TRUEFALSE, butuntil recently the documentation wasn&39;t very good.Nicholas Clark
http://www.nntp.perl.org/group/perl.xs/2008/04/msg2451.html

RE: Used only once in Perl 5.10 by Jan Dubois - April 28, 2008

On Mon, 28 Apr 2008, Erland Sommarskog wrote:> > I have this piece of code in my XS module:> > if (sv = get_sv("Win32::SqlServer::Version", TRUE))> > char buff256;> sprintf_s(buff, 256,> "This is Win32::SqlServer, version %snnCopyright (c)> 2005-2008 Erland Sommarskogn",> XS_VERSION);> sv_setnv(sv, atof(XS_VERSION));> sv_setpv(sv, buff);> .
http://www.nntp.perl.org/group/perl.xs/2008/04/msg2450.html

Used only once in Perl 5.10 by Erland Sommarskog - April 28, 2008

I have this piece of code in my XS module: if (sv = get_sv("Win32::SqlServer::Version", TRUE)) char buff256; sprintf_s(buff, 256, "This is Win32::SqlServer, version %snnCopyright (c) 2005-2008 Erland Sommarskogn", XS_VERSION); sv_setnv(sv, atof(XS_VERSION)); sv_setpv(sv, buff); SvNOK_on(sv); In Perl 5.10 this yields: Name "Win32::SqlServer::Version" used...
http://www.nntp.perl.org/group/perl.xs/2008/04/msg2449.html

RE: perl extension statically linked - xsub not called by Jan Dubois - April 28, 2008

On Mon, 28 Apr 2008, manojkbhattiyahoo.com wrote:> On Apr 28, 12:49 pm, j...activestate.com (Jan Dubois) wrote:> > If you are using the mechanism from win32Makefile, then you must make sure> > you add your extension to the list in STATIC_EXT to make sure it gets> > initialized properly.  Otherwise you need to add some code to your> > xs_init() function to define the bootstrap function in your module via> >> >    ...
http://www.nntp.perl.org/group/perl.xs/2008/04/msg2448.html

Re: perl extension statically linked - xsub not called by manojkbhatti - April 28, 2008

On Apr 28, 12:49 pm, j...activestate.com (Jan Dubois) wrote:> If you are using the mechanism from win32Makefile, then you must make sure> you add your extension to the list in STATIC_EXT to make sure it gets> initialized properly.  Otherwise you need to add some code to your> xs_init() function to define the bootstrap function in your module via>>     newXS("MyExt::boot_MyExt", boot_MyExt, __FILE__);>> and then make sure you call...
http://www.nntp.perl.org/group/perl.xs/2008/04/msg2447.html

RE: perl extension statically linked - xsub not called by Jan Dubois - April 28, 2008

On Sun, 27 Apr 2008, manojkbhattiyahoo.com wrote:> I&39;m developing an app that is embedding perl for some web scarping. I> developed an perl extension that has to callback into my C++ code> while running inside embedded interpreter. If I dynamically link the> perl extension as a .dll then the xsub in the perl extension gets> called correctly and does what I need it to do.> > However, if I statically link the perl extension and then link that> with my Visual C++ app...
http://www.nntp.perl.org/group/perl.xs/2008/04/msg2446.html
Available Archives
- January (4 items)
- March (2 items)
- April (11 items)
- May (7 items)
- June (7 items)
- July (1 item)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact