File Coverage

lib/PDL/Transform.xs
Criterion Covered Total %
statement 7 10 70.0
branch 5 12 41.6
condition n/a
subroutine n/a
pod n/a
total 12 22 54.5


line stmt bran cond sub pod time code
1              
2             #line 453 "lib/PDL/PP.pm"
3             /*
4             * THIS FILE WAS GENERATED BY PDL::PP from lib/PDL/Transform.pd! Do not modify!
5             */
6              
7             #define PDL_FREE_CODE(trans, destroy, comp_free_code, ntpriv_free_code) \
8             if (destroy) { \
9             comp_free_code \
10             } \
11             if ((trans)->dims_redone) { \
12             ntpriv_free_code \
13             }
14              
15             #include "EXTERN.h"
16             #include "perl.h"
17             #include "XSUB.h"
18             #include "pdl.h"
19             #include "pdlcore.h"
20             #define PDL PDL_Transform
21             extern Core* PDL; /* Structure hold core C functions */
22             #line 23 "lib/PDL/Transform.xs"
23             #include
24             pdl_error pdl_run_map(pdl *k0,pdl *in,pdl *out,pdl *map,SV *boundary,SV *method,long big,double blur,double sv_min,char flux,SV *bv);
25              
26             #line 449 "lib/PDL/PP.pm"
27             #include "pdlperl.h"
28             #line 29 "lib/PDL/Transform.xs"
29              
30             Core* PDL = NULL; /* Structure hold core C functions */
31              
32             MODULE = PDL::Transform PACKAGE = PDL PREFIX=pdl_run_
33              
34             PROTOTYPES: DISABLE
35              
36              
37             void
38             _map_int(k0,in,out,map,boundary,method,big,blur,sv_min,flux,bv)
39             pdl *k0
40             pdl *in
41             pdl *out
42             pdl *map
43             SV *boundary
44             SV *method
45             long big
46             double blur
47             double sv_min
48             char flux
49             SV *bv
50             CODE:
51 12           PDL->barf_if_error(pdl_run_map(k0,in,out,map,boundary,method,big,blur,sv_min,flux,bv));
52              
53              
54             #line 483 "lib/PDL/PP.pm"
55             BOOT:
56             /* Get pointer to structure of core shared C routines */
57             /* make sure PDL::Core is loaded */
58             #line 59 "lib/PDL/Transform.xs"
59 1           perl_require_pv ("PDL/Core.pm"); /* make sure PDL::Core is loaded */
60             #ifndef aTHX_
61             #define aTHX_
62             #endif
63 1 50         if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV));
    50          
    0          
64 1           SV* CoreSV = perl_get_sv("PDL::SHARE",FALSE); /* var with core structure */
65 1 50         if (!CoreSV)
66 0           Perl_croak(aTHX_ "We require the PDL::Core module, which was not found");
67 1 50         if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */
68 0           Perl_croak(aTHX_ "Got NULL pointer for PDL");
69 1 50         if (PDL->Version != PDL_CORE_VERSION)
70 0           Perl_croak(aTHX_ "[PDL->Version: %ld PDL_CORE_VERSION: %ld XS_VERSION: %s] PDL::Transform needs to be recompiled against the newly installed PDL", (long int)PDL->Version, (long int)PDL_CORE_VERSION, XS_VERSION);