Hello,
Before version 2.80, I used to follow the manual
Extending and Embedding Perl
1) Is there an alternative manual?
2) Here is my code (see p. 196 of the manual).
SV *piddle = HeVAL (he) ;
pdl *array = INT2PTR (pdl*, SvIV ((SV*) SvRV (piddle))) ;
PDL -> converttype (&array, PDL_D, 1) ;
Now, the compilation fails
Cores.xs:146:37: warning: passing argument 1 of ‘PDL->converttype’ from
incompatible pointer type [-Wincompatible-pointer-types]
146 | PDL -> converttype (&array, PDL_D, 1) ;
| ^~~~~~
| |
| pdl **
Cores.xs:146:37: note: expected ‘pdl *’ but argument is of type ‘pdl **’
Cores.xs:146:17: error: too many arguments to function ‘PDL->converttype’
146 | PDL -> converttype (&array, PDL_D, 1) ;
It seems that the function converttype differs from the previous versions.
I cannot find how I could modify my code for passing the compilation
with the same behavior.
Can somebody help me?
Thank.
===========================================================================
Patrick DUPRÉ | | email: [email protected]
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988 | | Room# D114A
===========================================================================
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general