| 1 |
|
| /* ---------------------------------------------------------------------------- |
| 2 |
|
| * This file was automatically generated by SWIG (https://www.swig.org). |
| 3 |
|
| * Version 4.2.0 |
| 4 |
|
| * |
| 5 |
|
| * Do not make changes to this file unless you know what you are doing - modify |
| 6 |
|
| * the SWIG interface file instead. |
| 7 |
|
| * ----------------------------------------------------------------------------- */ |
| 8 |
|
| |
| 9 |
|
| |
| 10 |
|
| #define SWIG_VERSION 0x040200 |
| 11 |
|
| #define SWIGPERL |
| 12 |
|
| #define SWIG_CASTRANK_MODE |
| 13 |
|
| |
| 14 |
|
| /* ----------------------------------------------------------------------------- |
| 15 |
|
| * This section contains generic SWIG labels for method/variable |
| 16 |
|
| * declarations/attributes, and other compiler dependent labels. |
| 17 |
|
| * ----------------------------------------------------------------------------- */ |
| 18 |
|
| |
| 19 |
|
| /* template workaround for compilers that cannot correctly implement the C++ standard */ |
| 20 |
|
| #ifndef SWIGTEMPLATEDISAMBIGUATOR |
| 21 |
|
| # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) |
| 22 |
|
| # define SWIGTEMPLATEDISAMBIGUATOR template |
| 23 |
|
| # elif defined(__HP_aCC) |
| 24 |
|
| /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ |
| 25 |
|
| /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ |
| 26 |
|
| # define SWIGTEMPLATEDISAMBIGUATOR template |
| 27 |
|
| # else |
| 28 |
|
| # define SWIGTEMPLATEDISAMBIGUATOR |
| 29 |
|
| # endif |
| 30 |
|
| #endif |
| 31 |
|
| |
| 32 |
|
| /* inline attribute */ |
| 33 |
|
| #ifndef SWIGINLINE |
| 34 |
|
| # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) |
| 35 |
|
| # define SWIGINLINE inline |
| 36 |
|
| # else |
| 37 |
|
| # define SWIGINLINE |
| 38 |
|
| # endif |
| 39 |
|
| #endif |
| 40 |
|
| |
| 41 |
|
| /* attribute recognised by some compilers to avoid 'unused' warnings */ |
| 42 |
|
| #ifndef SWIGUNUSED |
| 43 |
|
| # if defined(__GNUC__) |
| 44 |
|
| # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) |
| 45 |
|
| # define SWIGUNUSED __attribute__ ((__unused__)) |
| 46 |
|
| # else |
| 47 |
|
| # define SWIGUNUSED |
| 48 |
|
| # endif |
| 49 |
|
| # elif defined(__ICC) |
| 50 |
|
| # define SWIGUNUSED __attribute__ ((__unused__)) |
| 51 |
|
| # else |
| 52 |
|
| # define SWIGUNUSED |
| 53 |
|
| # endif |
| 54 |
|
| #endif |
| 55 |
|
| |
| 56 |
|
| #ifndef SWIG_MSC_UNSUPPRESS_4505 |
| 57 |
|
| # if defined(_MSC_VER) |
| 58 |
|
| # pragma warning(disable : 4505) /* unreferenced local function has been removed */ |
| 59 |
|
| # endif |
| 60 |
|
| #endif |
| 61 |
|
| |
| 62 |
|
| #ifndef SWIGUNUSEDPARM |
| 63 |
|
| # ifdef __cplusplus |
| 64 |
|
| # define SWIGUNUSEDPARM(p) |
| 65 |
|
| # else |
| 66 |
|
| # define SWIGUNUSEDPARM(p) p SWIGUNUSED |
| 67 |
|
| # endif |
| 68 |
|
| #endif |
| 69 |
|
| |
| 70 |
|
| /* internal SWIG method */ |
| 71 |
|
| #ifndef SWIGINTERN |
| 72 |
|
| # define SWIGINTERN static SWIGUNUSED |
| 73 |
|
| #endif |
| 74 |
|
| |
| 75 |
|
| /* internal inline SWIG method */ |
| 76 |
|
| #ifndef SWIGINTERNINLINE |
| 77 |
|
| # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE |
| 78 |
|
| #endif |
| 79 |
|
| |
| 80 |
|
| /* exporting methods */ |
| 81 |
|
| #if defined(__GNUC__) |
| 82 |
|
| # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) |
| 83 |
|
| # ifndef GCC_HASCLASSVISIBILITY |
| 84 |
|
| # define GCC_HASCLASSVISIBILITY |
| 85 |
|
| # endif |
| 86 |
|
| # endif |
| 87 |
|
| #endif |
| 88 |
|
| |
| 89 |
|
| #ifndef SWIGEXPORT |
| 90 |
|
| # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
| 91 |
|
| # if defined(STATIC_LINKED) |
| 92 |
|
| # define SWIGEXPORT |
| 93 |
|
| # else |
| 94 |
|
| # define SWIGEXPORT __declspec(dllexport) |
| 95 |
|
| # endif |
| 96 |
|
| # else |
| 97 |
|
| # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
| 98 |
|
| # define SWIGEXPORT __attribute__ ((visibility("default"))) |
| 99 |
|
| # else |
| 100 |
|
| # define SWIGEXPORT |
| 101 |
|
| # endif |
| 102 |
|
| # endif |
| 103 |
|
| #endif |
| 104 |
|
| |
| 105 |
|
| /* calling conventions for Windows */ |
| 106 |
|
| #ifndef SWIGSTDCALL |
| 107 |
|
| # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
| 108 |
|
| # define SWIGSTDCALL __stdcall |
| 109 |
|
| # else |
| 110 |
|
| # define SWIGSTDCALL |
| 111 |
|
| # endif |
| 112 |
|
| #endif |
| 113 |
|
| |
| 114 |
|
| /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
| 115 |
|
| #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) |
| 116 |
|
| # define _CRT_SECURE_NO_DEPRECATE |
| 117 |
|
| #endif |
| 118 |
|
| |
| 119 |
|
| /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ |
| 120 |
|
| #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) |
| 121 |
|
| # define _SCL_SECURE_NO_DEPRECATE |
| 122 |
|
| #endif |
| 123 |
|
| |
| 124 |
|
| /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ |
| 125 |
|
| #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) |
| 126 |
|
| # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 |
| 127 |
|
| #endif |
| 128 |
|
| |
| 129 |
|
| /* Intel's compiler complains if a variable which was never initialised is |
| 130 |
|
| * cast to void, which is a common idiom which we use to indicate that we |
| 131 |
|
| * are aware a variable isn't used. So we just silence that warning. |
| 132 |
|
| * See: https://github.com/swig/swig/issues/192 for more discussion. |
| 133 |
|
| */ |
| 134 |
|
| #ifdef __INTEL_COMPILER |
| 135 |
|
| # pragma warning disable 592 |
| 136 |
|
| #endif |
| 137 |
|
| |
| 138 |
|
| #if __cplusplus >=201103L |
| 139 |
|
| # define SWIG_NULLPTR nullptr |
| 140 |
|
| #else |
| 141 |
|
| # define SWIG_NULLPTR NULL |
| 142 |
|
| #endif |
| 143 |
|
| |
| 144 |
|
| /* ----------------------------------------------------------------------------- |
| 145 |
|
| * swigrun.swg |
| 146 |
|
| * |
| 147 |
|
| * This file contains generic C API SWIG runtime support for pointer |
| 148 |
|
| * type checking. |
| 149 |
|
| * ----------------------------------------------------------------------------- */ |
| 150 |
|
| |
| 151 |
|
| /* This should only be incremented when either the layout of swig_type_info changes, |
| 152 |
|
| or for whatever reason, the runtime changes incompatibly */ |
| 153 |
|
| #define SWIG_RUNTIME_VERSION "4" |
| 154 |
|
| |
| 155 |
|
| /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
| 156 |
|
| #ifdef SWIG_TYPE_TABLE |
| 157 |
|
| # define SWIG_QUOTE_STRING(x) #x |
| 158 |
|
| # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) |
| 159 |
|
| # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) |
| 160 |
|
| #else |
| 161 |
|
| # define SWIG_TYPE_TABLE_NAME |
| 162 |
|
| #endif |
| 163 |
|
| |
| 164 |
|
| /* |
| 165 |
|
| You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for |
| 166 |
|
| creating a static or dynamic library from the SWIG runtime code. |
| 167 |
|
| In 99.9% of the cases, SWIG just needs to declare them as 'static'. |
| 168 |
|
| |
| 169 |
|
| But only do this if strictly necessary, ie, if you have problems |
| 170 |
|
| with your compiler or suchlike. |
| 171 |
|
| */ |
| 172 |
|
| |
| 173 |
|
| #ifndef SWIGRUNTIME |
| 174 |
|
| # define SWIGRUNTIME SWIGINTERN |
| 175 |
|
| #endif |
| 176 |
|
| |
| 177 |
|
| #ifndef SWIGRUNTIMEINLINE |
| 178 |
|
| # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
| 179 |
|
| #endif |
| 180 |
|
| |
| 181 |
|
| /* Generic buffer size */ |
| 182 |
|
| #ifndef SWIG_BUFFER_SIZE |
| 183 |
|
| # define SWIG_BUFFER_SIZE 1024 |
| 184 |
|
| #endif |
| 185 |
|
| |
| 186 |
|
| /* Flags for pointer conversions */ |
| 187 |
|
| #define SWIG_POINTER_DISOWN 0x1 |
| 188 |
|
| #define SWIG_CAST_NEW_MEMORY 0x2 |
| 189 |
|
| #define SWIG_POINTER_NO_NULL 0x4 |
| 190 |
|
| #define SWIG_POINTER_CLEAR 0x8 |
| 191 |
|
| #define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN) |
| 192 |
|
| |
| 193 |
|
| /* Flags for new pointer objects */ |
| 194 |
|
| #define SWIG_POINTER_OWN 0x1 |
| 195 |
|
| |
| 196 |
|
| |
| 197 |
|
| /* |
| 198 |
|
| Flags/methods for returning states. |
| 199 |
|
| |
| 200 |
|
| The SWIG conversion methods, as ConvertPtr, return an integer |
| 201 |
|
| that tells if the conversion was successful or not. And if not, |
| 202 |
|
| an error code can be returned (see swigerrors.swg for the codes). |
| 203 |
|
| |
| 204 |
|
| Use the following macros/flags to set or process the returning |
| 205 |
|
| states. |
| 206 |
|
| |
| 207 |
|
| In old versions of SWIG, code such as the following was usually written: |
| 208 |
|
| |
| 209 |
|
| if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { |
| 210 |
|
| // success code |
| 211 |
|
| } else { |
| 212 |
|
| //fail code |
| 213 |
|
| } |
| 214 |
|
| |
| 215 |
|
| Now you can be more explicit: |
| 216 |
|
| |
| 217 |
|
| int res = SWIG_ConvertPtr(obj,vptr,ty.flags); |
| 218 |
|
| if (SWIG_IsOK(res)) { |
| 219 |
|
| // success code |
| 220 |
|
| } else { |
| 221 |
|
| // fail code |
| 222 |
|
| } |
| 223 |
|
| |
| 224 |
|
| which is the same really, but now you can also do |
| 225 |
|
| |
| 226 |
|
| Type *ptr; |
| 227 |
|
| int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); |
| 228 |
|
| if (SWIG_IsOK(res)) { |
| 229 |
|
| // success code |
| 230 |
|
| if (SWIG_IsNewObj(res) { |
| 231 |
|
| ... |
| 232 |
|
| delete *ptr; |
| 233 |
|
| } else { |
| 234 |
|
| ... |
| 235 |
|
| } |
| 236 |
|
| } else { |
| 237 |
|
| // fail code |
| 238 |
|
| } |
| 239 |
|
| |
| 240 |
|
| I.e., now SWIG_ConvertPtr can return new objects and you can |
| 241 |
|
| identify the case and take care of the deallocation. Of course that |
| 242 |
|
| also requires SWIG_ConvertPtr to return new result values, such as |
| 243 |
|
| |
| 244 |
|
| int SWIG_ConvertPtr(obj, ptr,...) { |
| 245 |
|
| if (<obj is ok>) { |
| 246 |
|
| if (<need new object>) { |
| 247 |
|
| *ptr = <ptr to new allocated object>; |
| 248 |
|
| return SWIG_NEWOBJ; |
| 249 |
|
| } else { |
| 250 |
|
| *ptr = <ptr to old object>; |
| 251 |
|
| return SWIG_OLDOBJ; |
| 252 |
|
| } |
| 253 |
|
| } else { |
| 254 |
|
| return SWIG_BADOBJ; |
| 255 |
|
| } |
| 256 |
|
| } |
| 257 |
|
| |
| 258 |
|
| Of course, returning the plain '0(success)/-1(fail)' still works, but you can be |
| 259 |
|
| more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the |
| 260 |
|
| SWIG errors code. |
| 261 |
|
| |
| 262 |
|
| Finally, if the SWIG_CASTRANK_MODE is enabled, the result code |
| 263 |
|
| allows returning the 'cast rank', for example, if you have this |
| 264 |
|
| |
| 265 |
|
| int food(double) |
| 266 |
|
| int fooi(int); |
| 267 |
|
| |
| 268 |
|
| and you call |
| 269 |
|
| |
| 270 |
|
| food(1) // cast rank '1' (1 -> 1.0) |
| 271 |
|
| fooi(1) // cast rank '0' |
| 272 |
|
| |
| 273 |
|
| just use the SWIG_AddCast()/SWIG_CheckState() |
| 274 |
|
| */ |
| 275 |
|
| |
| 276 |
|
| #define SWIG_OK (0) |
| 277 |
|
| /* Runtime errors are < 0 */ |
| 278 |
|
| #define SWIG_ERROR (-1) |
| 279 |
|
| /* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */ |
| 280 |
|
| /* Errors in range -100 to -199 are language specific errors defined in *errors.swg */ |
| 281 |
|
| /* Errors < -200 are generic runtime specific errors */ |
| 282 |
|
| #define SWIG_ERROR_RELEASE_NOT_OWNED (-200) |
| 283 |
|
| |
| 284 |
|
| #define SWIG_IsOK(r) (r >= 0) |
| 285 |
|
| #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) |
| 286 |
|
| |
| 287 |
|
| /* The CastRankLimit says how many bits are used for the cast rank */ |
| 288 |
|
| #define SWIG_CASTRANKLIMIT (1 << 8) |
| 289 |
|
| /* The NewMask denotes the object was created (using new/malloc) */ |
| 290 |
|
| #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) |
| 291 |
|
| /* The TmpMask is for in/out typemaps that use temporary objects */ |
| 292 |
|
| #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) |
| 293 |
|
| /* Simple returning values */ |
| 294 |
|
| #define SWIG_BADOBJ (SWIG_ERROR) |
| 295 |
|
| #define SWIG_OLDOBJ (SWIG_OK) |
| 296 |
|
| #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) |
| 297 |
|
| #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) |
| 298 |
|
| /* Check, add and del object mask methods */ |
| 299 |
|
| #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) |
| 300 |
|
| #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) |
| 301 |
|
| #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) |
| 302 |
|
| #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) |
| 303 |
|
| #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) |
| 304 |
|
| #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) |
| 305 |
|
| |
| 306 |
|
| /* Cast-Rank Mode */ |
| 307 |
|
| #if defined(SWIG_CASTRANK_MODE) |
| 308 |
|
| # ifndef SWIG_TypeRank |
| 309 |
|
| # define SWIG_TypeRank unsigned long |
| 310 |
|
| # endif |
| 311 |
|
| # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ |
| 312 |
|
| # define SWIG_MAXCASTRANK (2) |
| 313 |
|
| # endif |
| 314 |
|
| # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) |
| 315 |
|
| # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) |
| 316 |
0 |
| SWIGINTERNINLINE int SWIG_AddCast(int r) { |
| 317 |
0 |
▶ | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; |
Branch: 2 branches
| Branch | True | False | Total |
| return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; |
0 |
0 |
0 |
| return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; |
0 |
0 |
0 |
|
| 318 |
|
| } |
| 319 |
|
| SWIGINTERNINLINE int SWIG_CheckState(int r) { |
| 320 |
|
| return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; |
| 321 |
|
| } |
| 322 |
|
| #else /* no cast-rank mode */ |
| 323 |
|
| # define SWIG_AddCast(r) (r) |
| 324 |
|
| # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) |
| 325 |
|
| #endif |
| 326 |
|
| |
| 327 |
|
| /* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF |
| 328 |
|
| * if you're missing it. |
| 329 |
|
| */ |
| 330 |
|
| #if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \ |
| 331 |
|
| (defined __cplusplus && __cplusplus >= 201103L) || \ |
| 332 |
|
| defined SWIG_HAVE_SNPRINTF) && \ |
| 333 |
|
| !defined SWIG_NO_SNPRINTF |
| 334 |
|
| # define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A) |
| 335 |
|
| # define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B) |
| 336 |
|
| #else |
| 337 |
|
| /* Fallback versions ignore the buffer size, but most of our uses either have a |
| 338 |
|
| * fixed maximum possible size or dynamically allocate a buffer that's large |
| 339 |
|
| * enough. |
| 340 |
|
| */ |
| 341 |
|
| # define SWIG_snprintf(O,S,F,A) sprintf(O,F,A) |
| 342 |
|
| # define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B) |
| 343 |
|
| #endif |
| 344 |
|
| |
| 345 |
|
| #include <string.h> |
| 346 |
|
| |
| 347 |
|
| #ifdef __cplusplus |
| 348 |
|
| extern "C" { |
| 349 |
|
| #endif |
| 350 |
|
| |
| 351 |
|
| typedef void *(*swig_converter_func)(void *, int *); |
| 352 |
|
| typedef struct swig_type_info *(*swig_dycast_func)(void **); |
| 353 |
|
| |
| 354 |
|
| /* Structure to store information on one type */ |
| 355 |
|
| typedef struct swig_type_info { |
| 356 |
|
| const char *name; /* mangled name of this type */ |
| 357 |
|
| const char *str; /* human readable name of this type */ |
| 358 |
|
| swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ |
| 359 |
|
| struct swig_cast_info *cast; /* linked list of types that can cast into this type */ |
| 360 |
|
| void *clientdata; /* language specific type data */ |
| 361 |
|
| int owndata; /* flag if the structure owns the clientdata */ |
| 362 |
|
| } swig_type_info; |
| 363 |
|
| |
| 364 |
|
| /* Structure to store a type and conversion function used for casting */ |
| 365 |
|
| typedef struct swig_cast_info { |
| 366 |
|
| swig_type_info *type; /* pointer to type that is equivalent to this type */ |
| 367 |
|
| swig_converter_func converter; /* function to cast the void pointers */ |
| 368 |
|
| struct swig_cast_info *next; /* pointer to next cast in linked list */ |
| 369 |
|
| struct swig_cast_info *prev; /* pointer to the previous cast */ |
| 370 |
|
| } swig_cast_info; |
| 371 |
|
| |
| 372 |
|
| /* Structure used to store module information |
| 373 |
|
| * Each module generates one structure like this, and the runtime collects |
| 374 |
|
| * all of these structures and stores them in a circularly linked list.*/ |
| 375 |
|
| typedef struct swig_module_info { |
| 376 |
|
| swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ |
| 377 |
|
| size_t size; /* Number of types in this module */ |
| 378 |
|
| struct swig_module_info *next; /* Pointer to next element in circularly linked list */ |
| 379 |
|
| swig_type_info **type_initial; /* Array of initially generated type structures */ |
| 380 |
|
| swig_cast_info **cast_initial; /* Array of initially generated casting structures */ |
| 381 |
|
| void *clientdata; /* Language specific module data */ |
| 382 |
|
| } swig_module_info; |
| 383 |
|
| |
| 384 |
|
| /* |
| 385 |
|
| Compare two type names skipping the space characters, therefore |
| 386 |
|
| "char*" == "char *" and "Class<int>" == "Class<int >", etc. |
| 387 |
|
| |
| 388 |
|
| Return 0 when the two name types are equivalent, as in |
| 389 |
|
| strncmp, but skipping ' '. |
| 390 |
|
| */ |
| 391 |
|
| SWIGRUNTIME int |
| 392 |
0 |
| SWIG_TypeNameComp(const char *f1, const char *l1, |
| 393 |
|
| const char *f2, const char *l2) { |
| 394 |
0 |
▶ | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
Branch: 2 branches
| Branch | True | False | Total |
| for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
0 |
0 |
0 |
| for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
0 |
0 |
0 |
|
| 395 |
0 |
▶ | while ((*f1 == ' ') && (f1 != l1)) ++f1; |
Branch: 2 branches
| Branch | True | False | Total |
| while ((*f1 == ' ') && (f1 != l1)) ++f1; |
0 |
0 |
0 |
| while ((*f1 == ' ') && (f1 != l1)) ++f1; |
0 |
0 |
0 |
|
| 396 |
0 |
▶ | while ((*f2 == ' ') && (f2 != l2)) ++f2; |
Branch: 2 branches
| Branch | True | False | Total |
| while ((*f2 == ' ') && (f2 != l2)) ++f2; |
0 |
0 |
0 |
| while ((*f2 == ' ') && (f2 != l2)) ++f2; |
0 |
0 |
0 |
|
| 397 |
0 |
▶ | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
Branch: 2 branches
| Branch | True | False | Total |
| if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
0 |
0 |
0 |
| if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
0 |
0 |
0 |
|
| 398 |
|
| } |
| 399 |
0 |
| return (int)((l1 - f1) - (l2 - f2)); |
| 400 |
|
| } |
| 401 |
|
| |
| 402 |
|
| /* |
| 403 |
|
| Check type equivalence in a name list like <name1>|<name2>|... |
| 404 |
|
| Return 0 if equal, -1 if nb < tb, 1 if nb > tb |
| 405 |
|
| */ |
| 406 |
|
| SWIGRUNTIME int |
| 407 |
0 |
| SWIG_TypeCmp(const char *nb, const char *tb) { |
| 408 |
0 |
| int equiv = 1; |
| 409 |
0 |
| const char* te = tb + strlen(tb); |
| 410 |
0 |
| const char* ne = nb; |
| 411 |
0 |
▶ | while (equiv != 0 && *ne) { |
Branch: 2 branches
| Branch | True | False | Total |
| while (equiv != 0 && *ne) { |
0 |
0 |
0 |
| while (equiv != 0 && *ne) { |
0 |
0 |
0 |
|
| 412 |
0 |
▶ | for (nb = ne; *ne; ++ne) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (nb = ne; *ne; ++ne) { |
0 |
0 |
0 |
|
| 413 |
0 |
▶ | if (*ne == '|') break; |
Branch: 1 branch
| Branch | True | False | Total |
| if (*ne == '|') break; |
0 |
0 |
0 |
|
| 414 |
|
| } |
| 415 |
0 |
| equiv = SWIG_TypeNameComp(nb, ne, tb, te); |
| 416 |
0 |
▶ | if (*ne) ++ne; |
Branch: 1 branch
| Branch | True | False | Total |
| if (*ne) ++ne; |
0 |
0 |
0 |
|
| 417 |
|
| } |
| 418 |
0 |
| return equiv; |
| 419 |
|
| } |
| 420 |
|
| |
| 421 |
|
| /* |
| 422 |
|
| Check type equivalence in a name list like <name1>|<name2>|... |
| 423 |
|
| Return 0 if not equal, 1 if equal |
| 424 |
|
| */ |
| 425 |
|
| SWIGRUNTIME int |
| 426 |
0 |
| SWIG_TypeEquiv(const char *nb, const char *tb) { |
| 427 |
0 |
| return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; |
| 428 |
|
| } |
| 429 |
|
| |
| 430 |
|
| /* |
| 431 |
|
| Check the typename |
| 432 |
|
| */ |
| 433 |
|
| SWIGRUNTIME swig_cast_info * |
| 434 |
0 |
| SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
| 435 |
0 |
▶ | if (ty) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty) { |
0 |
0 |
0 |
|
| 436 |
0 |
| swig_cast_info *iter = ty->cast; |
| 437 |
0 |
▶ | while (iter) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (iter) { |
0 |
0 |
0 |
|
| 438 |
0 |
▶ | if (strcmp(iter->type->name, c) == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (strcmp(iter->type->name, c) == 0) { |
0 |
0 |
0 |
|
| 439 |
0 |
▶ | if (iter == ty->cast) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter == ty->cast) |
0 |
0 |
0 |
|
| 440 |
0 |
| return iter; |
| 441 |
|
| /* Move iter to the top of the linked list */ |
| 442 |
0 |
| iter->prev->next = iter->next; |
| 443 |
0 |
▶ | if (iter->next) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter->next) |
0 |
0 |
0 |
|
| 444 |
0 |
| iter->next->prev = iter->prev; |
| 445 |
0 |
| iter->next = ty->cast; |
| 446 |
0 |
| iter->prev = 0; |
| 447 |
0 |
▶ | if (ty->cast) ty->cast->prev = iter; |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty->cast) ty->cast->prev = iter; |
0 |
0 |
0 |
|
| 448 |
0 |
| ty->cast = iter; |
| 449 |
0 |
| return iter; |
| 450 |
|
| } |
| 451 |
0 |
| iter = iter->next; |
| 452 |
|
| } |
| 453 |
|
| } |
| 454 |
0 |
| return 0; |
| 455 |
|
| } |
| 456 |
|
| |
| 457 |
|
| /* |
| 458 |
|
| Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison |
| 459 |
|
| */ |
| 460 |
|
| SWIGRUNTIME swig_cast_info * |
| 461 |
0 |
| SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) { |
| 462 |
0 |
▶ | if (ty) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty) { |
0 |
0 |
0 |
|
| 463 |
0 |
| swig_cast_info *iter = ty->cast; |
| 464 |
0 |
▶ | while (iter) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (iter) { |
0 |
0 |
0 |
|
| 465 |
0 |
▶ | if (iter->type == from) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter->type == from) { |
0 |
0 |
0 |
|
| 466 |
0 |
▶ | if (iter == ty->cast) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter == ty->cast) |
0 |
0 |
0 |
|
| 467 |
0 |
| return iter; |
| 468 |
|
| /* Move iter to the top of the linked list */ |
| 469 |
0 |
| iter->prev->next = iter->next; |
| 470 |
0 |
▶ | if (iter->next) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter->next) |
0 |
0 |
0 |
|
| 471 |
0 |
| iter->next->prev = iter->prev; |
| 472 |
0 |
| iter->next = ty->cast; |
| 473 |
0 |
| iter->prev = 0; |
| 474 |
0 |
▶ | if (ty->cast) ty->cast->prev = iter; |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty->cast) ty->cast->prev = iter; |
0 |
0 |
0 |
|
| 475 |
0 |
| ty->cast = iter; |
| 476 |
0 |
| return iter; |
| 477 |
|
| } |
| 478 |
0 |
| iter = iter->next; |
| 479 |
|
| } |
| 480 |
|
| } |
| 481 |
0 |
| return 0; |
| 482 |
|
| } |
| 483 |
|
| |
| 484 |
|
| /* |
| 485 |
|
| Cast a pointer up an inheritance hierarchy |
| 486 |
|
| */ |
| 487 |
|
| SWIGRUNTIMEINLINE void * |
| 488 |
0 |
| SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { |
| 489 |
0 |
▶ | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
Branch: 2 branches
| Branch | True | False | Total |
| return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
0 |
0 |
0 |
| return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
0 |
0 |
0 |
|
| 490 |
|
| } |
| 491 |
|
| |
| 492 |
|
| /* |
| 493 |
|
| Dynamic pointer casting. Down an inheritance hierarchy |
| 494 |
|
| */ |
| 495 |
|
| SWIGRUNTIME swig_type_info * |
| 496 |
0 |
| SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { |
| 497 |
0 |
| swig_type_info *lastty = ty; |
| 498 |
0 |
▶ | if (!ty || !ty->dcast) return ty; |
Branch: 2 branches
| Branch | True | False | Total |
| if (!ty || !ty->dcast) return ty; |
0 |
0 |
0 |
| if (!ty || !ty->dcast) return ty; |
0 |
0 |
0 |
|
| 499 |
0 |
▶ | while (ty && (ty->dcast)) { |
Branch: 2 branches
| Branch | True | False | Total |
| while (ty && (ty->dcast)) { |
0 |
0 |
0 |
| while (ty && (ty->dcast)) { |
0 |
0 |
0 |
|
| 500 |
0 |
| ty = (*ty->dcast)(ptr); |
| 501 |
0 |
▶ | if (ty) lastty = ty; |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty) lastty = ty; |
0 |
0 |
0 |
|
| 502 |
|
| } |
| 503 |
0 |
| return lastty; |
| 504 |
|
| } |
| 505 |
|
| |
| 506 |
|
| /* |
| 507 |
|
| Return the name associated with this type |
| 508 |
|
| */ |
| 509 |
|
| SWIGRUNTIMEINLINE const char * |
| 510 |
|
| SWIG_TypeName(const swig_type_info *ty) { |
| 511 |
|
| return ty->name; |
| 512 |
|
| } |
| 513 |
|
| |
| 514 |
|
| /* |
| 515 |
|
| Return the pretty name associated with this type, |
| 516 |
|
| that is an unmangled type name in a form presentable to the user. |
| 517 |
|
| */ |
| 518 |
|
| SWIGRUNTIME const char * |
| 519 |
0 |
| SWIG_TypePrettyName(const swig_type_info *type) { |
| 520 |
|
| /* The "str" field contains the equivalent pretty names of the |
| 521 |
|
| type, separated by vertical-bar characters. Choose the last |
| 522 |
|
| name. It should be the most specific; a fully resolved name |
| 523 |
|
| but not necessarily with default template parameters expanded. */ |
| 524 |
0 |
▶ | if (!type) return NULL; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!type) return NULL; |
0 |
0 |
0 |
|
| 525 |
0 |
▶ | if (type->str != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type->str != NULL) { |
0 |
0 |
0 |
|
| 526 |
0 |
| const char *last_name = type->str; |
| 527 |
|
| const char *s; |
| 528 |
0 |
▶ | for (s = type->str; *s; s++) |
Branch: 1 branch
| Branch | True | False | Total |
| for (s = type->str; *s; s++) |
0 |
0 |
0 |
|
| 529 |
0 |
▶ | if (*s == '|') last_name = s+1; |
Branch: 1 branch
| Branch | True | False | Total |
| if (*s == '|') last_name = s+1; |
0 |
0 |
0 |
|
| 530 |
0 |
| return last_name; |
| 531 |
|
| } |
| 532 |
|
| else |
| 533 |
0 |
| return type->name; |
| 534 |
|
| } |
| 535 |
|
| |
| 536 |
|
| /* |
| 537 |
|
| Set the clientdata field for a type |
| 538 |
|
| */ |
| 539 |
|
| SWIGRUNTIME void |
| 540 |
0 |
| SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
| 541 |
0 |
| swig_cast_info *cast = ti->cast; |
| 542 |
|
| /* if (ti->clientdata == clientdata) return; */ |
| 543 |
0 |
| ti->clientdata = clientdata; |
| 544 |
|
| |
| 545 |
0 |
▶ | while (cast) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (cast) { |
0 |
0 |
0 |
|
| 546 |
0 |
▶ | if (!cast->converter) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!cast->converter) { |
0 |
0 |
0 |
|
| 547 |
0 |
| swig_type_info *tc = cast->type; |
| 548 |
0 |
▶ | if (!tc->clientdata) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!tc->clientdata) { |
0 |
0 |
0 |
|
| 549 |
0 |
| SWIG_TypeClientData(tc, clientdata); |
| 550 |
|
| } |
| 551 |
|
| } |
| 552 |
0 |
| cast = cast->next; |
| 553 |
|
| } |
| 554 |
0 |
| } |
| 555 |
|
| SWIGRUNTIME void |
| 556 |
0 |
| SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { |
| 557 |
0 |
| SWIG_TypeClientData(ti, clientdata); |
| 558 |
0 |
| ti->owndata = 1; |
| 559 |
0 |
| } |
| 560 |
|
| |
| 561 |
|
| /* |
| 562 |
|
| Search for a swig_type_info structure only by mangled name |
| 563 |
|
| Search is a O(log #types) |
| 564 |
|
| |
| 565 |
|
| We start searching at module start, and finish searching when start == end. |
| 566 |
|
| Note: if start == end at the beginning of the function, we go all the way around |
| 567 |
|
| the circular list. |
| 568 |
|
| */ |
| 569 |
|
| SWIGRUNTIME swig_type_info * |
| 570 |
0 |
| SWIG_MangledTypeQueryModule(swig_module_info *start, |
| 571 |
|
| swig_module_info *end, |
| 572 |
|
| const char *name) { |
| 573 |
0 |
| swig_module_info *iter = start; |
| 574 |
|
| do { |
| 575 |
0 |
▶ | if (iter->size) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter->size) { |
0 |
0 |
0 |
|
| 576 |
0 |
| size_t l = 0; |
| 577 |
0 |
| size_t r = iter->size - 1; |
| 578 |
|
| do { |
| 579 |
|
| /* since l+r >= 0, we can (>> 1) instead (/ 2) */ |
| 580 |
0 |
| size_t i = (l + r) >> 1; |
| 581 |
0 |
| const char *iname = iter->types[i]->name; |
| 582 |
0 |
▶ | if (iname) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (iname) { |
0 |
0 |
0 |
|
| 583 |
0 |
| int compare = strcmp(name, iname); |
| 584 |
0 |
▶ | if (compare == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (compare == 0) { |
0 |
0 |
0 |
|
| 585 |
0 |
| return iter->types[i]; |
| 586 |
0 |
▶ | } else if (compare < 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (compare < 0) { |
0 |
0 |
0 |
|
| 587 |
0 |
▶ | if (i) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (i) { |
0 |
0 |
0 |
|
| 588 |
0 |
| r = i - 1; |
| 589 |
|
| } else { |
| 590 |
0 |
| break; |
| 591 |
|
| } |
| 592 |
0 |
▶ | } else if (compare > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (compare > 0) { |
0 |
0 |
0 |
|
| 593 |
0 |
| l = i + 1; |
| 594 |
|
| } |
| 595 |
|
| } else { |
| 596 |
0 |
| break; /* should never happen */ |
| 597 |
|
| } |
| 598 |
0 |
▶ | } while (l <= r); |
Branch: 1 branch
| Branch | True | False | Total |
| } while (l <= r); |
0 |
0 |
0 |
|
| 599 |
|
| } |
| 600 |
0 |
| iter = iter->next; |
| 601 |
0 |
▶ | } while (iter != end); |
Branch: 1 branch
| Branch | True | False | Total |
| } while (iter != end); |
0 |
0 |
0 |
|
| 602 |
0 |
| return 0; |
| 603 |
|
| } |
| 604 |
|
| |
| 605 |
|
| /* |
| 606 |
|
| Search for a swig_type_info structure for either a mangled name or a human readable name. |
| 607 |
|
| It first searches the mangled names of the types, which is a O(log #types) |
| 608 |
|
| If a type is not found it then searches the human readable names, which is O(#types). |
| 609 |
|
| |
| 610 |
|
| We start searching at module start, and finish searching when start == end. |
| 611 |
|
| Note: if start == end at the beginning of the function, we go all the way around |
| 612 |
|
| the circular list. |
| 613 |
|
| */ |
| 614 |
|
| SWIGRUNTIME swig_type_info * |
| 615 |
0 |
| SWIG_TypeQueryModule(swig_module_info *start, |
| 616 |
|
| swig_module_info *end, |
| 617 |
|
| const char *name) { |
| 618 |
|
| /* STEP 1: Search the name field using binary search */ |
| 619 |
0 |
| swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); |
| 620 |
0 |
▶ | if (ret) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ret) { |
0 |
0 |
0 |
|
| 621 |
0 |
| return ret; |
| 622 |
|
| } else { |
| 623 |
|
| /* STEP 2: If the type hasn't been found, do a complete search |
| 624 |
|
| of the str field (the human readable name) */ |
| 625 |
0 |
| swig_module_info *iter = start; |
| 626 |
|
| do { |
| 627 |
0 |
| size_t i = 0; |
| 628 |
0 |
▶ | for (; i < iter->size; ++i) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (; i < iter->size; ++i) { |
0 |
0 |
0 |
|
| 629 |
0 |
▶ | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
0 |
0 |
0 |
| if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
0 |
0 |
0 |
|
| 630 |
0 |
| return iter->types[i]; |
| 631 |
|
| } |
| 632 |
0 |
| iter = iter->next; |
| 633 |
0 |
▶ | } while (iter != end); |
Branch: 1 branch
| Branch | True | False | Total |
| } while (iter != end); |
0 |
0 |
0 |
|
| 634 |
|
| } |
| 635 |
|
| |
| 636 |
|
| /* neither found a match */ |
| 637 |
0 |
| return 0; |
| 638 |
|
| } |
| 639 |
|
| |
| 640 |
|
| /* |
| 641 |
|
| Pack binary data into a string |
| 642 |
|
| */ |
| 643 |
|
| SWIGRUNTIME char * |
| 644 |
0 |
| SWIG_PackData(char *c, void *ptr, size_t sz) { |
| 645 |
|
| static const char hex[17] = "0123456789abcdef"; |
| 646 |
0 |
| const unsigned char *u = (unsigned char *) ptr; |
| 647 |
0 |
| const unsigned char *eu = u + sz; |
| 648 |
0 |
▶ | for (; u != eu; ++u) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (; u != eu; ++u) { |
0 |
0 |
0 |
|
| 649 |
0 |
| unsigned char uu = *u; |
| 650 |
0 |
| *(c++) = hex[(uu & 0xf0) >> 4]; |
| 651 |
0 |
| *(c++) = hex[uu & 0xf]; |
| 652 |
|
| } |
| 653 |
0 |
| return c; |
| 654 |
|
| } |
| 655 |
|
| |
| 656 |
|
| /* |
| 657 |
|
| Unpack binary data from a string |
| 658 |
|
| */ |
| 659 |
|
| SWIGRUNTIME const char * |
| 660 |
0 |
| SWIG_UnpackData(const char *c, void *ptr, size_t sz) { |
| 661 |
0 |
| unsigned char *u = (unsigned char *) ptr; |
| 662 |
0 |
| const unsigned char *eu = u + sz; |
| 663 |
0 |
▶ | for (; u != eu; ++u) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (; u != eu; ++u) { |
0 |
0 |
0 |
|
| 664 |
0 |
| char d = *(c++); |
| 665 |
|
| unsigned char uu; |
| 666 |
0 |
▶ | if ((d >= '0') && (d <= '9')) |
Branch: 2 branches
| Branch | True | False | Total |
| if ((d >= '0') && (d <= '9')) |
0 |
0 |
0 |
| if ((d >= '0') && (d <= '9')) |
0 |
0 |
0 |
|
| 667 |
0 |
| uu = (unsigned char)((d - '0') << 4); |
| 668 |
0 |
▶ | else if ((d >= 'a') && (d <= 'f')) |
Branch: 2 branches
| Branch | True | False | Total |
| else if ((d >= 'a') && (d <= 'f')) |
0 |
0 |
0 |
| else if ((d >= 'a') && (d <= 'f')) |
0 |
0 |
0 |
|
| 669 |
0 |
| uu = (unsigned char)((d - ('a'-10)) << 4); |
| 670 |
|
| else |
| 671 |
0 |
| return (char *) 0; |
| 672 |
0 |
| d = *(c++); |
| 673 |
0 |
▶ | if ((d >= '0') && (d <= '9')) |
Branch: 2 branches
| Branch | True | False | Total |
| if ((d >= '0') && (d <= '9')) |
0 |
0 |
0 |
| if ((d >= '0') && (d <= '9')) |
0 |
0 |
0 |
|
| 674 |
0 |
| uu |= (unsigned char)(d - '0'); |
| 675 |
0 |
▶ | else if ((d >= 'a') && (d <= 'f')) |
Branch: 2 branches
| Branch | True | False | Total |
| else if ((d >= 'a') && (d <= 'f')) |
0 |
0 |
0 |
| else if ((d >= 'a') && (d <= 'f')) |
0 |
0 |
0 |
|
| 676 |
0 |
| uu |= (unsigned char)(d - ('a'-10)); |
| 677 |
|
| else |
| 678 |
0 |
| return (char *) 0; |
| 679 |
0 |
| *u = uu; |
| 680 |
|
| } |
| 681 |
0 |
| return c; |
| 682 |
|
| } |
| 683 |
|
| |
| 684 |
|
| /* |
| 685 |
|
| Pack 'void *' into a string buffer. |
| 686 |
|
| */ |
| 687 |
|
| SWIGRUNTIME char * |
| 688 |
0 |
| SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { |
| 689 |
0 |
| char *r = buff; |
| 690 |
0 |
▶ | if ((2*sizeof(void *) + 2) > bsz) return 0; |
Branch: 1 branch
| Branch | True | False | Total |
| if ((2*sizeof(void *) + 2) > bsz) return 0; |
0 |
0 |
0 |
|
| 691 |
0 |
| *(r++) = '_'; |
| 692 |
0 |
| r = SWIG_PackData(r,&ptr,sizeof(void *)); |
| 693 |
0 |
▶ | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; |
Branch: 1 branch
| Branch | True | False | Total |
| if (strlen(name) + 1 > (bsz - (r - buff))) return 0; |
0 |
0 |
0 |
|
| 694 |
0 |
| strcpy(r,name); |
| 695 |
0 |
| return buff; |
| 696 |
|
| } |
| 697 |
|
| |
| 698 |
|
| SWIGRUNTIME const char * |
| 699 |
0 |
| SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { |
| 700 |
0 |
▶ | if (*c != '_') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*c != '_') { |
0 |
0 |
0 |
|
| 701 |
0 |
▶ | if (strcmp(c,"NULL") == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (strcmp(c,"NULL") == 0) { |
0 |
0 |
0 |
|
| 702 |
0 |
| *ptr = (void *) 0; |
| 703 |
0 |
| return name; |
| 704 |
|
| } else { |
| 705 |
0 |
| return 0; |
| 706 |
|
| } |
| 707 |
|
| } |
| 708 |
0 |
| return SWIG_UnpackData(++c,ptr,sizeof(void *)); |
| 709 |
|
| } |
| 710 |
|
| |
| 711 |
|
| SWIGRUNTIME char * |
| 712 |
0 |
| SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { |
| 713 |
0 |
| char *r = buff; |
| 714 |
0 |
▶ | size_t lname = (name ? strlen(name) : 0); |
Branch: 1 branch
| Branch | True | False | Total |
| size_t lname = (name ? strlen(name) : 0); |
0 |
0 |
0 |
|
| 715 |
0 |
▶ | if ((2*sz + 2 + lname) > bsz) return 0; |
Branch: 1 branch
| Branch | True | False | Total |
| if ((2*sz + 2 + lname) > bsz) return 0; |
0 |
0 |
0 |
|
| 716 |
0 |
| *(r++) = '_'; |
| 717 |
0 |
| r = SWIG_PackData(r,ptr,sz); |
| 718 |
0 |
▶ | if (lname) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (lname) { |
0 |
0 |
0 |
|
| 719 |
0 |
| strncpy(r,name,lname+1); |
| 720 |
|
| } else { |
| 721 |
0 |
| *r = 0; |
| 722 |
|
| } |
| 723 |
0 |
| return buff; |
| 724 |
|
| } |
| 725 |
|
| |
| 726 |
|
| SWIGRUNTIME const char * |
| 727 |
0 |
| SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { |
| 728 |
0 |
▶ | if (*c != '_') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*c != '_') { |
0 |
0 |
0 |
|
| 729 |
0 |
▶ | if (strcmp(c,"NULL") == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (strcmp(c,"NULL") == 0) { |
0 |
0 |
0 |
|
| 730 |
0 |
| memset(ptr,0,sz); |
| 731 |
0 |
| return name; |
| 732 |
|
| } else { |
| 733 |
0 |
| return 0; |
| 734 |
|
| } |
| 735 |
|
| } |
| 736 |
0 |
| return SWIG_UnpackData(++c,ptr,sz); |
| 737 |
|
| } |
| 738 |
|
| |
| 739 |
|
| #ifdef __cplusplus |
| 740 |
|
| } |
| 741 |
|
| #endif |
| 742 |
|
| |
| 743 |
|
| /* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */ |
| 744 |
|
| #define SWIG_UnknownError -1 |
| 745 |
|
| #define SWIG_IOError -2 |
| 746 |
|
| #define SWIG_RuntimeError -3 |
| 747 |
|
| #define SWIG_IndexError -4 |
| 748 |
|
| #define SWIG_TypeError -5 |
| 749 |
|
| #define SWIG_DivisionByZero -6 |
| 750 |
|
| #define SWIG_OverflowError -7 |
| 751 |
|
| #define SWIG_SyntaxError -8 |
| 752 |
|
| #define SWIG_ValueError -9 |
| 753 |
|
| #define SWIG_SystemError -10 |
| 754 |
|
| #define SWIG_AttributeError -11 |
| 755 |
|
| #define SWIG_MemoryError -12 |
| 756 |
|
| #define SWIG_NullReferenceError -13 |
| 757 |
|
| |
| 758 |
|
| |
| 759 |
|
| #ifdef __cplusplus |
| 760 |
|
| /* Needed on some windows machines---since MS plays funny games with the header files under C++ */ |
| 761 |
|
| #include <math.h> |
| 762 |
|
| #include <stdlib.h> |
| 763 |
|
| extern "C" { |
| 764 |
|
| #endif |
| 765 |
|
| |
| 766 |
|
| #if __GNUC__ >= 10 |
| 767 |
|
| #if defined(__cplusplus) |
| 768 |
|
| #pragma GCC diagnostic push |
| 769 |
|
| #pragma GCC diagnostic ignored "-Wvolatile" |
| 770 |
|
| #endif |
| 771 |
|
| #endif |
| 772 |
|
| |
| 773 |
|
| #include "EXTERN.h" |
| 774 |
|
| #include "perl.h" |
| 775 |
|
| #include "XSUB.h" |
| 776 |
|
| |
| 777 |
|
| #if __GNUC__ >= 10 |
| 778 |
|
| #if defined(__cplusplus) |
| 779 |
|
| #pragma GCC diagnostic pop |
| 780 |
|
| #endif |
| 781 |
|
| #endif |
| 782 |
|
| |
| 783 |
|
| /* PERL_REVISION was added in Perl 5.6. */ |
| 784 |
|
| #if !defined PERL_REVISION || (PERL_REVISION-0 == 5 && PERL_VERSION-0 < 8) |
| 785 |
|
| # error SWIG requires Perl >= 5.8.0 |
| 786 |
|
| #endif |
| 787 |
|
| |
| 788 |
|
| #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE) |
| 789 |
|
| #define PerlIO_exportFILE(fh,fl) (FILE*)(fh) |
| 790 |
|
| #endif |
| 791 |
|
| |
| 792 |
|
| #ifndef SvIOK_UV |
| 793 |
|
| # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv))) |
| 794 |
|
| #endif |
| 795 |
|
| |
| 796 |
|
| #ifndef SvUOK |
| 797 |
|
| # define SvUOK(sv) SvIOK_UV(sv) |
| 798 |
|
| #endif |
| 799 |
|
| |
| 800 |
|
| #ifndef IVSIZE |
| 801 |
|
| # ifdef LONGSIZE |
| 802 |
|
| # define IVSIZE LONGSIZE |
| 803 |
|
| # else |
| 804 |
|
| # define IVSIZE 4 /* A bold guess, but the best we can make. */ |
| 805 |
|
| # endif |
| 806 |
|
| #endif |
| 807 |
|
| |
| 808 |
|
| #ifndef INT2PTR |
| 809 |
|
| # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) |
| 810 |
|
| # define PTRV UV |
| 811 |
|
| # define INT2PTR(any,d) (any)(d) |
| 812 |
|
| # else |
| 813 |
|
| # if PTRSIZE == LONGSIZE |
| 814 |
|
| # define PTRV unsigned long |
| 815 |
|
| # else |
| 816 |
|
| # define PTRV unsigned |
| 817 |
|
| # endif |
| 818 |
|
| # define INT2PTR(any,d) (any)(PTRV)(d) |
| 819 |
|
| # endif |
| 820 |
|
| |
| 821 |
|
| # define NUM2PTR(any,d) (any)(PTRV)(d) |
| 822 |
|
| # define PTR2IV(p) INT2PTR(IV,p) |
| 823 |
|
| # define PTR2UV(p) INT2PTR(UV,p) |
| 824 |
|
| # define PTR2NV(p) NUM2PTR(NV,p) |
| 825 |
|
| |
| 826 |
|
| # if PTRSIZE == LONGSIZE |
| 827 |
|
| # define PTR2ul(p) (unsigned long)(p) |
| 828 |
|
| # else |
| 829 |
|
| # define PTR2ul(p) INT2PTR(unsigned long,p) |
| 830 |
|
| # endif |
| 831 |
|
| #endif /* !INT2PTR */ |
| 832 |
|
| |
| 833 |
|
| #ifndef SvPV_nolen |
| 834 |
|
| # define SvPV_nolen(x) SvPV(x,PL_na) |
| 835 |
|
| #endif |
| 836 |
|
| |
| 837 |
|
| #ifndef get_sv |
| 838 |
|
| # define get_sv perl_get_sv |
| 839 |
|
| #endif |
| 840 |
|
| |
| 841 |
|
| #ifndef ERRSV |
| 842 |
|
| # define ERRSV get_sv("@",FALSE) |
| 843 |
|
| #endif |
| 844 |
|
| |
| 845 |
|
| #ifndef pTHX_ |
| 846 |
|
| #define pTHX_ |
| 847 |
|
| #endif |
| 848 |
|
| |
| 849 |
|
| #include <string.h> |
| 850 |
|
| #ifdef __cplusplus |
| 851 |
|
| } |
| 852 |
|
| #endif |
| 853 |
|
| |
| 854 |
|
| /* ----------------------------------------------------------------------------- |
| 855 |
|
| * error manipulation |
| 856 |
|
| * ----------------------------------------------------------------------------- */ |
| 857 |
|
| |
| 858 |
|
| SWIGINTERN const char* |
| 859 |
0 |
| SWIG_Perl_ErrorType(int code) { |
| 860 |
0 |
| switch(code) { |
| 861 |
0 |
| case SWIG_MemoryError: |
| 862 |
0 |
| return "MemoryError"; |
| 863 |
0 |
| case SWIG_IOError: |
| 864 |
0 |
| return "IOError"; |
| 865 |
0 |
| case SWIG_RuntimeError: |
| 866 |
0 |
| return "RuntimeError"; |
| 867 |
0 |
| case SWIG_IndexError: |
| 868 |
0 |
| return "IndexError"; |
| 869 |
0 |
| case SWIG_TypeError: |
| 870 |
0 |
| return "TypeError"; |
| 871 |
0 |
| case SWIG_DivisionByZero: |
| 872 |
0 |
| return "ZeroDivisionError"; |
| 873 |
0 |
| case SWIG_OverflowError: |
| 874 |
0 |
| return "OverflowError"; |
| 875 |
0 |
| case SWIG_SyntaxError: |
| 876 |
0 |
| return "SyntaxError"; |
| 877 |
0 |
| case SWIG_ValueError: |
| 878 |
0 |
| return "ValueError"; |
| 879 |
0 |
| case SWIG_SystemError: |
| 880 |
0 |
| return "SystemError"; |
| 881 |
0 |
| case SWIG_AttributeError: |
| 882 |
0 |
| return "AttributeError"; |
| 883 |
0 |
| default: |
| 884 |
0 |
| return "RuntimeError"; |
| 885 |
|
| } |
| 886 |
|
| } |
| 887 |
|
| |
| 888 |
|
| |
| 889 |
|
| /* ----------------------------------------------------------------------------- |
| 890 |
|
| * perlrun.swg |
| 891 |
|
| * |
| 892 |
|
| * This file contains the runtime support for Perl modules |
| 893 |
|
| * and includes code for managing global variables and pointer |
| 894 |
|
| * type checking. |
| 895 |
|
| * ----------------------------------------------------------------------------- */ |
| 896 |
|
| |
| 897 |
|
| #define SWIG_PERL_OBJECT_DECL |
| 898 |
|
| #define SWIG_PERL_OBJECT_CALL |
| 899 |
|
| |
| 900 |
|
| /* Common SWIG API */ |
| 901 |
|
| |
| 902 |
|
| /* for raw pointers */ |
| 903 |
|
| #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags) |
| 904 |
|
| #define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own) |
| 905 |
|
| #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags) |
| 906 |
|
| #define SWIG_AcquirePtr(ptr, src) SWIG_Perl_AcquirePtr(ptr, src) |
| 907 |
|
| #define swig_owntype int |
| 908 |
|
| |
| 909 |
|
| /* for raw packed data */ |
| 910 |
|
| #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type) |
| 911 |
|
| #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type) |
| 912 |
|
| |
| 913 |
|
| /* for class or struct pointers */ |
| 914 |
|
| #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) |
| 915 |
|
| #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) |
| 916 |
|
| |
| 917 |
|
| /* for C or C++ function pointers */ |
| 918 |
|
| #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) |
| 919 |
|
| #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) |
| 920 |
|
| |
| 921 |
|
| /* for C++ member pointers, ie, member methods */ |
| 922 |
|
| #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty) |
| 923 |
|
| #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type) |
| 924 |
|
| |
| 925 |
|
| |
| 926 |
|
| /* Runtime API */ |
| 927 |
|
| |
| 928 |
|
| #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule(clientdata) |
| 929 |
|
| #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer) |
| 930 |
|
| |
| 931 |
|
| |
| 932 |
|
| /* Error manipulation */ |
| 933 |
|
| |
| 934 |
|
| #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code) |
| 935 |
|
| #define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg) |
| 936 |
|
| #define SWIG_fail goto fail |
| 937 |
|
| |
| 938 |
|
| /* Perl-specific SWIG API */ |
| 939 |
|
| |
| 940 |
|
| #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags) |
| 941 |
|
| #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type) |
| 942 |
|
| #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str) |
| 943 |
|
| |
| 944 |
|
| |
| 945 |
|
| #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1) |
| 946 |
|
| #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1) |
| 947 |
|
| #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2) |
| 948 |
|
| #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2) |
| 949 |
|
| |
| 950 |
|
| /* ----------------------------------------------------------------------------- |
| 951 |
|
| * pointers/data manipulation |
| 952 |
|
| * ----------------------------------------------------------------------------- */ |
| 953 |
|
| |
| 954 |
|
| /* For backward compatibility only */ |
| 955 |
|
| #define SWIG_POINTER_EXCEPTION 0 |
| 956 |
|
| |
| 957 |
|
| #ifdef __cplusplus |
| 958 |
|
| extern "C" { |
| 959 |
|
| #endif |
| 960 |
|
| |
| 961 |
|
| #define SWIG_OWNER SWIG_POINTER_OWN |
| 962 |
|
| #define SWIG_SHADOW SWIG_OWNER << 1 |
| 963 |
|
| |
| 964 |
|
| #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL |
| 965 |
|
| |
| 966 |
|
| /* SWIG Perl macros */ |
| 967 |
|
| |
| 968 |
|
| /* Macro to declare an XS function */ |
| 969 |
|
| #ifndef XSPROTO |
| 970 |
|
| # define XSPROTO(name) void name(pTHX_ CV* cv) |
| 971 |
|
| #endif |
| 972 |
|
| |
| 973 |
|
| /* Macro to call an XS function */ |
| 974 |
|
| #ifndef MULTIPLICITY |
| 975 |
|
| # define SWIG_CALLXS(_name) _name(cv) |
| 976 |
|
| #else |
| 977 |
|
| # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) |
| 978 |
|
| #endif |
| 979 |
|
| |
| 980 |
|
| #define MAGIC_PPERL |
| 981 |
|
| #define SWIGCLASS_STATIC static SWIGUNUSED |
| 982 |
|
| |
| 983 |
|
| #ifndef MULTIPLICITY |
| 984 |
|
| #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) |
| 985 |
|
| |
| 986 |
|
| #ifdef __cplusplus |
| 987 |
|
| extern "C" { |
| 988 |
|
| #endif |
| 989 |
|
| typedef int (*SwigMagicFunc)(SV *, MAGIC *); |
| 990 |
|
| #ifdef __cplusplus |
| 991 |
|
| } |
| 992 |
|
| #endif |
| 993 |
|
| |
| 994 |
|
| #else /* MULTIPLICITY */ |
| 995 |
|
| |
| 996 |
|
| #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) |
| 997 |
|
| |
| 998 |
|
| #ifdef __cplusplus |
| 999 |
|
| extern "C" { |
| 1000 |
|
| #endif |
| 1001 |
|
| typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); |
| 1002 |
|
| #ifdef __cplusplus |
| 1003 |
|
| } |
| 1004 |
|
| #endif |
| 1005 |
|
| |
| 1006 |
|
| #endif /* MULTIPLICITY */ |
| 1007 |
|
| |
| 1008 |
0 |
| static void SWIGUNUSED SWIG_croak_null() |
| 1009 |
|
| { |
| 1010 |
0 |
| SV *err = get_sv("@", GV_ADD); |
| 1011 |
0 |
▶ | if (sv_isobject(err)) |
Branch: 1 branch
| Branch | True | False | Total |
| if (sv_isobject(err)) |
0 |
0 |
0 |
|
| 1012 |
0 |
| croak(0); |
| 1013 |
|
| else |
| 1014 |
0 |
| croak("%s", SvPV_nolen(err)); |
| 1015 |
|
| } |
| 1016 |
|
| |
| 1017 |
|
| |
| 1018 |
|
| /* |
| 1019 |
|
| Define how strict is the cast between strings and integers/doubles |
| 1020 |
|
| when overloading between these types occurs. |
| 1021 |
|
| |
| 1022 |
|
| The default is making it as strict as possible by using SWIG_AddCast |
| 1023 |
|
| when needed. |
| 1024 |
|
| |
| 1025 |
|
| You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to |
| 1026 |
|
| disable the SWIG_AddCast, making the casting between string and |
| 1027 |
|
| numbers less strict. |
| 1028 |
|
| |
| 1029 |
|
| In the end, we try to solve the overloading between strings and |
| 1030 |
|
| numerical types in the more natural way, but if you can avoid it, |
| 1031 |
|
| well, avoid it using %rename, for example. |
| 1032 |
|
| */ |
| 1033 |
|
| #ifndef SWIG_PERL_NO_STRICT_STR2NUM |
| 1034 |
|
| # ifndef SWIG_PERL_STRICT_STR2NUM |
| 1035 |
|
| # define SWIG_PERL_STRICT_STR2NUM |
| 1036 |
|
| # endif |
| 1037 |
|
| #endif |
| 1038 |
|
| #ifdef SWIG_PERL_STRICT_STR2NUM |
| 1039 |
|
| /* string takes precedence */ |
| 1040 |
|
| #define SWIG_Str2NumCast(x) SWIG_AddCast(x) |
| 1041 |
|
| #else |
| 1042 |
|
| /* number takes precedence */ |
| 1043 |
|
| #define SWIG_Str2NumCast(x) x |
| 1044 |
|
| #endif |
| 1045 |
|
| |
| 1046 |
|
| |
| 1047 |
|
| |
| 1048 |
|
| #include <stdlib.h> |
| 1049 |
|
| |
| 1050 |
|
| SWIGRUNTIME const char * |
| 1051 |
0 |
| SWIG_Perl_TypeProxyName(const swig_type_info *type) { |
| 1052 |
0 |
▶ | if (!type) return NULL; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!type) return NULL; |
0 |
0 |
0 |
|
| 1053 |
0 |
▶ | if (type->clientdata != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type->clientdata != NULL) { |
0 |
0 |
0 |
|
| 1054 |
0 |
| return (const char*) type->clientdata; |
| 1055 |
|
| } |
| 1056 |
|
| else { |
| 1057 |
0 |
| return type->name; |
| 1058 |
|
| } |
| 1059 |
|
| } |
| 1060 |
|
| |
| 1061 |
|
| /* Identical to SWIG_TypeCheck, except for strcmp comparison */ |
| 1062 |
|
| SWIGRUNTIME swig_cast_info * |
| 1063 |
0 |
| SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { |
| 1064 |
0 |
▶ | if (ty) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty) { |
0 |
0 |
0 |
|
| 1065 |
0 |
| swig_cast_info *iter = ty->cast; |
| 1066 |
0 |
▶ | while (iter) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (iter) { |
0 |
0 |
0 |
|
| 1067 |
0 |
▶ | if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { |
0 |
0 |
0 |
|
| 1068 |
0 |
▶ | if (iter == ty->cast) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter == ty->cast) |
0 |
0 |
0 |
|
| 1069 |
0 |
| return iter; |
| 1070 |
|
| /* Move iter to the top of the linked list */ |
| 1071 |
0 |
| iter->prev->next = iter->next; |
| 1072 |
0 |
▶ | if (iter->next) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter->next) |
0 |
0 |
0 |
|
| 1073 |
0 |
| iter->next->prev = iter->prev; |
| 1074 |
0 |
| iter->next = ty->cast; |
| 1075 |
0 |
| iter->prev = 0; |
| 1076 |
0 |
▶ | if (ty->cast) ty->cast->prev = iter; |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty->cast) ty->cast->prev = iter; |
0 |
0 |
0 |
|
| 1077 |
0 |
| ty->cast = iter; |
| 1078 |
0 |
| return iter; |
| 1079 |
|
| } |
| 1080 |
0 |
| iter = iter->next; |
| 1081 |
|
| } |
| 1082 |
|
| } |
| 1083 |
0 |
| return 0; |
| 1084 |
|
| } |
| 1085 |
|
| |
| 1086 |
|
| /* Acquire a pointer value */ |
| 1087 |
|
| |
| 1088 |
|
| SWIGRUNTIME int |
| 1089 |
0 |
| SWIG_Perl_AcquirePtr(SWIG_MAYBE_PERL_OBJECT SV *SWIGUNUSEDPARM(sv), int SWIGUNUSEDPARM(own)) { |
| 1090 |
|
| /* TODO */ |
| 1091 |
0 |
| return 0; |
| 1092 |
|
| } |
| 1093 |
|
| |
| 1094 |
|
| /* Function for getting a pointer value */ |
| 1095 |
|
| |
| 1096 |
|
| SWIGRUNTIME int |
| 1097 |
0 |
| SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) { |
| 1098 |
|
| swig_cast_info *tc; |
| 1099 |
0 |
| void *voidptr = (void *)0; |
| 1100 |
0 |
| SV *tsv = 0; |
| 1101 |
0 |
| int check_owned_pointer_release = (flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE; |
| 1102 |
|
| |
| 1103 |
0 |
▶ | if (own) |
Branch: 1 branch
| Branch | True | False | Total |
| if (own) |
0 |
0 |
0 |
|
| 1104 |
0 |
| *own = 0; |
| 1105 |
|
| |
| 1106 |
|
| /* If magical, apply more magic */ |
| 1107 |
0 |
▶ | if (SvGMAGICAL(sv)) |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvGMAGICAL(sv)) |
0 |
0 |
0 |
|
| 1108 |
0 |
| mg_get(sv); |
| 1109 |
|
| |
| 1110 |
|
| /* Check to see if this is an object */ |
| 1111 |
0 |
▶ | if (sv_isobject(sv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (sv_isobject(sv)) { |
0 |
0 |
0 |
|
| 1112 |
0 |
| IV tmp = 0; |
| 1113 |
0 |
| tsv = (SV*) SvRV(sv); |
| 1114 |
0 |
▶ | if ((SvTYPE(tsv) == SVt_PVHV)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((SvTYPE(tsv) == SVt_PVHV)) { |
0 |
0 |
0 |
|
| 1115 |
|
| MAGIC *mg; |
| 1116 |
0 |
▶ | if (SvMAGICAL(tsv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvMAGICAL(tsv)) { |
0 |
0 |
0 |
|
| 1117 |
0 |
| mg = mg_find(tsv,'P'); |
| 1118 |
0 |
▶ | if (mg) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (mg) { |
0 |
0 |
0 |
|
| 1119 |
0 |
| sv = mg->mg_obj; |
| 1120 |
0 |
▶ | if (sv_isobject(sv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (sv_isobject(sv)) { |
0 |
0 |
0 |
|
| 1121 |
0 |
| tsv = (SV*)SvRV(sv); |
| 1122 |
0 |
| tmp = SvIV(tsv); |
| 1123 |
|
| } |
| 1124 |
|
| } |
| 1125 |
|
| } else { |
| 1126 |
0 |
| return SWIG_ERROR; |
| 1127 |
|
| } |
| 1128 |
|
| } else { |
| 1129 |
0 |
| tmp = SvIV(tsv); |
| 1130 |
|
| } |
| 1131 |
0 |
| voidptr = INT2PTR(void *,tmp); |
| 1132 |
0 |
▶ | } else if (! SvOK(sv)) { /* Check for undef */ |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (! SvOK(sv)) { /* Check for undef */ |
0 |
0 |
0 |
|
| 1133 |
0 |
| *(ptr) = (void *) 0; |
| 1134 |
0 |
▶ | return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK; |
Branch: 1 branch
| Branch | True | False | Total |
| return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK; |
0 |
0 |
0 |
|
| 1135 |
0 |
▶ | } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ |
0 |
0 |
0 |
|
| 1136 |
0 |
▶ | if (!SvROK(sv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SvROK(sv)) { |
0 |
0 |
0 |
|
| 1137 |
|
| /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */ |
| 1138 |
0 |
▶ | if (SvIOK(sv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvIOK(sv)) { |
0 |
0 |
0 |
|
| 1139 |
0 |
| return SWIG_ERROR; |
| 1140 |
|
| } else { |
| 1141 |
|
| /* NULL pointer (reference to undef). */ |
| 1142 |
0 |
| *(ptr) = (void *) 0; |
| 1143 |
0 |
| return SWIG_OK; |
| 1144 |
|
| } |
| 1145 |
|
| } else { |
| 1146 |
0 |
| return SWIG_ERROR; |
| 1147 |
|
| } |
| 1148 |
|
| } else { /* Don't know what it is */ |
| 1149 |
0 |
| return SWIG_ERROR; |
| 1150 |
|
| } |
| 1151 |
0 |
▶ | if (_t) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (_t) { |
0 |
0 |
0 |
|
| 1152 |
|
| /* Now see if the types match */ |
| 1153 |
0 |
▶ | char *_c = HvNAME(SvSTASH(SvRV(sv))); |
Branch: 6 branches
| Branch | True | False | Total |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
|
| 1154 |
0 |
| tc = SWIG_TypeProxyCheck(_c,_t); |
| 1155 |
|
| #ifdef SWIG_DIRECTORS |
| 1156 |
|
| if (!tc && !sv_derived_from(sv,SWIG_Perl_TypeProxyName(_t))) { |
| 1157 |
|
| #else |
| 1158 |
0 |
▶ | if (!tc) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!tc) { |
0 |
0 |
0 |
|
| 1159 |
|
| #endif |
| 1160 |
0 |
| return SWIG_ERROR; |
| 1161 |
|
| } |
| 1162 |
|
| { |
| 1163 |
0 |
| int newmemory = 0; |
| 1164 |
0 |
| *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); |
| 1165 |
0 |
▶ | if (newmemory == SWIG_CAST_NEW_MEMORY) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (newmemory == SWIG_CAST_NEW_MEMORY) { |
0 |
0 |
0 |
|
| 1166 |
|
| assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ |
| 1167 |
0 |
▶ | if (own) |
Branch: 1 branch
| Branch | True | False | Total |
| if (own) |
0 |
0 |
0 |
|
| 1168 |
0 |
| *own = *own | SWIG_CAST_NEW_MEMORY; |
| 1169 |
|
| } |
| 1170 |
|
| } |
| 1171 |
|
| } else { |
| 1172 |
0 |
| *ptr = voidptr; |
| 1173 |
|
| } |
| 1174 |
|
| |
| 1175 |
|
| /* |
| 1176 |
|
| * DISOWN implementation: we need a perl guru to check this one. |
| 1177 |
|
| */ |
| 1178 |
0 |
▶ | if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { |
Branch: 3 branches
| Branch | True | False | Total |
| if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { |
0 |
0 |
0 |
| if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { |
0 |
0 |
0 |
| if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { |
0 |
0 |
0 |
|
| 1179 |
|
| /* |
| 1180 |
|
| * almost copy paste code from below SWIG_POINTER_OWN setting |
| 1181 |
|
| */ |
| 1182 |
0 |
| SV *obj = sv; |
| 1183 |
0 |
| HV *stash = SvSTASH(SvRV(obj)); |
| 1184 |
0 |
| GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); |
| 1185 |
0 |
| int owned = 0; |
| 1186 |
0 |
▶ | if (isGV(gv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (isGV(gv)) { |
0 |
0 |
0 |
|
| 1187 |
0 |
▶ | HV *hv = GvHVn(gv); |
Branch: 1 branch
| Branch | True | False | Total |
| HV *hv = GvHVn(gv); |
0 |
0 |
0 |
|
| 1188 |
|
| /* |
| 1189 |
|
| * To set ownership (see below), a newSViv(1) entry is added. |
| 1190 |
|
| * Hence, to remove ownership, we delete the entry. |
| 1191 |
|
| */ |
| 1192 |
0 |
▶ | if (hv_exists_ent(hv, obj, 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (hv_exists_ent(hv, obj, 0)) { |
0 |
0 |
0 |
|
| 1193 |
0 |
| owned = 1; |
| 1194 |
0 |
▶ | if (flags & SWIG_POINTER_DISOWN) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (flags & SWIG_POINTER_DISOWN) { |
0 |
0 |
0 |
|
| 1195 |
0 |
| hv_delete_ent(hv, obj, 0, 0); |
| 1196 |
|
| } |
| 1197 |
|
| } |
| 1198 |
|
| } |
| 1199 |
0 |
▶ | if (check_owned_pointer_release && !owned) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (check_owned_pointer_release && !owned) { |
0 |
0 |
0 |
| if (check_owned_pointer_release && !owned) { |
0 |
0 |
0 |
|
| 1200 |
0 |
| return SWIG_ERROR_RELEASE_NOT_OWNED; |
| 1201 |
|
| } |
| 1202 |
|
| } |
| 1203 |
|
| |
| 1204 |
0 |
▶ | if (tsv && (flags & SWIG_POINTER_CLEAR)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (tsv && (flags & SWIG_POINTER_CLEAR)) { |
0 |
0 |
0 |
| if (tsv && (flags & SWIG_POINTER_CLEAR)) { |
0 |
0 |
0 |
|
| 1205 |
0 |
| SvIV_set(tsv, 0); |
| 1206 |
|
| } |
| 1207 |
|
| |
| 1208 |
0 |
| return SWIG_OK; |
| 1209 |
|
| } |
| 1210 |
|
| |
| 1211 |
|
| SWIGRUNTIME int |
| 1212 |
0 |
| SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) { |
| 1213 |
0 |
| return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0); |
| 1214 |
|
| } |
| 1215 |
|
| |
| 1216 |
|
| SWIGRUNTIME void |
| 1217 |
0 |
| SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) { |
| 1218 |
0 |
▶ | if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { |
0 |
0 |
0 |
| if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { |
0 |
0 |
0 |
|
| 1219 |
|
| SV *self; |
| 1220 |
0 |
| SV *obj=newSV(0); |
| 1221 |
0 |
| HV *hash=newHV(); |
| 1222 |
|
| HV *stash; |
| 1223 |
0 |
| sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr); |
| 1224 |
0 |
| stash=SvSTASH(SvRV(obj)); |
| 1225 |
0 |
▶ | if (flags & SWIG_POINTER_OWN) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (flags & SWIG_POINTER_OWN) { |
0 |
0 |
0 |
|
| 1226 |
|
| HV *hv; |
| 1227 |
0 |
| GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); |
| 1228 |
0 |
▶ | if (!isGV(gv)) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!isGV(gv)) |
0 |
0 |
0 |
|
| 1229 |
0 |
| gv_init(gv, stash, "OWNER", 5, FALSE); |
| 1230 |
0 |
▶ | hv=GvHVn(gv); |
Branch: 1 branch
| Branch | True | False | Total |
| hv=GvHVn(gv); |
0 |
0 |
0 |
|
| 1231 |
0 |
| hv_store_ent(hv, obj, newSViv(1), 0); |
| 1232 |
|
| } |
| 1233 |
0 |
| sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0); |
| 1234 |
0 |
| SvREFCNT_dec(obj); |
| 1235 |
0 |
| self=newRV_noinc((SV *)hash); |
| 1236 |
0 |
| sv_setsv(sv, self); |
| 1237 |
0 |
| SvREFCNT_dec((SV *)self); |
| 1238 |
0 |
| sv_bless(sv, stash); |
| 1239 |
|
| } |
| 1240 |
|
| else { |
| 1241 |
0 |
| sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr); |
| 1242 |
|
| } |
| 1243 |
0 |
| } |
| 1244 |
|
| |
| 1245 |
|
| SWIGRUNTIMEINLINE SV * |
| 1246 |
0 |
| SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) { |
| 1247 |
0 |
| SV *result = sv_newmortal(); |
| 1248 |
0 |
| SWIG_MakePtr(result, ptr, t, flags); |
| 1249 |
0 |
| return result; |
| 1250 |
|
| } |
| 1251 |
|
| |
| 1252 |
|
| SWIGRUNTIME void |
| 1253 |
0 |
| SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) { |
| 1254 |
|
| char result[1024]; |
| 1255 |
0 |
| char *r = result; |
| 1256 |
0 |
▶ | if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; |
Branch: 1 branch
| Branch | True | False | Total |
| if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; |
0 |
0 |
0 |
|
| 1257 |
0 |
| *(r++) = '_'; |
| 1258 |
0 |
| r = SWIG_PackData(r,ptr,sz); |
| 1259 |
0 |
| strcpy(r,SWIG_Perl_TypeProxyName(type)); |
| 1260 |
0 |
| sv_setpv(sv, result); |
| 1261 |
|
| } |
| 1262 |
|
| |
| 1263 |
|
| SWIGRUNTIME SV * |
| 1264 |
0 |
| SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) { |
| 1265 |
0 |
| SV *result = sv_newmortal(); |
| 1266 |
0 |
| SWIG_Perl_MakePackedObj(result, ptr, sz, type); |
| 1267 |
0 |
| return result; |
| 1268 |
|
| } |
| 1269 |
|
| |
| 1270 |
|
| /* Convert a packed pointer value */ |
| 1271 |
|
| SWIGRUNTIME int |
| 1272 |
0 |
| SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) { |
| 1273 |
|
| swig_cast_info *tc; |
| 1274 |
0 |
| const char *c = 0; |
| 1275 |
|
| |
| 1276 |
0 |
▶ | if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
Branch: 2 branches
| Branch | True | False | Total |
| if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
0 |
0 |
0 |
| if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
0 |
0 |
0 |
|
| 1277 |
0 |
| c = SvPV_nolen(obj); |
| 1278 |
|
| /* Pointer values must start with leading underscore */ |
| 1279 |
0 |
▶ | if (*c != '_') return SWIG_ERROR; |
Branch: 1 branch
| Branch | True | False | Total |
| if (*c != '_') return SWIG_ERROR; |
0 |
0 |
0 |
|
| 1280 |
0 |
| c++; |
| 1281 |
0 |
| c = SWIG_UnpackData(c,ptr,sz); |
| 1282 |
0 |
▶ | if (ty) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty) { |
0 |
0 |
0 |
|
| 1283 |
0 |
| tc = SWIG_TypeCheck(c,ty); |
| 1284 |
0 |
▶ | if (!tc) return SWIG_ERROR; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!tc) return SWIG_ERROR; |
0 |
0 |
0 |
|
| 1285 |
|
| } |
| 1286 |
0 |
| return SWIG_OK; |
| 1287 |
|
| } |
| 1288 |
|
| |
| 1289 |
|
| |
| 1290 |
|
| /* Macros for low-level exception handling */ |
| 1291 |
|
| #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } |
| 1292 |
|
| |
| 1293 |
|
| |
| 1294 |
|
| typedef XSPROTO(SwigPerlWrapper); |
| 1295 |
|
| typedef SwigPerlWrapper *SwigPerlWrapperPtr; |
| 1296 |
|
| |
| 1297 |
|
| /* Structure for command table */ |
| 1298 |
|
| typedef struct { |
| 1299 |
|
| const char *name; |
| 1300 |
|
| SwigPerlWrapperPtr wrapper; |
| 1301 |
|
| } swig_command_info; |
| 1302 |
|
| |
| 1303 |
|
| /* Information for constant table */ |
| 1304 |
|
| |
| 1305 |
|
| #define SWIG_INT 1 |
| 1306 |
|
| #define SWIG_FLOAT 2 |
| 1307 |
|
| #define SWIG_STRING 3 |
| 1308 |
|
| #define SWIG_POINTER 4 |
| 1309 |
|
| #define SWIG_BINARY 5 |
| 1310 |
|
| |
| 1311 |
|
| /* Constant information structure */ |
| 1312 |
|
| typedef struct swig_constant_info { |
| 1313 |
|
| int type; |
| 1314 |
|
| const char *name; |
| 1315 |
|
| long lvalue; |
| 1316 |
|
| double dvalue; |
| 1317 |
|
| void *pvalue; |
| 1318 |
|
| swig_type_info **ptype; |
| 1319 |
|
| } swig_constant_info; |
| 1320 |
|
| |
| 1321 |
|
| |
| 1322 |
|
| /* Structure for variable table */ |
| 1323 |
|
| typedef struct { |
| 1324 |
|
| const char *name; |
| 1325 |
|
| SwigMagicFunc set; |
| 1326 |
|
| SwigMagicFunc get; |
| 1327 |
|
| swig_type_info **type; |
| 1328 |
|
| } swig_variable_info; |
| 1329 |
|
| |
| 1330 |
|
| /* Magic variable code */ |
| 1331 |
|
| #ifdef __cplusplus |
| 1332 |
|
| # define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast<char*>(a),b,c) |
| 1333 |
|
| #else |
| 1334 |
|
| # define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c) |
| 1335 |
|
| #endif |
| 1336 |
|
| #ifndef MULTIPLICITY |
| 1337 |
0 |
| SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) |
| 1338 |
|
| #else |
| 1339 |
|
| SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) |
| 1340 |
|
| #endif |
| 1341 |
|
| { |
| 1342 |
|
| MAGIC *mg; |
| 1343 |
0 |
| sv_magic(sv,sv,'U',name,(I32)strlen(name)); |
| 1344 |
0 |
| mg = mg_find(sv,'U'); |
| 1345 |
0 |
| mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); |
| 1346 |
0 |
| mg->mg_virtual->svt_get = (SwigMagicFunc) get; |
| 1347 |
0 |
| mg->mg_virtual->svt_set = (SwigMagicFunc) set; |
| 1348 |
0 |
| mg->mg_virtual->svt_len = 0; |
| 1349 |
0 |
| mg->mg_virtual->svt_clear = 0; |
| 1350 |
0 |
| mg->mg_virtual->svt_free = 0; |
| 1351 |
0 |
| } |
| 1352 |
|
| |
| 1353 |
|
| |
| 1354 |
|
| SWIGRUNTIME swig_module_info * |
| 1355 |
0 |
| SWIG_Perl_GetModule(void *SWIGUNUSEDPARM(clientdata)) { |
| 1356 |
|
| static void *type_pointer = (void *)0; |
| 1357 |
|
| SV *pointer; |
| 1358 |
|
| |
| 1359 |
|
| /* first check if pointer already created */ |
| 1360 |
0 |
▶ | if (!type_pointer) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!type_pointer) { |
0 |
0 |
0 |
|
| 1361 |
0 |
| pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); |
| 1362 |
0 |
▶ | if (pointer && SvOK(pointer)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (pointer && SvOK(pointer)) { |
0 |
0 |
0 |
| if (pointer && SvOK(pointer)) { |
0 |
0 |
0 |
|
| 1363 |
0 |
| type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); |
| 1364 |
|
| } |
| 1365 |
|
| } |
| 1366 |
|
| |
| 1367 |
0 |
| return (swig_module_info *) type_pointer; |
| 1368 |
|
| } |
| 1369 |
|
| |
| 1370 |
|
| SWIGRUNTIME void |
| 1371 |
0 |
| SWIG_Perl_SetModule(swig_module_info *module) { |
| 1372 |
|
| SV *pointer; |
| 1373 |
|
| |
| 1374 |
|
| /* create a new pointer */ |
| 1375 |
0 |
| pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); |
| 1376 |
0 |
| sv_setiv(pointer, PTR2IV(module)); |
| 1377 |
0 |
| } |
| 1378 |
|
| |
| 1379 |
|
| #ifdef __cplusplus |
| 1380 |
|
| } |
| 1381 |
|
| #endif |
| 1382 |
|
| |
| 1383 |
|
| /* Workaround perl5 global namespace pollution. Note that undefining library |
| 1384 |
|
| * functions like fopen will not solve the problem on all platforms as fopen |
| 1385 |
|
| * might be a macro on Windows but not necessarily on other operating systems. */ |
| 1386 |
|
| #ifdef do_open |
| 1387 |
|
| #undef do_open |
| 1388 |
|
| #endif |
| 1389 |
|
| #ifdef do_close |
| 1390 |
|
| #undef do_close |
| 1391 |
|
| #endif |
| 1392 |
|
| #ifdef do_exec |
| 1393 |
|
| #undef do_exec |
| 1394 |
|
| #endif |
| 1395 |
|
| #ifdef scalar |
| 1396 |
|
| #undef scalar |
| 1397 |
|
| #endif |
| 1398 |
|
| #ifdef list |
| 1399 |
|
| #undef list |
| 1400 |
|
| #endif |
| 1401 |
|
| #ifdef apply |
| 1402 |
|
| #undef apply |
| 1403 |
|
| #endif |
| 1404 |
|
| #ifdef convert |
| 1405 |
|
| #undef convert |
| 1406 |
|
| #endif |
| 1407 |
|
| #ifdef Error |
| 1408 |
|
| #undef Error |
| 1409 |
|
| #endif |
| 1410 |
|
| #ifdef form |
| 1411 |
|
| #undef form |
| 1412 |
|
| #endif |
| 1413 |
|
| #ifdef vform |
| 1414 |
|
| #undef vform |
| 1415 |
|
| #endif |
| 1416 |
|
| #ifdef LABEL |
| 1417 |
|
| #undef LABEL |
| 1418 |
|
| #endif |
| 1419 |
|
| #ifdef METHOD |
| 1420 |
|
| #undef METHOD |
| 1421 |
|
| #endif |
| 1422 |
|
| #ifdef Move |
| 1423 |
|
| #undef Move |
| 1424 |
|
| #endif |
| 1425 |
|
| #ifdef yylex |
| 1426 |
|
| #undef yylex |
| 1427 |
|
| #endif |
| 1428 |
|
| #ifdef yyparse |
| 1429 |
|
| #undef yyparse |
| 1430 |
|
| #endif |
| 1431 |
|
| #ifdef yyerror |
| 1432 |
|
| #undef yyerror |
| 1433 |
|
| #endif |
| 1434 |
|
| #ifdef invert |
| 1435 |
|
| #undef invert |
| 1436 |
|
| #endif |
| 1437 |
|
| #ifdef ref |
| 1438 |
|
| #undef ref |
| 1439 |
|
| #endif |
| 1440 |
|
| #ifdef read |
| 1441 |
|
| #undef read |
| 1442 |
|
| #endif |
| 1443 |
|
| #ifdef write |
| 1444 |
|
| #undef write |
| 1445 |
|
| #endif |
| 1446 |
|
| #ifdef eof |
| 1447 |
|
| #undef eof |
| 1448 |
|
| #endif |
| 1449 |
|
| #ifdef close |
| 1450 |
|
| #undef close |
| 1451 |
|
| #endif |
| 1452 |
|
| #ifdef rewind |
| 1453 |
|
| #undef rewind |
| 1454 |
|
| #endif |
| 1455 |
|
| #ifdef free |
| 1456 |
|
| #undef free |
| 1457 |
|
| #endif |
| 1458 |
|
| #ifdef malloc |
| 1459 |
|
| #undef malloc |
| 1460 |
|
| #endif |
| 1461 |
|
| #ifdef calloc |
| 1462 |
|
| #undef calloc |
| 1463 |
|
| #endif |
| 1464 |
|
| #ifdef Stat |
| 1465 |
|
| #undef Stat |
| 1466 |
|
| #endif |
| 1467 |
|
| #ifdef check |
| 1468 |
|
| #undef check |
| 1469 |
|
| #endif |
| 1470 |
|
| #ifdef seekdir |
| 1471 |
|
| #undef seekdir |
| 1472 |
|
| #endif |
| 1473 |
|
| #ifdef open |
| 1474 |
|
| #undef open |
| 1475 |
|
| #endif |
| 1476 |
|
| #ifdef readdir |
| 1477 |
|
| #undef readdir |
| 1478 |
|
| #endif |
| 1479 |
|
| #ifdef bind |
| 1480 |
|
| #undef bind |
| 1481 |
|
| #endif |
| 1482 |
|
| #ifdef access |
| 1483 |
|
| #undef access |
| 1484 |
|
| #endif |
| 1485 |
|
| #ifdef stat |
| 1486 |
|
| #undef stat |
| 1487 |
|
| #endif |
| 1488 |
|
| #ifdef seed |
| 1489 |
|
| #undef seed |
| 1490 |
|
| #endif |
| 1491 |
|
| |
| 1492 |
|
| #ifdef bool |
| 1493 |
|
| /* Leave if macro is from C99 stdbool.h */ |
| 1494 |
|
| #ifndef __bool_true_false_are_defined |
| 1495 |
|
| #undef bool |
| 1496 |
|
| #endif |
| 1497 |
|
| #endif |
| 1498 |
|
| |
| 1499 |
|
| |
| 1500 |
|
| |
| 1501 |
|
| |
| 1502 |
|
| #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) |
| 1503 |
|
| |
| 1504 |
|
| #define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0) |
| 1505 |
|
| |
| 1506 |
|
| |
| 1507 |
|
| |
| 1508 |
|
| /* -------- TYPES TABLE (BEGIN) -------- */ |
| 1509 |
|
| |
| 1510 |
|
| #define SWIGTYPE_p_FILE swig_types[0] |
| 1511 |
|
| #define SWIGTYPE_p_char swig_types[1] |
| 1512 |
|
| #define SWIGTYPE_p_double swig_types[2] |
| 1513 |
|
| #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void swig_types[3] |
| 1514 |
|
| #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void swig_types[4] |
| 1515 |
|
| #define SWIGTYPE_p_gsl_matrix swig_types[5] |
| 1516 |
|
| #define SWIGTYPE_p_gsl_wavelet swig_types[6] |
| 1517 |
|
| #define SWIGTYPE_p_gsl_wavelet_direction swig_types[7] |
| 1518 |
|
| #define SWIGTYPE_p_gsl_wavelet_workspace swig_types[8] |
| 1519 |
|
| static swig_type_info *swig_types[10]; |
| 1520 |
|
| static swig_module_info swig_module = {swig_types, 9, 0, 0, 0, 0}; |
| 1521 |
|
| #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
| 1522 |
|
| #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
| 1523 |
|
| |
| 1524 |
|
| /* -------- TYPES TABLE (END) -------- */ |
| 1525 |
|
| |
| 1526 |
|
| #define SWIG_init boot_Math__GSL__Wavelet2D |
| 1527 |
|
| |
| 1528 |
|
| #define SWIG_name "Math::GSL::Wavelet2Dc::boot_Math__GSL__Wavelet2D" |
| 1529 |
|
| #define SWIG_prefix "Math::GSL::Wavelet2Dc::" |
| 1530 |
|
| |
| 1531 |
|
| #define SWIG_as_voidptr(a) (void *)((const void *)(a)) |
| 1532 |
|
| #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) |
| 1533 |
|
| |
| 1534 |
|
| |
| 1535 |
|
| #ifdef __cplusplus |
| 1536 |
|
| extern "C" |
| 1537 |
|
| #endif |
| 1538 |
|
| #ifndef MULTIPLICITY |
| 1539 |
|
| SWIGEXPORT void SWIG_init (CV* cv); |
| 1540 |
|
| #else |
| 1541 |
|
| SWIGEXPORT void SWIG_init (pTHXo_ CV* cv); |
| 1542 |
|
| #endif |
| 1543 |
|
| |
| 1544 |
|
| |
| 1545 |
|
| SWIGINTERNINLINE SV * |
| 1546 |
0 |
| SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value) |
| 1547 |
|
| { |
| 1548 |
0 |
| return sv_2mortal(newSVnv(value)); |
| 1549 |
|
| } |
| 1550 |
|
| |
| 1551 |
|
| |
| 1552 |
|
| SWIGINTERNINLINE SV * |
| 1553 |
0 |
| SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value) |
| 1554 |
|
| { |
| 1555 |
|
| SV *sv; |
| 1556 |
|
| if (IVSIZE >= sizeof(value) || (value >= IV_MIN && value <= IV_MAX)) |
| 1557 |
0 |
| sv = newSViv(value); |
| 1558 |
|
| else |
| 1559 |
|
| sv = newSVpvf("%ld", value); |
| 1560 |
0 |
| return sv_2mortal(sv); |
| 1561 |
|
| } |
| 1562 |
|
| |
| 1563 |
|
| |
| 1564 |
|
| SWIGINTERNINLINE SV * |
| 1565 |
0 |
| SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value) |
| 1566 |
|
| { |
| 1567 |
0 |
| return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); |
| 1568 |
|
| } |
| 1569 |
|
| |
| 1570 |
|
| |
| 1571 |
|
| SWIGINTERN swig_type_info* |
| 1572 |
0 |
| SWIG_pchar_descriptor(void) |
| 1573 |
|
| { |
| 1574 |
|
| static int init = 0; |
| 1575 |
|
| static swig_type_info* info = 0; |
| 1576 |
0 |
▶ | if (!init) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!init) { |
0 |
0 |
0 |
|
| 1577 |
0 |
| info = SWIG_TypeQuery("_p_char"); |
| 1578 |
0 |
| init = 1; |
| 1579 |
|
| } |
| 1580 |
0 |
| return info; |
| 1581 |
|
| } |
| 1582 |
|
| |
| 1583 |
|
| |
| 1584 |
|
| SWIGINTERN int |
| 1585 |
0 |
| SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc) |
| 1586 |
|
| { |
| 1587 |
0 |
▶ | if (SvMAGICAL(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvMAGICAL(obj)) { |
0 |
0 |
0 |
|
| 1588 |
0 |
| SV *tmp = sv_newmortal(); |
| 1589 |
0 |
▶ | SvSetSV(tmp, obj); |
Branch: 1 branch
| Branch | True | False | Total |
| SvSetSV(tmp, obj); |
0 |
0 |
0 |
|
| 1590 |
0 |
| obj = tmp; |
| 1591 |
|
| } |
| 1592 |
0 |
▶ | if (SvPOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvPOK(obj)) { |
0 |
0 |
0 |
|
| 1593 |
0 |
| STRLEN len = 0; |
| 1594 |
0 |
| char *cstr = SvPV(obj, len); |
| 1595 |
0 |
| size_t size = len + 1; |
| 1596 |
0 |
▶ | if (cptr) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (cptr) { |
0 |
0 |
0 |
|
| 1597 |
0 |
▶ | if (alloc) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc) { |
0 |
0 |
0 |
|
| 1598 |
0 |
▶ | if (*alloc == SWIG_NEWOBJ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*alloc == SWIG_NEWOBJ) { |
0 |
0 |
0 |
|
| 1599 |
0 |
| *cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size)); |
| 1600 |
|
| } else { |
| 1601 |
0 |
| *cptr = cstr; |
| 1602 |
0 |
| *alloc = SWIG_OLDOBJ; |
| 1603 |
|
| } |
| 1604 |
|
| } |
| 1605 |
|
| } |
| 1606 |
0 |
▶ | if (psize) *psize = size; |
Branch: 1 branch
| Branch | True | False | Total |
| if (psize) *psize = size; |
0 |
0 |
0 |
|
| 1607 |
0 |
| return SWIG_OK; |
| 1608 |
|
| } else { |
| 1609 |
0 |
| swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
| 1610 |
0 |
▶ | if (pchar_descriptor) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (pchar_descriptor) { |
0 |
0 |
0 |
|
| 1611 |
0 |
| char* vptr = 0; |
| 1612 |
0 |
▶ | if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { |
0 |
0 |
0 |
|
| 1613 |
0 |
▶ | if (cptr) *cptr = vptr; |
Branch: 1 branch
| Branch | True | False | Total |
| if (cptr) *cptr = vptr; |
0 |
0 |
0 |
|
| 1614 |
0 |
▶ | if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; |
Branch: 2 branches
| Branch | True | False | Total |
| if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; |
0 |
0 |
0 |
| if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; |
0 |
0 |
0 |
|
| 1615 |
0 |
▶ | if (alloc) *alloc = SWIG_OLDOBJ; |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc) *alloc = SWIG_OLDOBJ; |
0 |
0 |
0 |
|
| 1616 |
0 |
| return SWIG_OK; |
| 1617 |
|
| } |
| 1618 |
|
| } |
| 1619 |
|
| } |
| 1620 |
0 |
| return SWIG_TypeError; |
| 1621 |
|
| } |
| 1622 |
|
| |
| 1623 |
|
| |
| 1624 |
|
| |
| 1625 |
|
| |
| 1626 |
|
| |
| 1627 |
|
| #include <limits.h> |
| 1628 |
|
| #if !defined(SWIG_NO_LLONG_MAX) |
| 1629 |
|
| # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) |
| 1630 |
|
| # define LLONG_MAX __LONG_LONG_MAX__ |
| 1631 |
|
| # define LLONG_MIN (-LLONG_MAX - 1LL) |
| 1632 |
|
| # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) |
| 1633 |
|
| # endif |
| 1634 |
|
| #endif |
| 1635 |
|
| |
| 1636 |
|
| |
| 1637 |
|
| #include <stdlib.h> |
| 1638 |
|
| #ifdef _MSC_VER |
| 1639 |
|
| # ifndef strtoull |
| 1640 |
|
| # define strtoull _strtoui64 |
| 1641 |
|
| # endif |
| 1642 |
|
| # ifndef strtoll |
| 1643 |
|
| # define strtoll _strtoi64 |
| 1644 |
|
| # endif |
| 1645 |
|
| #endif |
| 1646 |
|
| |
| 1647 |
|
| |
| 1648 |
|
| SWIGINTERN int |
| 1649 |
0 |
| SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) |
| 1650 |
|
| { |
| 1651 |
0 |
▶ | if (SvNIOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvNIOK(obj)) { |
0 |
0 |
0 |
|
| 1652 |
0 |
▶ | if (val) *val = SvNV(obj); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = SvNV(obj); |
0 |
0 |
0 |
|
| 1653 |
0 |
| return SWIG_OK; |
| 1654 |
0 |
▶ | } else if (SvIOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (SvIOK(obj)) { |
0 |
0 |
0 |
|
| 1655 |
0 |
▶ | if (val) *val = (double) SvIV(obj); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = (double) SvIV(obj); |
0 |
0 |
0 |
|
| 1656 |
0 |
| return SWIG_AddCast(SWIG_OK); |
| 1657 |
|
| } else { |
| 1658 |
0 |
| const char *nptr = SvPV_nolen(obj); |
| 1659 |
0 |
▶ | if (nptr) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (nptr) { |
0 |
0 |
0 |
|
| 1660 |
|
| char *endptr; |
| 1661 |
|
| double v; |
| 1662 |
0 |
| errno = 0; |
| 1663 |
0 |
| v = strtod(nptr, &endptr); |
| 1664 |
0 |
▶ | if (errno == ERANGE) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (errno == ERANGE) { |
0 |
0 |
0 |
|
| 1665 |
0 |
| errno = 0; |
| 1666 |
0 |
| return SWIG_OverflowError; |
| 1667 |
|
| } else { |
| 1668 |
0 |
▶ | if (*endptr == '\0') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*endptr == '\0') { |
0 |
0 |
0 |
|
| 1669 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 1670 |
0 |
| return SWIG_Str2NumCast(SWIG_OK); |
| 1671 |
|
| } |
| 1672 |
|
| } |
| 1673 |
|
| } |
| 1674 |
|
| } |
| 1675 |
0 |
| return SWIG_TypeError; |
| 1676 |
|
| } |
| 1677 |
|
| |
| 1678 |
|
| |
| 1679 |
|
| #include <float.h> |
| 1680 |
|
| |
| 1681 |
|
| |
| 1682 |
|
| #include <math.h> |
| 1683 |
|
| |
| 1684 |
|
| |
| 1685 |
|
| SWIGINTERNINLINE int |
| 1686 |
0 |
| SWIG_CanCastAsInteger(double *d, double min, double max) { |
| 1687 |
0 |
| double x = *d; |
| 1688 |
0 |
▶ | if ((min <= x && x <= max)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((min <= x && x <= max)) { |
0 |
0 |
0 |
| if ((min <= x && x <= max)) { |
0 |
0 |
0 |
|
| 1689 |
|
| double fx, cx, rd; |
| 1690 |
0 |
| errno = 0; |
| 1691 |
0 |
| fx = floor(x); |
| 1692 |
0 |
| cx = ceil(x); |
| 1693 |
0 |
▶ | rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
Branch: 1 branch
| Branch | True | False | Total |
| rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
0 |
0 |
0 |
|
| 1694 |
0 |
▶ | if ((errno == EDOM) || (errno == ERANGE)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((errno == EDOM) || (errno == ERANGE)) { |
0 |
0 |
0 |
| if ((errno == EDOM) || (errno == ERANGE)) { |
0 |
0 |
0 |
|
| 1695 |
0 |
| errno = 0; |
| 1696 |
|
| } else { |
| 1697 |
|
| double summ, reps, diff; |
| 1698 |
0 |
▶ | if (rd < x) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (rd < x) { |
0 |
0 |
0 |
|
| 1699 |
0 |
| diff = x - rd; |
| 1700 |
0 |
▶ | } else if (rd > x) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (rd > x) { |
0 |
0 |
0 |
|
| 1701 |
0 |
| diff = rd - x; |
| 1702 |
|
| } else { |
| 1703 |
0 |
| return 1; |
| 1704 |
|
| } |
| 1705 |
0 |
| summ = rd + x; |
| 1706 |
0 |
| reps = diff/summ; |
| 1707 |
0 |
▶ | if (reps < 8*DBL_EPSILON) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (reps < 8*DBL_EPSILON) { |
0 |
0 |
0 |
|
| 1708 |
0 |
| *d = rd; |
| 1709 |
0 |
| return 1; |
| 1710 |
|
| } |
| 1711 |
|
| } |
| 1712 |
|
| } |
| 1713 |
0 |
| return 0; |
| 1714 |
|
| } |
| 1715 |
|
| |
| 1716 |
|
| |
| 1717 |
|
| SWIGINTERN int |
| 1718 |
0 |
| SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val) |
| 1719 |
|
| { |
| 1720 |
0 |
▶ | if (SvUOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvUOK(obj)) { |
0 |
0 |
0 |
|
| 1721 |
0 |
| UV v = SvUV(obj); |
| 1722 |
0 |
▶ | if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { |
0 |
0 |
0 |
|
| 1723 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 1724 |
0 |
| return SWIG_OK; |
| 1725 |
|
| } |
| 1726 |
0 |
| return SWIG_OverflowError; |
| 1727 |
0 |
▶ | } else if (SvIOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (SvIOK(obj)) { |
0 |
0 |
0 |
|
| 1728 |
0 |
| IV v = SvIV(obj); |
| 1729 |
|
| if (IVSIZE <= sizeof(*val) || (v >= LONG_MIN && v <= LONG_MAX)) { |
| 1730 |
0 |
▶ | if(val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if(val) *val = v; |
0 |
0 |
0 |
|
| 1731 |
0 |
| return SWIG_OK; |
| 1732 |
|
| } |
| 1733 |
|
| return SWIG_OverflowError; |
| 1734 |
|
| } else { |
| 1735 |
0 |
| int dispatch = 0; |
| 1736 |
0 |
| const char *nptr = SvPV_nolen(obj); |
| 1737 |
0 |
▶ | if (nptr) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (nptr) { |
0 |
0 |
0 |
|
| 1738 |
|
| char *endptr; |
| 1739 |
|
| long v; |
| 1740 |
0 |
| errno = 0; |
| 1741 |
0 |
| v = strtol(nptr, &endptr,0); |
| 1742 |
0 |
▶ | if (errno == ERANGE) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (errno == ERANGE) { |
0 |
0 |
0 |
|
| 1743 |
0 |
| errno = 0; |
| 1744 |
0 |
| return SWIG_OverflowError; |
| 1745 |
|
| } else { |
| 1746 |
0 |
▶ | if (*endptr == '\0') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*endptr == '\0') { |
0 |
0 |
0 |
|
| 1747 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 1748 |
0 |
| return SWIG_Str2NumCast(SWIG_OK); |
| 1749 |
|
| } |
| 1750 |
|
| } |
| 1751 |
|
| } |
| 1752 |
0 |
▶ | if (!dispatch) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!dispatch) { |
0 |
0 |
0 |
|
| 1753 |
|
| double d; |
| 1754 |
0 |
| int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); |
| 1755 |
0 |
▶ | if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { |
0 |
0 |
0 |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { |
0 |
0 |
0 |
|
| 1756 |
0 |
▶ | if (val) *val = (long)(d); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = (long)(d); |
0 |
0 |
0 |
|
| 1757 |
0 |
| return res; |
| 1758 |
|
| } |
| 1759 |
|
| } |
| 1760 |
|
| } |
| 1761 |
0 |
| return SWIG_TypeError; |
| 1762 |
|
| } |
| 1763 |
|
| |
| 1764 |
|
| |
| 1765 |
|
| SWIGINTERN int |
| 1766 |
0 |
| SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val) |
| 1767 |
|
| { |
| 1768 |
|
| long v; |
| 1769 |
0 |
| int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v); |
| 1770 |
0 |
▶ | if (SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 1771 |
0 |
▶ | if ((v < INT_MIN || v > INT_MAX)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((v < INT_MIN || v > INT_MAX)) { |
0 |
0 |
0 |
| if ((v < INT_MIN || v > INT_MAX)) { |
0 |
0 |
0 |
|
| 1772 |
0 |
| return SWIG_OverflowError; |
| 1773 |
|
| } else { |
| 1774 |
0 |
▶ | if (val) *val = (int)(v); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = (int)(v); |
0 |
0 |
0 |
|
| 1775 |
|
| } |
| 1776 |
|
| } |
| 1777 |
0 |
| return res; |
| 1778 |
|
| } |
| 1779 |
|
| |
| 1780 |
|
| |
| 1781 |
|
| SWIGINTERNINLINE SV * |
| 1782 |
0 |
| SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
| 1783 |
|
| { |
| 1784 |
0 |
| SV *obj = sv_newmortal(); |
| 1785 |
0 |
▶ | if (carray) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (carray) { |
0 |
0 |
0 |
|
| 1786 |
0 |
| sv_setpvn(obj, carray, size); |
| 1787 |
|
| } else { |
| 1788 |
0 |
| sv_setsv(obj, &PL_sv_undef); |
| 1789 |
|
| } |
| 1790 |
0 |
| return obj; |
| 1791 |
|
| } |
| 1792 |
|
| |
| 1793 |
|
| |
| 1794 |
|
| SWIGINTERNINLINE SV * |
| 1795 |
0 |
| SWIG_FromCharPtr(const char *cptr) |
| 1796 |
|
| { |
| 1797 |
0 |
▶ | return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); |
Branch: 1 branch
| Branch | True | False | Total |
| return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); |
0 |
0 |
0 |
|
| 1798 |
|
| } |
| 1799 |
|
| |
| 1800 |
|
| |
| 1801 |
|
| #include "gsl/gsl_nan.h" |
| 1802 |
|
| #include "gsl/gsl_errno.h" |
| 1803 |
|
| #include "gsl/gsl_math.h" |
| 1804 |
|
| #include "gsl/gsl_monte.h" |
| 1805 |
|
| |
| 1806 |
|
| |
| 1807 |
|
| struct perl_array { |
| 1808 |
|
| I32 len; |
| 1809 |
|
| AV *array; |
| 1810 |
|
| }; |
| 1811 |
|
| |
| 1812 |
|
| |
| 1813 |
|
| |
| 1814 |
|
| enum awType { awDouble, awFloat, awInt, awUnsigned }; |
| 1815 |
|
| |
| 1816 |
|
| typedef struct { |
| 1817 |
|
| I32 size; |
| 1818 |
|
| enum awType type; |
| 1819 |
|
| void * data; |
| 1820 |
|
| } array_wrapper; |
| 1821 |
|
| |
| 1822 |
0 |
| array_wrapper * array_wrapper_alloc(int numelem, enum awType type){ |
| 1823 |
0 |
| array_wrapper * rv = malloc(sizeof(array_wrapper)); |
| 1824 |
|
| |
| 1825 |
0 |
▶ | if (rv == NULL) |
Branch: 1 branch
| Branch | True | False | Total |
| if (rv == NULL) |
0 |
0 |
0 |
|
| 1826 |
0 |
| croak("array_wrapper_alloc: can't malloc wrapper\n"); |
| 1827 |
|
| |
| 1828 |
0 |
| switch (type){ |
| 1829 |
0 |
| case awDouble: |
| 1830 |
0 |
| rv->data = malloc(sizeof(double) * numelem); |
| 1831 |
0 |
| break; |
| 1832 |
0 |
| case awFloat: |
| 1833 |
0 |
| rv->data = malloc(sizeof(float) * numelem); |
| 1834 |
0 |
| break; |
| 1835 |
0 |
| case awInt: |
| 1836 |
0 |
| rv->data = malloc(sizeof(int) * numelem); |
| 1837 |
0 |
| break; |
| 1838 |
0 |
| case awUnsigned: |
| 1839 |
0 |
| rv->data = malloc(sizeof(unsigned int) * numelem); |
| 1840 |
0 |
| break; |
| 1841 |
0 |
| default: |
| 1842 |
0 |
| croak("array_wrapper_alloc: type should be awDouble, awFloat, awInt, or awUnsigned"); |
| 1843 |
|
| } |
| 1844 |
|
| |
| 1845 |
0 |
▶ | if (rv->data == NULL) |
Branch: 1 branch
| Branch | True | False | Total |
| if (rv->data == NULL) |
0 |
0 |
0 |
|
| 1846 |
0 |
| croak("array_wrapper_alloc: can't malloc data"); |
| 1847 |
|
| |
| 1848 |
0 |
| rv->size = numelem; |
| 1849 |
0 |
| rv->type = type; |
| 1850 |
0 |
| return rv; |
| 1851 |
|
| } |
| 1852 |
|
| |
| 1853 |
0 |
| void array_wrapper_free(array_wrapper * daw){ |
| 1854 |
0 |
| free(daw->data); |
| 1855 |
0 |
| free(daw); |
| 1856 |
0 |
| } |
| 1857 |
|
| |
| 1858 |
|
| |
| 1859 |
|
| /* structure to hold required information while the gsl function call |
| 1860 |
|
| for each callback |
| 1861 |
|
| */ |
| 1862 |
|
| struct gsl_function_perl { |
| 1863 |
|
| gsl_function C_gsl_function; |
| 1864 |
|
| SV * function; |
| 1865 |
|
| SV * params; |
| 1866 |
|
| }; |
| 1867 |
|
| |
| 1868 |
|
| struct gsl_function_fdf_perl { |
| 1869 |
|
| gsl_function_fdf C_gsl_function_fdf; |
| 1870 |
|
| SV * f; |
| 1871 |
|
| SV * df; |
| 1872 |
|
| SV * fdf; |
| 1873 |
|
| SV * params; |
| 1874 |
|
| }; |
| 1875 |
|
| |
| 1876 |
|
| struct gsl_monte_function_perl { |
| 1877 |
|
| gsl_monte_function C_gsl_monte_function; |
| 1878 |
|
| SV * f; |
| 1879 |
|
| SV * dim; |
| 1880 |
|
| SV * params; |
| 1881 |
|
| }; |
| 1882 |
|
| |
| 1883 |
0 |
| void gsl_function_perl_free(struct gsl_function_perl * perl_f){ |
| 1884 |
0 |
▶ | if (perl_f != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (perl_f != NULL) { |
0 |
0 |
0 |
|
| 1885 |
0 |
| SvREFCNT_dec(perl_f->function); |
| 1886 |
0 |
| SvREFCNT_dec(perl_f->params); |
| 1887 |
0 |
| Safefree(perl_f); |
| 1888 |
|
| } |
| 1889 |
0 |
| } |
| 1890 |
|
| |
| 1891 |
0 |
| void gsl_function_fdf_perl_free(struct gsl_function_fdf_perl * perl_fdf){ |
| 1892 |
0 |
▶ | if (perl_fdf != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (perl_fdf != NULL) { |
0 |
0 |
0 |
|
| 1893 |
0 |
| SvREFCNT_dec(perl_fdf->f); |
| 1894 |
0 |
| SvREFCNT_dec(perl_fdf->df); |
| 1895 |
0 |
| SvREFCNT_dec(perl_fdf->fdf); |
| 1896 |
0 |
| SvREFCNT_dec(perl_fdf->params); |
| 1897 |
0 |
| Safefree(perl_fdf); |
| 1898 |
|
| } |
| 1899 |
0 |
| } |
| 1900 |
|
| |
| 1901 |
|
| /* These functions (C callbacks) calls the perl callbacks. |
| 1902 |
|
| Info for perl callback can be found using the 'void*params' parameter |
| 1903 |
|
| */ |
| 1904 |
0 |
| double call_gsl_function_x_params(SV* function, double x, SV *params){ |
| 1905 |
|
| unsigned int count; |
| 1906 |
|
| double y; |
| 1907 |
0 |
| dSP; |
| 1908 |
|
| |
| 1909 |
|
| //fprintf(stderr, "LOOKUP CALLBACK\n"); |
| 1910 |
0 |
| ENTER; |
| 1911 |
0 |
| SAVETMPS; |
| 1912 |
|
| |
| 1913 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 1914 |
0 |
▶ | XPUSHs(sv_2mortal(newSVnv((double)x))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVnv((double)x))); |
0 |
0 |
0 |
|
| 1915 |
0 |
▶ | XPUSHs(params); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(params); |
0 |
0 |
0 |
|
| 1916 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 1917 |
|
| |
| 1918 |
0 |
| count = call_sv(function, G_SCALAR); |
| 1919 |
0 |
| SPAGAIN; |
| 1920 |
|
| |
| 1921 |
0 |
▶ | if (count != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (count != 1) |
0 |
0 |
0 |
|
| 1922 |
0 |
| croak("Expected to call subroutine in scalar context!"); |
| 1923 |
|
| |
| 1924 |
0 |
| y = POPn; |
| 1925 |
|
| |
| 1926 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 1927 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 1928 |
0 |
| LEAVE; |
| 1929 |
|
| |
| 1930 |
0 |
| return y; |
| 1931 |
|
| } |
| 1932 |
|
| |
| 1933 |
0 |
| double call_gsl_function(double x , void *params){ |
| 1934 |
0 |
| struct gsl_function_perl *F=(struct gsl_function_perl*)params; |
| 1935 |
0 |
| return call_gsl_function_x_params( F->function, x, F->params ); |
| 1936 |
|
| } |
| 1937 |
|
| |
| 1938 |
0 |
| double call_gsl_function_fdf_f(double x , void *params){ |
| 1939 |
0 |
| struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params; |
| 1940 |
0 |
| return call_gsl_function_x_params( F->f, x, F->params ); |
| 1941 |
|
| } |
| 1942 |
|
| |
| 1943 |
0 |
| double call_gsl_function_fdf_df(double x , void *params){ |
| 1944 |
0 |
| struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params; |
| 1945 |
0 |
| return call_gsl_function_x_params( F->df, x, F->params ); |
| 1946 |
|
| } |
| 1947 |
|
| |
| 1948 |
0 |
| void call_gsl_function_fdf_fdf(double x , void *params, double *f, double *df ){ |
| 1949 |
0 |
| struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params; |
| 1950 |
|
| |
| 1951 |
0 |
| dSP; |
| 1952 |
|
| |
| 1953 |
0 |
| ENTER; |
| 1954 |
0 |
| SAVETMPS; |
| 1955 |
|
| |
| 1956 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 1957 |
0 |
▶ | EXTEND(SP, 2); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP, 2); |
0 |
0 |
0 |
|
| 1958 |
0 |
| PUSHs(sv_2mortal(newSVnv((double)x))); |
| 1959 |
0 |
| PUSHs(F->params); |
| 1960 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 1961 |
|
| |
| 1962 |
|
| { |
| 1963 |
0 |
| unsigned int count = call_sv(F->fdf, G_ARRAY); |
| 1964 |
0 |
| SPAGAIN; |
| 1965 |
|
| |
| 1966 |
0 |
▶ | if (count != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (count != 2) |
0 |
0 |
0 |
|
| 1967 |
0 |
| croak( "Expected two return values, got %d", count ); |
| 1968 |
|
| } |
| 1969 |
|
| |
| 1970 |
0 |
| *df = POPn; |
| 1971 |
0 |
| *f = POPn; |
| 1972 |
|
| |
| 1973 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 1974 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 1975 |
0 |
| LEAVE; |
| 1976 |
0 |
| } |
| 1977 |
|
| |
| 1978 |
0 |
| double call_gsl_monte_function(double *x_array , size_t dim, void *params){ |
| 1979 |
0 |
| struct gsl_monte_function_perl *F=(struct gsl_monte_function_perl*)params; |
| 1980 |
|
| unsigned int count; |
| 1981 |
|
| unsigned int i; |
| 1982 |
|
| AV* perl_array; |
| 1983 |
|
| double y; |
| 1984 |
0 |
| dSP; |
| 1985 |
|
| |
| 1986 |
|
| //fprintf(stderr, "LOOKUP CALLBACK\n"); |
| 1987 |
0 |
| ENTER; |
| 1988 |
0 |
| SAVETMPS; |
| 1989 |
|
| |
| 1990 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 1991 |
0 |
| perl_array=newAV(); |
| 1992 |
0 |
| sv_2mortal((SV*)perl_array); |
| 1993 |
0 |
▶ | XPUSHs(sv_2mortal(newRV((SV *)perl_array))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newRV((SV *)perl_array))); |
0 |
0 |
0 |
|
| 1994 |
0 |
▶ | for(i=0; i<dim; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for(i=0; i<dim; i++) { |
0 |
0 |
0 |
|
| 1995 |
|
| /* no mortal : it is referenced by the array */ |
| 1996 |
0 |
| av_push(perl_array, newSVnv(x_array[i])); |
| 1997 |
|
| } |
| 1998 |
0 |
▶ | XPUSHs(sv_2mortal(newSViv(dim))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSViv(dim))); |
0 |
0 |
0 |
|
| 1999 |
0 |
▶ | XPUSHs(F->params); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(F->params); |
0 |
0 |
0 |
|
| 2000 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 2001 |
|
| |
| 2002 |
0 |
| count = call_sv(F->f, G_SCALAR); |
| 2003 |
0 |
| SPAGAIN; |
| 2004 |
|
| |
| 2005 |
0 |
▶ | if (count != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (count != 1) |
0 |
0 |
0 |
|
| 2006 |
0 |
| croak("Expected to call subroutine in scalar context!"); |
| 2007 |
|
| |
| 2008 |
0 |
| y = POPn; |
| 2009 |
|
| |
| 2010 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 2011 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 2012 |
0 |
| LEAVE; |
| 2013 |
|
| |
| 2014 |
0 |
| return y; |
| 2015 |
|
| } |
| 2016 |
|
| |
| 2017 |
|
| |
| 2018 |
0 |
| void gsl_function_fdf_extract( char* param_name, HV* hash, SV* func[] ) { |
| 2019 |
|
| static const char *keys[3] = { "f", "df", "fdf" }; |
| 2020 |
|
| |
| 2021 |
|
| int ikey; |
| 2022 |
|
| |
| 2023 |
0 |
▶ | for ( ikey = 0 ; ikey < 3 ; ++ikey ) { |
Branch: 1 branch
| Branch | True | False | Total |
| for ( ikey = 0 ; ikey < 3 ; ++ikey ) { |
0 |
0 |
0 |
|
| 2024 |
0 |
| func[ikey] = 0; |
| 2025 |
0 |
| const char* key = keys[ikey]; |
| 2026 |
|
| /* it just so happens that strlen(keys[ikey]) == ikey + 1 */ |
| 2027 |
0 |
| SV** pp_sv = hv_fetch( hash, key, ikey+1, 0 ); |
| 2028 |
|
| SV* function; |
| 2029 |
|
| |
| 2030 |
0 |
▶ | if ( !pp_sv ) |
Branch: 1 branch
| Branch | True | False | Total |
| if ( !pp_sv ) |
0 |
0 |
0 |
|
| 2031 |
0 |
| croak("Math::GSL : %s: missing key %s!", param_name, key); |
| 2032 |
|
| |
| 2033 |
0 |
| function = *pp_sv; |
| 2034 |
|
| |
| 2035 |
0 |
▶ | if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { |
Branch: 3 branches
| Branch | True | False | Total |
| if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { |
0 |
0 |
0 |
| if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { |
0 |
0 |
0 |
| if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { |
0 |
0 |
0 |
|
| 2036 |
|
| /* hold on to SV after the enclosing hash goes away */ |
| 2037 |
0 |
| SvREFCNT_inc( function ); |
| 2038 |
0 |
| func[ikey] = function; |
| 2039 |
|
| } |
| 2040 |
|
| else { |
| 2041 |
0 |
| croak( "Math::GSL : %s: key %s is not a reference to code!", param_name, key); |
| 2042 |
|
| } |
| 2043 |
|
| } |
| 2044 |
0 |
| } |
| 2045 |
|
| |
| 2046 |
|
| |
| 2047 |
|
| |
| 2048 |
|
| #include "gsl/gsl_types.h" |
| 2049 |
|
| #include "gsl/gsl_wavelet2d.h" |
| 2050 |
|
| |
| 2051 |
|
| |
| 2052 |
|
| SWIGINTERN int |
| 2053 |
0 |
| SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) |
| 2054 |
|
| { |
| 2055 |
0 |
▶ | if (SvUOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvUOK(obj)) { |
0 |
0 |
0 |
|
| 2056 |
0 |
| UV v = SvUV(obj); |
| 2057 |
|
| if (UVSIZE <= sizeof(*val) || v <= ULONG_MAX) { |
| 2058 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 2059 |
0 |
| return SWIG_OK; |
| 2060 |
|
| } |
| 2061 |
|
| return SWIG_OverflowError; |
| 2062 |
0 |
▶ | } else if (SvIOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (SvIOK(obj)) { |
0 |
0 |
0 |
|
| 2063 |
0 |
| IV v = SvIV(obj); |
| 2064 |
0 |
▶ | if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULONG_MAX)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULONG_MAX)) { |
0 |
0 |
0 |
|
| 2065 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 2066 |
0 |
| return SWIG_OK; |
| 2067 |
|
| } |
| 2068 |
0 |
| return SWIG_OverflowError; |
| 2069 |
|
| } else { |
| 2070 |
0 |
| int dispatch = 0; |
| 2071 |
0 |
| const char *nptr = SvPV_nolen(obj); |
| 2072 |
0 |
▶ | if (nptr) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (nptr) { |
0 |
0 |
0 |
|
| 2073 |
|
| char *endptr; |
| 2074 |
|
| unsigned long v; |
| 2075 |
0 |
| errno = 0; |
| 2076 |
0 |
| v = strtoul(nptr, &endptr,0); |
| 2077 |
0 |
▶ | if (errno == ERANGE) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (errno == ERANGE) { |
0 |
0 |
0 |
|
| 2078 |
0 |
| errno = 0; |
| 2079 |
0 |
| return SWIG_OverflowError; |
| 2080 |
|
| } else { |
| 2081 |
0 |
▶ | if (*endptr == '\0') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*endptr == '\0') { |
0 |
0 |
0 |
|
| 2082 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 2083 |
0 |
| return SWIG_Str2NumCast(SWIG_OK); |
| 2084 |
|
| } |
| 2085 |
|
| } |
| 2086 |
|
| } |
| 2087 |
0 |
▶ | if (!dispatch) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!dispatch) { |
0 |
0 |
0 |
|
| 2088 |
|
| double d; |
| 2089 |
0 |
| int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); |
| 2090 |
0 |
▶ | if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { |
0 |
0 |
0 |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { |
0 |
0 |
0 |
|
| 2091 |
0 |
▶ | if (val) *val = (unsigned long)(d); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = (unsigned long)(d); |
0 |
0 |
0 |
|
| 2092 |
0 |
| return res; |
| 2093 |
|
| } |
| 2094 |
|
| } |
| 2095 |
|
| } |
| 2096 |
0 |
| return SWIG_TypeError; |
| 2097 |
|
| } |
| 2098 |
|
| |
| 2099 |
|
| |
| 2100 |
|
| #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE) |
| 2101 |
|
| # define SWIG_LONG_LONG_AVAILABLE |
| 2102 |
|
| #endif |
| 2103 |
|
| |
| 2104 |
|
| |
| 2105 |
|
| #ifdef SWIG_LONG_LONG_AVAILABLE |
| 2106 |
|
| SWIGINTERN int |
| 2107 |
0 |
| SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long long *val) |
| 2108 |
|
| { |
| 2109 |
0 |
▶ | if (SvUOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvUOK(obj)) { |
0 |
0 |
0 |
|
| 2110 |
|
| /* pretty sure this should be conditional on |
| 2111 |
|
| * (UVSIZE <= sizeof(*val) || v <= ULLONG_MAX) */ |
| 2112 |
0 |
▶ | if (val) *val = SvUV(obj); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = SvUV(obj); |
0 |
0 |
0 |
|
| 2113 |
0 |
| return SWIG_OK; |
| 2114 |
0 |
▶ | } else if (SvIOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (SvIOK(obj)) { |
0 |
0 |
0 |
|
| 2115 |
0 |
| IV v = SvIV(obj); |
| 2116 |
0 |
▶ | if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULLONG_MAX)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULLONG_MAX)) { |
0 |
0 |
0 |
|
| 2117 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 2118 |
0 |
| return SWIG_OK; |
| 2119 |
|
| } else { |
| 2120 |
0 |
| return SWIG_OverflowError; |
| 2121 |
|
| } |
| 2122 |
|
| } else { |
| 2123 |
0 |
| int dispatch = 0; |
| 2124 |
0 |
| const char *nptr = SvPV_nolen(obj); |
| 2125 |
0 |
▶ | if (nptr) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (nptr) { |
0 |
0 |
0 |
|
| 2126 |
|
| char *endptr; |
| 2127 |
|
| unsigned long long v; |
| 2128 |
0 |
| errno = 0; |
| 2129 |
0 |
| v = strtoull(nptr, &endptr,0); |
| 2130 |
0 |
▶ | if (errno == ERANGE) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (errno == ERANGE) { |
0 |
0 |
0 |
|
| 2131 |
0 |
| errno = 0; |
| 2132 |
0 |
| return SWIG_OverflowError; |
| 2133 |
|
| } else { |
| 2134 |
0 |
▶ | if (*endptr == '\0') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*endptr == '\0') { |
0 |
0 |
0 |
|
| 2135 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 2136 |
0 |
| return SWIG_Str2NumCast(SWIG_OK); |
| 2137 |
|
| } |
| 2138 |
|
| } |
| 2139 |
|
| } |
| 2140 |
0 |
▶ | if (!dispatch) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!dispatch) { |
0 |
0 |
0 |
|
| 2141 |
0 |
| const double mant_max = 1LL << DBL_MANT_DIG; |
| 2142 |
|
| double d; |
| 2143 |
0 |
| int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); |
| 2144 |
0 |
▶ | if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { |
0 |
0 |
0 |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { |
0 |
0 |
0 |
|
| 2145 |
0 |
▶ | if (val) *val = (unsigned long long)(d); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = (unsigned long long)(d); |
0 |
0 |
0 |
|
| 2146 |
0 |
| return res; |
| 2147 |
|
| } |
| 2148 |
|
| } |
| 2149 |
|
| } |
| 2150 |
0 |
| return SWIG_TypeError; |
| 2151 |
|
| } |
| 2152 |
|
| #endif |
| 2153 |
|
| |
| 2154 |
|
| |
| 2155 |
|
| SWIGINTERNINLINE int |
| 2156 |
0 |
| SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val) |
| 2157 |
|
| { |
| 2158 |
0 |
| int res = SWIG_TypeError; |
| 2159 |
|
| #ifdef SWIG_LONG_LONG_AVAILABLE |
| 2160 |
|
| if (sizeof(size_t) <= sizeof(unsigned long)) { |
| 2161 |
|
| #endif |
| 2162 |
|
| unsigned long v; |
| 2163 |
0 |
▶ | res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); |
Branch: 1 branch
| Branch | True | False | Total |
| res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); |
0 |
0 |
0 |
|
| 2164 |
0 |
▶ | if (SWIG_IsOK(res) && val) *val = (size_t)(v); |
Branch: 2 branches
| Branch | True | False | Total |
| if (SWIG_IsOK(res) && val) *val = (size_t)(v); |
0 |
0 |
0 |
| if (SWIG_IsOK(res) && val) *val = (size_t)(v); |
0 |
0 |
0 |
|
| 2165 |
|
| #ifdef SWIG_LONG_LONG_AVAILABLE |
| 2166 |
|
| } else if (sizeof(size_t) <= sizeof(unsigned long long)) { |
| 2167 |
|
| unsigned long long v; |
| 2168 |
|
| res = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); |
| 2169 |
|
| if (SWIG_IsOK(res) && val) *val = (size_t)(v); |
| 2170 |
|
| } |
| 2171 |
|
| #endif |
| 2172 |
0 |
| return res; |
| 2173 |
|
| } |
| 2174 |
|
| |
| 2175 |
|
| #ifdef __cplusplus |
| 2176 |
|
| extern "C" { |
| 2177 |
|
| #endif |
| 2178 |
|
| |
| 2179 |
|
| #define MAGIC_CLASS |
| 2180 |
0 |
| SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) { |
| 2181 |
|
| MAGIC_PPERL |
| 2182 |
0 |
| croak("Value is read-only."); |
| 2183 |
|
| return 0; |
| 2184 |
|
| } |
| 2185 |
|
| |
| 2186 |
|
| #ifdef __cplusplus |
| 2187 |
|
| } |
| 2188 |
|
| #endif |
| 2189 |
|
| |
| 2190 |
|
| #ifdef __cplusplus |
| 2191 |
|
| extern "C" { |
| 2192 |
|
| #endif |
| 2193 |
0 |
| XS(_wrap_gsl_error) { |
| 2194 |
|
| { |
| 2195 |
0 |
| char *arg1 = (char *) 0 ; |
| 2196 |
0 |
| char *arg2 = (char *) 0 ; |
| 2197 |
|
| int arg3 ; |
| 2198 |
|
| int arg4 ; |
| 2199 |
|
| int res1 ; |
| 2200 |
0 |
| char *buf1 = 0 ; |
| 2201 |
0 |
| int alloc1 = 0 ; |
| 2202 |
|
| int res2 ; |
| 2203 |
0 |
| char *buf2 = 0 ; |
| 2204 |
0 |
| int alloc2 = 0 ; |
| 2205 |
|
| int val3 ; |
| 2206 |
0 |
| int ecode3 = 0 ; |
| 2207 |
|
| int val4 ; |
| 2208 |
0 |
| int ecode4 = 0 ; |
| 2209 |
0 |
| int argvi = 0; |
| 2210 |
0 |
| dXSARGS; |
| 2211 |
|
| |
| 2212 |
0 |
▶ | if ((items < 4) || (items > 4)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
|
| 2213 |
0 |
| SWIG_croak("Usage: gsl_error(reason,file,line,gsl_errno);"); |
| 2214 |
|
| } |
| 2215 |
0 |
| res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); |
| 2216 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2217 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_error" "', argument " "1"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_error" "', argument " "1"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 2218 |
|
| } |
| 2219 |
0 |
| arg1 = (char *)(buf1); |
| 2220 |
0 |
| res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
| 2221 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 2222 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_error" "', argument " "2"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_error" "', argument " "2"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 2223 |
|
| } |
| 2224 |
0 |
| arg2 = (char *)(buf2); |
| 2225 |
0 |
| ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 2226 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 2227 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_error" "', argument " "3"" of type '" "int""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_error" "', argument " "3"" of type '" "int""'"); |
0 |
0 |
0 |
|
| 2228 |
|
| } |
| 2229 |
0 |
| arg3 = (int)(val3); |
| 2230 |
0 |
| ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
| 2231 |
0 |
▶ | if (!SWIG_IsOK(ecode4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode4)) { |
0 |
0 |
0 |
|
| 2232 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_error" "', argument " "4"" of type '" "int""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_error" "', argument " "4"" of type '" "int""'"); |
0 |
0 |
0 |
|
| 2233 |
|
| } |
| 2234 |
0 |
| arg4 = (int)(val4); |
| 2235 |
0 |
| gsl_error((char const *)arg1,(char const *)arg2,arg3,arg4); |
| 2236 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 2237 |
0 |
▶ | if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
0 |
0 |
0 |
|
| 2238 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 2239 |
|
| |
| 2240 |
|
| |
| 2241 |
0 |
| XSRETURN(argvi); |
| 2242 |
0 |
| fail: |
| 2243 |
0 |
▶ | if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
0 |
0 |
0 |
|
| 2244 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 2245 |
|
| |
| 2246 |
|
| |
| 2247 |
0 |
| SWIG_croak_null(); |
| 2248 |
|
| } |
| 2249 |
|
| } |
| 2250 |
|
| |
| 2251 |
|
| |
| 2252 |
0 |
| XS(_wrap_gsl_stream_printf) { |
| 2253 |
|
| { |
| 2254 |
0 |
| char *arg1 = (char *) 0 ; |
| 2255 |
0 |
| char *arg2 = (char *) 0 ; |
| 2256 |
|
| int arg3 ; |
| 2257 |
0 |
| char *arg4 = (char *) 0 ; |
| 2258 |
|
| int res1 ; |
| 2259 |
0 |
| char *buf1 = 0 ; |
| 2260 |
0 |
| int alloc1 = 0 ; |
| 2261 |
|
| int res2 ; |
| 2262 |
0 |
| char *buf2 = 0 ; |
| 2263 |
0 |
| int alloc2 = 0 ; |
| 2264 |
|
| int val3 ; |
| 2265 |
0 |
| int ecode3 = 0 ; |
| 2266 |
|
| int res4 ; |
| 2267 |
0 |
| char *buf4 = 0 ; |
| 2268 |
0 |
| int alloc4 = 0 ; |
| 2269 |
0 |
| int argvi = 0; |
| 2270 |
0 |
| dXSARGS; |
| 2271 |
|
| |
| 2272 |
0 |
▶ | if ((items < 4) || (items > 4)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
|
| 2273 |
0 |
| SWIG_croak("Usage: gsl_stream_printf(label,file,line,reason);"); |
| 2274 |
|
| } |
| 2275 |
0 |
| res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); |
| 2276 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2277 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stream_printf" "', argument " "1"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stream_printf" "', argument " "1"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 2278 |
|
| } |
| 2279 |
0 |
| arg1 = (char *)(buf1); |
| 2280 |
0 |
| res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
| 2281 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 2282 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stream_printf" "', argument " "2"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stream_printf" "', argument " "2"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 2283 |
|
| } |
| 2284 |
0 |
| arg2 = (char *)(buf2); |
| 2285 |
0 |
| ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 2286 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 2287 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stream_printf" "', argument " "3"" of type '" "int""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stream_printf" "', argument " "3"" of type '" "int""'"); |
0 |
0 |
0 |
|
| 2288 |
|
| } |
| 2289 |
0 |
| arg3 = (int)(val3); |
| 2290 |
0 |
| res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); |
| 2291 |
0 |
▶ | if (!SWIG_IsOK(res4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res4)) { |
0 |
0 |
0 |
|
| 2292 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stream_printf" "', argument " "4"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stream_printf" "', argument " "4"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 2293 |
|
| } |
| 2294 |
0 |
| arg4 = (char *)(buf4); |
| 2295 |
0 |
| gsl_stream_printf((char const *)arg1,(char const *)arg2,arg3,(char const *)arg4); |
| 2296 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 2297 |
0 |
▶ | if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
0 |
0 |
0 |
|
| 2298 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 2299 |
|
| |
| 2300 |
0 |
▶ | if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); |
0 |
0 |
0 |
|
| 2301 |
0 |
| XSRETURN(argvi); |
| 2302 |
0 |
| fail: |
| 2303 |
0 |
▶ | if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
0 |
0 |
0 |
|
| 2304 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 2305 |
|
| |
| 2306 |
0 |
▶ | if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); |
0 |
0 |
0 |
|
| 2307 |
0 |
| SWIG_croak_null(); |
| 2308 |
|
| } |
| 2309 |
|
| } |
| 2310 |
|
| |
| 2311 |
|
| |
| 2312 |
0 |
| XS(_wrap_gsl_strerror) { |
| 2313 |
|
| { |
| 2314 |
|
| int arg1 ; |
| 2315 |
|
| int val1 ; |
| 2316 |
0 |
| int ecode1 = 0 ; |
| 2317 |
0 |
| int argvi = 0; |
| 2318 |
0 |
| char *result = 0 ; |
| 2319 |
0 |
| dXSARGS; |
| 2320 |
|
| |
| 2321 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2322 |
0 |
| SWIG_croak("Usage: gsl_strerror(gsl_errno);"); |
| 2323 |
|
| } |
| 2324 |
0 |
| ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
| 2325 |
0 |
▶ | if (!SWIG_IsOK(ecode1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode1)) { |
0 |
0 |
0 |
|
| 2326 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_strerror" "', argument " "1"" of type '" "int""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_strerror" "', argument " "1"" of type '" "int""'"); |
0 |
0 |
0 |
|
| 2327 |
|
| } |
| 2328 |
0 |
| arg1 = (int)(val1); |
| 2329 |
0 |
| result = (char *)gsl_strerror(arg1); |
| 2330 |
0 |
| ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
| 2331 |
|
| |
| 2332 |
0 |
| XSRETURN(argvi); |
| 2333 |
0 |
| fail: |
| 2334 |
|
| |
| 2335 |
0 |
| SWIG_croak_null(); |
| 2336 |
|
| } |
| 2337 |
|
| } |
| 2338 |
|
| |
| 2339 |
|
| |
| 2340 |
0 |
| XS(_wrap_gsl_set_error_handler) { |
| 2341 |
|
| { |
| 2342 |
0 |
| gsl_error_handler_t *arg1 = (gsl_error_handler_t *) 0 ; |
| 2343 |
0 |
| int argvi = 0; |
| 2344 |
0 |
| gsl_error_handler_t *result = 0 ; |
| 2345 |
0 |
| dXSARGS; |
| 2346 |
|
| |
| 2347 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2348 |
0 |
| SWIG_croak("Usage: gsl_set_error_handler(new_handler);"); |
| 2349 |
|
| } |
| 2350 |
|
| { |
| 2351 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(0), (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); |
| 2352 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2353 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_error_handler" "', argument " "1"" of type '" "gsl_error_handler_t *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_error_handler" "', argument " "1"" of type '" "gsl_error_handler_t *""'"); |
0 |
0 |
0 |
|
| 2354 |
|
| } |
| 2355 |
|
| } |
| 2356 |
0 |
| result = (gsl_error_handler_t *)gsl_set_error_handler(arg1); |
| 2357 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ; |
| 2358 |
|
| |
| 2359 |
0 |
| XSRETURN(argvi); |
| 2360 |
0 |
| fail: |
| 2361 |
|
| |
| 2362 |
0 |
| SWIG_croak_null(); |
| 2363 |
|
| } |
| 2364 |
|
| } |
| 2365 |
|
| |
| 2366 |
|
| |
| 2367 |
0 |
| XS(_wrap_gsl_set_error_handler_off) { |
| 2368 |
|
| { |
| 2369 |
0 |
| int argvi = 0; |
| 2370 |
0 |
| gsl_error_handler_t *result = 0 ; |
| 2371 |
0 |
| dXSARGS; |
| 2372 |
|
| |
| 2373 |
0 |
▶ | if ((items < 0) || (items > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
|
| 2374 |
0 |
| SWIG_croak("Usage: gsl_set_error_handler_off();"); |
| 2375 |
|
| } |
| 2376 |
0 |
| result = (gsl_error_handler_t *)gsl_set_error_handler_off(); |
| 2377 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ; |
| 2378 |
0 |
| XSRETURN(argvi); |
| 2379 |
0 |
| fail: |
| 2380 |
0 |
| SWIG_croak_null(); |
| 2381 |
|
| } |
| 2382 |
|
| } |
| 2383 |
|
| |
| 2384 |
|
| |
| 2385 |
0 |
| XS(_wrap_gsl_set_stream_handler) { |
| 2386 |
|
| { |
| 2387 |
0 |
| gsl_stream_handler_t *arg1 = (gsl_stream_handler_t *) 0 ; |
| 2388 |
0 |
| int argvi = 0; |
| 2389 |
0 |
| gsl_stream_handler_t *result = 0 ; |
| 2390 |
0 |
| dXSARGS; |
| 2391 |
|
| |
| 2392 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2393 |
0 |
| SWIG_croak("Usage: gsl_set_stream_handler(new_handler);"); |
| 2394 |
|
| } |
| 2395 |
|
| { |
| 2396 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(0), (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void); |
| 2397 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2398 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_stream_handler" "', argument " "1"" of type '" "gsl_stream_handler_t *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_stream_handler" "', argument " "1"" of type '" "gsl_stream_handler_t *""'"); |
0 |
0 |
0 |
|
| 2399 |
|
| } |
| 2400 |
|
| } |
| 2401 |
0 |
| result = (gsl_stream_handler_t *)gsl_set_stream_handler(arg1); |
| 2402 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void); argvi++ ; |
| 2403 |
|
| |
| 2404 |
0 |
| XSRETURN(argvi); |
| 2405 |
0 |
| fail: |
| 2406 |
|
| |
| 2407 |
0 |
| SWIG_croak_null(); |
| 2408 |
|
| } |
| 2409 |
|
| } |
| 2410 |
|
| |
| 2411 |
|
| |
| 2412 |
0 |
| XS(_wrap_gsl_set_stream) { |
| 2413 |
|
| { |
| 2414 |
0 |
| FILE *arg1 = (FILE *) 0 ; |
| 2415 |
0 |
| void *argp1 = 0 ; |
| 2416 |
0 |
| int res1 = 0 ; |
| 2417 |
0 |
| int argvi = 0; |
| 2418 |
0 |
| FILE *result = 0 ; |
| 2419 |
0 |
| dXSARGS; |
| 2420 |
|
| |
| 2421 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2422 |
0 |
| SWIG_croak("Usage: gsl_set_stream(new_stream);"); |
| 2423 |
|
| } |
| 2424 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 ); |
| 2425 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2426 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_set_stream" "', argument " "1"" of type '" "FILE *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_set_stream" "', argument " "1"" of type '" "FILE *""'"); |
0 |
0 |
0 |
|
| 2427 |
|
| } |
| 2428 |
0 |
| arg1 = (FILE *)(argp1); |
| 2429 |
0 |
| result = (FILE *)gsl_set_stream(arg1); |
| 2430 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0); argvi++ ; |
| 2431 |
|
| |
| 2432 |
0 |
| XSRETURN(argvi); |
| 2433 |
0 |
| fail: |
| 2434 |
|
| |
| 2435 |
0 |
| SWIG_croak_null(); |
| 2436 |
|
| } |
| 2437 |
|
| } |
| 2438 |
|
| |
| 2439 |
|
| |
| 2440 |
0 |
| XS(_wrap_gsl_wavelet2d_transform) { |
| 2441 |
|
| { |
| 2442 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 2443 |
0 |
| double *arg2 = (double *) 0 ; |
| 2444 |
|
| size_t arg3 ; |
| 2445 |
|
| size_t arg4 ; |
| 2446 |
|
| size_t arg5 ; |
| 2447 |
|
| gsl_wavelet_direction arg6 ; |
| 2448 |
0 |
| gsl_wavelet_workspace *arg7 = (gsl_wavelet_workspace *) 0 ; |
| 2449 |
0 |
| void *argp1 = 0 ; |
| 2450 |
0 |
| int res1 = 0 ; |
| 2451 |
|
| size_t val3 ; |
| 2452 |
0 |
| int ecode3 = 0 ; |
| 2453 |
|
| size_t val4 ; |
| 2454 |
0 |
| int ecode4 = 0 ; |
| 2455 |
|
| size_t val5 ; |
| 2456 |
0 |
| int ecode5 = 0 ; |
| 2457 |
|
| void *argp6 ; |
| 2458 |
0 |
| int res6 = 0 ; |
| 2459 |
0 |
| void *argp7 = 0 ; |
| 2460 |
0 |
| int res7 = 0 ; |
| 2461 |
0 |
| int argvi = 0; |
| 2462 |
|
| int result; |
| 2463 |
0 |
| dXSARGS; |
| 2464 |
|
| |
| 2465 |
0 |
▶ | if ((items < 7) || (items > 7)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 7) || (items > 7)) { |
0 |
0 |
0 |
| if ((items < 7) || (items > 7)) { |
0 |
0 |
0 |
|
| 2466 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_transform(w,data,tda,size1,size2,dir,work);"); |
| 2467 |
|
| } |
| 2468 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 2469 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2470 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 2471 |
|
| } |
| 2472 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 2473 |
|
| { |
| 2474 |
|
| AV *tempav; |
| 2475 |
|
| I32 len; |
| 2476 |
|
| int i; |
| 2477 |
|
| SV **tv; |
| 2478 |
0 |
▶ | if (!SvROK(ST(1))) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SvROK(ST(1))) |
0 |
0 |
0 |
|
| 2479 |
0 |
| croak("Math::GSL : $data is not a reference!"); |
| 2480 |
0 |
▶ | if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
0 |
0 |
0 |
|
| 2481 |
0 |
| croak("Math::GSL : $data is not an array ref!"); |
| 2482 |
|
| |
| 2483 |
0 |
| tempav = (AV*)SvRV(ST(1)); |
| 2484 |
0 |
| len = av_len(tempav); |
| 2485 |
0 |
| arg2 = (double *) malloc((len+2)*sizeof(double)); |
| 2486 |
0 |
▶ | for (i = 0; i <= len; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i <= len; i++) { |
0 |
0 |
0 |
|
| 2487 |
0 |
| tv = av_fetch(tempav, i, 0); |
| 2488 |
0 |
| arg2[i] = (double) SvNV(*tv); |
| 2489 |
|
| } |
| 2490 |
|
| } |
| 2491 |
0 |
| ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 2492 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 2493 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_transform" "', argument " "3"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_transform" "', argument " "3"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2494 |
|
| } |
| 2495 |
0 |
| arg3 = (size_t)(val3); |
| 2496 |
0 |
| ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
| 2497 |
0 |
▶ | if (!SWIG_IsOK(ecode4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode4)) { |
0 |
0 |
0 |
|
| 2498 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_transform" "', argument " "4"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_transform" "', argument " "4"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2499 |
|
| } |
| 2500 |
0 |
| arg4 = (size_t)(val4); |
| 2501 |
0 |
| ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5); |
| 2502 |
0 |
▶ | if (!SWIG_IsOK(ecode5)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode5)) { |
0 |
0 |
0 |
|
| 2503 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_transform" "', argument " "5"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_transform" "', argument " "5"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2504 |
|
| } |
| 2505 |
0 |
| arg5 = (size_t)(val5); |
| 2506 |
|
| { |
| 2507 |
0 |
| res6 = SWIG_ConvertPtr(ST(5), &argp6, SWIGTYPE_p_gsl_wavelet_direction, 0 ); |
| 2508 |
0 |
▶ | if (!SWIG_IsOK(res6)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res6)) { |
0 |
0 |
0 |
|
| 2509 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_transform" "', argument " "6"" of type '" "gsl_wavelet_direction""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_transform" "', argument " "6"" of type '" "gsl_wavelet_direction""'"); |
0 |
0 |
0 |
|
| 2510 |
|
| } |
| 2511 |
0 |
▶ | if (!argp6) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!argp6) { |
0 |
0 |
0 |
|
| 2512 |
0 |
| SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_wavelet2d_transform" "', argument " "6"" of type '" "gsl_wavelet_direction""'"); |
| 2513 |
|
| } else { |
| 2514 |
0 |
| arg6 = *((gsl_wavelet_direction *)(argp6)); |
| 2515 |
|
| } |
| 2516 |
|
| } |
| 2517 |
0 |
| res7 = SWIG_ConvertPtr(ST(6), &argp7,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 2518 |
0 |
▶ | if (!SWIG_IsOK(res7)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res7)) { |
0 |
0 |
0 |
|
| 2519 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "gsl_wavelet2d_transform" "', argument " "7"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "gsl_wavelet2d_transform" "', argument " "7"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 2520 |
|
| } |
| 2521 |
0 |
| arg7 = (gsl_wavelet_workspace *)(argp7); |
| 2522 |
0 |
| result = (int)gsl_wavelet2d_transform((gsl_wavelet const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
| 2523 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 2524 |
|
| |
| 2525 |
|
| { |
| 2526 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 2527 |
|
| } |
| 2528 |
|
| |
| 2529 |
|
| |
| 2530 |
|
| |
| 2531 |
|
| |
| 2532 |
0 |
| XSRETURN(argvi); |
| 2533 |
0 |
| fail: |
| 2534 |
|
| |
| 2535 |
|
| { |
| 2536 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 2537 |
|
| } |
| 2538 |
|
| |
| 2539 |
|
| |
| 2540 |
|
| |
| 2541 |
|
| |
| 2542 |
0 |
| SWIG_croak_null(); |
| 2543 |
|
| } |
| 2544 |
|
| } |
| 2545 |
|
| |
| 2546 |
|
| |
| 2547 |
0 |
| XS(_wrap_gsl_wavelet2d_transform_forward) { |
| 2548 |
|
| { |
| 2549 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 2550 |
0 |
| double *arg2 = (double *) 0 ; |
| 2551 |
|
| size_t arg3 ; |
| 2552 |
|
| size_t arg4 ; |
| 2553 |
|
| size_t arg5 ; |
| 2554 |
0 |
| gsl_wavelet_workspace *arg6 = (gsl_wavelet_workspace *) 0 ; |
| 2555 |
0 |
| void *argp1 = 0 ; |
| 2556 |
0 |
| int res1 = 0 ; |
| 2557 |
|
| size_t val3 ; |
| 2558 |
0 |
| int ecode3 = 0 ; |
| 2559 |
|
| size_t val4 ; |
| 2560 |
0 |
| int ecode4 = 0 ; |
| 2561 |
|
| size_t val5 ; |
| 2562 |
0 |
| int ecode5 = 0 ; |
| 2563 |
0 |
| void *argp6 = 0 ; |
| 2564 |
0 |
| int res6 = 0 ; |
| 2565 |
0 |
| int argvi = 0; |
| 2566 |
|
| int result; |
| 2567 |
0 |
| dXSARGS; |
| 2568 |
|
| |
| 2569 |
0 |
▶ | if ((items < 6) || (items > 6)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 6) || (items > 6)) { |
0 |
0 |
0 |
| if ((items < 6) || (items > 6)) { |
0 |
0 |
0 |
|
| 2570 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_transform_forward(w,data,tda,size1,size2,work);"); |
| 2571 |
|
| } |
| 2572 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 2573 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2574 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform_forward" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform_forward" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 2575 |
|
| } |
| 2576 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 2577 |
|
| { |
| 2578 |
|
| AV *tempav; |
| 2579 |
|
| I32 len; |
| 2580 |
|
| int i; |
| 2581 |
|
| SV **tv; |
| 2582 |
0 |
▶ | if (!SvROK(ST(1))) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SvROK(ST(1))) |
0 |
0 |
0 |
|
| 2583 |
0 |
| croak("Math::GSL : $data is not a reference!"); |
| 2584 |
0 |
▶ | if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
0 |
0 |
0 |
|
| 2585 |
0 |
| croak("Math::GSL : $data is not an array ref!"); |
| 2586 |
|
| |
| 2587 |
0 |
| tempav = (AV*)SvRV(ST(1)); |
| 2588 |
0 |
| len = av_len(tempav); |
| 2589 |
0 |
| arg2 = (double *) malloc((len+2)*sizeof(double)); |
| 2590 |
0 |
▶ | for (i = 0; i <= len; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i <= len; i++) { |
0 |
0 |
0 |
|
| 2591 |
0 |
| tv = av_fetch(tempav, i, 0); |
| 2592 |
0 |
| arg2[i] = (double) SvNV(*tv); |
| 2593 |
|
| } |
| 2594 |
|
| } |
| 2595 |
0 |
| ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 2596 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 2597 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_transform_forward" "', argument " "3"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_transform_forward" "', argument " "3"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2598 |
|
| } |
| 2599 |
0 |
| arg3 = (size_t)(val3); |
| 2600 |
0 |
| ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
| 2601 |
0 |
▶ | if (!SWIG_IsOK(ecode4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode4)) { |
0 |
0 |
0 |
|
| 2602 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_transform_forward" "', argument " "4"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_transform_forward" "', argument " "4"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2603 |
|
| } |
| 2604 |
0 |
| arg4 = (size_t)(val4); |
| 2605 |
0 |
| ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5); |
| 2606 |
0 |
▶ | if (!SWIG_IsOK(ecode5)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode5)) { |
0 |
0 |
0 |
|
| 2607 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_transform_forward" "', argument " "5"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_transform_forward" "', argument " "5"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2608 |
|
| } |
| 2609 |
0 |
| arg5 = (size_t)(val5); |
| 2610 |
0 |
| res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 2611 |
0 |
▶ | if (!SWIG_IsOK(res6)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res6)) { |
0 |
0 |
0 |
|
| 2612 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_transform_forward" "', argument " "6"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_transform_forward" "', argument " "6"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 2613 |
|
| } |
| 2614 |
0 |
| arg6 = (gsl_wavelet_workspace *)(argp6); |
| 2615 |
0 |
| result = (int)gsl_wavelet2d_transform_forward((gsl_wavelet const *)arg1,arg2,arg3,arg4,arg5,arg6); |
| 2616 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 2617 |
|
| |
| 2618 |
|
| { |
| 2619 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 2620 |
|
| } |
| 2621 |
|
| |
| 2622 |
|
| |
| 2623 |
|
| |
| 2624 |
|
| |
| 2625 |
0 |
| XSRETURN(argvi); |
| 2626 |
0 |
| fail: |
| 2627 |
|
| |
| 2628 |
|
| { |
| 2629 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 2630 |
|
| } |
| 2631 |
|
| |
| 2632 |
|
| |
| 2633 |
|
| |
| 2634 |
|
| |
| 2635 |
0 |
| SWIG_croak_null(); |
| 2636 |
|
| } |
| 2637 |
|
| } |
| 2638 |
|
| |
| 2639 |
|
| |
| 2640 |
0 |
| XS(_wrap_gsl_wavelet2d_transform_inverse) { |
| 2641 |
|
| { |
| 2642 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 2643 |
0 |
| double *arg2 = (double *) 0 ; |
| 2644 |
|
| size_t arg3 ; |
| 2645 |
|
| size_t arg4 ; |
| 2646 |
|
| size_t arg5 ; |
| 2647 |
0 |
| gsl_wavelet_workspace *arg6 = (gsl_wavelet_workspace *) 0 ; |
| 2648 |
0 |
| void *argp1 = 0 ; |
| 2649 |
0 |
| int res1 = 0 ; |
| 2650 |
|
| size_t val3 ; |
| 2651 |
0 |
| int ecode3 = 0 ; |
| 2652 |
|
| size_t val4 ; |
| 2653 |
0 |
| int ecode4 = 0 ; |
| 2654 |
|
| size_t val5 ; |
| 2655 |
0 |
| int ecode5 = 0 ; |
| 2656 |
0 |
| void *argp6 = 0 ; |
| 2657 |
0 |
| int res6 = 0 ; |
| 2658 |
0 |
| int argvi = 0; |
| 2659 |
|
| int result; |
| 2660 |
0 |
| dXSARGS; |
| 2661 |
|
| |
| 2662 |
0 |
▶ | if ((items < 6) || (items > 6)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 6) || (items > 6)) { |
0 |
0 |
0 |
| if ((items < 6) || (items > 6)) { |
0 |
0 |
0 |
|
| 2663 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_transform_inverse(w,data,tda,size1,size2,work);"); |
| 2664 |
|
| } |
| 2665 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 2666 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2667 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform_inverse" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform_inverse" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 2668 |
|
| } |
| 2669 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 2670 |
|
| { |
| 2671 |
|
| AV *tempav; |
| 2672 |
|
| I32 len; |
| 2673 |
|
| int i; |
| 2674 |
|
| SV **tv; |
| 2675 |
0 |
▶ | if (!SvROK(ST(1))) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SvROK(ST(1))) |
0 |
0 |
0 |
|
| 2676 |
0 |
| croak("Math::GSL : $data is not a reference!"); |
| 2677 |
0 |
▶ | if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
0 |
0 |
0 |
|
| 2678 |
0 |
| croak("Math::GSL : $data is not an array ref!"); |
| 2679 |
|
| |
| 2680 |
0 |
| tempav = (AV*)SvRV(ST(1)); |
| 2681 |
0 |
| len = av_len(tempav); |
| 2682 |
0 |
| arg2 = (double *) malloc((len+2)*sizeof(double)); |
| 2683 |
0 |
▶ | for (i = 0; i <= len; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i <= len; i++) { |
0 |
0 |
0 |
|
| 2684 |
0 |
| tv = av_fetch(tempav, i, 0); |
| 2685 |
0 |
| arg2[i] = (double) SvNV(*tv); |
| 2686 |
|
| } |
| 2687 |
|
| } |
| 2688 |
0 |
| ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 2689 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 2690 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_transform_inverse" "', argument " "3"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_transform_inverse" "', argument " "3"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2691 |
|
| } |
| 2692 |
0 |
| arg3 = (size_t)(val3); |
| 2693 |
0 |
| ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
| 2694 |
0 |
▶ | if (!SWIG_IsOK(ecode4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode4)) { |
0 |
0 |
0 |
|
| 2695 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_transform_inverse" "', argument " "4"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_transform_inverse" "', argument " "4"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2696 |
|
| } |
| 2697 |
0 |
| arg4 = (size_t)(val4); |
| 2698 |
0 |
| ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5); |
| 2699 |
0 |
▶ | if (!SWIG_IsOK(ecode5)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode5)) { |
0 |
0 |
0 |
|
| 2700 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_transform_inverse" "', argument " "5"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_transform_inverse" "', argument " "5"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2701 |
|
| } |
| 2702 |
0 |
| arg5 = (size_t)(val5); |
| 2703 |
0 |
| res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 2704 |
0 |
▶ | if (!SWIG_IsOK(res6)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res6)) { |
0 |
0 |
0 |
|
| 2705 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_transform_inverse" "', argument " "6"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_transform_inverse" "', argument " "6"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 2706 |
|
| } |
| 2707 |
0 |
| arg6 = (gsl_wavelet_workspace *)(argp6); |
| 2708 |
0 |
| result = (int)gsl_wavelet2d_transform_inverse((gsl_wavelet const *)arg1,arg2,arg3,arg4,arg5,arg6); |
| 2709 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 2710 |
|
| |
| 2711 |
|
| { |
| 2712 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 2713 |
|
| } |
| 2714 |
|
| |
| 2715 |
|
| |
| 2716 |
|
| |
| 2717 |
|
| |
| 2718 |
0 |
| XSRETURN(argvi); |
| 2719 |
0 |
| fail: |
| 2720 |
|
| |
| 2721 |
|
| { |
| 2722 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 2723 |
|
| } |
| 2724 |
|
| |
| 2725 |
|
| |
| 2726 |
|
| |
| 2727 |
|
| |
| 2728 |
0 |
| SWIG_croak_null(); |
| 2729 |
|
| } |
| 2730 |
|
| } |
| 2731 |
|
| |
| 2732 |
|
| |
| 2733 |
0 |
| XS(_wrap_gsl_wavelet2d_nstransform) { |
| 2734 |
|
| { |
| 2735 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 2736 |
0 |
| double *arg2 = (double *) 0 ; |
| 2737 |
|
| size_t arg3 ; |
| 2738 |
|
| size_t arg4 ; |
| 2739 |
|
| size_t arg5 ; |
| 2740 |
|
| gsl_wavelet_direction arg6 ; |
| 2741 |
0 |
| gsl_wavelet_workspace *arg7 = (gsl_wavelet_workspace *) 0 ; |
| 2742 |
0 |
| void *argp1 = 0 ; |
| 2743 |
0 |
| int res1 = 0 ; |
| 2744 |
|
| size_t val3 ; |
| 2745 |
0 |
| int ecode3 = 0 ; |
| 2746 |
|
| size_t val4 ; |
| 2747 |
0 |
| int ecode4 = 0 ; |
| 2748 |
|
| size_t val5 ; |
| 2749 |
0 |
| int ecode5 = 0 ; |
| 2750 |
|
| void *argp6 ; |
| 2751 |
0 |
| int res6 = 0 ; |
| 2752 |
0 |
| void *argp7 = 0 ; |
| 2753 |
0 |
| int res7 = 0 ; |
| 2754 |
0 |
| int argvi = 0; |
| 2755 |
|
| int result; |
| 2756 |
0 |
| dXSARGS; |
| 2757 |
|
| |
| 2758 |
0 |
▶ | if ((items < 7) || (items > 7)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 7) || (items > 7)) { |
0 |
0 |
0 |
| if ((items < 7) || (items > 7)) { |
0 |
0 |
0 |
|
| 2759 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_nstransform(w,data,tda,size1,size2,dir,work);"); |
| 2760 |
|
| } |
| 2761 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 2762 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2763 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 2764 |
|
| } |
| 2765 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 2766 |
|
| { |
| 2767 |
|
| AV *tempav; |
| 2768 |
|
| I32 len; |
| 2769 |
|
| int i; |
| 2770 |
|
| SV **tv; |
| 2771 |
0 |
▶ | if (!SvROK(ST(1))) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SvROK(ST(1))) |
0 |
0 |
0 |
|
| 2772 |
0 |
| croak("Math::GSL : $data is not a reference!"); |
| 2773 |
0 |
▶ | if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
0 |
0 |
0 |
|
| 2774 |
0 |
| croak("Math::GSL : $data is not an array ref!"); |
| 2775 |
|
| |
| 2776 |
0 |
| tempav = (AV*)SvRV(ST(1)); |
| 2777 |
0 |
| len = av_len(tempav); |
| 2778 |
0 |
| arg2 = (double *) malloc((len+2)*sizeof(double)); |
| 2779 |
0 |
▶ | for (i = 0; i <= len; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i <= len; i++) { |
0 |
0 |
0 |
|
| 2780 |
0 |
| tv = av_fetch(tempav, i, 0); |
| 2781 |
0 |
| arg2[i] = (double) SvNV(*tv); |
| 2782 |
|
| } |
| 2783 |
|
| } |
| 2784 |
0 |
| ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 2785 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 2786 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_nstransform" "', argument " "3"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_nstransform" "', argument " "3"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2787 |
|
| } |
| 2788 |
0 |
| arg3 = (size_t)(val3); |
| 2789 |
0 |
| ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
| 2790 |
0 |
▶ | if (!SWIG_IsOK(ecode4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode4)) { |
0 |
0 |
0 |
|
| 2791 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_nstransform" "', argument " "4"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_nstransform" "', argument " "4"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2792 |
|
| } |
| 2793 |
0 |
| arg4 = (size_t)(val4); |
| 2794 |
0 |
| ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5); |
| 2795 |
0 |
▶ | if (!SWIG_IsOK(ecode5)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode5)) { |
0 |
0 |
0 |
|
| 2796 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_nstransform" "', argument " "5"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_nstransform" "', argument " "5"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2797 |
|
| } |
| 2798 |
0 |
| arg5 = (size_t)(val5); |
| 2799 |
|
| { |
| 2800 |
0 |
| res6 = SWIG_ConvertPtr(ST(5), &argp6, SWIGTYPE_p_gsl_wavelet_direction, 0 ); |
| 2801 |
0 |
▶ | if (!SWIG_IsOK(res6)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res6)) { |
0 |
0 |
0 |
|
| 2802 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_nstransform" "', argument " "6"" of type '" "gsl_wavelet_direction""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_nstransform" "', argument " "6"" of type '" "gsl_wavelet_direction""'"); |
0 |
0 |
0 |
|
| 2803 |
|
| } |
| 2804 |
0 |
▶ | if (!argp6) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!argp6) { |
0 |
0 |
0 |
|
| 2805 |
0 |
| SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_wavelet2d_nstransform" "', argument " "6"" of type '" "gsl_wavelet_direction""'"); |
| 2806 |
|
| } else { |
| 2807 |
0 |
| arg6 = *((gsl_wavelet_direction *)(argp6)); |
| 2808 |
|
| } |
| 2809 |
|
| } |
| 2810 |
0 |
| res7 = SWIG_ConvertPtr(ST(6), &argp7,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 2811 |
0 |
▶ | if (!SWIG_IsOK(res7)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res7)) { |
0 |
0 |
0 |
|
| 2812 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "gsl_wavelet2d_nstransform" "', argument " "7"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "gsl_wavelet2d_nstransform" "', argument " "7"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 2813 |
|
| } |
| 2814 |
0 |
| arg7 = (gsl_wavelet_workspace *)(argp7); |
| 2815 |
0 |
| result = (int)gsl_wavelet2d_nstransform((gsl_wavelet const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
| 2816 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 2817 |
|
| |
| 2818 |
|
| { |
| 2819 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 2820 |
|
| } |
| 2821 |
|
| |
| 2822 |
|
| |
| 2823 |
|
| |
| 2824 |
|
| |
| 2825 |
0 |
| XSRETURN(argvi); |
| 2826 |
0 |
| fail: |
| 2827 |
|
| |
| 2828 |
|
| { |
| 2829 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 2830 |
|
| } |
| 2831 |
|
| |
| 2832 |
|
| |
| 2833 |
|
| |
| 2834 |
|
| |
| 2835 |
0 |
| SWIG_croak_null(); |
| 2836 |
|
| } |
| 2837 |
|
| } |
| 2838 |
|
| |
| 2839 |
|
| |
| 2840 |
0 |
| XS(_wrap_gsl_wavelet2d_nstransform_forward) { |
| 2841 |
|
| { |
| 2842 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 2843 |
0 |
| double *arg2 = (double *) 0 ; |
| 2844 |
|
| size_t arg3 ; |
| 2845 |
|
| size_t arg4 ; |
| 2846 |
|
| size_t arg5 ; |
| 2847 |
0 |
| gsl_wavelet_workspace *arg6 = (gsl_wavelet_workspace *) 0 ; |
| 2848 |
0 |
| void *argp1 = 0 ; |
| 2849 |
0 |
| int res1 = 0 ; |
| 2850 |
|
| size_t val3 ; |
| 2851 |
0 |
| int ecode3 = 0 ; |
| 2852 |
|
| size_t val4 ; |
| 2853 |
0 |
| int ecode4 = 0 ; |
| 2854 |
|
| size_t val5 ; |
| 2855 |
0 |
| int ecode5 = 0 ; |
| 2856 |
0 |
| void *argp6 = 0 ; |
| 2857 |
0 |
| int res6 = 0 ; |
| 2858 |
0 |
| int argvi = 0; |
| 2859 |
|
| int result; |
| 2860 |
0 |
| dXSARGS; |
| 2861 |
|
| |
| 2862 |
0 |
▶ | if ((items < 6) || (items > 6)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 6) || (items > 6)) { |
0 |
0 |
0 |
| if ((items < 6) || (items > 6)) { |
0 |
0 |
0 |
|
| 2863 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_nstransform_forward(w,data,tda,size1,size2,work);"); |
| 2864 |
|
| } |
| 2865 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 2866 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2867 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform_forward" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform_forward" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 2868 |
|
| } |
| 2869 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 2870 |
|
| { |
| 2871 |
|
| AV *tempav; |
| 2872 |
|
| I32 len; |
| 2873 |
|
| int i; |
| 2874 |
|
| SV **tv; |
| 2875 |
0 |
▶ | if (!SvROK(ST(1))) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SvROK(ST(1))) |
0 |
0 |
0 |
|
| 2876 |
0 |
| croak("Math::GSL : $data is not a reference!"); |
| 2877 |
0 |
▶ | if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
0 |
0 |
0 |
|
| 2878 |
0 |
| croak("Math::GSL : $data is not an array ref!"); |
| 2879 |
|
| |
| 2880 |
0 |
| tempav = (AV*)SvRV(ST(1)); |
| 2881 |
0 |
| len = av_len(tempav); |
| 2882 |
0 |
| arg2 = (double *) malloc((len+2)*sizeof(double)); |
| 2883 |
0 |
▶ | for (i = 0; i <= len; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i <= len; i++) { |
0 |
0 |
0 |
|
| 2884 |
0 |
| tv = av_fetch(tempav, i, 0); |
| 2885 |
0 |
| arg2[i] = (double) SvNV(*tv); |
| 2886 |
|
| } |
| 2887 |
|
| } |
| 2888 |
0 |
| ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 2889 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 2890 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_nstransform_forward" "', argument " "3"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_nstransform_forward" "', argument " "3"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2891 |
|
| } |
| 2892 |
0 |
| arg3 = (size_t)(val3); |
| 2893 |
0 |
| ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
| 2894 |
0 |
▶ | if (!SWIG_IsOK(ecode4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode4)) { |
0 |
0 |
0 |
|
| 2895 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_nstransform_forward" "', argument " "4"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_nstransform_forward" "', argument " "4"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2896 |
|
| } |
| 2897 |
0 |
| arg4 = (size_t)(val4); |
| 2898 |
0 |
| ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5); |
| 2899 |
0 |
▶ | if (!SWIG_IsOK(ecode5)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode5)) { |
0 |
0 |
0 |
|
| 2900 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_nstransform_forward" "', argument " "5"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_nstransform_forward" "', argument " "5"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2901 |
|
| } |
| 2902 |
0 |
| arg5 = (size_t)(val5); |
| 2903 |
0 |
| res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 2904 |
0 |
▶ | if (!SWIG_IsOK(res6)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res6)) { |
0 |
0 |
0 |
|
| 2905 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_nstransform_forward" "', argument " "6"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_nstransform_forward" "', argument " "6"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 2906 |
|
| } |
| 2907 |
0 |
| arg6 = (gsl_wavelet_workspace *)(argp6); |
| 2908 |
0 |
| result = (int)gsl_wavelet2d_nstransform_forward((gsl_wavelet const *)arg1,arg2,arg3,arg4,arg5,arg6); |
| 2909 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 2910 |
|
| |
| 2911 |
|
| { |
| 2912 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 2913 |
|
| } |
| 2914 |
|
| |
| 2915 |
|
| |
| 2916 |
|
| |
| 2917 |
|
| |
| 2918 |
0 |
| XSRETURN(argvi); |
| 2919 |
0 |
| fail: |
| 2920 |
|
| |
| 2921 |
|
| { |
| 2922 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 2923 |
|
| } |
| 2924 |
|
| |
| 2925 |
|
| |
| 2926 |
|
| |
| 2927 |
|
| |
| 2928 |
0 |
| SWIG_croak_null(); |
| 2929 |
|
| } |
| 2930 |
|
| } |
| 2931 |
|
| |
| 2932 |
|
| |
| 2933 |
0 |
| XS(_wrap_gsl_wavelet2d_nstransform_inverse) { |
| 2934 |
|
| { |
| 2935 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 2936 |
0 |
| double *arg2 = (double *) 0 ; |
| 2937 |
|
| size_t arg3 ; |
| 2938 |
|
| size_t arg4 ; |
| 2939 |
|
| size_t arg5 ; |
| 2940 |
0 |
| gsl_wavelet_workspace *arg6 = (gsl_wavelet_workspace *) 0 ; |
| 2941 |
0 |
| void *argp1 = 0 ; |
| 2942 |
0 |
| int res1 = 0 ; |
| 2943 |
|
| size_t val3 ; |
| 2944 |
0 |
| int ecode3 = 0 ; |
| 2945 |
|
| size_t val4 ; |
| 2946 |
0 |
| int ecode4 = 0 ; |
| 2947 |
|
| size_t val5 ; |
| 2948 |
0 |
| int ecode5 = 0 ; |
| 2949 |
0 |
| void *argp6 = 0 ; |
| 2950 |
0 |
| int res6 = 0 ; |
| 2951 |
0 |
| int argvi = 0; |
| 2952 |
|
| int result; |
| 2953 |
0 |
| dXSARGS; |
| 2954 |
|
| |
| 2955 |
0 |
▶ | if ((items < 6) || (items > 6)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 6) || (items > 6)) { |
0 |
0 |
0 |
| if ((items < 6) || (items > 6)) { |
0 |
0 |
0 |
|
| 2956 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_nstransform_inverse(w,data,tda,size1,size2,work);"); |
| 2957 |
|
| } |
| 2958 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 2959 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2960 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform_inverse" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform_inverse" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 2961 |
|
| } |
| 2962 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 2963 |
|
| { |
| 2964 |
|
| AV *tempav; |
| 2965 |
|
| I32 len; |
| 2966 |
|
| int i; |
| 2967 |
|
| SV **tv; |
| 2968 |
0 |
▶ | if (!SvROK(ST(1))) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SvROK(ST(1))) |
0 |
0 |
0 |
|
| 2969 |
0 |
| croak("Math::GSL : $data is not a reference!"); |
| 2970 |
0 |
▶ | if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) |
0 |
0 |
0 |
|
| 2971 |
0 |
| croak("Math::GSL : $data is not an array ref!"); |
| 2972 |
|
| |
| 2973 |
0 |
| tempav = (AV*)SvRV(ST(1)); |
| 2974 |
0 |
| len = av_len(tempav); |
| 2975 |
0 |
| arg2 = (double *) malloc((len+2)*sizeof(double)); |
| 2976 |
0 |
▶ | for (i = 0; i <= len; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i <= len; i++) { |
0 |
0 |
0 |
|
| 2977 |
0 |
| tv = av_fetch(tempav, i, 0); |
| 2978 |
0 |
| arg2[i] = (double) SvNV(*tv); |
| 2979 |
|
| } |
| 2980 |
|
| } |
| 2981 |
0 |
| ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 2982 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 2983 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_nstransform_inverse" "', argument " "3"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_wavelet2d_nstransform_inverse" "', argument " "3"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2984 |
|
| } |
| 2985 |
0 |
| arg3 = (size_t)(val3); |
| 2986 |
0 |
| ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
| 2987 |
0 |
▶ | if (!SWIG_IsOK(ecode4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode4)) { |
0 |
0 |
0 |
|
| 2988 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_nstransform_inverse" "', argument " "4"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_wavelet2d_nstransform_inverse" "', argument " "4"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2989 |
|
| } |
| 2990 |
0 |
| arg4 = (size_t)(val4); |
| 2991 |
0 |
| ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5); |
| 2992 |
0 |
▶ | if (!SWIG_IsOK(ecode5)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode5)) { |
0 |
0 |
0 |
|
| 2993 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_nstransform_inverse" "', argument " "5"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_wavelet2d_nstransform_inverse" "', argument " "5"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2994 |
|
| } |
| 2995 |
0 |
| arg5 = (size_t)(val5); |
| 2996 |
0 |
| res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 2997 |
0 |
▶ | if (!SWIG_IsOK(res6)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res6)) { |
0 |
0 |
0 |
|
| 2998 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_nstransform_inverse" "', argument " "6"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_wavelet2d_nstransform_inverse" "', argument " "6"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 2999 |
|
| } |
| 3000 |
0 |
| arg6 = (gsl_wavelet_workspace *)(argp6); |
| 3001 |
0 |
| result = (int)gsl_wavelet2d_nstransform_inverse((gsl_wavelet const *)arg1,arg2,arg3,arg4,arg5,arg6); |
| 3002 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 3003 |
|
| |
| 3004 |
|
| { |
| 3005 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 3006 |
|
| } |
| 3007 |
|
| |
| 3008 |
|
| |
| 3009 |
|
| |
| 3010 |
|
| |
| 3011 |
0 |
| XSRETURN(argvi); |
| 3012 |
0 |
| fail: |
| 3013 |
|
| |
| 3014 |
|
| { |
| 3015 |
0 |
▶ | if (arg2) free(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) free(arg2); |
0 |
0 |
0 |
|
| 3016 |
|
| } |
| 3017 |
|
| |
| 3018 |
|
| |
| 3019 |
|
| |
| 3020 |
|
| |
| 3021 |
0 |
| SWIG_croak_null(); |
| 3022 |
|
| } |
| 3023 |
|
| } |
| 3024 |
|
| |
| 3025 |
|
| |
| 3026 |
0 |
| XS(_wrap_gsl_wavelet2d_transform_matrix) { |
| 3027 |
|
| { |
| 3028 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 3029 |
0 |
| gsl_matrix *arg2 = (gsl_matrix *) 0 ; |
| 3030 |
|
| gsl_wavelet_direction arg3 ; |
| 3031 |
0 |
| gsl_wavelet_workspace *arg4 = (gsl_wavelet_workspace *) 0 ; |
| 3032 |
0 |
| void *argp1 = 0 ; |
| 3033 |
0 |
| int res1 = 0 ; |
| 3034 |
0 |
| void *argp2 = 0 ; |
| 3035 |
0 |
| int res2 = 0 ; |
| 3036 |
|
| void *argp3 ; |
| 3037 |
0 |
| int res3 = 0 ; |
| 3038 |
0 |
| void *argp4 = 0 ; |
| 3039 |
0 |
| int res4 = 0 ; |
| 3040 |
0 |
| int argvi = 0; |
| 3041 |
|
| int result; |
| 3042 |
0 |
| dXSARGS; |
| 3043 |
|
| |
| 3044 |
0 |
▶ | if ((items < 4) || (items > 4)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
|
| 3045 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_transform_matrix(w,a,dir,work);"); |
| 3046 |
|
| } |
| 3047 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 3048 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3049 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform_matrix" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform_matrix" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 3050 |
|
| } |
| 3051 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 3052 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_matrix, 0 | 0 ); |
| 3053 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3054 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_transform_matrix" "', argument " "2"" of type '" "gsl_matrix *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_transform_matrix" "', argument " "2"" of type '" "gsl_matrix *""'"); |
0 |
0 |
0 |
|
| 3055 |
|
| } |
| 3056 |
0 |
| arg2 = (gsl_matrix *)(argp2); |
| 3057 |
|
| { |
| 3058 |
0 |
| res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_gsl_wavelet_direction, 0 ); |
| 3059 |
0 |
▶ | if (!SWIG_IsOK(res3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res3)) { |
0 |
0 |
0 |
|
| 3060 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_transform_matrix" "', argument " "3"" of type '" "gsl_wavelet_direction""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_transform_matrix" "', argument " "3"" of type '" "gsl_wavelet_direction""'"); |
0 |
0 |
0 |
|
| 3061 |
|
| } |
| 3062 |
0 |
▶ | if (!argp3) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!argp3) { |
0 |
0 |
0 |
|
| 3063 |
0 |
| SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_wavelet2d_transform_matrix" "', argument " "3"" of type '" "gsl_wavelet_direction""'"); |
| 3064 |
|
| } else { |
| 3065 |
0 |
| arg3 = *((gsl_wavelet_direction *)(argp3)); |
| 3066 |
|
| } |
| 3067 |
|
| } |
| 3068 |
0 |
| res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 3069 |
0 |
▶ | if (!SWIG_IsOK(res4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res4)) { |
0 |
0 |
0 |
|
| 3070 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_wavelet2d_transform_matrix" "', argument " "4"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_wavelet2d_transform_matrix" "', argument " "4"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 3071 |
|
| } |
| 3072 |
0 |
| arg4 = (gsl_wavelet_workspace *)(argp4); |
| 3073 |
0 |
| result = (int)gsl_wavelet2d_transform_matrix((gsl_wavelet const *)arg1,arg2,arg3,arg4); |
| 3074 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 3075 |
|
| |
| 3076 |
|
| |
| 3077 |
|
| |
| 3078 |
0 |
| XSRETURN(argvi); |
| 3079 |
0 |
| fail: |
| 3080 |
|
| |
| 3081 |
|
| |
| 3082 |
|
| |
| 3083 |
0 |
| SWIG_croak_null(); |
| 3084 |
|
| } |
| 3085 |
|
| } |
| 3086 |
|
| |
| 3087 |
|
| |
| 3088 |
0 |
| XS(_wrap_gsl_wavelet2d_transform_matrix_forward) { |
| 3089 |
|
| { |
| 3090 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 3091 |
0 |
| gsl_matrix *arg2 = (gsl_matrix *) 0 ; |
| 3092 |
0 |
| gsl_wavelet_workspace *arg3 = (gsl_wavelet_workspace *) 0 ; |
| 3093 |
0 |
| void *argp1 = 0 ; |
| 3094 |
0 |
| int res1 = 0 ; |
| 3095 |
0 |
| void *argp2 = 0 ; |
| 3096 |
0 |
| int res2 = 0 ; |
| 3097 |
0 |
| void *argp3 = 0 ; |
| 3098 |
0 |
| int res3 = 0 ; |
| 3099 |
0 |
| int argvi = 0; |
| 3100 |
|
| int result; |
| 3101 |
0 |
| dXSARGS; |
| 3102 |
|
| |
| 3103 |
0 |
▶ | if ((items < 3) || (items > 3)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
|
| 3104 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_transform_matrix_forward(w,a,work);"); |
| 3105 |
|
| } |
| 3106 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 3107 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3108 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform_matrix_forward" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform_matrix_forward" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 3109 |
|
| } |
| 3110 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 3111 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_matrix, 0 | 0 ); |
| 3112 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3113 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_transform_matrix_forward" "', argument " "2"" of type '" "gsl_matrix *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_transform_matrix_forward" "', argument " "2"" of type '" "gsl_matrix *""'"); |
0 |
0 |
0 |
|
| 3114 |
|
| } |
| 3115 |
0 |
| arg2 = (gsl_matrix *)(argp2); |
| 3116 |
0 |
| res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 3117 |
0 |
▶ | if (!SWIG_IsOK(res3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res3)) { |
0 |
0 |
0 |
|
| 3118 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_transform_matrix_forward" "', argument " "3"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_transform_matrix_forward" "', argument " "3"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 3119 |
|
| } |
| 3120 |
0 |
| arg3 = (gsl_wavelet_workspace *)(argp3); |
| 3121 |
0 |
| result = (int)gsl_wavelet2d_transform_matrix_forward((gsl_wavelet const *)arg1,arg2,arg3); |
| 3122 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 3123 |
|
| |
| 3124 |
|
| |
| 3125 |
|
| |
| 3126 |
0 |
| XSRETURN(argvi); |
| 3127 |
0 |
| fail: |
| 3128 |
|
| |
| 3129 |
|
| |
| 3130 |
|
| |
| 3131 |
0 |
| SWIG_croak_null(); |
| 3132 |
|
| } |
| 3133 |
|
| } |
| 3134 |
|
| |
| 3135 |
|
| |
| 3136 |
0 |
| XS(_wrap_gsl_wavelet2d_transform_matrix_inverse) { |
| 3137 |
|
| { |
| 3138 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 3139 |
0 |
| gsl_matrix *arg2 = (gsl_matrix *) 0 ; |
| 3140 |
0 |
| gsl_wavelet_workspace *arg3 = (gsl_wavelet_workspace *) 0 ; |
| 3141 |
0 |
| void *argp1 = 0 ; |
| 3142 |
0 |
| int res1 = 0 ; |
| 3143 |
0 |
| void *argp2 = 0 ; |
| 3144 |
0 |
| int res2 = 0 ; |
| 3145 |
0 |
| void *argp3 = 0 ; |
| 3146 |
0 |
| int res3 = 0 ; |
| 3147 |
0 |
| int argvi = 0; |
| 3148 |
|
| int result; |
| 3149 |
0 |
| dXSARGS; |
| 3150 |
|
| |
| 3151 |
0 |
▶ | if ((items < 3) || (items > 3)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
|
| 3152 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_transform_matrix_inverse(w,a,work);"); |
| 3153 |
|
| } |
| 3154 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 3155 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3156 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform_matrix_inverse" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_transform_matrix_inverse" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 3157 |
|
| } |
| 3158 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 3159 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_matrix, 0 | 0 ); |
| 3160 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3161 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_transform_matrix_inverse" "', argument " "2"" of type '" "gsl_matrix *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_transform_matrix_inverse" "', argument " "2"" of type '" "gsl_matrix *""'"); |
0 |
0 |
0 |
|
| 3162 |
|
| } |
| 3163 |
0 |
| arg2 = (gsl_matrix *)(argp2); |
| 3164 |
0 |
| res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 3165 |
0 |
▶ | if (!SWIG_IsOK(res3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res3)) { |
0 |
0 |
0 |
|
| 3166 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_transform_matrix_inverse" "', argument " "3"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_transform_matrix_inverse" "', argument " "3"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 3167 |
|
| } |
| 3168 |
0 |
| arg3 = (gsl_wavelet_workspace *)(argp3); |
| 3169 |
0 |
| result = (int)gsl_wavelet2d_transform_matrix_inverse((gsl_wavelet const *)arg1,arg2,arg3); |
| 3170 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 3171 |
|
| |
| 3172 |
|
| |
| 3173 |
|
| |
| 3174 |
0 |
| XSRETURN(argvi); |
| 3175 |
0 |
| fail: |
| 3176 |
|
| |
| 3177 |
|
| |
| 3178 |
|
| |
| 3179 |
0 |
| SWIG_croak_null(); |
| 3180 |
|
| } |
| 3181 |
|
| } |
| 3182 |
|
| |
| 3183 |
|
| |
| 3184 |
0 |
| XS(_wrap_gsl_wavelet2d_nstransform_matrix) { |
| 3185 |
|
| { |
| 3186 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 3187 |
0 |
| gsl_matrix *arg2 = (gsl_matrix *) 0 ; |
| 3188 |
|
| gsl_wavelet_direction arg3 ; |
| 3189 |
0 |
| gsl_wavelet_workspace *arg4 = (gsl_wavelet_workspace *) 0 ; |
| 3190 |
0 |
| void *argp1 = 0 ; |
| 3191 |
0 |
| int res1 = 0 ; |
| 3192 |
0 |
| void *argp2 = 0 ; |
| 3193 |
0 |
| int res2 = 0 ; |
| 3194 |
|
| void *argp3 ; |
| 3195 |
0 |
| int res3 = 0 ; |
| 3196 |
0 |
| void *argp4 = 0 ; |
| 3197 |
0 |
| int res4 = 0 ; |
| 3198 |
0 |
| int argvi = 0; |
| 3199 |
|
| int result; |
| 3200 |
0 |
| dXSARGS; |
| 3201 |
|
| |
| 3202 |
0 |
▶ | if ((items < 4) || (items > 4)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
|
| 3203 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_nstransform_matrix(w,a,dir,work);"); |
| 3204 |
|
| } |
| 3205 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 3206 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3207 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform_matrix" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform_matrix" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 3208 |
|
| } |
| 3209 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 3210 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_matrix, 0 | 0 ); |
| 3211 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3212 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_nstransform_matrix" "', argument " "2"" of type '" "gsl_matrix *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_nstransform_matrix" "', argument " "2"" of type '" "gsl_matrix *""'"); |
0 |
0 |
0 |
|
| 3213 |
|
| } |
| 3214 |
0 |
| arg2 = (gsl_matrix *)(argp2); |
| 3215 |
|
| { |
| 3216 |
0 |
| res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_gsl_wavelet_direction, 0 ); |
| 3217 |
0 |
▶ | if (!SWIG_IsOK(res3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res3)) { |
0 |
0 |
0 |
|
| 3218 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_nstransform_matrix" "', argument " "3"" of type '" "gsl_wavelet_direction""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_nstransform_matrix" "', argument " "3"" of type '" "gsl_wavelet_direction""'"); |
0 |
0 |
0 |
|
| 3219 |
|
| } |
| 3220 |
0 |
▶ | if (!argp3) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!argp3) { |
0 |
0 |
0 |
|
| 3221 |
0 |
| SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_wavelet2d_nstransform_matrix" "', argument " "3"" of type '" "gsl_wavelet_direction""'"); |
| 3222 |
|
| } else { |
| 3223 |
0 |
| arg3 = *((gsl_wavelet_direction *)(argp3)); |
| 3224 |
|
| } |
| 3225 |
|
| } |
| 3226 |
0 |
| res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 3227 |
0 |
▶ | if (!SWIG_IsOK(res4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res4)) { |
0 |
0 |
0 |
|
| 3228 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_wavelet2d_nstransform_matrix" "', argument " "4"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_wavelet2d_nstransform_matrix" "', argument " "4"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 3229 |
|
| } |
| 3230 |
0 |
| arg4 = (gsl_wavelet_workspace *)(argp4); |
| 3231 |
0 |
| result = (int)gsl_wavelet2d_nstransform_matrix((gsl_wavelet const *)arg1,arg2,arg3,arg4); |
| 3232 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 3233 |
|
| |
| 3234 |
|
| |
| 3235 |
|
| |
| 3236 |
0 |
| XSRETURN(argvi); |
| 3237 |
0 |
| fail: |
| 3238 |
|
| |
| 3239 |
|
| |
| 3240 |
|
| |
| 3241 |
0 |
| SWIG_croak_null(); |
| 3242 |
|
| } |
| 3243 |
|
| } |
| 3244 |
|
| |
| 3245 |
|
| |
| 3246 |
0 |
| XS(_wrap_gsl_wavelet2d_nstransform_matrix_forward) { |
| 3247 |
|
| { |
| 3248 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 3249 |
0 |
| gsl_matrix *arg2 = (gsl_matrix *) 0 ; |
| 3250 |
0 |
| gsl_wavelet_workspace *arg3 = (gsl_wavelet_workspace *) 0 ; |
| 3251 |
0 |
| void *argp1 = 0 ; |
| 3252 |
0 |
| int res1 = 0 ; |
| 3253 |
0 |
| void *argp2 = 0 ; |
| 3254 |
0 |
| int res2 = 0 ; |
| 3255 |
0 |
| void *argp3 = 0 ; |
| 3256 |
0 |
| int res3 = 0 ; |
| 3257 |
0 |
| int argvi = 0; |
| 3258 |
|
| int result; |
| 3259 |
0 |
| dXSARGS; |
| 3260 |
|
| |
| 3261 |
0 |
▶ | if ((items < 3) || (items > 3)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
|
| 3262 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_nstransform_matrix_forward(w,a,work);"); |
| 3263 |
|
| } |
| 3264 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 3265 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3266 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform_matrix_forward" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform_matrix_forward" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 3267 |
|
| } |
| 3268 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 3269 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_matrix, 0 | 0 ); |
| 3270 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3271 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_nstransform_matrix_forward" "', argument " "2"" of type '" "gsl_matrix *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_nstransform_matrix_forward" "', argument " "2"" of type '" "gsl_matrix *""'"); |
0 |
0 |
0 |
|
| 3272 |
|
| } |
| 3273 |
0 |
| arg2 = (gsl_matrix *)(argp2); |
| 3274 |
0 |
| res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 3275 |
0 |
▶ | if (!SWIG_IsOK(res3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res3)) { |
0 |
0 |
0 |
|
| 3276 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_nstransform_matrix_forward" "', argument " "3"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_nstransform_matrix_forward" "', argument " "3"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 3277 |
|
| } |
| 3278 |
0 |
| arg3 = (gsl_wavelet_workspace *)(argp3); |
| 3279 |
0 |
| result = (int)gsl_wavelet2d_nstransform_matrix_forward((gsl_wavelet const *)arg1,arg2,arg3); |
| 3280 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 3281 |
|
| |
| 3282 |
|
| |
| 3283 |
|
| |
| 3284 |
0 |
| XSRETURN(argvi); |
| 3285 |
0 |
| fail: |
| 3286 |
|
| |
| 3287 |
|
| |
| 3288 |
|
| |
| 3289 |
0 |
| SWIG_croak_null(); |
| 3290 |
|
| } |
| 3291 |
|
| } |
| 3292 |
|
| |
| 3293 |
|
| |
| 3294 |
0 |
| XS(_wrap_gsl_wavelet2d_nstransform_matrix_inverse) { |
| 3295 |
|
| { |
| 3296 |
0 |
| gsl_wavelet *arg1 = (gsl_wavelet *) 0 ; |
| 3297 |
0 |
| gsl_matrix *arg2 = (gsl_matrix *) 0 ; |
| 3298 |
0 |
| gsl_wavelet_workspace *arg3 = (gsl_wavelet_workspace *) 0 ; |
| 3299 |
0 |
| void *argp1 = 0 ; |
| 3300 |
0 |
| int res1 = 0 ; |
| 3301 |
0 |
| void *argp2 = 0 ; |
| 3302 |
0 |
| int res2 = 0 ; |
| 3303 |
0 |
| void *argp3 = 0 ; |
| 3304 |
0 |
| int res3 = 0 ; |
| 3305 |
0 |
| int argvi = 0; |
| 3306 |
|
| int result; |
| 3307 |
0 |
| dXSARGS; |
| 3308 |
|
| |
| 3309 |
0 |
▶ | if ((items < 3) || (items > 3)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
|
| 3310 |
0 |
| SWIG_croak("Usage: gsl_wavelet2d_nstransform_matrix_inverse(w,a,work);"); |
| 3311 |
|
| } |
| 3312 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_wavelet, 0 | 0 ); |
| 3313 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3314 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform_matrix_inverse" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_wavelet2d_nstransform_matrix_inverse" "', argument " "1"" of type '" "gsl_wavelet const *""'"); |
0 |
0 |
0 |
|
| 3315 |
|
| } |
| 3316 |
0 |
| arg1 = (gsl_wavelet *)(argp1); |
| 3317 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_matrix, 0 | 0 ); |
| 3318 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3319 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_nstransform_matrix_inverse" "', argument " "2"" of type '" "gsl_matrix *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_wavelet2d_nstransform_matrix_inverse" "', argument " "2"" of type '" "gsl_matrix *""'"); |
0 |
0 |
0 |
|
| 3320 |
|
| } |
| 3321 |
0 |
| arg2 = (gsl_matrix *)(argp2); |
| 3322 |
0 |
| res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_wavelet_workspace, 0 | 0 ); |
| 3323 |
0 |
▶ | if (!SWIG_IsOK(res3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res3)) { |
0 |
0 |
0 |
|
| 3324 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_nstransform_matrix_inverse" "', argument " "3"" of type '" "gsl_wavelet_workspace *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_wavelet2d_nstransform_matrix_inverse" "', argument " "3"" of type '" "gsl_wavelet_workspace *""'"); |
0 |
0 |
0 |
|
| 3325 |
|
| } |
| 3326 |
0 |
| arg3 = (gsl_wavelet_workspace *)(argp3); |
| 3327 |
0 |
| result = (int)gsl_wavelet2d_nstransform_matrix_inverse((gsl_wavelet const *)arg1,arg2,arg3); |
| 3328 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 3329 |
|
| |
| 3330 |
|
| |
| 3331 |
|
| |
| 3332 |
0 |
| XSRETURN(argvi); |
| 3333 |
0 |
| fail: |
| 3334 |
|
| |
| 3335 |
|
| |
| 3336 |
|
| |
| 3337 |
0 |
| SWIG_croak_null(); |
| 3338 |
|
| } |
| 3339 |
|
| } |
| 3340 |
|
| |
| 3341 |
|
| |
| 3342 |
|
| |
| 3343 |
|
| /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
| 3344 |
|
| |
| 3345 |
|
| static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0}; |
| 3346 |
|
| static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
| 3347 |
|
| static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; |
| 3348 |
|
| static swig_type_info _swigt__p_f_p_q_const__char_p_q_const__char_int_int__void = {"_p_f_p_q_const__char_p_q_const__char_int_int__void", "gsl_error_handler_t *|void (*)(char const *,char const *,int,int)", 0, 0, (void*)0, 0}; |
| 3349 |
|
| static swig_type_info _swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void = {"_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void", "gsl_stream_handler_t *|void (*)(char const *,char const *,int,char const *)", 0, 0, (void*)0, 0}; |
| 3350 |
|
| static swig_type_info _swigt__p_gsl_matrix = {"_p_gsl_matrix", "gsl_matrix *", 0, 0, (void*)0, 0}; |
| 3351 |
|
| static swig_type_info _swigt__p_gsl_wavelet = {"_p_gsl_wavelet", "gsl_wavelet *", 0, 0, (void*)0, 0}; |
| 3352 |
|
| static swig_type_info _swigt__p_gsl_wavelet_direction = {"_p_gsl_wavelet_direction", "gsl_wavelet_direction *", 0, 0, (void*)0, 0}; |
| 3353 |
|
| static swig_type_info _swigt__p_gsl_wavelet_workspace = {"_p_gsl_wavelet_workspace", "gsl_wavelet_workspace *", 0, 0, (void*)0, 0}; |
| 3354 |
|
| |
| 3355 |
|
| static swig_type_info *swig_type_initial[] = { |
| 3356 |
|
| &_swigt__p_FILE, |
| 3357 |
|
| &_swigt__p_char, |
| 3358 |
|
| &_swigt__p_double, |
| 3359 |
|
| &_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void, |
| 3360 |
|
| &_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void, |
| 3361 |
|
| &_swigt__p_gsl_matrix, |
| 3362 |
|
| &_swigt__p_gsl_wavelet, |
| 3363 |
|
| &_swigt__p_gsl_wavelet_direction, |
| 3364 |
|
| &_swigt__p_gsl_wavelet_workspace, |
| 3365 |
|
| }; |
| 3366 |
|
| |
| 3367 |
|
| static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}}; |
| 3368 |
|
| static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
| 3369 |
|
| static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; |
| 3370 |
|
| static swig_cast_info _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void[] = { {&_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void, 0, 0, 0},{0, 0, 0, 0}}; |
| 3371 |
|
| static swig_cast_info _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void[] = { {&_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void, 0, 0, 0},{0, 0, 0, 0}}; |
| 3372 |
|
| static swig_cast_info _swigc__p_gsl_matrix[] = { {&_swigt__p_gsl_matrix, 0, 0, 0},{0, 0, 0, 0}}; |
| 3373 |
|
| static swig_cast_info _swigc__p_gsl_wavelet[] = { {&_swigt__p_gsl_wavelet, 0, 0, 0},{0, 0, 0, 0}}; |
| 3374 |
|
| static swig_cast_info _swigc__p_gsl_wavelet_direction[] = { {&_swigt__p_gsl_wavelet_direction, 0, 0, 0},{0, 0, 0, 0}}; |
| 3375 |
|
| static swig_cast_info _swigc__p_gsl_wavelet_workspace[] = { {&_swigt__p_gsl_wavelet_workspace, 0, 0, 0},{0, 0, 0, 0}}; |
| 3376 |
|
| |
| 3377 |
|
| static swig_cast_info *swig_cast_initial[] = { |
| 3378 |
|
| _swigc__p_FILE, |
| 3379 |
|
| _swigc__p_char, |
| 3380 |
|
| _swigc__p_double, |
| 3381 |
|
| _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void, |
| 3382 |
|
| _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void, |
| 3383 |
|
| _swigc__p_gsl_matrix, |
| 3384 |
|
| _swigc__p_gsl_wavelet, |
| 3385 |
|
| _swigc__p_gsl_wavelet_direction, |
| 3386 |
|
| _swigc__p_gsl_wavelet_workspace, |
| 3387 |
|
| }; |
| 3388 |
|
| |
| 3389 |
|
| |
| 3390 |
|
| /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
| 3391 |
|
| |
| 3392 |
|
| static swig_constant_info swig_constants[] = { |
| 3393 |
|
| {0,0,0,0,0,0} |
| 3394 |
|
| }; |
| 3395 |
|
| #ifdef __cplusplus |
| 3396 |
|
| } |
| 3397 |
|
| #endif |
| 3398 |
|
| static swig_variable_info swig_variables[] = { |
| 3399 |
|
| {0,0,0,0} |
| 3400 |
|
| }; |
| 3401 |
|
| static swig_command_info swig_commands[] = { |
| 3402 |
|
| {"Math::GSL::Wavelet2Dc::gsl_error", _wrap_gsl_error}, |
| 3403 |
|
| {"Math::GSL::Wavelet2Dc::gsl_stream_printf", _wrap_gsl_stream_printf}, |
| 3404 |
|
| {"Math::GSL::Wavelet2Dc::gsl_strerror", _wrap_gsl_strerror}, |
| 3405 |
|
| {"Math::GSL::Wavelet2Dc::gsl_set_error_handler", _wrap_gsl_set_error_handler}, |
| 3406 |
|
| {"Math::GSL::Wavelet2Dc::gsl_set_error_handler_off", _wrap_gsl_set_error_handler_off}, |
| 3407 |
|
| {"Math::GSL::Wavelet2Dc::gsl_set_stream_handler", _wrap_gsl_set_stream_handler}, |
| 3408 |
|
| {"Math::GSL::Wavelet2Dc::gsl_set_stream", _wrap_gsl_set_stream}, |
| 3409 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_transform", _wrap_gsl_wavelet2d_transform}, |
| 3410 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_transform_forward", _wrap_gsl_wavelet2d_transform_forward}, |
| 3411 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_transform_inverse", _wrap_gsl_wavelet2d_transform_inverse}, |
| 3412 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_nstransform", _wrap_gsl_wavelet2d_nstransform}, |
| 3413 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_nstransform_forward", _wrap_gsl_wavelet2d_nstransform_forward}, |
| 3414 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_nstransform_inverse", _wrap_gsl_wavelet2d_nstransform_inverse}, |
| 3415 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_transform_matrix", _wrap_gsl_wavelet2d_transform_matrix}, |
| 3416 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_transform_matrix_forward", _wrap_gsl_wavelet2d_transform_matrix_forward}, |
| 3417 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_transform_matrix_inverse", _wrap_gsl_wavelet2d_transform_matrix_inverse}, |
| 3418 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_nstransform_matrix", _wrap_gsl_wavelet2d_nstransform_matrix}, |
| 3419 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_nstransform_matrix_forward", _wrap_gsl_wavelet2d_nstransform_matrix_forward}, |
| 3420 |
|
| {"Math::GSL::Wavelet2Dc::gsl_wavelet2d_nstransform_matrix_inverse", _wrap_gsl_wavelet2d_nstransform_matrix_inverse}, |
| 3421 |
|
| {0,0} |
| 3422 |
|
| }; |
| 3423 |
|
| /* ----------------------------------------------------------------------------- |
| 3424 |
|
| * Type initialization: |
| 3425 |
|
| * This problem is tough by the requirement that no dynamic |
| 3426 |
|
| * memory is used. Also, since swig_type_info structures store pointers to |
| 3427 |
|
| * swig_cast_info structures and swig_cast_info structures store pointers back |
| 3428 |
|
| * to swig_type_info structures, we need some lookup code at initialization. |
| 3429 |
|
| * The idea is that swig generates all the structures that are needed. |
| 3430 |
|
| * The runtime then collects these partially filled structures. |
| 3431 |
|
| * The SWIG_InitializeModule function takes these initial arrays out of |
| 3432 |
|
| * swig_module, and does all the lookup, filling in the swig_module.types |
| 3433 |
|
| * array with the correct data and linking the correct swig_cast_info |
| 3434 |
|
| * structures together. |
| 3435 |
|
| * |
| 3436 |
|
| * The generated swig_type_info structures are assigned statically to an initial |
| 3437 |
|
| * array. We just loop through that array, and handle each type individually. |
| 3438 |
|
| * First we lookup if this type has been already loaded, and if so, use the |
| 3439 |
|
| * loaded structure instead of the generated one. Then we have to fill in the |
| 3440 |
|
| * cast linked list. The cast data is initially stored in something like a |
| 3441 |
|
| * two-dimensional array. Each row corresponds to a type (there are the same |
| 3442 |
|
| * number of rows as there are in the swig_type_initial array). Each entry in |
| 3443 |
|
| * a column is one of the swig_cast_info structures for that type. |
| 3444 |
|
| * The cast_initial array is actually an array of arrays, because each row has |
| 3445 |
|
| * a variable number of columns. So to actually build the cast linked list, |
| 3446 |
|
| * we find the array of casts associated with the type, and loop through it |
| 3447 |
|
| * adding the casts to the list. The one last trick we need to do is making |
| 3448 |
|
| * sure the type pointer in the swig_cast_info struct is correct. |
| 3449 |
|
| * |
| 3450 |
|
| * First off, we lookup the cast->type name to see if it is already loaded. |
| 3451 |
|
| * There are three cases to handle: |
| 3452 |
|
| * 1) If the cast->type has already been loaded AND the type we are adding |
| 3453 |
|
| * casting info to has not been loaded (it is in this module), THEN we |
| 3454 |
|
| * replace the cast->type pointer with the type pointer that has already |
| 3455 |
|
| * been loaded. |
| 3456 |
|
| * 2) If BOTH types (the one we are adding casting info to, and the |
| 3457 |
|
| * cast->type) are loaded, THEN the cast info has already been loaded by |
| 3458 |
|
| * the previous module so we just ignore it. |
| 3459 |
|
| * 3) Finally, if cast->type has not already been loaded, then we add that |
| 3460 |
|
| * swig_cast_info to the linked list (because the cast->type) pointer will |
| 3461 |
|
| * be correct. |
| 3462 |
|
| * ----------------------------------------------------------------------------- */ |
| 3463 |
|
| |
| 3464 |
|
| #ifdef __cplusplus |
| 3465 |
|
| extern "C" { |
| 3466 |
|
| #if 0 |
| 3467 |
|
| } /* c-mode */ |
| 3468 |
|
| #endif |
| 3469 |
|
| #endif |
| 3470 |
|
| |
| 3471 |
|
| #if 0 |
| 3472 |
|
| #define SWIGRUNTIME_DEBUG |
| 3473 |
|
| #endif |
| 3474 |
|
| |
| 3475 |
|
| #ifndef SWIG_INIT_CLIENT_DATA_TYPE |
| 3476 |
|
| #define SWIG_INIT_CLIENT_DATA_TYPE void * |
| 3477 |
|
| #endif |
| 3478 |
|
| |
| 3479 |
|
| SWIGRUNTIME void |
| 3480 |
0 |
| SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) { |
| 3481 |
|
| size_t i; |
| 3482 |
|
| swig_module_info *module_head, *iter; |
| 3483 |
|
| int init; |
| 3484 |
|
| |
| 3485 |
|
| /* check to see if the circular list has been setup, if not, set it up */ |
| 3486 |
0 |
▶ | if (swig_module.next==0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_module.next==0) { |
0 |
0 |
0 |
|
| 3487 |
|
| /* Initialize the swig_module */ |
| 3488 |
0 |
| swig_module.type_initial = swig_type_initial; |
| 3489 |
0 |
| swig_module.cast_initial = swig_cast_initial; |
| 3490 |
0 |
| swig_module.next = &swig_module; |
| 3491 |
0 |
| init = 1; |
| 3492 |
|
| } else { |
| 3493 |
0 |
| init = 0; |
| 3494 |
|
| } |
| 3495 |
|
| |
| 3496 |
|
| /* Try and load any already created modules */ |
| 3497 |
0 |
| module_head = SWIG_GetModule(clientdata); |
| 3498 |
0 |
▶ | if (!module_head) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!module_head) { |
0 |
0 |
0 |
|
| 3499 |
|
| /* This is the first module loaded for this interpreter */ |
| 3500 |
|
| /* so set the swig module into the interpreter */ |
| 3501 |
0 |
| SWIG_SetModule(clientdata, &swig_module); |
| 3502 |
|
| } else { |
| 3503 |
|
| /* the interpreter has loaded a SWIG module, but has it loaded this one? */ |
| 3504 |
0 |
| iter=module_head; |
| 3505 |
|
| do { |
| 3506 |
0 |
▶ | if (iter==&swig_module) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter==&swig_module) { |
0 |
0 |
0 |
|
| 3507 |
|
| /* Our module is already in the list, so there's nothing more to do. */ |
| 3508 |
0 |
| return; |
| 3509 |
|
| } |
| 3510 |
0 |
| iter=iter->next; |
| 3511 |
0 |
▶ | } while (iter!= module_head); |
Branch: 1 branch
| Branch | True | False | Total |
| } while (iter!= module_head); |
0 |
0 |
0 |
|
| 3512 |
|
| |
| 3513 |
|
| /* otherwise we must add our module into the list */ |
| 3514 |
0 |
| swig_module.next = module_head->next; |
| 3515 |
0 |
| module_head->next = &swig_module; |
| 3516 |
|
| } |
| 3517 |
|
| |
| 3518 |
|
| /* When multiple interpreters are used, a module could have already been initialized in |
| 3519 |
|
| a different interpreter, but not yet have a pointer in this interpreter. |
| 3520 |
|
| In this case, we do not want to continue adding types... everything should be |
| 3521 |
|
| set up already */ |
| 3522 |
0 |
▶ | if (init == 0) return; |
Branch: 1 branch
| Branch | True | False | Total |
| if (init == 0) return; |
0 |
0 |
0 |
|
| 3523 |
|
| |
| 3524 |
|
| /* Now work on filling in swig_module.types */ |
| 3525 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 3526 |
|
| printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size); |
| 3527 |
|
| #endif |
| 3528 |
0 |
▶ | for (i = 0; i < swig_module.size; ++i) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < swig_module.size; ++i) { |
0 |
0 |
0 |
|
| 3529 |
0 |
| swig_type_info *type = 0; |
| 3530 |
|
| swig_type_info *ret; |
| 3531 |
|
| swig_cast_info *cast; |
| 3532 |
|
| |
| 3533 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 3534 |
|
| printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name); |
| 3535 |
|
| #endif |
| 3536 |
|
| |
| 3537 |
|
| /* if there is another module already loaded */ |
| 3538 |
0 |
▶ | if (swig_module.next != &swig_module) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_module.next != &swig_module) { |
0 |
0 |
0 |
|
| 3539 |
0 |
| type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
| 3540 |
|
| } |
| 3541 |
0 |
▶ | if (type) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type) { |
0 |
0 |
0 |
|
| 3542 |
|
| /* Overwrite clientdata field */ |
| 3543 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 3544 |
|
| printf("SWIG_InitializeModule: found type %s\n", type->name); |
| 3545 |
|
| #endif |
| 3546 |
0 |
▶ | if (swig_module.type_initial[i]->clientdata) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_module.type_initial[i]->clientdata) { |
0 |
0 |
0 |
|
| 3547 |
0 |
| type->clientdata = swig_module.type_initial[i]->clientdata; |
| 3548 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 3549 |
|
| printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
| 3550 |
|
| #endif |
| 3551 |
|
| } |
| 3552 |
|
| } else { |
| 3553 |
0 |
| type = swig_module.type_initial[i]; |
| 3554 |
|
| } |
| 3555 |
|
| |
| 3556 |
|
| /* Insert casting types */ |
| 3557 |
0 |
| cast = swig_module.cast_initial[i]; |
| 3558 |
0 |
▶ | while (cast->type) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (cast->type) { |
0 |
0 |
0 |
|
| 3559 |
|
| /* Don't need to add information already in the list */ |
| 3560 |
0 |
| ret = 0; |
| 3561 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 3562 |
|
| printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
| 3563 |
|
| #endif |
| 3564 |
0 |
▶ | if (swig_module.next != &swig_module) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_module.next != &swig_module) { |
0 |
0 |
0 |
|
| 3565 |
0 |
| ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
| 3566 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 3567 |
|
| if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
| 3568 |
|
| #endif |
| 3569 |
|
| } |
| 3570 |
0 |
▶ | if (ret) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ret) { |
0 |
0 |
0 |
|
| 3571 |
0 |
▶ | if (type == swig_module.type_initial[i]) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type == swig_module.type_initial[i]) { |
0 |
0 |
0 |
|
| 3572 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 3573 |
|
| printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
| 3574 |
|
| #endif |
| 3575 |
0 |
| cast->type = ret; |
| 3576 |
0 |
| ret = 0; |
| 3577 |
|
| } else { |
| 3578 |
|
| /* Check for casting already in the list */ |
| 3579 |
0 |
| swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
| 3580 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 3581 |
|
| if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
| 3582 |
|
| #endif |
| 3583 |
0 |
▶ | if (!ocast) ret = 0; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!ocast) ret = 0; |
0 |
0 |
0 |
|
| 3584 |
|
| } |
| 3585 |
|
| } |
| 3586 |
|
| |
| 3587 |
0 |
▶ | if (!ret) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!ret) { |
0 |
0 |
0 |
|
| 3588 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 3589 |
|
| printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
| 3590 |
|
| #endif |
| 3591 |
0 |
▶ | if (type->cast) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type->cast) { |
0 |
0 |
0 |
|
| 3592 |
0 |
| type->cast->prev = cast; |
| 3593 |
0 |
| cast->next = type->cast; |
| 3594 |
|
| } |
| 3595 |
0 |
| type->cast = cast; |
| 3596 |
|
| } |
| 3597 |
0 |
| cast++; |
| 3598 |
|
| } |
| 3599 |
|
| /* Set entry in modules->types array equal to the type */ |
| 3600 |
0 |
| swig_module.types[i] = type; |
| 3601 |
|
| } |
| 3602 |
0 |
| swig_module.types[i] = 0; |
| 3603 |
|
| |
| 3604 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 3605 |
|
| printf("**** SWIG_InitializeModule: Cast List ******\n"); |
| 3606 |
|
| for (i = 0; i < swig_module.size; ++i) { |
| 3607 |
|
| int j = 0; |
| 3608 |
|
| swig_cast_info *cast = swig_module.cast_initial[i]; |
| 3609 |
|
| printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name); |
| 3610 |
|
| while (cast->type) { |
| 3611 |
|
| printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
| 3612 |
|
| cast++; |
| 3613 |
|
| ++j; |
| 3614 |
|
| } |
| 3615 |
|
| printf("---- Total casts: %d\n",j); |
| 3616 |
|
| } |
| 3617 |
|
| printf("**** SWIG_InitializeModule: Cast List ******\n"); |
| 3618 |
|
| #endif |
| 3619 |
|
| } |
| 3620 |
|
| |
| 3621 |
|
| /* This function will propagate the clientdata field of type to |
| 3622 |
|
| * any new swig_type_info structures that have been added into the list |
| 3623 |
|
| * of equivalent types. It is like calling |
| 3624 |
|
| * SWIG_TypeClientData(type, clientdata) a second time. |
| 3625 |
|
| */ |
| 3626 |
|
| SWIGRUNTIME void |
| 3627 |
0 |
| SWIG_PropagateClientData(void) { |
| 3628 |
|
| size_t i; |
| 3629 |
|
| swig_cast_info *equiv; |
| 3630 |
|
| static int init_run = 0; |
| 3631 |
|
| |
| 3632 |
0 |
▶ | if (init_run) return; |
Branch: 1 branch
| Branch | True | False | Total |
| if (init_run) return; |
0 |
0 |
0 |
|
| 3633 |
0 |
| init_run = 1; |
| 3634 |
|
| |
| 3635 |
0 |
▶ | for (i = 0; i < swig_module.size; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < swig_module.size; i++) { |
0 |
0 |
0 |
|
| 3636 |
0 |
▶ | if (swig_module.types[i]->clientdata) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_module.types[i]->clientdata) { |
0 |
0 |
0 |
|
| 3637 |
0 |
| equiv = swig_module.types[i]->cast; |
| 3638 |
0 |
▶ | while (equiv) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (equiv) { |
0 |
0 |
0 |
|
| 3639 |
0 |
▶ | if (!equiv->converter) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!equiv->converter) { |
0 |
0 |
0 |
|
| 3640 |
0 |
▶ | if (equiv->type && !equiv->type->clientdata) |
Branch: 2 branches
| Branch | True | False | Total |
| if (equiv->type && !equiv->type->clientdata) |
0 |
0 |
0 |
| if (equiv->type && !equiv->type->clientdata) |
0 |
0 |
0 |
|
| 3641 |
0 |
| SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
| 3642 |
|
| } |
| 3643 |
0 |
| equiv = equiv->next; |
| 3644 |
|
| } |
| 3645 |
|
| } |
| 3646 |
|
| } |
| 3647 |
|
| } |
| 3648 |
|
| |
| 3649 |
|
| #ifdef __cplusplus |
| 3650 |
|
| #if 0 |
| 3651 |
|
| { |
| 3652 |
|
| /* c-mode */ |
| 3653 |
|
| #endif |
| 3654 |
|
| } |
| 3655 |
|
| #endif |
| 3656 |
|
| |
| 3657 |
|
| |
| 3658 |
|
| |
| 3659 |
|
| #if defined(__cplusplus) && ! defined(XSPROTO) |
| 3660 |
|
| extern "C" |
| 3661 |
|
| #endif |
| 3662 |
|
| |
| 3663 |
0 |
| XS(SWIG_init) { |
| 3664 |
0 |
| dXSARGS; |
| 3665 |
|
| int i; |
| 3666 |
|
| (void)items; |
| 3667 |
|
| |
| 3668 |
0 |
| SWIG_InitializeModule(0); |
| 3669 |
|
| |
| 3670 |
|
| /* Install commands */ |
| 3671 |
0 |
▶ | for (i = 0; swig_commands[i].name; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; swig_commands[i].name; i++) { |
0 |
0 |
0 |
|
| 3672 |
|
| /* Casts only needed for Perl < 5.10. */ |
| 3673 |
|
| #ifdef __cplusplus |
| 3674 |
|
| newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__)); |
| 3675 |
|
| #else |
| 3676 |
0 |
| newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__); |
| 3677 |
|
| #endif |
| 3678 |
|
| } |
| 3679 |
|
| |
| 3680 |
|
| /* Install variables */ |
| 3681 |
0 |
▶ | for (i = 0; swig_variables[i].name; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; swig_variables[i].name; i++) { |
0 |
0 |
0 |
|
| 3682 |
|
| SV *sv; |
| 3683 |
0 |
| sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); |
| 3684 |
0 |
▶ | if (swig_variables[i].type) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_variables[i].type) { |
0 |
0 |
0 |
|
| 3685 |
0 |
| SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); |
| 3686 |
|
| } else { |
| 3687 |
0 |
| sv_setiv(sv,(IV) 0); |
| 3688 |
|
| } |
| 3689 |
0 |
| swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); |
| 3690 |
|
| } |
| 3691 |
|
| |
| 3692 |
|
| /* Install constant */ |
| 3693 |
0 |
▶ | for (i = 0; swig_constants[i].type; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; swig_constants[i].type; i++) { |
0 |
0 |
0 |
|
| 3694 |
|
| SV *sv; |
| 3695 |
0 |
| sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); |
| 3696 |
0 |
| switch(swig_constants[i].type) { |
| 3697 |
0 |
| case SWIG_INT: |
| 3698 |
0 |
| sv_setiv(sv, (IV) swig_constants[i].lvalue); |
| 3699 |
0 |
| break; |
| 3700 |
0 |
| case SWIG_FLOAT: |
| 3701 |
0 |
| sv_setnv(sv, (double) swig_constants[i].dvalue); |
| 3702 |
0 |
| break; |
| 3703 |
0 |
| case SWIG_STRING: |
| 3704 |
0 |
| sv_setpv(sv, (const char *) swig_constants[i].pvalue); |
| 3705 |
0 |
| break; |
| 3706 |
0 |
| case SWIG_POINTER: |
| 3707 |
0 |
| SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); |
| 3708 |
0 |
| break; |
| 3709 |
0 |
| case SWIG_BINARY: |
| 3710 |
0 |
| SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); |
| 3711 |
0 |
| break; |
| 3712 |
0 |
| default: |
| 3713 |
0 |
| break; |
| 3714 |
|
| } |
| 3715 |
0 |
| SvREADONLY_on(sv); |
| 3716 |
|
| } |
| 3717 |
|
| |
| 3718 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3719 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_VERSION", TRUE | 0x2 | GV_ADDMULTI); |
| 3720 |
0 |
| sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(2.8))); |
| 3721 |
0 |
| SvREADONLY_on(sv); |
| 3722 |
|
| } while(0) /*@SWIG@*/; |
| 3723 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3724 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_MAJOR_VERSION", TRUE | 0x2 | GV_ADDMULTI); |
| 3725 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(2))); |
| 3726 |
0 |
| SvREADONLY_on(sv); |
| 3727 |
|
| } while(0) /*@SWIG@*/; |
| 3728 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3729 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_MINOR_VERSION", TRUE | 0x2 | GV_ADDMULTI); |
| 3730 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(8))); |
| 3731 |
0 |
| SvREADONLY_on(sv); |
| 3732 |
|
| } while(0) /*@SWIG@*/; |
| 3733 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3734 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_POSZERO", TRUE | 0x2 | GV_ADDMULTI); |
| 3735 |
0 |
| sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((+0.0)))); |
| 3736 |
0 |
| SvREADONLY_on(sv); |
| 3737 |
|
| } while(0) /*@SWIG@*/; |
| 3738 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3739 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_NEGZERO", TRUE | 0x2 | GV_ADDMULTI); |
| 3740 |
0 |
| sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((-0.0)))); |
| 3741 |
0 |
| SvREADONLY_on(sv); |
| 3742 |
|
| } while(0) /*@SWIG@*/; |
| 3743 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3744 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_SUCCESS", TRUE | 0x2 | GV_ADDMULTI); |
| 3745 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_SUCCESS))); |
| 3746 |
0 |
| SvREADONLY_on(sv); |
| 3747 |
|
| } while(0) /*@SWIG@*/; |
| 3748 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3749 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_FAILURE", TRUE | 0x2 | GV_ADDMULTI); |
| 3750 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_FAILURE))); |
| 3751 |
0 |
| SvREADONLY_on(sv); |
| 3752 |
|
| } while(0) /*@SWIG@*/; |
| 3753 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3754 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_CONTINUE", TRUE | 0x2 | GV_ADDMULTI); |
| 3755 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_CONTINUE))); |
| 3756 |
0 |
| SvREADONLY_on(sv); |
| 3757 |
|
| } while(0) /*@SWIG@*/; |
| 3758 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3759 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EDOM", TRUE | 0x2 | GV_ADDMULTI); |
| 3760 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDOM))); |
| 3761 |
0 |
| SvREADONLY_on(sv); |
| 3762 |
|
| } while(0) /*@SWIG@*/; |
| 3763 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3764 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ERANGE", TRUE | 0x2 | GV_ADDMULTI); |
| 3765 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERANGE))); |
| 3766 |
0 |
| SvREADONLY_on(sv); |
| 3767 |
|
| } while(0) /*@SWIG@*/; |
| 3768 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3769 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAULT", TRUE | 0x2 | GV_ADDMULTI); |
| 3770 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAULT))); |
| 3771 |
0 |
| SvREADONLY_on(sv); |
| 3772 |
|
| } while(0) /*@SWIG@*/; |
| 3773 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3774 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EINVAL", TRUE | 0x2 | GV_ADDMULTI); |
| 3775 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EINVAL))); |
| 3776 |
0 |
| SvREADONLY_on(sv); |
| 3777 |
|
| } while(0) /*@SWIG@*/; |
| 3778 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3779 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAILED", TRUE | 0x2 | GV_ADDMULTI); |
| 3780 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAILED))); |
| 3781 |
0 |
| SvREADONLY_on(sv); |
| 3782 |
|
| } while(0) /*@SWIG@*/; |
| 3783 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3784 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EFACTOR", TRUE | 0x2 | GV_ADDMULTI); |
| 3785 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFACTOR))); |
| 3786 |
0 |
| SvREADONLY_on(sv); |
| 3787 |
|
| } while(0) /*@SWIG@*/; |
| 3788 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3789 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ESANITY", TRUE | 0x2 | GV_ADDMULTI); |
| 3790 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESANITY))); |
| 3791 |
0 |
| SvREADONLY_on(sv); |
| 3792 |
|
| } while(0) /*@SWIG@*/; |
| 3793 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3794 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOMEM", TRUE | 0x2 | GV_ADDMULTI); |
| 3795 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOMEM))); |
| 3796 |
0 |
| SvREADONLY_on(sv); |
| 3797 |
|
| } while(0) /*@SWIG@*/; |
| 3798 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3799 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADFUNC", TRUE | 0x2 | GV_ADDMULTI); |
| 3800 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADFUNC))); |
| 3801 |
0 |
| SvREADONLY_on(sv); |
| 3802 |
|
| } while(0) /*@SWIG@*/; |
| 3803 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3804 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ERUNAWAY", TRUE | 0x2 | GV_ADDMULTI); |
| 3805 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERUNAWAY))); |
| 3806 |
0 |
| SvREADONLY_on(sv); |
| 3807 |
|
| } while(0) /*@SWIG@*/; |
| 3808 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3809 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EMAXITER", TRUE | 0x2 | GV_ADDMULTI); |
| 3810 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EMAXITER))); |
| 3811 |
0 |
| SvREADONLY_on(sv); |
| 3812 |
|
| } while(0) /*@SWIG@*/; |
| 3813 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3814 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EZERODIV", TRUE | 0x2 | GV_ADDMULTI); |
| 3815 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EZERODIV))); |
| 3816 |
0 |
| SvREADONLY_on(sv); |
| 3817 |
|
| } while(0) /*@SWIG@*/; |
| 3818 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3819 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADTOL", TRUE | 0x2 | GV_ADDMULTI); |
| 3820 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADTOL))); |
| 3821 |
0 |
| SvREADONLY_on(sv); |
| 3822 |
|
| } while(0) /*@SWIG@*/; |
| 3823 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3824 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOL", TRUE | 0x2 | GV_ADDMULTI); |
| 3825 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOL))); |
| 3826 |
0 |
| SvREADONLY_on(sv); |
| 3827 |
|
| } while(0) /*@SWIG@*/; |
| 3828 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3829 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNDRFLW", TRUE | 0x2 | GV_ADDMULTI); |
| 3830 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNDRFLW))); |
| 3831 |
0 |
| SvREADONLY_on(sv); |
| 3832 |
|
| } while(0) /*@SWIG@*/; |
| 3833 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3834 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EOVRFLW", TRUE | 0x2 | GV_ADDMULTI); |
| 3835 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOVRFLW))); |
| 3836 |
0 |
| SvREADONLY_on(sv); |
| 3837 |
|
| } while(0) /*@SWIG@*/; |
| 3838 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3839 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ELOSS", TRUE | 0x2 | GV_ADDMULTI); |
| 3840 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ELOSS))); |
| 3841 |
0 |
| SvREADONLY_on(sv); |
| 3842 |
|
| } while(0) /*@SWIG@*/; |
| 3843 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3844 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EROUND", TRUE | 0x2 | GV_ADDMULTI); |
| 3845 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EROUND))); |
| 3846 |
0 |
| SvREADONLY_on(sv); |
| 3847 |
|
| } while(0) /*@SWIG@*/; |
| 3848 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3849 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADLEN", TRUE | 0x2 | GV_ADDMULTI); |
| 3850 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADLEN))); |
| 3851 |
0 |
| SvREADONLY_on(sv); |
| 3852 |
|
| } while(0) /*@SWIG@*/; |
| 3853 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3854 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOTSQR", TRUE | 0x2 | GV_ADDMULTI); |
| 3855 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOTSQR))); |
| 3856 |
0 |
| SvREADONLY_on(sv); |
| 3857 |
|
| } while(0) /*@SWIG@*/; |
| 3858 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3859 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ESING", TRUE | 0x2 | GV_ADDMULTI); |
| 3860 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESING))); |
| 3861 |
0 |
| SvREADONLY_on(sv); |
| 3862 |
|
| } while(0) /*@SWIG@*/; |
| 3863 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3864 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EDIVERGE", TRUE | 0x2 | GV_ADDMULTI); |
| 3865 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDIVERGE))); |
| 3866 |
0 |
| SvREADONLY_on(sv); |
| 3867 |
|
| } while(0) /*@SWIG@*/; |
| 3868 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3869 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNSUP", TRUE | 0x2 | GV_ADDMULTI); |
| 3870 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNSUP))); |
| 3871 |
0 |
| SvREADONLY_on(sv); |
| 3872 |
|
| } while(0) /*@SWIG@*/; |
| 3873 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3874 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNIMPL", TRUE | 0x2 | GV_ADDMULTI); |
| 3875 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNIMPL))); |
| 3876 |
0 |
| SvREADONLY_on(sv); |
| 3877 |
|
| } while(0) /*@SWIG@*/; |
| 3878 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3879 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ECACHE", TRUE | 0x2 | GV_ADDMULTI); |
| 3880 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ECACHE))); |
| 3881 |
0 |
| SvREADONLY_on(sv); |
| 3882 |
|
| } while(0) /*@SWIG@*/; |
| 3883 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3884 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ETABLE", TRUE | 0x2 | GV_ADDMULTI); |
| 3885 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETABLE))); |
| 3886 |
0 |
| SvREADONLY_on(sv); |
| 3887 |
|
| } while(0) /*@SWIG@*/; |
| 3888 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3889 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROG", TRUE | 0x2 | GV_ADDMULTI); |
| 3890 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROG))); |
| 3891 |
0 |
| SvREADONLY_on(sv); |
| 3892 |
|
| } while(0) /*@SWIG@*/; |
| 3893 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3894 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROGJ", TRUE | 0x2 | GV_ADDMULTI); |
| 3895 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROGJ))); |
| 3896 |
0 |
| SvREADONLY_on(sv); |
| 3897 |
|
| } while(0) /*@SWIG@*/; |
| 3898 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3899 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLF", TRUE | 0x2 | GV_ADDMULTI); |
| 3900 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLF))); |
| 3901 |
0 |
| SvREADONLY_on(sv); |
| 3902 |
|
| } while(0) /*@SWIG@*/; |
| 3903 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3904 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLX", TRUE | 0x2 | GV_ADDMULTI); |
| 3905 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLX))); |
| 3906 |
0 |
| SvREADONLY_on(sv); |
| 3907 |
|
| } while(0) /*@SWIG@*/; |
| 3908 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3909 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLG", TRUE | 0x2 | GV_ADDMULTI); |
| 3910 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLG))); |
| 3911 |
0 |
| SvREADONLY_on(sv); |
| 3912 |
|
| } while(0) /*@SWIG@*/; |
| 3913 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 3914 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EOF", TRUE | 0x2 | GV_ADDMULTI); |
| 3915 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOF))); |
| 3916 |
0 |
| SvREADONLY_on(sv); |
| 3917 |
|
| } while(0) /*@SWIG@*/; |
| 3918 |
0 |
| ST(0) = &PL_sv_yes; |
| 3919 |
0 |
| XSRETURN(1); |
| 3920 |
|
| } |
| 3921 |
|
| |