| Subject: | Re: XS |
|---|---|
| From: | gromivan@xxxxxxxxxx (Ivan Gromov) |
| Date: | Thu, 31 Jul 2008 02:43:58 +0400 |
| Newsgroups: | perl.beginners |
Patrick Dupre wrote: Inside a c routine (ie. inside a .c file) is there any way to define a variable of type SV (or SV *) ? I think you need such function as :SV* newSViv ( IV i ); SV* newSVuv ( UV u ); SV* newSVnv ( NV n ) and SV* newSVpv ( char* string , STRLEN len ); (with libraries <EXTERN.h> and <perl.h>) See perldoc perlapi. -- Best regards, Ivan Gromov. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Evaluate an operator given as a string, John W. Krahn |
|---|---|
| Next by Date: | Re: XS, Rob Dixon |
| Previous by Thread: | Re: XS, Patrick Dupre |
| Next by Thread: | edit a file cause unexpected execution, William |
| Indexes: | [Date] [Thread] [Top] [All Lists] |