OK, it works by putting the header file at the beginig of my c file:
EXTERN.h, etc.
Regards
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 *) ?
From xs, it is no problem.
Yes. You can say
SV *var = &PL_sv_undef;
which creates an undefined scalar. But what do you want to do with it?
Rob
--
---
==========================================================================
Patrick DUPRÉ | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: [EMAIL PROTECTED]
==========================================================================
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/