This fixes a memory leak in the allocation of doubles, but causes 4 tests to fail
[Math-GSL.git] / swig / NTuple.i
blob68bec1c831e3adc6542670dc3ea0172c9c7aa589
1 %module "Math::GSL::NTuple"
2 %include "typemaps.i"
3 %include "gsl_typemaps.i"
5 %typemap(in) void *ntuple_data {
6 fprintf(stderr,"symname=$symname\n");
7 if ($input)
8 $1 = (double *) $input;
9 // should have a croak in an else
12 %typemap(argout) void *ntuple_data {
13 //Perl_sv_dump($1);
17 #include "gsl/gsl_ntuple.h"
18 #include "gsl/gsl_errno.h"
19 #include "gsl/gsl_histogram.h"
22 %include "gsl/gsl_ntuple.h"
23 %include "gsl/gsl_errno.h"
24 %include "gsl/gsl_histogram.h"
26 %include "../pod/NTuple.pod"