xs/ODEIV_wrap.2.8.c

filter: Statementstmt 0.0% 0 / 3329 Branchbran 0.0% 0 / 1774 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 5103 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/NTuple_wrap.2.8.c ↑ Summary xs/Permutation_wrap.2.8.c »
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
while (equiv != 0 && *ne) { 0 0 0
while (equiv != 0 && *ne) { 0 0 0
412 0 ▶ for (nb = ne; *ne; ++ne) {
Branch: 1 branch
BranchTrueFalseTotal
for (nb = ne; *ne; ++ne) { 0 0 0
413 0 ▶ if (*ne == '|') break;
Branch: 1 branch
BranchTrueFalseTotal
if (*ne == '|') break; 0 0 0
414 }
415 0 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
416 0 ▶ if (*ne) ++ne;
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (ty) { 0 0 0
436 0 swig_cast_info *iter = ty->cast;
437 0 ▶ while (iter) {
Branch: 1 branch
BranchTrueFalseTotal
while (iter) { 0 0 0
438 0 ▶ if (strcmp(iter->type->name, c) == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(iter->type->name, c) == 0) { 0 0 0
439 0 ▶ if (iter == ty->cast)
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (ty) { 0 0 0
463 0 swig_cast_info *iter = ty->cast;
464 0 ▶ while (iter) {
Branch: 1 branch
BranchTrueFalseTotal
while (iter) { 0 0 0
465 0 ▶ if (iter->type == from) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter->type == from) { 0 0 0
466 0 ▶ if (iter == ty->cast)
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (!type) return NULL; 0 0 0
525 0 ▶ if (type->str != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
for (s = type->str; *s; s++) 0 0 0
529 0 ▶ if (*s == '|') last_name = s+1;
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
while (cast) { 0 0 0
546 0 ▶ if (!cast->converter) {
Branch: 1 branch
BranchTrueFalseTotal
if (!cast->converter) { 0 0 0
547 0 swig_type_info *tc = cast->type;
548 0 ▶ if (!tc->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (iname) { 0 0 0
583 0 int compare = strcmp(name, iname);
584 0 ▶ if (compare == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (compare == 0) { 0 0 0
585 0 return iter->types[i];
586 0 ▶ } else if (compare < 0) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (compare < 0) { 0 0 0
587 0 ▶ if (i) {
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
} 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
BranchTrueFalseTotal
} while (l <= r); 0 0 0
599 }
600 0 iter = iter->next;
601 0 ▶ } while (iter != end);
Branch: 1 branch
BranchTrueFalseTotal
} 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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
} 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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (*c != '_') { 0 0 0
701 0 ▶ if (strcmp(c,"NULL") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
size_t lname = (name ? strlen(name) : 0); 0 0 0
715 0 ▶ if ((2*sz + 2 + lname) > bsz) return 0;
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (*c != '_') { 0 0 0
729 0 ▶ if (strcmp(c,"NULL") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (!type) return NULL; 0 0 0
1053 0 ▶ if (type->clientdata != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (ty) { 0 0 0
1065 0 swig_cast_info *iter = ty->cast;
1066 0 ▶ while (iter) {
Branch: 1 branch
BranchTrueFalseTotal
while (iter) { 0 0 0
1067 0 ▶ if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { 0 0 0
1068 0 ▶ if (iter == ty->cast)
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (own) 0 0 0
1104 0 *own = 0;
1105  
1106 /* If magical, apply more magic */
1107 0 ▶ if (SvGMAGICAL(sv))
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if ((SvTYPE(tsv) == SVt_PVHV)) { 0 0 0
1115 MAGIC *mg;
1116 0 ▶ if (SvMAGICAL(tsv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvMAGICAL(tsv)) { 0 0 0
1117 0 mg = mg_find(tsv,'P');
1118 0 ▶ if (mg) {
Branch: 1 branch
BranchTrueFalseTotal
if (mg) { 0 0 0
1119 0 sv = mg->mg_obj;
1120 0 ▶ if (sv_isobject(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
} 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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
} else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ 0 0 0
1136 0 ▶ if (!SvROK(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (_t) { 0 0 0
1152 /* Now see if the types match */
1153 0 ▶ char *_c = HvNAME(SvSTASH(SvRV(sv)));
Branch: 6 branches
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (isGV(gv)) { 0 0 0
1187 0 ▶ HV *hv = GvHVn(gv);
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (hv_exists_ent(hv, obj, 0)) { 0 0 0
1193 0 owned = 1;
1194 0 ▶ if (flags & SWIG_POINTER_DISOWN) {
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (!isGV(gv)) 0 0 0
1229 0 gv_init(gv, stash, "OWNER", 5, FALSE);
1230 0 ▶ hv=GvHVn(gv);
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
if (ty) { 0 0 0
1283 0 tc = SWIG_TypeCheck(c,ty);
1284 0 ▶ if (!tc) return SWIG_ERROR;
Branch: 1 branch
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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
BranchTrueFalseTotal
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_double_a___q_const__double_a___double_p_void__int swig_types[3]
1514 #define SWIGTYPE_p_f_double_a___q_const__double_p_double_a___double_p_void__int swig_types[4]
1515 #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void swig_types[5]
1516 #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void swig_types[6]
1517 #define SWIGTYPE_p_f_p_void__unsigned_int swig_types[7]
1518 #define SWIGTYPE_p_f_p_void__void swig_types[8]
1519 #define SWIGTYPE_p_f_p_void_double_double_double_double__int swig_types[9]
1520 #define SWIGTYPE_p_f_p_void_size_t__int swig_types[10]
1521 #define SWIGTYPE_p_f_p_void_size_t_double_double_a___double_a___double_a___q_const__double_a___double_p_q_const__gsl_odeiv_system__int swig_types[11]
1522 #define SWIGTYPE_p_f_p_void_size_t_unsigned_int_a___q_const__double_a___q_const__double_a___q_const__double_p_double__int swig_types[12]
1523 #define SWIGTYPE_p_f_size_t__p_void swig_types[13]
1524 #define SWIGTYPE_p_f_void__p_void swig_types[14]
1525 #define SWIGTYPE_p_gsl_odeiv_control swig_types[15]
1526 #define SWIGTYPE_p_gsl_odeiv_control_type swig_types[16]
1527 #define SWIGTYPE_p_gsl_odeiv_evolve swig_types[17]
1528 #define SWIGTYPE_p_gsl_odeiv_step swig_types[18]
1529 #define SWIGTYPE_p_gsl_odeiv_step_type swig_types[19]
1530 #define SWIGTYPE_p_gsl_odeiv_system swig_types[20]
1531 #define SWIGTYPE_p_void swig_types[21]
1532 static swig_type_info *swig_types[23];
1533 static swig_module_info swig_module = {swig_types, 22, 0, 0, 0, 0};
1534 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1535 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1536  
1537 /* -------- TYPES TABLE (END) -------- */
1538  
1539 #define SWIG_init boot_Math__GSL__ODEIV
1540  
1541 #define SWIG_name "Math::GSL::ODEIVc::boot_Math__GSL__ODEIV"
1542 #define SWIG_prefix "Math::GSL::ODEIVc::"
1543  
1544 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1545 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1546  
1547  
1548 #ifdef __cplusplus
1549 extern "C"
1550 #endif
1551 #ifndef MULTIPLICITY
1552 SWIGEXPORT void SWIG_init (CV* cv);
1553 #else
1554 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
1555 #endif
1556  
1557  
1558 SWIGINTERNINLINE SV *
1559 0 SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value)
1560 {
1561 0 return sv_2mortal(newSVnv(value));
1562 }
1563  
1564  
1565 SWIGINTERNINLINE SV *
1566 0 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
1567 {
1568 SV *sv;
1569 if (IVSIZE >= sizeof(value) || (value >= IV_MIN && value <= IV_MAX))
1570 0 sv = newSViv(value);
1571 else
1572 sv = newSVpvf("%ld", value);
1573 0 return sv_2mortal(sv);
1574 }
1575  
1576  
1577 SWIGINTERNINLINE SV *
1578 0 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
1579 {
1580 0 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
1581 }
1582  
1583  
1584 SWIGINTERN swig_type_info*
1585 0 SWIG_pchar_descriptor(void)
1586 {
1587 static int init = 0;
1588 static swig_type_info* info = 0;
1589 0 ▶ if (!init) {
Branch: 1 branch
BranchTrueFalseTotal
if (!init) { 0 0 0
1590 0 info = SWIG_TypeQuery("_p_char");
1591 0 init = 1;
1592 }
1593 0 return info;
1594 }
1595  
1596  
1597 SWIGINTERN int
1598 0 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1599 {
1600 0 ▶ if (SvMAGICAL(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvMAGICAL(obj)) { 0 0 0
1601 0 SV *tmp = sv_newmortal();
1602 0 ▶ SvSetSV(tmp, obj);
Branch: 1 branch
BranchTrueFalseTotal
SvSetSV(tmp, obj); 0 0 0
1603 0 obj = tmp;
1604 }
1605 0 ▶ if (SvPOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvPOK(obj)) { 0 0 0
1606 0 STRLEN len = 0;
1607 0 char *cstr = SvPV(obj, len);
1608 0 size_t size = len + 1;
1609 0 ▶ if (cptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) { 0 0 0
1610 0 ▶ if (alloc) {
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) { 0 0 0
1611 0 ▶ if (*alloc == SWIG_NEWOBJ) {
Branch: 1 branch
BranchTrueFalseTotal
if (*alloc == SWIG_NEWOBJ) { 0 0 0
1612 0 *cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1613 } else {
1614 0 *cptr = cstr;
1615 0 *alloc = SWIG_OLDOBJ;
1616 }
1617 }
1618 }
1619 0 ▶ if (psize) *psize = size;
Branch: 1 branch
BranchTrueFalseTotal
if (psize) *psize = size; 0 0 0
1620 0 return SWIG_OK;
1621 } else {
1622 0 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1623 0 ▶ if (pchar_descriptor) {
Branch: 1 branch
BranchTrueFalseTotal
if (pchar_descriptor) { 0 0 0
1624 0 char* vptr = 0;
1625 0 ▶ if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
Branch: 1 branch
BranchTrueFalseTotal
if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { 0 0 0
1626 0 ▶ if (cptr) *cptr = vptr;
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) *cptr = vptr; 0 0 0
1627 0 ▶ if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
Branch: 2 branches
BranchTrueFalseTotal
if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; 0 0 0
if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; 0 0 0
1628 0 ▶ if (alloc) *alloc = SWIG_OLDOBJ;
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) *alloc = SWIG_OLDOBJ; 0 0 0
1629 0 return SWIG_OK;
1630 }
1631 }
1632 }
1633 0 return SWIG_TypeError;
1634 }
1635  
1636  
1637  
1638  
1639  
1640 #include <limits.h>
1641 #if !defined(SWIG_NO_LLONG_MAX)
1642 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1643 # define LLONG_MAX __LONG_LONG_MAX__
1644 # define LLONG_MIN (-LLONG_MAX - 1LL)
1645 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1646 # endif
1647 #endif
1648  
1649  
1650 #include <stdlib.h>
1651 #ifdef _MSC_VER
1652 # ifndef strtoull
1653 # define strtoull _strtoui64
1654 # endif
1655 # ifndef strtoll
1656 # define strtoll _strtoi64
1657 # endif
1658 #endif
1659  
1660  
1661 SWIGINTERN int
1662 0 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
1663 {
1664 0 ▶ if (SvNIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvNIOK(obj)) { 0 0 0
1665 0 ▶ if (val) *val = SvNV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvNV(obj); 0 0 0
1666 0 return SWIG_OK;
1667 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1668 0 ▶ if (val) *val = (double) SvIV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (double) SvIV(obj); 0 0 0
1669 0 return SWIG_AddCast(SWIG_OK);
1670 } else {
1671 0 const char *nptr = SvPV_nolen(obj);
1672 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1673 char *endptr;
1674 double v;
1675 0 errno = 0;
1676 0 v = strtod(nptr, &endptr);
1677 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1678 0 errno = 0;
1679 0 return SWIG_OverflowError;
1680 } else {
1681 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1682 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1683 0 return SWIG_Str2NumCast(SWIG_OK);
1684 }
1685 }
1686 }
1687 }
1688 0 return SWIG_TypeError;
1689 }
1690  
1691  
1692 #include <float.h>
1693  
1694  
1695 #include <math.h>
1696  
1697  
1698 SWIGINTERNINLINE int
1699 0 SWIG_CanCastAsInteger(double *d, double min, double max) {
1700 0 double x = *d;
1701 0 ▶ if ((min <= x && x <= max)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((min <= x && x <= max)) { 0 0 0
if ((min <= x && x <= max)) { 0 0 0
1702 double fx, cx, rd;
1703 0 errno = 0;
1704 0 fx = floor(x);
1705 0 cx = ceil(x);
1706 0 ▶ rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
Branch: 1 branch
BranchTrueFalseTotal
rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ 0 0 0
1707 0 ▶ if ((errno == EDOM) || (errno == ERANGE)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((errno == EDOM) || (errno == ERANGE)) { 0 0 0
if ((errno == EDOM) || (errno == ERANGE)) { 0 0 0
1708 0 errno = 0;
1709 } else {
1710 double summ, reps, diff;
1711 0 ▶ if (rd < x) {
Branch: 1 branch
BranchTrueFalseTotal
if (rd < x) { 0 0 0
1712 0 diff = x - rd;
1713 0 ▶ } else if (rd > x) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (rd > x) { 0 0 0
1714 0 diff = rd - x;
1715 } else {
1716 0 return 1;
1717 }
1718 0 summ = rd + x;
1719 0 reps = diff/summ;
1720 0 ▶ if (reps < 8*DBL_EPSILON) {
Branch: 1 branch
BranchTrueFalseTotal
if (reps < 8*DBL_EPSILON) { 0 0 0
1721 0 *d = rd;
1722 0 return 1;
1723 }
1724 }
1725 }
1726 0 return 0;
1727 }
1728  
1729  
1730 SWIGINTERN int
1731 0 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
1732 {
1733 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
1734 0 UV v = SvUV(obj);
1735 0 ▶ if (UVSIZE < sizeof(*val) || v <= LONG_MAX) {
Branch: 1 branch
BranchTrueFalseTotal
if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { 0 0 0
1736 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1737 0 return SWIG_OK;
1738 }
1739 0 return SWIG_OverflowError;
1740 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1741 0 IV v = SvIV(obj);
1742 if (IVSIZE <= sizeof(*val) || (v >= LONG_MIN && v <= LONG_MAX)) {
1743 0 ▶ if(val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if(val) *val = v; 0 0 0
1744 0 return SWIG_OK;
1745 }
1746 return SWIG_OverflowError;
1747 } else {
1748 0 int dispatch = 0;
1749 0 const char *nptr = SvPV_nolen(obj);
1750 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1751 char *endptr;
1752 long v;
1753 0 errno = 0;
1754 0 v = strtol(nptr, &endptr,0);
1755 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1756 0 errno = 0;
1757 0 return SWIG_OverflowError;
1758 } else {
1759 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1760 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1761 0 return SWIG_Str2NumCast(SWIG_OK);
1762 }
1763 }
1764 }
1765 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
1766 double d;
1767 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1768 0 ▶ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
Branch: 2 branches
BranchTrueFalseTotal
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
1769 0 ▶ if (val) *val = (long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (long)(d); 0 0 0
1770 0 return res;
1771 }
1772 }
1773 }
1774 0 return SWIG_TypeError;
1775 }
1776  
1777  
1778 SWIGINTERN int
1779 0 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
1780 {
1781 long v;
1782 0 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
1783 0 ▶ if (SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SWIG_IsOK(res)) { 0 0 0
1784 0 ▶ if ((v < INT_MIN || v > INT_MAX)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((v < INT_MIN || v > INT_MAX)) { 0 0 0
if ((v < INT_MIN || v > INT_MAX)) { 0 0 0
1785 0 return SWIG_OverflowError;
1786 } else {
1787 0 ▶ if (val) *val = (int)(v);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (int)(v); 0 0 0
1788 }
1789 }
1790 0 return res;
1791 }
1792  
1793  
1794 SWIGINTERNINLINE SV *
1795 0 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1796 {
1797 0 SV *obj = sv_newmortal();
1798 0 ▶ if (carray) {
Branch: 1 branch
BranchTrueFalseTotal
if (carray) { 0 0 0
1799 0 sv_setpvn(obj, carray, size);
1800 } else {
1801 0 sv_setsv(obj, &PL_sv_undef);
1802 }
1803 0 return obj;
1804 }
1805  
1806  
1807 SWIGINTERNINLINE SV *
1808 0 SWIG_FromCharPtr(const char *cptr)
1809 {
1810 0 ▶ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
Branch: 1 branch
BranchTrueFalseTotal
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); 0 0 0
1811 }
1812  
1813  
1814 #include "gsl/gsl_nan.h"
1815 #include "gsl/gsl_errno.h"
1816 #include "gsl/gsl_math.h"
1817 #include "gsl/gsl_monte.h"
1818  
1819  
1820 struct perl_array {
1821 I32 len;
1822 AV *array;
1823 };
1824  
1825  
1826  
1827 enum awType { awDouble, awFloat, awInt, awUnsigned };
1828  
1829 typedef struct {
1830 I32 size;
1831 enum awType type;
1832 void * data;
1833 } array_wrapper;
1834  
1835 0 array_wrapper * array_wrapper_alloc(int numelem, enum awType type){
1836 0 array_wrapper * rv = malloc(sizeof(array_wrapper));
1837  
1838 0 ▶ if (rv == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv == NULL) 0 0 0
1839 0 croak("array_wrapper_alloc: can't malloc wrapper\n");
1840  
1841 0 switch (type){
1842 0 case awDouble:
1843 0 rv->data = malloc(sizeof(double) * numelem);
1844 0 break;
1845 0 case awFloat:
1846 0 rv->data = malloc(sizeof(float) * numelem);
1847 0 break;
1848 0 case awInt:
1849 0 rv->data = malloc(sizeof(int) * numelem);
1850 0 break;
1851 0 case awUnsigned:
1852 0 rv->data = malloc(sizeof(unsigned int) * numelem);
1853 0 break;
1854 0 default:
1855 0 croak("array_wrapper_alloc: type should be awDouble, awFloat, awInt, or awUnsigned");
1856 }
1857  
1858 0 ▶ if (rv->data == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv->data == NULL) 0 0 0
1859 0 croak("array_wrapper_alloc: can't malloc data");
1860  
1861 0 rv->size = numelem;
1862 0 rv->type = type;
1863 0 return rv;
1864 }
1865  
1866 0 void array_wrapper_free(array_wrapper * daw){
1867 0 free(daw->data);
1868 0 free(daw);
1869 0 }
1870  
1871  
1872 /* structure to hold required information while the gsl function call
1873 for each callback
1874 */
1875 struct gsl_function_perl {
1876 gsl_function C_gsl_function;
1877 SV * function;
1878 SV * params;
1879 };
1880  
1881 struct gsl_function_fdf_perl {
1882 gsl_function_fdf C_gsl_function_fdf;
1883 SV * f;
1884 SV * df;
1885 SV * fdf;
1886 SV * params;
1887 };
1888  
1889 struct gsl_monte_function_perl {
1890 gsl_monte_function C_gsl_monte_function;
1891 SV * f;
1892 SV * dim;
1893 SV * params;
1894 };
1895  
1896 0 void gsl_function_perl_free(struct gsl_function_perl * perl_f){
1897 0 ▶ if (perl_f != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_f != NULL) { 0 0 0
1898 0 SvREFCNT_dec(perl_f->function);
1899 0 SvREFCNT_dec(perl_f->params);
1900 0 Safefree(perl_f);
1901 }
1902 0 }
1903  
1904 0 void gsl_function_fdf_perl_free(struct gsl_function_fdf_perl * perl_fdf){
1905 0 ▶ if (perl_fdf != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_fdf != NULL) { 0 0 0
1906 0 SvREFCNT_dec(perl_fdf->f);
1907 0 SvREFCNT_dec(perl_fdf->df);
1908 0 SvREFCNT_dec(perl_fdf->fdf);
1909 0 SvREFCNT_dec(perl_fdf->params);
1910 0 Safefree(perl_fdf);
1911 }
1912 0 }
1913  
1914 /* These functions (C callbacks) calls the perl callbacks.
1915 Info for perl callback can be found using the 'void*params' parameter
1916 */
1917 0 double call_gsl_function_x_params(SV* function, double x, SV *params){
1918 unsigned int count;
1919 double y;
1920 0 dSP;
1921  
1922 //fprintf(stderr, "LOOKUP CALLBACK\n");
1923 0 ENTER;
1924 0 SAVETMPS;
1925  
1926 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1927 0 ▶ XPUSHs(sv_2mortal(newSVnv((double)x)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSVnv((double)x))); 0 0 0
1928 0 ▶ XPUSHs(params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(params); 0 0 0
1929 0 PUTBACK; /* make local stack pointer global */
1930  
1931 0 count = call_sv(function, G_SCALAR);
1932 0 SPAGAIN;
1933  
1934 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
1935 0 croak("Expected to call subroutine in scalar context!");
1936  
1937 0 y = POPn;
1938  
1939 0 PUTBACK; /* make local stack pointer global */
1940 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1941 0 LEAVE;
1942  
1943 0 return y;
1944 }
1945  
1946 0 double call_gsl_function(double x , void *params){
1947 0 struct gsl_function_perl *F=(struct gsl_function_perl*)params;
1948 0 return call_gsl_function_x_params( F->function, x, F->params );
1949 }
1950  
1951 0 double call_gsl_function_fdf_f(double x , void *params){
1952 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1953 0 return call_gsl_function_x_params( F->f, x, F->params );
1954 }
1955  
1956 0 double call_gsl_function_fdf_df(double x , void *params){
1957 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1958 0 return call_gsl_function_x_params( F->df, x, F->params );
1959 }
1960  
1961 0 void call_gsl_function_fdf_fdf(double x , void *params, double *f, double *df ){
1962 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1963  
1964 0 dSP;
1965  
1966 0 ENTER;
1967 0 SAVETMPS;
1968  
1969 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1970 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
1971 0 PUSHs(sv_2mortal(newSVnv((double)x)));
1972 0 PUSHs(F->params);
1973 0 PUTBACK; /* make local stack pointer global */
1974  
1975 {
1976 0 unsigned int count = call_sv(F->fdf, G_ARRAY);
1977 0 SPAGAIN;
1978  
1979 0 ▶ if (count != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 2) 0 0 0
1980 0 croak( "Expected two return values, got %d", count );
1981 }
1982  
1983 0 *df = POPn;
1984 0 *f = POPn;
1985  
1986 0 PUTBACK; /* make local stack pointer global */
1987 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1988 0 LEAVE;
1989 0 }
1990  
1991 0 double call_gsl_monte_function(double *x_array , size_t dim, void *params){
1992 0 struct gsl_monte_function_perl *F=(struct gsl_monte_function_perl*)params;
1993 unsigned int count;
1994 unsigned int i;
1995 AV* perl_array;
1996 double y;
1997 0 dSP;
1998  
1999 //fprintf(stderr, "LOOKUP CALLBACK\n");
2000 0 ENTER;
2001 0 SAVETMPS;
2002  
2003 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
2004 0 perl_array=newAV();
2005 0 sv_2mortal((SV*)perl_array);
2006 0 ▶ XPUSHs(sv_2mortal(newRV((SV *)perl_array)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newRV((SV *)perl_array))); 0 0 0
2007 0 ▶ for(i=0; i<dim; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for(i=0; i<dim; i++) { 0 0 0
2008 /* no mortal : it is referenced by the array */
2009 0 av_push(perl_array, newSVnv(x_array[i]));
2010 }
2011 0 ▶ XPUSHs(sv_2mortal(newSViv(dim)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSViv(dim))); 0 0 0
2012 0 ▶ XPUSHs(F->params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(F->params); 0 0 0
2013 0 PUTBACK; /* make local stack pointer global */
2014  
2015 0 count = call_sv(F->f, G_SCALAR);
2016 0 SPAGAIN;
2017  
2018 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
2019 0 croak("Expected to call subroutine in scalar context!");
2020  
2021 0 y = POPn;
2022  
2023 0 PUTBACK; /* make local stack pointer global */
2024 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
2025 0 LEAVE;
2026  
2027 0 return y;
2028 }
2029  
2030  
2031 0 void gsl_function_fdf_extract( char* param_name, HV* hash, SV* func[] ) {
2032 static const char *keys[3] = { "f", "df", "fdf" };
2033  
2034 int ikey;
2035  
2036 0 ▶ for ( ikey = 0 ; ikey < 3 ; ++ikey ) {
Branch: 1 branch
BranchTrueFalseTotal
for ( ikey = 0 ; ikey < 3 ; ++ikey ) { 0 0 0
2037 0 func[ikey] = 0;
2038 0 const char* key = keys[ikey];
2039 /* it just so happens that strlen(keys[ikey]) == ikey + 1 */
2040 0 SV** pp_sv = hv_fetch( hash, key, ikey+1, 0 );
2041 SV* function;
2042  
2043 0 ▶ if ( !pp_sv )
Branch: 1 branch
BranchTrueFalseTotal
if ( !pp_sv ) 0 0 0
2044 0 croak("Math::GSL : %s: missing key %s!", param_name, key);
2045  
2046 0 function = *pp_sv;
2047  
2048 0 ▶ if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) {
Branch: 3 branches
BranchTrueFalseTotal
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
2049 /* hold on to SV after the enclosing hash goes away */
2050 0 SvREFCNT_inc( function );
2051 0 func[ikey] = function;
2052 }
2053 else {
2054 0 croak( "Math::GSL : %s: key %s is not a reference to code!", param_name, key);
2055 }
2056 }
2057 0 }
2058  
2059  
2060  
2061 #include "gsl/gsl_types.h"
2062 #include "gsl/gsl_odeiv.h"
2063 #include <stdarg.h>
2064 #define SWIG_MATH_GSL_ODEIV_PACKAGE_NAME "Math::GSL::ODEIV"
2065 #define SWIG_MATH_GSL_ODEIV_GUTS \
2066 SWIG_MATH_GSL_ODEIV_PACKAGE_NAME "::_guts"
2067  
2068 /* NOTE: We do not use C static variables to store the values since
2069 static variable are not thread-safe, and SWIG does not currently support the
2070 MY_CXT framework, see perldoc perlxs for more information.
2071 Perl package variables are on the other hand thread safe.
2072 */
2073 0 void swig_math_gsl_odeiv_set_gut_pv(
2074 const char *varname, const char *value
2075 )
2076 {
2077 SV *pvname;
2078 SV *sv;
2079  
2080 0 pvname = newSVpvf( "%s::%s", SWIG_MATH_GSL_ODEIV_GUTS, varname);
2081 /*char *pvname = form( "%s::%s", SWIG_MATH_GSL_ODEIV_GUTS, varname);*/
2082 0 sv = get_sv( SvPV_nolen(pvname), GV_ADD );
2083 0 SvREFCNT_dec(pvname);
2084 0 sv_setpv( sv, value );
2085 0 }
2086  
2087 0 const char *swig_math_gsl_odeiv_get_gut_pv(const char *varname)
2088 {
2089 SV *pvname, *sv;
2090  
2091 0 pvname = newSVpvf( "%s::%s", SWIG_MATH_GSL_ODEIV_GUTS, varname);
2092 /*char *pvname = form( "%s::%s", SWIG_MATH_GSL_ODEIV_GUTS, varname);*/
2093 0 sv = get_sv( SvPV_nolen(pvname), GV_ADD );
2094 0 SvREFCNT_dec(pvname);
2095 0 return SvPV_nolen(sv);
2096 }
2097  
2098 0 void swig_math_gsl_odeiv_set_callback_error_param( const char *func )
2099 {
2100 0 swig_math_gsl_odeiv_set_gut_pv( "cbname", func );
2101 0 }
2102  
2103 0 void swig_math_gsl_odeiv_set_error_param(
2104 const char *symname, const char *param
2105 )
2106 {
2107 0 swig_math_gsl_odeiv_set_gut_pv( "symname", symname );
2108 0 swig_math_gsl_odeiv_set_gut_pv( "param", param );
2109 0 }
2110  
2111 0 void swig_math_gsl_odeiv_callback_error(
2112 const char *msg, ...
2113 )
2114 {
2115 const char *cbname;
2116 va_list args;
2117 SV *msg2;
2118  
2119 0 cbname = swig_math_gsl_odeiv_get_gut_pv("cbname");
2120 0 va_start(args, msg);
2121 /*char *msg2 = form(
2122 "Math::GSL::ODEIV: callback function : %s() : %s", cbname, msg
2123 );*/
2124 0 msg2 = newSVpvf(
2125 "Math::GSL::ODEIV: callback function : %s() : %s", cbname, msg
2126 );
2127 0 vcroak( SvPV_nolen(msg2), &args );
2128 /* NOTE: these two lines will never be reached */
2129 SvREFCNT_dec(msg2);
2130 va_end(args);
2131 }
2132  
2133 0 void swig_math_gsl_odeiv_input_param_error(
2134 const char *msg, ...
2135 )
2136 {
2137 const char *subname;
2138 const char *param;
2139 va_list args;
2140 SV *msg2;
2141  
2142 0 subname = swig_math_gsl_odeiv_get_gut_pv("symname");
2143 0 param = swig_math_gsl_odeiv_get_gut_pv("param");
2144 0 va_start(args, msg);
2145 0 msg2 = newSVpvf(
2146 "Math::GSL::ODEIV:%s() : parameter $%s : %s", subname, param, msg
2147 );
2148 0 vcroak( SvPV_nolen(msg2), &args );
2149 /* NOTE: these two lines will never be reached */
2150 SvREFCNT_dec(msg2);
2151 va_end(args);
2152 }
2153  
2154 0 void swig_math_gsl_odeiv_input_error(
2155 const char *msg, ...
2156 )
2157 {
2158 const char *subname;
2159 SV *msg2;
2160 va_list args;
2161  
2162 0 subname = swig_math_gsl_odeiv_get_gut_pv("symname");
2163 0 va_start(args, msg);
2164 0 msg2 = newSVpvf( "Math::GSL::ODEIV:%s() : %s", subname, msg);
2165 0 vcroak( SvPV_nolen(msg2), &args );
2166 /* NOTE: these two lines will never be reached */
2167 SvREFCNT_dec(msg2);
2168 va_end(args);
2169 }
2170  
2171 0 SV *swig_math_gsl_odeiv_get_hash_sv(HV *hash, const char *key)
2172 {
2173 SV *key_sv, *value;
2174 HE *he;
2175  
2176 0 key_sv = newSVpv(key, strlen (key));
2177 0 ▶ if (hv_exists_ent(hash, key_sv, 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists_ent(hash, key_sv, 0)) { 0 0 0
2178 0 he = hv_fetch_ent(hash, key_sv, 0, 0);
2179 0 value = HeVAL(he);
2180 }
2181 else {
2182 0 swig_math_gsl_odeiv_input_param_error(
2183 "The hash key '%s' doesn't exist", key
2184 );
2185 }
2186 0 return value;
2187 }
2188  
2189 0 IV swig_math_gsl_odeiv_get_hash_iv(HV *hash, const char *key) {
2190 SV *sv;
2191 0 sv = swig_math_gsl_odeiv_get_hash_sv(hash, key);
2192 0 ▶ if (SvROK(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvROK(sv)) { 0 0 0
2193 0 swig_math_gsl_odeiv_input_param_error(
2194 "Hash value for key '%s' is not a scalar value", key
2195 );
2196 }
2197 0 ▶ if (!SvIOK(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvIOK(sv)) { 0 0 0
2198 0 swig_math_gsl_odeiv_input_param_error(
2199 "Hash value for key '%s' is not an integer", key
2200 );
2201 }
2202 0 return SvIV(sv);
2203 }
2204  
2205 0 SV *swig_math_gsl_odeiv_get_hash_hashref(HV *hash, const char *key) {
2206 SV *sv;
2207  
2208 0 sv = swig_math_gsl_odeiv_get_hash_sv(hash, key);
2209 0 ▶ if (!SvROK(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(sv)) { 0 0 0
2210 0 swig_math_gsl_odeiv_input_param_error(
2211 "Hash value for key '%s' is not a reference", key
2212 );
2213 }
2214 0 ▶ if (SvTYPE(SvRV(sv)) != SVt_PVHV) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(sv)) != SVt_PVHV) { 0 0 0
2215 0 swig_math_gsl_odeiv_input_param_error(
2216 "Hash value for key '%s' is not a hashref", key
2217 );
2218 }
2219 0 return sv;
2220 }
2221  
2222 0 SV *swig_math_gsl_odeiv_get_hash_coderef(HV *hash, const char *key) {
2223 SV *sv;
2224  
2225 0 sv = swig_math_gsl_odeiv_get_hash_sv(hash, key);
2226 0 ▶ if (!SvROK(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(sv)) { 0 0 0
2227 0 swig_math_gsl_odeiv_input_param_error(
2228 "Hash value for key '%s' is not a reference", key
2229 );
2230 }
2231 0 ▶ if (SvTYPE(SvRV(sv)) != SVt_PVCV) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(sv)) != SVt_PVCV) { 0 0 0
2232 0 swig_math_gsl_odeiv_input_param_error(
2233 "Hash value for key '%s' is not a coderef", key
2234 );
2235 }
2236 0 return sv;
2237 }
2238  
2239 0 void swig_math_gsl_odeiv_store_hash_ptr( HV *hash, const char *key, void *ptr)
2240 {
2241 SV *sv;
2242  
2243 0 sv = newSViv(PTR2IV(ptr));
2244 /* Let the hash take ownership of the sv */
2245 0 ▶ if( !hv_store(hash, key, strlen(key), sv, 0) ) {
Branch: 1 branch
BranchTrueFalseTotal
if( !hv_store(hash, key, strlen(key), sv, 0) ) { 0 0 0
2246 0 SvREFCNT_dec(sv);
2247 0 swig_math_gsl_odeiv_input_param_error(
2248 "Cannot store internal information in the hash"
2249 );
2250 }
2251 0 }
2252  
2253 0 void *swig_math_gsl_odeiv_get_hash_ptr(HV *hash, const char *key) {
2254 IV ptr;
2255  
2256 0 ptr = swig_math_gsl_odeiv_get_hash_iv(hash, key);
2257 0 return (void *) INT2PTR(SV*, ptr);
2258 }
2259  
2260 0 void swig_math_gsl_odeiv_store_double_in_av( AV *array, SSize_t index, double val)
2261 {
2262 SV *sval;
2263  
2264 0 sval = newSVnv(val);
2265 0 ▶ if( !av_store(array, index, sval) ) {
Branch: 1 branch
BranchTrueFalseTotal
if( !av_store(array, index, sval) ) { 0 0 0
2266 0 SvREFCNT_dec(sval);
2267 0 swig_math_gsl_odeiv_callback_error(
2268 "Cannot store internal information in array"
2269 );
2270 }
2271 0 }
2272  
2273 0 void swig_math_gsl_odeiv_copy_av_to_carray(AV *array, double *y, size_t dim)
2274 {
2275 int i;
2276 SSize_t array_len;
2277 SV **sv_ptr;
2278 SV *sv;
2279 double val;
2280  
2281 0 array_len = av_len(array) + 1;
2282 0 ▶ if (array_len != dim ) {
Branch: 1 branch
BranchTrueFalseTotal
if (array_len != dim ) { 0 0 0
2283 0 swig_math_gsl_odeiv_callback_error(
2284 "Callback returned array of wrong dimension"
2285 );
2286 }
2287 0 ▶ for (i = 0; i < dim; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < dim; i++) { 0 0 0
2288 0 sv_ptr = av_fetch( array, i, 0 );
2289 0 ▶ if (!sv_ptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (!sv_ptr) { 0 0 0
2290 0 swig_math_gsl_odeiv_callback_error(
2291 "Cannot extract values from returned array"
2292 );
2293 }
2294 0 sv = *sv_ptr;
2295 0 ▶ if (SvROK(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvROK(sv)) { 0 0 0
2296 0 swig_math_gsl_odeiv_callback_error(
2297 "Returned array value is not a scalar"
2298 );
2299 }
2300 /* TODO: Not sure if this check is necessary */
2301 0 ▶ if (SvTYPE(sv) >= SVt_PVAV) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(sv) >= SVt_PVAV) { 0 0 0
2302 0 swig_math_gsl_odeiv_callback_error(
2303 "Returned array value is not of scalar type"
2304 );
2305 }
2306 0 val = (double ) SvNV(sv);
2307 0 y[i] = val;
2308 }
2309 0 }
2310  
2311 0 void swig_math_gsl_odeiv_copy_doubles_to_av(AV *array, const double *y, size_t dim)
2312 {
2313 int i;
2314 0 ▶ for (i = 0; i < dim; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < dim; i++) { 0 0 0
2315 0 swig_math_gsl_odeiv_store_double_in_av(array, i, y[i]);
2316 }
2317 0 }
2318  
2319 typedef struct {
2320 SV *func;
2321 SV *jac;
2322 SV *params;
2323 size_t dim;
2324 gsl_odeiv_system *sys;
2325 } swig_math_gsl_odeiv_system;
2326  
2327 0 int swig_math_gsl_odeiv_call_perl_jac (
2328 SV *callback, double t, const double y[], double *dfdy, double *dfdt,
2329 swig_math_gsl_odeiv_system *params
2330 )
2331 {
2332 AV *ay, *a_dfdy, *a_dfdt;
2333 int count;
2334 IV result;
2335  
2336 0 ay = (AV *)sv_2mortal((SV *)newAV());
2337 0 a_dfdy = (AV *)sv_2mortal((SV *)newAV());
2338 0 a_dfdt = (AV *)sv_2mortal((SV *)newAV());
2339 0 dSP; /* declares a local copy of stack pointer */
2340 0 ENTER;
2341 0 SAVETMPS;
2342 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
2343 0 ▶ EXTEND(SP, 5);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 5); 0 0 0
2344 0 PUSHs(sv_2mortal(newSVnv(t)));
2345 0 swig_math_gsl_odeiv_copy_doubles_to_av(ay, y, params->dim);
2346 0 PUSHs(sv_2mortal((SV *)newRV_inc((SV *) ay)));
2347 0 PUSHs(sv_2mortal((SV *)newRV_inc((SV *) a_dfdy)));
2348 0 PUSHs(sv_2mortal((SV *)newRV_inc((SV *) a_dfdt)));
2349 0 PUSHs(params->params);
2350 0 PUTBACK;
2351 0 count = call_sv(callback, G_SCALAR); /* call the Perl callback */
2352 0 SPAGAIN;
2353 0 ▶ if (count != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) { 0 0 0
2354 0 swig_math_gsl_odeiv_callback_error(
2355 "Bad return value from callback: expected 1 value, got %d", count
2356 );
2357 }
2358 0 result = POPi; /* TODO: check ST(0) instead for valid value */
2359 0 swig_math_gsl_odeiv_copy_av_to_carray(a_dfdy, dfdy, (params->dim)*(params->dim));
2360 0 swig_math_gsl_odeiv_copy_av_to_carray(a_dfdt, dfdt, params->dim);
2361 0 PUTBACK;
2362 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
2363 0 LEAVE;
2364 0 return (int) result;
2365 }
2366  
2367 0 int swig_math_gsl_odeiv_call_perl_func (
2368 SV *callback, double t, const double y[], double dydt[],
2369 swig_math_gsl_odeiv_system *params)
2370 {
2371 AV *ay, *aj;
2372 int count;
2373 IV result;
2374  
2375 0 ay = (AV *)sv_2mortal((SV *)newAV());
2376 0 aj = (AV *)sv_2mortal((SV *)newAV());
2377 0 dSP; /* declares a local copy of stack pointer */
2378 0 ENTER;
2379 0 SAVETMPS;
2380 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
2381 0 ▶ EXTEND(SP, 4);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 4); 0 0 0
2382 0 PUSHs(sv_2mortal(newSVnv(t)));
2383 0 swig_math_gsl_odeiv_copy_doubles_to_av(ay, y, params->dim);
2384 0 PUSHs(sv_2mortal((SV *)newRV_inc((SV *) ay)));
2385 0 PUSHs(sv_2mortal((SV *)newRV_inc((SV *) aj)));
2386 0 PUSHs(params->params);
2387 0 PUTBACK;
2388 0 count = call_sv(callback, G_SCALAR); /* call the Perl callback */
2389 0 SPAGAIN;
2390 /* This should not happen for G_SCALAR, see perldoc perlcall.
2391 * Even if the callback does not return anything, count will still be 1
2392 * since we are not passing the G_DISCARD flag
2393 */
2394 0 ▶ if (count != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) { 0 0 0
2395 0 swig_math_gsl_odeiv_callback_error(
2396 "Bad return value from callback: expected 1 value, got %d", count
2397 );
2398 }
2399 0 result = POPi; /* TODO: check ST(0) instead for valid value */
2400 0 swig_math_gsl_odeiv_copy_av_to_carray(aj, dydt, params->dim);
2401 0 PUTBACK;
2402 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
2403 0 LEAVE;
2404 0 return result;
2405 }
2406  
2407 0 int swig_math_gsl_odeiv_callback_function(
2408 double t, const double y[], double dydt[], void *params)
2409 {
2410 0 swig_math_gsl_odeiv_set_callback_error_param( "func" );
2411 0 swig_math_gsl_odeiv_system *sparam = (swig_math_gsl_odeiv_system *) params;
2412 0 return swig_math_gsl_odeiv_call_perl_func(sparam->func, t, y, dydt, sparam);
2413 }
2414  
2415 0 int swig_math_gsl_odeiv_callback_jac(
2416 double t, const double y[], double *dfdy, double *dfdt, void *params
2417 )
2418 {
2419 0 swig_math_gsl_odeiv_set_callback_error_param( "jac" );
2420 0 swig_math_gsl_odeiv_system *sparam = (swig_math_gsl_odeiv_system *) params;
2421 0 return swig_math_gsl_odeiv_call_perl_jac(sparam->jac, t, y, dfdy, dfdt, sparam);
2422 }
2423  
2424 0 void swig_math_gsl_odeiv_fill_system_struct( HV *hash, gsl_odeiv_system *sys )
2425 {
2426 swig_math_gsl_odeiv_system *ssys;
2427 0 Newx(ssys, 1, swig_math_gsl_odeiv_system);
2428 0 ssys->func = swig_math_gsl_odeiv_get_hash_coderef( hash, "func" );
2429 0 ssys->jac = swig_math_gsl_odeiv_get_hash_coderef( hash, "jac" );
2430 0 ssys->params = swig_math_gsl_odeiv_get_hash_hashref( hash, "params" );
2431 0 ssys->dim = (size_t) swig_math_gsl_odeiv_get_hash_iv( hash, "dim" );
2432 0 sys->function = swig_math_gsl_odeiv_callback_function;
2433 0 sys->jacobian = swig_math_gsl_odeiv_callback_jac;
2434 0 sys->dimension = (size_t) swig_math_gsl_odeiv_get_hash_iv( hash, "dim" );
2435 0 sys->params = (void *) ssys;
2436 0 }
2437  
2438  
2439 SWIGINTERN int
2440 0 SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val)
2441 {
2442 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
2443 0 UV v = SvUV(obj);
2444 if (UVSIZE <= sizeof(*val) || v <= ULONG_MAX) {
2445 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2446 0 return SWIG_OK;
2447 }
2448 return SWIG_OverflowError;
2449 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
2450 0 IV v = SvIV(obj);
2451 0 ▶ if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULONG_MAX)) {
Branch: 1 branch
BranchTrueFalseTotal
if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULONG_MAX)) { 0 0 0
2452 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2453 0 return SWIG_OK;
2454 }
2455 0 return SWIG_OverflowError;
2456 } else {
2457 0 int dispatch = 0;
2458 0 const char *nptr = SvPV_nolen(obj);
2459 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
2460 char *endptr;
2461 unsigned long v;
2462 0 errno = 0;
2463 0 v = strtoul(nptr, &endptr,0);
2464 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
2465 0 errno = 0;
2466 0 return SWIG_OverflowError;
2467 } else {
2468 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
2469 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2470 0 return SWIG_Str2NumCast(SWIG_OK);
2471 }
2472 }
2473 }
2474 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
2475 double d;
2476 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
2477 0 ▶ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
Branch: 2 branches
BranchTrueFalseTotal
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
2478 0 ▶ if (val) *val = (unsigned long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned long)(d); 0 0 0
2479 0 return res;
2480 }
2481 }
2482 }
2483 0 return SWIG_TypeError;
2484 }
2485  
2486  
2487 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
2488 # define SWIG_LONG_LONG_AVAILABLE
2489 #endif
2490  
2491  
2492 #ifdef SWIG_LONG_LONG_AVAILABLE
2493 SWIGINTERN int
2494 0 SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long long *val)
2495 {
2496 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
2497 /* pretty sure this should be conditional on
2498 * (UVSIZE <= sizeof(*val) || v <= ULLONG_MAX) */
2499 0 ▶ if (val) *val = SvUV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvUV(obj); 0 0 0
2500 0 return SWIG_OK;
2501 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
2502 0 IV v = SvIV(obj);
2503 0 ▶ if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULLONG_MAX)) {
Branch: 1 branch
BranchTrueFalseTotal
if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULLONG_MAX)) { 0 0 0
2504 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2505 0 return SWIG_OK;
2506 } else {
2507 0 return SWIG_OverflowError;
2508 }
2509 } else {
2510 0 int dispatch = 0;
2511 0 const char *nptr = SvPV_nolen(obj);
2512 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
2513 char *endptr;
2514 unsigned long long v;
2515 0 errno = 0;
2516 0 v = strtoull(nptr, &endptr,0);
2517 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
2518 0 errno = 0;
2519 0 return SWIG_OverflowError;
2520 } else {
2521 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
2522 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2523 0 return SWIG_Str2NumCast(SWIG_OK);
2524 }
2525 }
2526 }
2527 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
2528 0 const double mant_max = 1LL << DBL_MANT_DIG;
2529 double d;
2530 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
2531 0 ▶ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
Branch: 2 branches
BranchTrueFalseTotal
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
2532 0 ▶ if (val) *val = (unsigned long long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned long long)(d); 0 0 0
2533 0 return res;
2534 }
2535 }
2536 }
2537 0 return SWIG_TypeError;
2538 }
2539 #endif
2540  
2541  
2542 SWIGINTERNINLINE int
2543 0 SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val)
2544 {
2545 0 int res = SWIG_TypeError;
2546 #ifdef SWIG_LONG_LONG_AVAILABLE
2547 if (sizeof(size_t) <= sizeof(unsigned long)) {
2548 #endif
2549 unsigned long v;
2550 0 ▶ res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
Branch: 1 branch
BranchTrueFalseTotal
res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); 0 0 0
2551 0 ▶ if (SWIG_IsOK(res) && val) *val = (size_t)(v);
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsOK(res) && val) *val = (size_t)(v); 0 0 0
if (SWIG_IsOK(res) && val) *val = (size_t)(v); 0 0 0
2552 #ifdef SWIG_LONG_LONG_AVAILABLE
2553 } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
2554 unsigned long long v;
2555 res = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
2556 if (SWIG_IsOK(res) && val) *val = (size_t)(v);
2557 }
2558 #endif
2559 0 return res;
2560 }
2561  
2562  
2563 SWIGINTERNINLINE SV *
2564 0 SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value)
2565 {
2566 SV *sv;
2567 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2568 0 sv = newSVuv(value);
2569 else
2570 sv = newSVpvf("%lu", value);
2571 0 return sv_2mortal(sv);
2572 }
2573  
2574  
2575 #include <stdio.h>
2576 #if (defined(_MSC_VER) && (_MSC_VER < 1900)) || defined(__BORLANDC__) || defined(_WATCOM)
2577 # ifndef snprintf
2578 # define snprintf _snprintf
2579 # endif
2580 #endif
2581  
2582  
2583 #ifdef SWIG_LONG_LONG_AVAILABLE
2584 SWIGINTERNINLINE SV *
2585 SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long long value)
2586 {
2587 SV *sv;
2588 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2589 sv = newSVuv((UV)(value));
2590 else {
2591 //sv = newSVpvf("%llu", value); doesn't work in non 64bit Perl
2592 char temp[256];
2593 SWIG_snprintf(temp, sizeof(temp), "%llu", value);
2594 sv = newSVpv(temp, 0);
2595 }
2596 return sv_2mortal(sv);
2597 }
2598 #endif
2599  
2600  
2601 SWIGINTERNINLINE SV *
2602 0 SWIG_From_size_t SWIG_PERL_DECL_ARGS_1(size_t value)
2603 {
2604 #ifdef SWIG_LONG_LONG_AVAILABLE
2605 if (sizeof(size_t) <= sizeof(unsigned long)) {
2606 #endif
2607 0 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long)(value));
2608 #ifdef SWIG_LONG_LONG_AVAILABLE
2609 } else {
2610 /* assume sizeof(size_t) <= sizeof(unsigned long long) */
2611 return SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long long)(value));
2612 }
2613 #endif
2614 }
2615  
2616  
2617 SWIGINTERNINLINE SV *
2618 0 SWIG_From_unsigned_SS_int SWIG_PERL_DECL_ARGS_1(unsigned int value)
2619 {
2620 0 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value);
2621 }
2622  
2623  
2624 typedef struct {
2625 double h;
2626 SV *sv;
2627 } swig_perl_double_in_out;
2628  
2629  
2630 #ifdef __cplusplus
2631 extern "C" {
2632 #endif
2633  
2634 #define MAGIC_CLASS
2635 0 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
2636 MAGIC_PPERL
2637 0 croak("Value is read-only.");
2638 return 0;
2639 }
2640 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk2_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2641 MAGIC_PPERL
2642 {
2643 0 void *argp = 0;
2644 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2645 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2646 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk2""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk2""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2647 }
2648 0 gsl_odeiv_step_rk2 = (gsl_odeiv_step_type *)(argp);
2649 }
2650 0 fail:
2651 0 return 1;
2652 }
2653  
2654  
2655 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk2_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2656 MAGIC_PPERL
2657 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_rk2));
2658 0 return 1;
2659 }
2660  
2661  
2662 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk4_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2663 MAGIC_PPERL
2664 {
2665 0 void *argp = 0;
2666 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2667 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2668 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk4""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk4""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2669 }
2670 0 gsl_odeiv_step_rk4 = (gsl_odeiv_step_type *)(argp);
2671 }
2672 0 fail:
2673 0 return 1;
2674 }
2675  
2676  
2677 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk4_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2678 MAGIC_PPERL
2679 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_rk4));
2680 0 return 1;
2681 }
2682  
2683  
2684 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rkf45_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2685 MAGIC_PPERL
2686 {
2687 0 void *argp = 0;
2688 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2689 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2690 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rkf45""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rkf45""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2691 }
2692 0 gsl_odeiv_step_rkf45 = (gsl_odeiv_step_type *)(argp);
2693 }
2694 0 fail:
2695 0 return 1;
2696 }
2697  
2698  
2699 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rkf45_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2700 MAGIC_PPERL
2701 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_rkf45));
2702 0 return 1;
2703 }
2704  
2705  
2706 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rkck_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2707 MAGIC_PPERL
2708 {
2709 0 void *argp = 0;
2710 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2711 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2712 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rkck""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rkck""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2713 }
2714 0 gsl_odeiv_step_rkck = (gsl_odeiv_step_type *)(argp);
2715 }
2716 0 fail:
2717 0 return 1;
2718 }
2719  
2720  
2721 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rkck_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2722 MAGIC_PPERL
2723 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_rkck));
2724 0 return 1;
2725 }
2726  
2727  
2728 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk8pd_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2729 MAGIC_PPERL
2730 {
2731 0 void *argp = 0;
2732 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2733 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2734 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk8pd""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk8pd""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2735 }
2736 0 gsl_odeiv_step_rk8pd = (gsl_odeiv_step_type *)(argp);
2737 }
2738 0 fail:
2739 0 return 1;
2740 }
2741  
2742  
2743 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk8pd_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2744 MAGIC_PPERL
2745 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_rk8pd));
2746 0 return 1;
2747 }
2748  
2749  
2750 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk2imp_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2751 MAGIC_PPERL
2752 {
2753 0 void *argp = 0;
2754 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2755 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2756 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk2imp""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk2imp""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2757 }
2758 0 gsl_odeiv_step_rk2imp = (gsl_odeiv_step_type *)(argp);
2759 }
2760 0 fail:
2761 0 return 1;
2762 }
2763  
2764  
2765 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk2imp_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2766 MAGIC_PPERL
2767 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_rk2imp));
2768 0 return 1;
2769 }
2770  
2771  
2772 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk2simp_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2773 MAGIC_PPERL
2774 {
2775 0 void *argp = 0;
2776 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2777 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2778 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk2simp""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk2simp""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2779 }
2780 0 gsl_odeiv_step_rk2simp = (gsl_odeiv_step_type *)(argp);
2781 }
2782 0 fail:
2783 0 return 1;
2784 }
2785  
2786  
2787 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk2simp_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2788 MAGIC_PPERL
2789 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_rk2simp));
2790 0 return 1;
2791 }
2792  
2793  
2794 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk4imp_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2795 MAGIC_PPERL
2796 {
2797 0 void *argp = 0;
2798 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2799 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2800 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk4imp""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_rk4imp""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2801 }
2802 0 gsl_odeiv_step_rk4imp = (gsl_odeiv_step_type *)(argp);
2803 }
2804 0 fail:
2805 0 return 1;
2806 }
2807  
2808  
2809 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_rk4imp_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2810 MAGIC_PPERL
2811 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_rk4imp));
2812 0 return 1;
2813 }
2814  
2815  
2816 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_bsimp_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2817 MAGIC_PPERL
2818 {
2819 0 void *argp = 0;
2820 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2821 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2822 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_bsimp""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_bsimp""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2823 }
2824 0 gsl_odeiv_step_bsimp = (gsl_odeiv_step_type *)(argp);
2825 }
2826 0 fail:
2827 0 return 1;
2828 }
2829  
2830  
2831 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_bsimp_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2832 MAGIC_PPERL
2833 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_bsimp));
2834 0 return 1;
2835 }
2836  
2837  
2838 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_gear1_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2839 MAGIC_PPERL
2840 {
2841 0 void *argp = 0;
2842 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2843 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2844 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_gear1""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_gear1""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2845 }
2846 0 gsl_odeiv_step_gear1 = (gsl_odeiv_step_type *)(argp);
2847 }
2848 0 fail:
2849 0 return 1;
2850 }
2851  
2852  
2853 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_gear1_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2854 MAGIC_PPERL
2855 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_gear1));
2856 0 return 1;
2857 }
2858  
2859  
2860 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_gear2_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2861 MAGIC_PPERL
2862 {
2863 0 void *argp = 0;
2864 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_odeiv_step_type, 0 );
2865 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2866 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_gear2""' of type '""gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_odeiv_step_gear2""' of type '""gsl_odeiv_step_type const *""'"); 0 0 0
2867 }
2868 0 gsl_odeiv_step_gear2 = (gsl_odeiv_step_type *)(argp);
2869 }
2870 0 fail:
2871 0 return 1;
2872 }
2873  
2874  
2875 0 SWIGCLASS_STATIC int _wrap_gsl_odeiv_step_gear2_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2876 MAGIC_PPERL
2877 0 sv_setiv(SvRV(sv),PTR2IV(gsl_odeiv_step_gear2));
2878 0 return 1;
2879 }
2880  
2881  
2882  
2883 #ifdef __cplusplus
2884 }
2885 #endif
2886  
2887 #ifdef __cplusplus
2888 extern "C" {
2889 #endif
2890 0 XS(_wrap_gsl_error) {
2891 {
2892 0 char *arg1 = (char *) 0 ;
2893 0 char *arg2 = (char *) 0 ;
2894 int arg3 ;
2895 int arg4 ;
2896 int res1 ;
2897 0 char *buf1 = 0 ;
2898 0 int alloc1 = 0 ;
2899 int res2 ;
2900 0 char *buf2 = 0 ;
2901 0 int alloc2 = 0 ;
2902 int val3 ;
2903 0 int ecode3 = 0 ;
2904 int val4 ;
2905 0 int ecode4 = 0 ;
2906 0 int argvi = 0;
2907 0 dXSARGS;
2908
2909 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
2910 0 SWIG_croak("Usage: gsl_error(reason,file,line,gsl_errno);");
2911 }
2912 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2913 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2914 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_error" "', argument " "1"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_error" "', argument " "1"" of type '" "char const *""'"); 0 0 0
2915 }
2916 0 arg1 = (char *)(buf1);
2917 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2918 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2919 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_error" "', argument " "2"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_error" "', argument " "2"" of type '" "char const *""'"); 0 0 0
2920 }
2921 0 arg2 = (char *)(buf2);
2922 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2923 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2924 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_error" "', argument " "3"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_error" "', argument " "3"" of type '" "int""'"); 0 0 0
2925 }
2926 0 arg3 = (int)(val3);
2927 0 ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2928 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2929 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_error" "', argument " "4"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_error" "', argument " "4"" of type '" "int""'"); 0 0 0
2930 }
2931 0 arg4 = (int)(val4);
2932 0 gsl_error((char const *)arg1,(char const *)arg2,arg3,arg4);
2933 0 ST(argvi) = &PL_sv_undef;
2934 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2935 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2936
2937
2938 0 XSRETURN(argvi);
2939 0 fail:
2940 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2941 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2942
2943
2944 0 SWIG_croak_null();
2945 }
2946 }
2947  
2948  
2949 0 XS(_wrap_gsl_stream_printf) {
2950 {
2951 0 char *arg1 = (char *) 0 ;
2952 0 char *arg2 = (char *) 0 ;
2953 int arg3 ;
2954 0 char *arg4 = (char *) 0 ;
2955 int res1 ;
2956 0 char *buf1 = 0 ;
2957 0 int alloc1 = 0 ;
2958 int res2 ;
2959 0 char *buf2 = 0 ;
2960 0 int alloc2 = 0 ;
2961 int val3 ;
2962 0 int ecode3 = 0 ;
2963 int res4 ;
2964 0 char *buf4 = 0 ;
2965 0 int alloc4 = 0 ;
2966 0 int argvi = 0;
2967 0 dXSARGS;
2968
2969 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
2970 0 SWIG_croak("Usage: gsl_stream_printf(label,file,line,reason);");
2971 }
2972 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2973 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2974 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stream_printf" "', argument " "1"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stream_printf" "', argument " "1"" of type '" "char const *""'"); 0 0 0
2975 }
2976 0 arg1 = (char *)(buf1);
2977 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2978 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2979 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stream_printf" "', argument " "2"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stream_printf" "', argument " "2"" of type '" "char const *""'"); 0 0 0
2980 }
2981 0 arg2 = (char *)(buf2);
2982 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2983 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2984 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stream_printf" "', argument " "3"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stream_printf" "', argument " "3"" of type '" "int""'"); 0 0 0
2985 }
2986 0 arg3 = (int)(val3);
2987 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
2988 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
2989 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stream_printf" "', argument " "4"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stream_printf" "', argument " "4"" of type '" "char const *""'"); 0 0 0
2990 }
2991 0 arg4 = (char *)(buf4);
2992 0 gsl_stream_printf((char const *)arg1,(char const *)arg2,arg3,(char const *)arg4);
2993 0 ST(argvi) = &PL_sv_undef;
2994 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2995 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2996
2997 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2998 0 XSRETURN(argvi);
2999 0 fail:
3000 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
3001 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
3002
3003 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
3004 0 SWIG_croak_null();
3005 }
3006 }
3007  
3008  
3009 0 XS(_wrap_gsl_strerror) {
3010 {
3011 int arg1 ;
3012 int val1 ;
3013 0 int ecode1 = 0 ;
3014 0 int argvi = 0;
3015 0 char *result = 0 ;
3016 0 dXSARGS;
3017
3018 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3019 0 SWIG_croak("Usage: gsl_strerror(gsl_errno);");
3020 }
3021 0 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
3022 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
3023 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_strerror" "', argument " "1"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_strerror" "', argument " "1"" of type '" "int""'"); 0 0 0
3024 }
3025 0 arg1 = (int)(val1);
3026 0 result = (char *)gsl_strerror(arg1);
3027 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3028
3029 0 XSRETURN(argvi);
3030 0 fail:
3031
3032 0 SWIG_croak_null();
3033 }
3034 }
3035  
3036  
3037 0 XS(_wrap_gsl_set_error_handler) {
3038 {
3039 0 gsl_error_handler_t *arg1 = (gsl_error_handler_t *) 0 ;
3040 0 int argvi = 0;
3041 0 gsl_error_handler_t *result = 0 ;
3042 0 dXSARGS;
3043
3044 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3045 0 SWIG_croak("Usage: gsl_set_error_handler(new_handler);");
3046 }
3047 {
3048 0 int res = SWIG_ConvertFunctionPtr(ST(0), (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void);
3049 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3050 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_error_handler" "', argument " "1"" of type '" "gsl_error_handler_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_error_handler" "', argument " "1"" of type '" "gsl_error_handler_t *""'"); 0 0 0
3051 }
3052 }
3053 0 result = (gsl_error_handler_t *)gsl_set_error_handler(arg1);
3054 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
3055
3056 0 XSRETURN(argvi);
3057 0 fail:
3058
3059 0 SWIG_croak_null();
3060 }
3061 }
3062  
3063  
3064 0 XS(_wrap_gsl_set_error_handler_off) {
3065 {
3066 0 int argvi = 0;
3067 0 gsl_error_handler_t *result = 0 ;
3068 0 dXSARGS;
3069
3070 0 ▶ if ((items < 0) || (items > 0)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 0) || (items > 0)) { 0 0 0
if ((items < 0) || (items > 0)) { 0 0 0
3071 0 SWIG_croak("Usage: gsl_set_error_handler_off();");
3072 }
3073 0 result = (gsl_error_handler_t *)gsl_set_error_handler_off();
3074 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
3075 0 XSRETURN(argvi);
3076 0 fail:
3077 0 SWIG_croak_null();
3078 }
3079 }
3080  
3081  
3082 0 XS(_wrap_gsl_set_stream_handler) {
3083 {
3084 0 gsl_stream_handler_t *arg1 = (gsl_stream_handler_t *) 0 ;
3085 0 int argvi = 0;
3086 0 gsl_stream_handler_t *result = 0 ;
3087 0 dXSARGS;
3088
3089 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3090 0 SWIG_croak("Usage: gsl_set_stream_handler(new_handler);");
3091 }
3092 {
3093 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);
3094 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3095 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_stream_handler" "', argument " "1"" of type '" "gsl_stream_handler_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_stream_handler" "', argument " "1"" of type '" "gsl_stream_handler_t *""'"); 0 0 0
3096 }
3097 }
3098 0 result = (gsl_stream_handler_t *)gsl_set_stream_handler(arg1);
3099 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++ ;
3100
3101 0 XSRETURN(argvi);
3102 0 fail:
3103
3104 0 SWIG_croak_null();
3105 }
3106 }
3107  
3108  
3109 0 XS(_wrap_gsl_set_stream) {
3110 {
3111 0 FILE *arg1 = (FILE *) 0 ;
3112 0 void *argp1 = 0 ;
3113 0 int res1 = 0 ;
3114 0 int argvi = 0;
3115 0 FILE *result = 0 ;
3116 0 dXSARGS;
3117
3118 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3119 0 SWIG_croak("Usage: gsl_set_stream(new_stream);");
3120 }
3121 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 );
3122 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3123 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_set_stream" "', argument " "1"" of type '" "FILE *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_set_stream" "', argument " "1"" of type '" "FILE *""'"); 0 0 0
3124 }
3125 0 arg1 = (FILE *)(argp1);
3126 0 result = (FILE *)gsl_set_stream(arg1);
3127 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0); argvi++ ;
3128
3129 0 XSRETURN(argvi);
3130 0 fail:
3131
3132 0 SWIG_croak_null();
3133 }
3134 }
3135  
3136  
3137 0 XS(_wrap_gsl_odeiv_system_function_set) {
3138 {
3139 0 gsl_odeiv_system *arg1 = (gsl_odeiv_system *) 0 ;
3140 0 int (*arg2)(double,double const [],double [],void *) = (int (*)(double,double const [],double [],void *)) 0 ;
3141 0 void *argp1 = 0 ;
3142 0 int res1 = 0 ;
3143 0 int argvi = 0;
3144 0 dXSARGS;
3145
3146 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3147 0 SWIG_croak("Usage: gsl_odeiv_system_function_set(self,function);");
3148 }
3149 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_system, 0 | 0 );
3150 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3151 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_function_set" "', argument " "1"" of type '" "gsl_odeiv_system *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_function_set" "', argument " "1"" of type '" "gsl_odeiv_system *""'"); 0 0 0
3152 }
3153 0 arg1 = (gsl_odeiv_system *)(argp1);
3154 {
3155 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_double_a___q_const__double_a___double_p_void__int);
3156 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3157 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_system_function_set" "', argument " "2"" of type '" "int (*)(double,double const [],double [],void *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_system_function_set" "', argument " "2"" of type '" "int (*)(double,double const [],double [],void *)""'"); 0 0 0
3158 }
3159 }
3160 0 ▶ if (arg1) (arg1)->function = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->function = arg2; 0 0 0
3161 0 ST(argvi) = &PL_sv_undef;
3162
3163
3164 0 XSRETURN(argvi);
3165 0 fail:
3166
3167
3168 0 SWIG_croak_null();
3169 }
3170 }
3171  
3172  
3173 0 XS(_wrap_gsl_odeiv_system_function_get) {
3174 {
3175 0 gsl_odeiv_system *arg1 = (gsl_odeiv_system *) 0 ;
3176 0 void *argp1 = 0 ;
3177 0 int res1 = 0 ;
3178 0 int argvi = 0;
3179 0 int (*result)(double,double const [],double [],void *) = 0 ;
3180 0 dXSARGS;
3181
3182 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3183 0 SWIG_croak("Usage: gsl_odeiv_system_function_get(self);");
3184 }
3185 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_system, 0 | 0 );
3186 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3187 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_function_get" "', argument " "1"" of type '" "gsl_odeiv_system *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_function_get" "', argument " "1"" of type '" "gsl_odeiv_system *""'"); 0 0 0
3188 }
3189 0 arg1 = (gsl_odeiv_system *)(argp1);
3190 0 result = (int (*)(double,double const [],double [],void *)) ((arg1)->function);
3191 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_double_a___q_const__double_a___double_p_void__int); argvi++ ;
3192
3193 0 XSRETURN(argvi);
3194 0 fail:
3195
3196 0 SWIG_croak_null();
3197 }
3198 }
3199  
3200  
3201 0 XS(_wrap_gsl_odeiv_system_jacobian_set) {
3202 {
3203 0 gsl_odeiv_system *arg1 = (gsl_odeiv_system *) 0 ;
3204 0 int (*arg2)(double,double const [],double *,double [],void *) = (int (*)(double,double const [],double *,double [],void *)) 0 ;
3205 0 void *argp1 = 0 ;
3206 0 int res1 = 0 ;
3207 0 int argvi = 0;
3208 0 dXSARGS;
3209
3210 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3211 0 SWIG_croak("Usage: gsl_odeiv_system_jacobian_set(self,jacobian);");
3212 }
3213 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_system, 0 | 0 );
3214 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3215 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_jacobian_set" "', argument " "1"" of type '" "gsl_odeiv_system *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_jacobian_set" "', argument " "1"" of type '" "gsl_odeiv_system *""'"); 0 0 0
3216 }
3217 0 arg1 = (gsl_odeiv_system *)(argp1);
3218 {
3219 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_double_a___q_const__double_p_double_a___double_p_void__int);
3220 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3221 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_system_jacobian_set" "', argument " "2"" of type '" "int (*)(double,double const [],double *,double [],void *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_system_jacobian_set" "', argument " "2"" of type '" "int (*)(double,double const [],double *,double [],void *)""'"); 0 0 0
3222 }
3223 }
3224 0 ▶ if (arg1) (arg1)->jacobian = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->jacobian = arg2; 0 0 0
3225 0 ST(argvi) = &PL_sv_undef;
3226
3227
3228 0 XSRETURN(argvi);
3229 0 fail:
3230
3231
3232 0 SWIG_croak_null();
3233 }
3234 }
3235  
3236  
3237 0 XS(_wrap_gsl_odeiv_system_jacobian_get) {
3238 {
3239 0 gsl_odeiv_system *arg1 = (gsl_odeiv_system *) 0 ;
3240 0 void *argp1 = 0 ;
3241 0 int res1 = 0 ;
3242 0 int argvi = 0;
3243 0 int (*result)(double,double const [],double *,double [],void *) = 0 ;
3244 0 dXSARGS;
3245
3246 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3247 0 SWIG_croak("Usage: gsl_odeiv_system_jacobian_get(self);");
3248 }
3249 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_system, 0 | 0 );
3250 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3251 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_jacobian_get" "', argument " "1"" of type '" "gsl_odeiv_system *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_jacobian_get" "', argument " "1"" of type '" "gsl_odeiv_system *""'"); 0 0 0
3252 }
3253 0 arg1 = (gsl_odeiv_system *)(argp1);
3254 0 result = (int (*)(double,double const [],double *,double [],void *)) ((arg1)->jacobian);
3255 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_double_a___q_const__double_p_double_a___double_p_void__int); argvi++ ;
3256
3257 0 XSRETURN(argvi);
3258 0 fail:
3259
3260 0 SWIG_croak_null();
3261 }
3262 }
3263  
3264  
3265 0 XS(_wrap_gsl_odeiv_system_dimension_set) {
3266 {
3267 0 gsl_odeiv_system *arg1 = (gsl_odeiv_system *) 0 ;
3268 size_t arg2 ;
3269 0 void *argp1 = 0 ;
3270 0 int res1 = 0 ;
3271 size_t val2 ;
3272 0 int ecode2 = 0 ;
3273 0 int argvi = 0;
3274 0 dXSARGS;
3275
3276 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3277 0 SWIG_croak("Usage: gsl_odeiv_system_dimension_set(self,dimension);");
3278 }
3279 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_system, 0 | 0 );
3280 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3281 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_dimension_set" "', argument " "1"" of type '" "gsl_odeiv_system *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_dimension_set" "', argument " "1"" of type '" "gsl_odeiv_system *""'"); 0 0 0
3282 }
3283 0 arg1 = (gsl_odeiv_system *)(argp1);
3284 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3285 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3286 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_system_dimension_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_system_dimension_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3287 }
3288 0 arg2 = (size_t)(val2);
3289 0 ▶ if (arg1) (arg1)->dimension = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->dimension = arg2; 0 0 0
3290 0 ST(argvi) = &PL_sv_undef;
3291
3292
3293 0 XSRETURN(argvi);
3294 0 fail:
3295
3296
3297 0 SWIG_croak_null();
3298 }
3299 }
3300  
3301  
3302 0 XS(_wrap_gsl_odeiv_system_dimension_get) {
3303 {
3304 0 gsl_odeiv_system *arg1 = (gsl_odeiv_system *) 0 ;
3305 0 void *argp1 = 0 ;
3306 0 int res1 = 0 ;
3307 0 int argvi = 0;
3308 size_t result;
3309 0 dXSARGS;
3310
3311 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3312 0 SWIG_croak("Usage: gsl_odeiv_system_dimension_get(self);");
3313 }
3314 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_system, 0 | 0 );
3315 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3316 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_dimension_get" "', argument " "1"" of type '" "gsl_odeiv_system *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_dimension_get" "', argument " "1"" of type '" "gsl_odeiv_system *""'"); 0 0 0
3317 }
3318 0 arg1 = (gsl_odeiv_system *)(argp1);
3319 0 result = ((arg1)->dimension);
3320 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
3321
3322 0 XSRETURN(argvi);
3323 0 fail:
3324
3325 0 SWIG_croak_null();
3326 }
3327 }
3328  
3329  
3330 0 XS(_wrap_gsl_odeiv_system_params_set) {
3331 {
3332 0 gsl_odeiv_system *arg1 = (gsl_odeiv_system *) 0 ;
3333 0 void *arg2 = (void *) 0 ;
3334 0 void *argp1 = 0 ;
3335 0 int res1 = 0 ;
3336 int res2 ;
3337 0 int argvi = 0;
3338 0 dXSARGS;
3339
3340 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3341 0 SWIG_croak("Usage: gsl_odeiv_system_params_set(self,params);");
3342 }
3343 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_system, 0 | 0 );
3344 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3345 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_params_set" "', argument " "1"" of type '" "gsl_odeiv_system *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_params_set" "', argument " "1"" of type '" "gsl_odeiv_system *""'"); 0 0 0
3346 }
3347 0 arg1 = (gsl_odeiv_system *)(argp1);
3348 0 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
3349 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3350 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_system_params_set" "', argument " "2"" of type '" "void *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_system_params_set" "', argument " "2"" of type '" "void *""'"); 0 0 0
3351 }
3352 0 ▶ if (arg1) (arg1)->params = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->params = arg2; 0 0 0
3353 0 ST(argvi) = &PL_sv_undef;
3354
3355
3356 0 XSRETURN(argvi);
3357 0 fail:
3358
3359
3360 0 SWIG_croak_null();
3361 }
3362 }
3363  
3364  
3365 0 XS(_wrap_gsl_odeiv_system_params_get) {
3366 {
3367 0 gsl_odeiv_system *arg1 = (gsl_odeiv_system *) 0 ;
3368 0 void *argp1 = 0 ;
3369 0 int res1 = 0 ;
3370 0 int argvi = 0;
3371 0 void *result = 0 ;
3372 0 dXSARGS;
3373
3374 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3375 0 SWIG_croak("Usage: gsl_odeiv_system_params_get(self);");
3376 }
3377 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_system, 0 | 0 );
3378 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3379 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_params_get" "', argument " "1"" of type '" "gsl_odeiv_system *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_system_params_get" "', argument " "1"" of type '" "gsl_odeiv_system *""'"); 0 0 0
3380 }
3381 0 arg1 = (gsl_odeiv_system *)(argp1);
3382 0 result = (void *) ((arg1)->params);
3383 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
3384
3385 0 XSRETURN(argvi);
3386 0 fail:
3387
3388 0 SWIG_croak_null();
3389 }
3390 }
3391  
3392  
3393 0 XS(_wrap_new_gsl_odeiv_system) {
3394 {
3395 0 int argvi = 0;
3396 0 gsl_odeiv_system *result = 0 ;
3397 0 dXSARGS;
3398
3399 0 ▶ if ((items < 0) || (items > 0)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 0) || (items > 0)) { 0 0 0
if ((items < 0) || (items > 0)) { 0 0 0
3400 0 SWIG_croak("Usage: new_gsl_odeiv_system();");
3401 }
3402 0 result = (gsl_odeiv_system *)calloc(1, sizeof(gsl_odeiv_system));
3403 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_system, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
3404 0 XSRETURN(argvi);
3405 0 fail:
3406 0 SWIG_croak_null();
3407 }
3408 }
3409  
3410  
3411 0 XS(_wrap_delete_gsl_odeiv_system) {
3412 {
3413 0 gsl_odeiv_system *arg1 = (gsl_odeiv_system *) 0 ;
3414 0 void *argp1 = 0 ;
3415 0 int res1 = 0 ;
3416 0 int argvi = 0;
3417 0 dXSARGS;
3418
3419 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3420 0 SWIG_croak("Usage: delete_gsl_odeiv_system(self);");
3421 }
3422 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_system, SWIG_POINTER_DISOWN | 0 );
3423 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3424 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_system" "', argument " "1"" of type '" "gsl_odeiv_system *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_system" "', argument " "1"" of type '" "gsl_odeiv_system *""'"); 0 0 0
3425 }
3426 0 arg1 = (gsl_odeiv_system *)(argp1);
3427 0 free((char *) arg1);
3428 0 ST(argvi) = &PL_sv_undef;
3429
3430 0 XSRETURN(argvi);
3431 0 fail:
3432
3433 0 SWIG_croak_null();
3434 }
3435 }
3436  
3437  
3438 0 XS(_wrap_gsl_odeiv_step_type_name_set) {
3439 {
3440 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3441 0 char *arg2 = (char *) 0 ;
3442 0 void *argp1 = 0 ;
3443 0 int res1 = 0 ;
3444 int res2 ;
3445 0 char *buf2 = 0 ;
3446 0 int alloc2 = 0 ;
3447 0 int argvi = 0;
3448 0 dXSARGS;
3449
3450 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3451 0 SWIG_croak("Usage: gsl_odeiv_step_type_name_set(self,name);");
3452 }
3453 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3454 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3455 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_name_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_name_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3456 }
3457 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3458 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
3459 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3460 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_step_type_name_set" "', argument " "2"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_step_type_name_set" "', argument " "2"" of type '" "char const *""'"); 0 0 0
3461 }
3462 0 arg2 = (char *)(buf2);
3463 0 ▶ if (arg2) {
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) { 0 0 0
3464 0 size_t size = strlen((const char *)((const char *)(arg2))) + 1;
3465 0 arg1->name = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
3466 } else {
3467 0 arg1->name = 0;
3468 }
3469 0 ST(argvi) = &PL_sv_undef;
3470
3471 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
3472 0 XSRETURN(argvi);
3473 0 fail:
3474
3475 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
3476 0 SWIG_croak_null();
3477 }
3478 }
3479  
3480  
3481 0 XS(_wrap_gsl_odeiv_step_type_name_get) {
3482 {
3483 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3484 0 void *argp1 = 0 ;
3485 0 int res1 = 0 ;
3486 0 int argvi = 0;
3487 0 char *result = 0 ;
3488 0 dXSARGS;
3489
3490 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3491 0 SWIG_croak("Usage: gsl_odeiv_step_type_name_get(self);");
3492 }
3493 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3494 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3495 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_name_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_name_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3496 }
3497 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3498 0 result = (char *) ((arg1)->name);
3499 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3500
3501 0 XSRETURN(argvi);
3502 0 fail:
3503
3504 0 SWIG_croak_null();
3505 }
3506 }
3507  
3508  
3509 0 XS(_wrap_gsl_odeiv_step_type_can_use_dydt_in_set) {
3510 {
3511 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3512 int arg2 ;
3513 0 void *argp1 = 0 ;
3514 0 int res1 = 0 ;
3515 int val2 ;
3516 0 int ecode2 = 0 ;
3517 0 int argvi = 0;
3518 0 dXSARGS;
3519
3520 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3521 0 SWIG_croak("Usage: gsl_odeiv_step_type_can_use_dydt_in_set(self,can_use_dydt_in);");
3522 }
3523 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3524 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3525 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_can_use_dydt_in_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_can_use_dydt_in_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3526 }
3527 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3528 0 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3529 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3530 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_step_type_can_use_dydt_in_set" "', argument " "2"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_step_type_can_use_dydt_in_set" "', argument " "2"" of type '" "int""'"); 0 0 0
3531 }
3532 0 arg2 = (int)(val2);
3533 0 ▶ if (arg1) (arg1)->can_use_dydt_in = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->can_use_dydt_in = arg2; 0 0 0
3534 0 ST(argvi) = &PL_sv_undef;
3535
3536
3537 0 XSRETURN(argvi);
3538 0 fail:
3539
3540
3541 0 SWIG_croak_null();
3542 }
3543 }
3544  
3545  
3546 0 XS(_wrap_gsl_odeiv_step_type_can_use_dydt_in_get) {
3547 {
3548 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3549 0 void *argp1 = 0 ;
3550 0 int res1 = 0 ;
3551 0 int argvi = 0;
3552 int result;
3553 0 dXSARGS;
3554
3555 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3556 0 SWIG_croak("Usage: gsl_odeiv_step_type_can_use_dydt_in_get(self);");
3557 }
3558 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3559 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3560 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_can_use_dydt_in_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_can_use_dydt_in_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3561 }
3562 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3563 0 result = (int) ((arg1)->can_use_dydt_in);
3564 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3565
3566 0 XSRETURN(argvi);
3567 0 fail:
3568
3569 0 SWIG_croak_null();
3570 }
3571 }
3572  
3573  
3574 0 XS(_wrap_gsl_odeiv_step_type_gives_exact_dydt_out_set) {
3575 {
3576 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3577 int arg2 ;
3578 0 void *argp1 = 0 ;
3579 0 int res1 = 0 ;
3580 int val2 ;
3581 0 int ecode2 = 0 ;
3582 0 int argvi = 0;
3583 0 dXSARGS;
3584
3585 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3586 0 SWIG_croak("Usage: gsl_odeiv_step_type_gives_exact_dydt_out_set(self,gives_exact_dydt_out);");
3587 }
3588 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3589 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3590 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_gives_exact_dydt_out_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_gives_exact_dydt_out_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3591 }
3592 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3593 0 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3594 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3595 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_step_type_gives_exact_dydt_out_set" "', argument " "2"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_step_type_gives_exact_dydt_out_set" "', argument " "2"" of type '" "int""'"); 0 0 0
3596 }
3597 0 arg2 = (int)(val2);
3598 0 ▶ if (arg1) (arg1)->gives_exact_dydt_out = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->gives_exact_dydt_out = arg2; 0 0 0
3599 0 ST(argvi) = &PL_sv_undef;
3600
3601
3602 0 XSRETURN(argvi);
3603 0 fail:
3604
3605
3606 0 SWIG_croak_null();
3607 }
3608 }
3609  
3610  
3611 0 XS(_wrap_gsl_odeiv_step_type_gives_exact_dydt_out_get) {
3612 {
3613 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3614 0 void *argp1 = 0 ;
3615 0 int res1 = 0 ;
3616 0 int argvi = 0;
3617 int result;
3618 0 dXSARGS;
3619
3620 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3621 0 SWIG_croak("Usage: gsl_odeiv_step_type_gives_exact_dydt_out_get(self);");
3622 }
3623 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3624 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3625 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_gives_exact_dydt_out_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_gives_exact_dydt_out_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3626 }
3627 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3628 0 result = (int) ((arg1)->gives_exact_dydt_out);
3629 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3630
3631 0 XSRETURN(argvi);
3632 0 fail:
3633
3634 0 SWIG_croak_null();
3635 }
3636 }
3637  
3638  
3639 0 XS(_wrap_gsl_odeiv_step_type_alloc_set) {
3640 {
3641 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3642 0 void *(*arg2)(size_t) = (void *(*)(size_t)) 0 ;
3643 0 void *argp1 = 0 ;
3644 0 int res1 = 0 ;
3645 0 int argvi = 0;
3646 0 dXSARGS;
3647
3648 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3649 0 SWIG_croak("Usage: gsl_odeiv_step_type_alloc_set(self,alloc);");
3650 }
3651 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3652 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3653 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_alloc_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_alloc_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3654 }
3655 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3656 {
3657 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_size_t__p_void);
3658 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3659 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_step_type_alloc_set" "', argument " "2"" of type '" "void *(*)(size_t)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_step_type_alloc_set" "', argument " "2"" of type '" "void *(*)(size_t)""'"); 0 0 0
3660 }
3661 }
3662 0 ▶ if (arg1) (arg1)->alloc = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->alloc = arg2; 0 0 0
3663 0 ST(argvi) = &PL_sv_undef;
3664
3665
3666 0 XSRETURN(argvi);
3667 0 fail:
3668
3669
3670 0 SWIG_croak_null();
3671 }
3672 }
3673  
3674  
3675 0 XS(_wrap_gsl_odeiv_step_type_alloc_get) {
3676 {
3677 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3678 0 void *argp1 = 0 ;
3679 0 int res1 = 0 ;
3680 0 int argvi = 0;
3681 0 void *(*result)(size_t) = 0 ;
3682 0 dXSARGS;
3683
3684 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3685 0 SWIG_croak("Usage: gsl_odeiv_step_type_alloc_get(self);");
3686 }
3687 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3688 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3689 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_alloc_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_alloc_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3690 }
3691 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3692 0 result = (void *(*)(size_t)) ((arg1)->alloc);
3693 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_size_t__p_void); argvi++ ;
3694
3695 0 XSRETURN(argvi);
3696 0 fail:
3697
3698 0 SWIG_croak_null();
3699 }
3700 }
3701  
3702  
3703 0 XS(_wrap_gsl_odeiv_step_type_apply_set) {
3704 {
3705 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3706 0 int (*arg2)(void *,size_t,double,double,double [],double [],double const [],double [],gsl_odeiv_system const *) = (int (*)(void *,size_t,double,double,double [],double [],double const [],double [],gsl_odeiv_system const *)) 0 ;
3707 0 void *argp1 = 0 ;
3708 0 int res1 = 0 ;
3709 0 int argvi = 0;
3710 0 dXSARGS;
3711
3712 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3713 0 SWIG_croak("Usage: gsl_odeiv_step_type_apply_set(self,apply);");
3714 }
3715 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3716 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3717 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_apply_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_apply_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3718 }
3719 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3720 {
3721 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_size_t_double_double_a___double_a___double_a___q_const__double_a___double_p_q_const__gsl_odeiv_system__int);
3722 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3723 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_step_type_apply_set" "', argument " "2"" of type '" "int (*)(void *,size_t,double,double,double [],double [],double const [],double [],gsl_odeiv_system const *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_step_type_apply_set" "', argument " "2"" of type '" "int (*)(void *,size_t,double,double,double [],double [],double const [],double [],gsl_odeiv_system const *)""'"); 0 0 0
3724 }
3725 }
3726 0 ▶ if (arg1) (arg1)->apply = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->apply = arg2; 0 0 0
3727 0 ST(argvi) = &PL_sv_undef;
3728
3729
3730 0 XSRETURN(argvi);
3731 0 fail:
3732
3733
3734 0 SWIG_croak_null();
3735 }
3736 }
3737  
3738  
3739 0 XS(_wrap_gsl_odeiv_step_type_apply_get) {
3740 {
3741 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3742 0 void *argp1 = 0 ;
3743 0 int res1 = 0 ;
3744 0 int argvi = 0;
3745 0 int (*result)(void *,size_t,double,double,double [],double [],double const [],double [],gsl_odeiv_system const *) = 0 ;
3746 0 dXSARGS;
3747
3748 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3749 0 SWIG_croak("Usage: gsl_odeiv_step_type_apply_get(self);");
3750 }
3751 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3752 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3753 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_apply_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_apply_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3754 }
3755 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3756 0 result = (int (*)(void *,size_t,double,double,double [],double [],double const [],double [],gsl_odeiv_system const *)) ((arg1)->apply);
3757 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_size_t_double_double_a___double_a___double_a___q_const__double_a___double_p_q_const__gsl_odeiv_system__int); argvi++ ;
3758
3759 0 XSRETURN(argvi);
3760 0 fail:
3761
3762 0 SWIG_croak_null();
3763 }
3764 }
3765  
3766  
3767 0 XS(_wrap_gsl_odeiv_step_type_reset_set) {
3768 {
3769 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3770 0 int (*arg2)(void *,size_t) = (int (*)(void *,size_t)) 0 ;
3771 0 void *argp1 = 0 ;
3772 0 int res1 = 0 ;
3773 0 int argvi = 0;
3774 0 dXSARGS;
3775
3776 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3777 0 SWIG_croak("Usage: gsl_odeiv_step_type_reset_set(self,reset);");
3778 }
3779 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3780 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3781 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_reset_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_reset_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3782 }
3783 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3784 {
3785 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_size_t__int);
3786 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3787 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_step_type_reset_set" "', argument " "2"" of type '" "int (*)(void *,size_t)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_step_type_reset_set" "', argument " "2"" of type '" "int (*)(void *,size_t)""'"); 0 0 0
3788 }
3789 }
3790 0 ▶ if (arg1) (arg1)->reset = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->reset = arg2; 0 0 0
3791 0 ST(argvi) = &PL_sv_undef;
3792
3793
3794 0 XSRETURN(argvi);
3795 0 fail:
3796
3797
3798 0 SWIG_croak_null();
3799 }
3800 }
3801  
3802  
3803 0 XS(_wrap_gsl_odeiv_step_type_reset_get) {
3804 {
3805 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3806 0 void *argp1 = 0 ;
3807 0 int res1 = 0 ;
3808 0 int argvi = 0;
3809 0 int (*result)(void *,size_t) = 0 ;
3810 0 dXSARGS;
3811
3812 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3813 0 SWIG_croak("Usage: gsl_odeiv_step_type_reset_get(self);");
3814 }
3815 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3816 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3817 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_reset_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_reset_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3818 }
3819 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3820 0 result = (int (*)(void *,size_t)) ((arg1)->reset);
3821 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_size_t__int); argvi++ ;
3822
3823 0 XSRETURN(argvi);
3824 0 fail:
3825
3826 0 SWIG_croak_null();
3827 }
3828 }
3829  
3830  
3831 0 XS(_wrap_gsl_odeiv_step_type_order_set) {
3832 {
3833 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3834 0 unsigned int (*arg2)(void *) = (unsigned int (*)(void *)) 0 ;
3835 0 void *argp1 = 0 ;
3836 0 int res1 = 0 ;
3837 0 int argvi = 0;
3838 0 dXSARGS;
3839
3840 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3841 0 SWIG_croak("Usage: gsl_odeiv_step_type_order_set(self,order);");
3842 }
3843 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3844 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3845 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_order_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_order_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3846 }
3847 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3848 {
3849 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void__unsigned_int);
3850 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3851 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_step_type_order_set" "', argument " "2"" of type '" "unsigned int (*)(void *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_step_type_order_set" "', argument " "2"" of type '" "unsigned int (*)(void *)""'"); 0 0 0
3852 }
3853 }
3854 0 ▶ if (arg1) (arg1)->order = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->order = arg2; 0 0 0
3855 0 ST(argvi) = &PL_sv_undef;
3856
3857
3858 0 XSRETURN(argvi);
3859 0 fail:
3860
3861
3862 0 SWIG_croak_null();
3863 }
3864 }
3865  
3866  
3867 0 XS(_wrap_gsl_odeiv_step_type_order_get) {
3868 {
3869 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3870 0 void *argp1 = 0 ;
3871 0 int res1 = 0 ;
3872 0 int argvi = 0;
3873 0 unsigned int (*result)(void *) = 0 ;
3874 0 dXSARGS;
3875
3876 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3877 0 SWIG_croak("Usage: gsl_odeiv_step_type_order_get(self);");
3878 }
3879 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3880 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3881 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_order_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_order_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3882 }
3883 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3884 0 result = (unsigned int (*)(void *)) ((arg1)->order);
3885 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__unsigned_int); argvi++ ;
3886
3887 0 XSRETURN(argvi);
3888 0 fail:
3889
3890 0 SWIG_croak_null();
3891 }
3892 }
3893  
3894  
3895 0 XS(_wrap_gsl_odeiv_step_type_free_set) {
3896 {
3897 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3898 0 void (*arg2)(void *) = (void (*)(void *)) 0 ;
3899 0 void *argp1 = 0 ;
3900 0 int res1 = 0 ;
3901 0 int argvi = 0;
3902 0 dXSARGS;
3903
3904 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3905 0 SWIG_croak("Usage: gsl_odeiv_step_type_free_set(self,free);");
3906 }
3907 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3908 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3909 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_free_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_free_set" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3910 }
3911 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3912 {
3913 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void__void);
3914 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3915 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_step_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_step_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'"); 0 0 0
3916 }
3917 }
3918 0 ▶ if (arg1) (arg1)->free = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->free = arg2; 0 0 0
3919 0 ST(argvi) = &PL_sv_undef;
3920
3921
3922 0 XSRETURN(argvi);
3923 0 fail:
3924
3925
3926 0 SWIG_croak_null();
3927 }
3928 }
3929  
3930  
3931 0 XS(_wrap_gsl_odeiv_step_type_free_get) {
3932 {
3933 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3934 0 void *argp1 = 0 ;
3935 0 int res1 = 0 ;
3936 0 int argvi = 0;
3937 0 void (*result)(void *) = 0 ;
3938 0 dXSARGS;
3939
3940 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3941 0 SWIG_croak("Usage: gsl_odeiv_step_type_free_get(self);");
3942 }
3943 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
3944 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3945 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_free_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_free_get" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3946 }
3947 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3948 0 result = (void (*)(void *)) ((arg1)->free);
3949 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void); argvi++ ;
3950
3951 0 XSRETURN(argvi);
3952 0 fail:
3953
3954 0 SWIG_croak_null();
3955 }
3956 }
3957  
3958  
3959 0 XS(_wrap_new_gsl_odeiv_step_type) {
3960 {
3961 0 int argvi = 0;
3962 0 gsl_odeiv_step_type *result = 0 ;
3963 0 dXSARGS;
3964
3965 0 ▶ if ((items < 0) || (items > 0)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 0) || (items > 0)) { 0 0 0
if ((items < 0) || (items > 0)) { 0 0 0
3966 0 SWIG_croak("Usage: new_gsl_odeiv_step_type();");
3967 }
3968 0 result = (gsl_odeiv_step_type *)calloc(1, sizeof(gsl_odeiv_step_type));
3969 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_step_type, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
3970 0 XSRETURN(argvi);
3971 0 fail:
3972 0 SWIG_croak_null();
3973 }
3974 }
3975  
3976  
3977 0 XS(_wrap_delete_gsl_odeiv_step_type) {
3978 {
3979 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
3980 0 void *argp1 = 0 ;
3981 0 int res1 = 0 ;
3982 0 int argvi = 0;
3983 0 dXSARGS;
3984
3985 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
3986 0 SWIG_croak("Usage: delete_gsl_odeiv_step_type(self);");
3987 }
3988 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, SWIG_POINTER_DISOWN | 0 );
3989 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3990 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_step_type" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_step_type" "', argument " "1"" of type '" "gsl_odeiv_step_type *""'"); 0 0 0
3991 }
3992 0 arg1 = (gsl_odeiv_step_type *)(argp1);
3993 0 free((char *) arg1);
3994 0 ST(argvi) = &PL_sv_undef;
3995
3996 0 XSRETURN(argvi);
3997 0 fail:
3998
3999 0 SWIG_croak_null();
4000 }
4001 }
4002  
4003  
4004 0 XS(_wrap_gsl_odeiv_step_type_set) {
4005 {
4006 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4007 0 gsl_odeiv_step_type *arg2 = (gsl_odeiv_step_type *) 0 ;
4008 0 void *argp1 = 0 ;
4009 0 int res1 = 0 ;
4010 0 void *argp2 = 0 ;
4011 0 int res2 = 0 ;
4012 0 int argvi = 0;
4013 0 dXSARGS;
4014
4015 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4016 0 SWIG_croak("Usage: gsl_odeiv_step_type_set(self,type);");
4017 }
4018 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4019 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4020 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_set" "', argument " "1"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_set" "', argument " "1"" of type '" "gsl_odeiv_step *""'"); 0 0 0
4021 }
4022 0 arg1 = (gsl_odeiv_step *)(argp1);
4023 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_odeiv_step_type, SWIG_POINTER_DISOWN | 0 );
4024 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4025 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_step_type_set" "', argument " "2"" of type '" "gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_step_type_set" "', argument " "2"" of type '" "gsl_odeiv_step_type const *""'"); 0 0 0
4026 }
4027 0 arg2 = (gsl_odeiv_step_type *)(argp2);
4028 0 ▶ if (arg1) (arg1)->type = (gsl_odeiv_step_type const *)arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->type = (gsl_odeiv_step_type const *)arg2; 0 0 0
4029 0 ST(argvi) = &PL_sv_undef;
4030
4031
4032 0 XSRETURN(argvi);
4033 0 fail:
4034
4035
4036 0 SWIG_croak_null();
4037 }
4038 }
4039  
4040  
4041 0 XS(_wrap_gsl_odeiv_step_type_get) {
4042 {
4043 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4044 0 void *argp1 = 0 ;
4045 0 int res1 = 0 ;
4046 0 int argvi = 0;
4047 0 gsl_odeiv_step_type *result = 0 ;
4048 0 dXSARGS;
4049
4050 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4051 0 SWIG_croak("Usage: gsl_odeiv_step_type_get(self);");
4052 }
4053 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4054 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4055 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_get" "', argument " "1"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_type_get" "', argument " "1"" of type '" "gsl_odeiv_step *""'"); 0 0 0
4056 }
4057 0 arg1 = (gsl_odeiv_step *)(argp1);
4058 0 result = (gsl_odeiv_step_type *) ((arg1)->type);
4059 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_step_type, 0 | SWIG_SHADOW); argvi++ ;
4060
4061 0 XSRETURN(argvi);
4062 0 fail:
4063
4064 0 SWIG_croak_null();
4065 }
4066 }
4067  
4068  
4069 0 XS(_wrap_gsl_odeiv_step_dimension_set) {
4070 {
4071 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4072 size_t arg2 ;
4073 0 void *argp1 = 0 ;
4074 0 int res1 = 0 ;
4075 size_t val2 ;
4076 0 int ecode2 = 0 ;
4077 0 int argvi = 0;
4078 0 dXSARGS;
4079
4080 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4081 0 SWIG_croak("Usage: gsl_odeiv_step_dimension_set(self,dimension);");
4082 }
4083 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4084 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4085 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_dimension_set" "', argument " "1"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_dimension_set" "', argument " "1"" of type '" "gsl_odeiv_step *""'"); 0 0 0
4086 }
4087 0 arg1 = (gsl_odeiv_step *)(argp1);
4088 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4089 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4090 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_step_dimension_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_step_dimension_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4091 }
4092 0 arg2 = (size_t)(val2);
4093 0 ▶ if (arg1) (arg1)->dimension = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->dimension = arg2; 0 0 0
4094 0 ST(argvi) = &PL_sv_undef;
4095
4096
4097 0 XSRETURN(argvi);
4098 0 fail:
4099
4100
4101 0 SWIG_croak_null();
4102 }
4103 }
4104  
4105  
4106 0 XS(_wrap_gsl_odeiv_step_dimension_get) {
4107 {
4108 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4109 0 void *argp1 = 0 ;
4110 0 int res1 = 0 ;
4111 0 int argvi = 0;
4112 size_t result;
4113 0 dXSARGS;
4114
4115 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4116 0 SWIG_croak("Usage: gsl_odeiv_step_dimension_get(self);");
4117 }
4118 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4119 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4120 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_dimension_get" "', argument " "1"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_dimension_get" "', argument " "1"" of type '" "gsl_odeiv_step *""'"); 0 0 0
4121 }
4122 0 arg1 = (gsl_odeiv_step *)(argp1);
4123 0 result = ((arg1)->dimension);
4124 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
4125
4126 0 XSRETURN(argvi);
4127 0 fail:
4128
4129 0 SWIG_croak_null();
4130 }
4131 }
4132  
4133  
4134 0 XS(_wrap_gsl_odeiv_step_state_set) {
4135 {
4136 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4137 0 void *arg2 = (void *) 0 ;
4138 0 void *argp1 = 0 ;
4139 0 int res1 = 0 ;
4140 int res2 ;
4141 0 int argvi = 0;
4142 0 dXSARGS;
4143
4144 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4145 0 SWIG_croak("Usage: gsl_odeiv_step_state_set(self,state);");
4146 }
4147 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4148 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4149 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_state_set" "', argument " "1"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_state_set" "', argument " "1"" of type '" "gsl_odeiv_step *""'"); 0 0 0
4150 }
4151 0 arg1 = (gsl_odeiv_step *)(argp1);
4152 0 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
4153 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4154 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_step_state_set" "', argument " "2"" of type '" "void *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_step_state_set" "', argument " "2"" of type '" "void *""'"); 0 0 0
4155 }
4156 0 ▶ if (arg1) (arg1)->state = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->state = arg2; 0 0 0
4157 0 ST(argvi) = &PL_sv_undef;
4158
4159
4160 0 XSRETURN(argvi);
4161 0 fail:
4162
4163
4164 0 SWIG_croak_null();
4165 }
4166 }
4167  
4168  
4169 0 XS(_wrap_gsl_odeiv_step_state_get) {
4170 {
4171 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4172 0 void *argp1 = 0 ;
4173 0 int res1 = 0 ;
4174 0 int argvi = 0;
4175 0 void *result = 0 ;
4176 0 dXSARGS;
4177
4178 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4179 0 SWIG_croak("Usage: gsl_odeiv_step_state_get(self);");
4180 }
4181 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4182 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4183 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_state_get" "', argument " "1"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_state_get" "', argument " "1"" of type '" "gsl_odeiv_step *""'"); 0 0 0
4184 }
4185 0 arg1 = (gsl_odeiv_step *)(argp1);
4186 0 result = (void *) ((arg1)->state);
4187 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
4188
4189 0 XSRETURN(argvi);
4190 0 fail:
4191
4192 0 SWIG_croak_null();
4193 }
4194 }
4195  
4196  
4197 0 XS(_wrap_new_gsl_odeiv_step) {
4198 {
4199 0 int argvi = 0;
4200 0 gsl_odeiv_step *result = 0 ;
4201 0 dXSARGS;
4202
4203 0 ▶ if ((items < 0) || (items > 0)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 0) || (items > 0)) { 0 0 0
if ((items < 0) || (items > 0)) { 0 0 0
4204 0 SWIG_croak("Usage: new_gsl_odeiv_step();");
4205 }
4206 0 result = (gsl_odeiv_step *)calloc(1, sizeof(gsl_odeiv_step));
4207 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_step, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
4208 0 XSRETURN(argvi);
4209 0 fail:
4210 0 SWIG_croak_null();
4211 }
4212 }
4213  
4214  
4215 0 XS(_wrap_delete_gsl_odeiv_step) {
4216 {
4217 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4218 0 void *argp1 = 0 ;
4219 0 int res1 = 0 ;
4220 0 int argvi = 0;
4221 0 dXSARGS;
4222
4223 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4224 0 SWIG_croak("Usage: delete_gsl_odeiv_step(self);");
4225 }
4226 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, SWIG_POINTER_DISOWN | 0 );
4227 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4228 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_step" "', argument " "1"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_step" "', argument " "1"" of type '" "gsl_odeiv_step *""'"); 0 0 0
4229 }
4230 0 arg1 = (gsl_odeiv_step *)(argp1);
4231 0 free((char *) arg1);
4232 0 ST(argvi) = &PL_sv_undef;
4233
4234 0 XSRETURN(argvi);
4235 0 fail:
4236
4237 0 SWIG_croak_null();
4238 }
4239 }
4240  
4241  
4242 0 XS(_wrap_gsl_odeiv_step_alloc) {
4243 {
4244 0 gsl_odeiv_step_type *arg1 = (gsl_odeiv_step_type *) 0 ;
4245 size_t arg2 ;
4246 0 void *argp1 = 0 ;
4247 0 int res1 = 0 ;
4248 size_t val2 ;
4249 0 int ecode2 = 0 ;
4250 0 int argvi = 0;
4251 0 gsl_odeiv_step *result = 0 ;
4252 0 dXSARGS;
4253
4254 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4255 0 SWIG_croak("Usage: gsl_odeiv_step_alloc(T,dim);");
4256 }
4257 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step_type, 0 | 0 );
4258 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4259 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_alloc" "', argument " "1"" of type '" "gsl_odeiv_step_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_alloc" "', argument " "1"" of type '" "gsl_odeiv_step_type const *""'"); 0 0 0
4260 }
4261 0 arg1 = (gsl_odeiv_step_type *)(argp1);
4262 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4263 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4264 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_step_alloc" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_step_alloc" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4265 }
4266 0 arg2 = (size_t)(val2);
4267 0 result = (gsl_odeiv_step *)gsl_odeiv_step_alloc((gsl_odeiv_step_type const *)arg1,arg2);
4268 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_step, 0 | SWIG_SHADOW); argvi++ ;
4269
4270
4271 0 XSRETURN(argvi);
4272 0 fail:
4273
4274
4275 0 SWIG_croak_null();
4276 }
4277 }
4278  
4279  
4280 0 XS(_wrap_gsl_odeiv_step_reset) {
4281 {
4282 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4283 0 void *argp1 = 0 ;
4284 0 int res1 = 0 ;
4285 0 int argvi = 0;
4286 int result;
4287 0 dXSARGS;
4288
4289 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4290 0 SWIG_croak("Usage: gsl_odeiv_step_reset(s);");
4291 }
4292 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4293 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4294 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_reset" "', argument " "1"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_reset" "', argument " "1"" of type '" "gsl_odeiv_step *""'"); 0 0 0
4295 }
4296 0 arg1 = (gsl_odeiv_step *)(argp1);
4297 0 result = (int)gsl_odeiv_step_reset(arg1);
4298 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4299
4300 0 XSRETURN(argvi);
4301 0 fail:
4302
4303 0 SWIG_croak_null();
4304 }
4305 }
4306  
4307  
4308 0 XS(_wrap_gsl_odeiv_step_free) {
4309 {
4310 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4311 0 void *argp1 = 0 ;
4312 0 int res1 = 0 ;
4313 0 int argvi = 0;
4314 0 dXSARGS;
4315
4316 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4317 0 SWIG_croak("Usage: gsl_odeiv_step_free(s);");
4318 }
4319 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4320 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4321 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_free" "', argument " "1"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_free" "', argument " "1"" of type '" "gsl_odeiv_step *""'"); 0 0 0
4322 }
4323 0 arg1 = (gsl_odeiv_step *)(argp1);
4324 0 gsl_odeiv_step_free(arg1);
4325 0 ST(argvi) = &PL_sv_undef;
4326
4327 0 XSRETURN(argvi);
4328 0 fail:
4329
4330 0 SWIG_croak_null();
4331 }
4332 }
4333  
4334  
4335 0 XS(_wrap_gsl_odeiv_step_name) {
4336 {
4337 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4338 0 void *argp1 = 0 ;
4339 0 int res1 = 0 ;
4340 0 int argvi = 0;
4341 0 char *result = 0 ;
4342 0 dXSARGS;
4343
4344 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4345 0 SWIG_croak("Usage: gsl_odeiv_step_name(s);");
4346 }
4347 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4348 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4349 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_name" "', argument " "1"" of type '" "gsl_odeiv_step const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_name" "', argument " "1"" of type '" "gsl_odeiv_step const *""'"); 0 0 0
4350 }
4351 0 arg1 = (gsl_odeiv_step *)(argp1);
4352 0 result = (char *)gsl_odeiv_step_name((gsl_odeiv_step const *)arg1);
4353 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
4354
4355 0 XSRETURN(argvi);
4356 0 fail:
4357
4358 0 SWIG_croak_null();
4359 }
4360 }
4361  
4362  
4363 0 XS(_wrap_gsl_odeiv_step_order) {
4364 {
4365 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4366 0 void *argp1 = 0 ;
4367 0 int res1 = 0 ;
4368 0 int argvi = 0;
4369 unsigned int result;
4370 0 dXSARGS;
4371
4372 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4373 0 SWIG_croak("Usage: gsl_odeiv_step_order(s);");
4374 }
4375 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4376 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4377 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_order" "', argument " "1"" of type '" "gsl_odeiv_step const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_order" "', argument " "1"" of type '" "gsl_odeiv_step const *""'"); 0 0 0
4378 }
4379 0 arg1 = (gsl_odeiv_step *)(argp1);
4380 0 result = (unsigned int)gsl_odeiv_step_order((gsl_odeiv_step const *)arg1);
4381 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
4382
4383 0 XSRETURN(argvi);
4384 0 fail:
4385
4386 0 SWIG_croak_null();
4387 }
4388 }
4389  
4390  
4391 0 XS(_wrap_gsl_odeiv_step_apply) {
4392 {
4393 0 gsl_odeiv_step *arg1 = (gsl_odeiv_step *) 0 ;
4394 double arg2 ;
4395 double arg3 ;
4396 0 double *arg4 = (double *) (double *)0 ;
4397 0 double *arg5 = (double *) (double *)0 ;
4398 0 double *arg6 = (double *) (double *)0 ;
4399 0 double *arg7 = (double *) (double *)0 ;
4400 0 gsl_odeiv_system *arg8 = (gsl_odeiv_system *) 0 ;
4401 0 void *argp1 = 0 ;
4402 0 int res1 = 0 ;
4403 double val2 ;
4404 0 int ecode2 = 0 ;
4405 double val3 ;
4406 0 int ecode3 = 0 ;
4407 0 void *argp4 = 0 ;
4408 0 int res4 = 0 ;
4409 0 void *argp5 = 0 ;
4410 0 int res5 = 0 ;
4411 0 void *argp7 = 0 ;
4412 0 int res7 = 0 ;
4413 0 int argvi = 0;
4414 int result;
4415 0 dXSARGS;
4416
4417 0 ▶ if ((items < 8) || (items > 8)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 8) || (items > 8)) { 0 0 0
if ((items < 8) || (items > 8)) { 0 0 0
4418 0 SWIG_croak("Usage: gsl_odeiv_step_apply(s,t,h,y,yerr,dydt_in,dydt_out,dydt);");
4419 }
4420 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
4421 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4422 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_apply" "', argument " "1"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_step_apply" "', argument " "1"" of type '" "gsl_odeiv_step *""'"); 0 0 0
4423 }
4424 0 arg1 = (gsl_odeiv_step *)(argp1);
4425 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4426 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4427 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_step_apply" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_step_apply" "', argument " "2"" of type '" "double""'"); 0 0 0
4428 }
4429 0 arg2 = (double)(val2);
4430 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4431 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4432 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_odeiv_step_apply" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_odeiv_step_apply" "', argument " "3"" of type '" "double""'"); 0 0 0
4433 }
4434 0 arg3 = (double)(val3);
4435 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
4436 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
4437 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_odeiv_step_apply" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_odeiv_step_apply" "', argument " "4"" of type '" "double []""'"); 0 0 0
4438 }
4439 0 arg4 = (double *)(argp4);
4440 0 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_double, 0 | 0 );
4441 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
4442 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_odeiv_step_apply" "', argument " "5"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_odeiv_step_apply" "', argument " "5"" of type '" "double []""'"); 0 0 0
4443 }
4444 0 arg5 = (double *)(argp5);
4445 {
4446 AV *tempav;
4447 I32 len;
4448 int i;
4449 SV **tv;
4450 0 ▶ if (!SvROK(ST(5)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(5))) 0 0 0
4451 0 croak("Math::GSL : $dydt_in is not a reference!");
4452 0 ▶ if (SvTYPE(SvRV(ST(5))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(5))) != SVt_PVAV) 0 0 0
4453 0 croak("Math::GSL : $dydt_in is not an array ref!");
4454
4455 0 tempav = (AV*)SvRV(ST(5));
4456 0 len = av_len(tempav);
4457 0 arg6 = (double *) malloc((len+2)*sizeof(double));
4458 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4459 0 tv = av_fetch(tempav, i, 0);
4460 0 arg6[i] = (double) SvNV(*tv);
4461 }
4462 }
4463 0 res7 = SWIG_ConvertPtr(ST(6), &argp7,SWIGTYPE_p_double, 0 | 0 );
4464 0 ▶ if (!SWIG_IsOK(res7)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res7)) { 0 0 0
4465 0 ▶ SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "gsl_odeiv_step_apply" "', argument " "7"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "gsl_odeiv_step_apply" "', argument " "7"" of type '" "double []""'"); 0 0 0
4466 }
4467 0 arg7 = (double *)(argp7);
4468 {
4469 SV *sv;
4470 HV *hash;
4471
4472 0 swig_math_gsl_odeiv_set_error_param( "gsl_odeiv_step_apply", "dydt" );
4473
4474 0 ▶ if (!sv_isobject(ST(7))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!sv_isobject(ST(7))) { 0 0 0
4475 0 swig_math_gsl_odeiv_input_error(
4476 "Input parameter $dydt is not a blessed reference!"
4477 );
4478 }
4479 0 ▶ if (!sv_isa(ST(7), "Math::GSL::ODEIV::gsl_odeiv_system")) {
Branch: 1 branch
BranchTrueFalseTotal
if (!sv_isa(ST(7), "Math::GSL::ODEIV::gsl_odeiv_system")) { 0 0 0
4480 0 swig_math_gsl_odeiv_input_error(
4481 "Input parameter $dydt is not an object of type "
4482 "Math::GSL::ODEIV::gsl_odeiv_system!"
4483 );
4484 }
4485 0 sv = SvRV(ST(7));
4486 0 ▶ if ((SvTYPE(sv) != SVt_PVHV)) {
Branch: 1 branch
BranchTrueFalseTotal
if ((SvTYPE(sv) != SVt_PVHV)) { 0 0 0
4487 0 swig_math_gsl_odeiv_input_error(
4488 "Input parameter $dydt is not a blessed hash reference!"
4489 );
4490 }
4491 gsl_odeiv_system *sys;
4492 0 Newx(sys, 1, gsl_odeiv_system);
4493 0 swig_math_gsl_odeiv_fill_system_struct( (HV *)sv, sys);
4494 0 arg8 = sys;
4495 }
4496 0 result = (int)gsl_odeiv_step_apply(arg1,arg2,arg3,arg4,arg5,(double const (*))arg6,arg7,(gsl_odeiv_system const *)arg8);
4497 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4498
4499
4500
4501
4502
4503 {
4504 0 ▶ if (arg6) free(arg6);
Branch: 1 branch
BranchTrueFalseTotal
if (arg6) free(arg6); 0 0 0
4505 }
4506
4507 {
4508 0 swig_math_gsl_odeiv_system *ssys = (swig_math_gsl_odeiv_system *)arg8->params;
4509 0 Safefree(ssys);
4510 0 Safefree(arg8);
4511 }
4512 0 XSRETURN(argvi);
4513 0 fail:
4514
4515
4516
4517
4518
4519 {
4520 0 ▶ if (arg6) free(arg6);
Branch: 1 branch
BranchTrueFalseTotal
if (arg6) free(arg6); 0 0 0
4521 }
4522
4523 {
4524 0 swig_math_gsl_odeiv_system *ssys = (swig_math_gsl_odeiv_system *)arg8->params;
4525 0 Safefree(ssys);
4526 0 Safefree(arg8);
4527 }
4528 0 SWIG_croak_null();
4529 }
4530 }
4531  
4532  
4533 0 XS(_wrap_gsl_odeiv_control_type_name_set) {
4534 {
4535 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4536 0 char *arg2 = (char *) 0 ;
4537 0 void *argp1 = 0 ;
4538 0 int res1 = 0 ;
4539 int res2 ;
4540 0 char *buf2 = 0 ;
4541 0 int alloc2 = 0 ;
4542 0 int argvi = 0;
4543 0 dXSARGS;
4544
4545 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4546 0 SWIG_croak("Usage: gsl_odeiv_control_type_name_set(self,name);");
4547 }
4548 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
4549 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4550 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_name_set" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_name_set" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4551 }
4552 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4553 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
4554 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4555 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_control_type_name_set" "', argument " "2"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_control_type_name_set" "', argument " "2"" of type '" "char const *""'"); 0 0 0
4556 }
4557 0 arg2 = (char *)(buf2);
4558 0 ▶ if (arg2) {
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) { 0 0 0
4559 0 size_t size = strlen((const char *)((const char *)(arg2))) + 1;
4560 0 arg1->name = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4561 } else {
4562 0 arg1->name = 0;
4563 }
4564 0 ST(argvi) = &PL_sv_undef;
4565
4566 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
4567 0 XSRETURN(argvi);
4568 0 fail:
4569
4570 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
4571 0 SWIG_croak_null();
4572 }
4573 }
4574  
4575  
4576 0 XS(_wrap_gsl_odeiv_control_type_name_get) {
4577 {
4578 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4579 0 void *argp1 = 0 ;
4580 0 int res1 = 0 ;
4581 0 int argvi = 0;
4582 0 char *result = 0 ;
4583 0 dXSARGS;
4584
4585 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4586 0 SWIG_croak("Usage: gsl_odeiv_control_type_name_get(self);");
4587 }
4588 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
4589 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4590 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_name_get" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_name_get" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4591 }
4592 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4593 0 result = (char *) ((arg1)->name);
4594 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
4595
4596 0 XSRETURN(argvi);
4597 0 fail:
4598
4599 0 SWIG_croak_null();
4600 }
4601 }
4602  
4603  
4604 0 XS(_wrap_gsl_odeiv_control_type_alloc_set) {
4605 {
4606 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4607 0 void *(*arg2)(void) = (void *(*)(void)) 0 ;
4608 0 void *argp1 = 0 ;
4609 0 int res1 = 0 ;
4610 0 int argvi = 0;
4611 0 dXSARGS;
4612
4613 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4614 0 SWIG_croak("Usage: gsl_odeiv_control_type_alloc_set(self,alloc);");
4615 }
4616 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
4617 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4618 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_alloc_set" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_alloc_set" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4619 }
4620 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4621 {
4622 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_void__p_void);
4623 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
4624 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_control_type_alloc_set" "', argument " "2"" of type '" "void *(*)(void)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_control_type_alloc_set" "', argument " "2"" of type '" "void *(*)(void)""'"); 0 0 0
4625 }
4626 }
4627 0 ▶ if (arg1) (arg1)->alloc = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->alloc = arg2; 0 0 0
4628 0 ST(argvi) = &PL_sv_undef;
4629
4630
4631 0 XSRETURN(argvi);
4632 0 fail:
4633
4634
4635 0 SWIG_croak_null();
4636 }
4637 }
4638  
4639  
4640 0 XS(_wrap_gsl_odeiv_control_type_alloc_get) {
4641 {
4642 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4643 0 void *argp1 = 0 ;
4644 0 int res1 = 0 ;
4645 0 int argvi = 0;
4646 0 void *(*result)(void) = 0 ;
4647 0 dXSARGS;
4648
4649 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4650 0 SWIG_croak("Usage: gsl_odeiv_control_type_alloc_get(self);");
4651 }
4652 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
4653 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4654 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_alloc_get" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_alloc_get" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4655 }
4656 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4657 0 result = (void *(*)(void)) ((arg1)->alloc);
4658 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_void__p_void); argvi++ ;
4659
4660 0 XSRETURN(argvi);
4661 0 fail:
4662
4663 0 SWIG_croak_null();
4664 }
4665 }
4666  
4667  
4668 0 XS(_wrap_gsl_odeiv_control_type_init_set) {
4669 {
4670 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4671 0 int (*arg2)(void *,double,double,double,double) = (int (*)(void *,double,double,double,double)) 0 ;
4672 0 void *argp1 = 0 ;
4673 0 int res1 = 0 ;
4674 0 int argvi = 0;
4675 0 dXSARGS;
4676
4677 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4678 0 SWIG_croak("Usage: gsl_odeiv_control_type_init_set(self,init);");
4679 }
4680 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
4681 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4682 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_init_set" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_init_set" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4683 }
4684 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4685 {
4686 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_double_double_double_double__int);
4687 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
4688 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_control_type_init_set" "', argument " "2"" of type '" "int (*)(void *,double,double,double,double)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_control_type_init_set" "', argument " "2"" of type '" "int (*)(void *,double,double,double,double)""'"); 0 0 0
4689 }
4690 }
4691 0 ▶ if (arg1) (arg1)->init = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->init = arg2; 0 0 0
4692 0 ST(argvi) = &PL_sv_undef;
4693
4694
4695 0 XSRETURN(argvi);
4696 0 fail:
4697
4698
4699 0 SWIG_croak_null();
4700 }
4701 }
4702  
4703  
4704 0 XS(_wrap_gsl_odeiv_control_type_init_get) {
4705 {
4706 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4707 0 void *argp1 = 0 ;
4708 0 int res1 = 0 ;
4709 0 int argvi = 0;
4710 0 int (*result)(void *,double,double,double,double) = 0 ;
4711 0 dXSARGS;
4712
4713 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4714 0 SWIG_croak("Usage: gsl_odeiv_control_type_init_get(self);");
4715 }
4716 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
4717 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4718 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_init_get" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_init_get" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4719 }
4720 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4721 0 result = (int (*)(void *,double,double,double,double)) ((arg1)->init);
4722 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_double_double_double_double__int); argvi++ ;
4723
4724 0 XSRETURN(argvi);
4725 0 fail:
4726
4727 0 SWIG_croak_null();
4728 }
4729 }
4730  
4731  
4732 0 XS(_wrap_gsl_odeiv_control_type_hadjust_set) {
4733 {
4734 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4735 0 int (*arg2)(void *,size_t,unsigned int,double const [],double const [],double const [],double *) = (int (*)(void *,size_t,unsigned int,double const [],double const [],double const [],double *)) 0 ;
4736 0 void *argp1 = 0 ;
4737 0 int res1 = 0 ;
4738 0 int argvi = 0;
4739 0 dXSARGS;
4740
4741 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4742 0 SWIG_croak("Usage: gsl_odeiv_control_type_hadjust_set(self,hadjust);");
4743 }
4744 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
4745 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4746 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_hadjust_set" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_hadjust_set" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4747 }
4748 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4749 {
4750 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_size_t_unsigned_int_a___q_const__double_a___q_const__double_a___q_const__double_p_double__int);
4751 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
4752 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_control_type_hadjust_set" "', argument " "2"" of type '" "int (*)(void *,size_t,unsigned int,double const [],double const [],double const [],double *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_control_type_hadjust_set" "', argument " "2"" of type '" "int (*)(void *,size_t,unsigned int,double const [],double const [],double const [],double *)""'"); 0 0 0
4753 }
4754 }
4755 0 ▶ if (arg1) (arg1)->hadjust = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->hadjust = arg2; 0 0 0
4756 0 ST(argvi) = &PL_sv_undef;
4757
4758
4759 0 XSRETURN(argvi);
4760 0 fail:
4761
4762
4763 0 SWIG_croak_null();
4764 }
4765 }
4766  
4767  
4768 0 XS(_wrap_gsl_odeiv_control_type_hadjust_get) {
4769 {
4770 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4771 0 void *argp1 = 0 ;
4772 0 int res1 = 0 ;
4773 0 int argvi = 0;
4774 0 int (*result)(void *,size_t,unsigned int,double const [],double const [],double const [],double *) = 0 ;
4775 0 dXSARGS;
4776
4777 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4778 0 SWIG_croak("Usage: gsl_odeiv_control_type_hadjust_get(self);");
4779 }
4780 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
4781 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4782 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_hadjust_get" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_hadjust_get" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4783 }
4784 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4785 0 result = (int (*)(void *,size_t,unsigned int,double const [],double const [],double const [],double *)) ((arg1)->hadjust);
4786 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_size_t_unsigned_int_a___q_const__double_a___q_const__double_a___q_const__double_p_double__int); argvi++ ;
4787
4788 0 XSRETURN(argvi);
4789 0 fail:
4790
4791 0 SWIG_croak_null();
4792 }
4793 }
4794  
4795  
4796 0 XS(_wrap_gsl_odeiv_control_type_free_set) {
4797 {
4798 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4799 0 void (*arg2)(void *) = (void (*)(void *)) 0 ;
4800 0 void *argp1 = 0 ;
4801 0 int res1 = 0 ;
4802 0 int argvi = 0;
4803 0 dXSARGS;
4804
4805 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4806 0 SWIG_croak("Usage: gsl_odeiv_control_type_free_set(self,free);");
4807 }
4808 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
4809 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4810 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_free_set" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_free_set" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4811 }
4812 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4813 {
4814 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void__void);
4815 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
4816 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_control_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_odeiv_control_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'"); 0 0 0
4817 }
4818 }
4819 0 ▶ if (arg1) (arg1)->free = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->free = arg2; 0 0 0
4820 0 ST(argvi) = &PL_sv_undef;
4821
4822
4823 0 XSRETURN(argvi);
4824 0 fail:
4825
4826
4827 0 SWIG_croak_null();
4828 }
4829 }
4830  
4831  
4832 0 XS(_wrap_gsl_odeiv_control_type_free_get) {
4833 {
4834 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4835 0 void *argp1 = 0 ;
4836 0 int res1 = 0 ;
4837 0 int argvi = 0;
4838 0 void (*result)(void *) = 0 ;
4839 0 dXSARGS;
4840
4841 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4842 0 SWIG_croak("Usage: gsl_odeiv_control_type_free_get(self);");
4843 }
4844 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
4845 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4846 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_free_get" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_free_get" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4847 }
4848 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4849 0 result = (void (*)(void *)) ((arg1)->free);
4850 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void); argvi++ ;
4851
4852 0 XSRETURN(argvi);
4853 0 fail:
4854
4855 0 SWIG_croak_null();
4856 }
4857 }
4858  
4859  
4860 0 XS(_wrap_new_gsl_odeiv_control_type) {
4861 {
4862 0 int argvi = 0;
4863 0 gsl_odeiv_control_type *result = 0 ;
4864 0 dXSARGS;
4865
4866 0 ▶ if ((items < 0) || (items > 0)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 0) || (items > 0)) { 0 0 0
if ((items < 0) || (items > 0)) { 0 0 0
4867 0 SWIG_croak("Usage: new_gsl_odeiv_control_type();");
4868 }
4869 0 result = (gsl_odeiv_control_type *)calloc(1, sizeof(gsl_odeiv_control_type));
4870 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_control_type, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
4871 0 XSRETURN(argvi);
4872 0 fail:
4873 0 SWIG_croak_null();
4874 }
4875 }
4876  
4877  
4878 0 XS(_wrap_delete_gsl_odeiv_control_type) {
4879 {
4880 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
4881 0 void *argp1 = 0 ;
4882 0 int res1 = 0 ;
4883 0 int argvi = 0;
4884 0 dXSARGS;
4885
4886 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4887 0 SWIG_croak("Usage: delete_gsl_odeiv_control_type(self);");
4888 }
4889 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, SWIG_POINTER_DISOWN | 0 );
4890 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4891 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_control_type" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_control_type" "', argument " "1"" of type '" "gsl_odeiv_control_type *""'"); 0 0 0
4892 }
4893 0 arg1 = (gsl_odeiv_control_type *)(argp1);
4894 0 free((char *) arg1);
4895 0 ST(argvi) = &PL_sv_undef;
4896
4897 0 XSRETURN(argvi);
4898 0 fail:
4899
4900 0 SWIG_croak_null();
4901 }
4902 }
4903  
4904  
4905 0 XS(_wrap_gsl_odeiv_control_type_set) {
4906 {
4907 0 gsl_odeiv_control *arg1 = (gsl_odeiv_control *) 0 ;
4908 0 gsl_odeiv_control_type *arg2 = (gsl_odeiv_control_type *) 0 ;
4909 0 void *argp1 = 0 ;
4910 0 int res1 = 0 ;
4911 0 void *argp2 = 0 ;
4912 0 int res2 = 0 ;
4913 0 int argvi = 0;
4914 0 dXSARGS;
4915
4916 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4917 0 SWIG_croak("Usage: gsl_odeiv_control_type_set(self,type);");
4918 }
4919 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control, 0 | 0 );
4920 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4921 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_set" "', argument " "1"" of type '" "gsl_odeiv_control *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_set" "', argument " "1"" of type '" "gsl_odeiv_control *""'"); 0 0 0
4922 }
4923 0 arg1 = (gsl_odeiv_control *)(argp1);
4924 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_odeiv_control_type, SWIG_POINTER_DISOWN | 0 );
4925 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4926 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_control_type_set" "', argument " "2"" of type '" "gsl_odeiv_control_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_control_type_set" "', argument " "2"" of type '" "gsl_odeiv_control_type const *""'"); 0 0 0
4927 }
4928 0 arg2 = (gsl_odeiv_control_type *)(argp2);
4929 0 ▶ if (arg1) (arg1)->type = (gsl_odeiv_control_type const *)arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->type = (gsl_odeiv_control_type const *)arg2; 0 0 0
4930 0 ST(argvi) = &PL_sv_undef;
4931
4932
4933 0 XSRETURN(argvi);
4934 0 fail:
4935
4936
4937 0 SWIG_croak_null();
4938 }
4939 }
4940  
4941  
4942 0 XS(_wrap_gsl_odeiv_control_type_get) {
4943 {
4944 0 gsl_odeiv_control *arg1 = (gsl_odeiv_control *) 0 ;
4945 0 void *argp1 = 0 ;
4946 0 int res1 = 0 ;
4947 0 int argvi = 0;
4948 0 gsl_odeiv_control_type *result = 0 ;
4949 0 dXSARGS;
4950
4951 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4952 0 SWIG_croak("Usage: gsl_odeiv_control_type_get(self);");
4953 }
4954 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control, 0 | 0 );
4955 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4956 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_get" "', argument " "1"" of type '" "gsl_odeiv_control *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_type_get" "', argument " "1"" of type '" "gsl_odeiv_control *""'"); 0 0 0
4957 }
4958 0 arg1 = (gsl_odeiv_control *)(argp1);
4959 0 result = (gsl_odeiv_control_type *) ((arg1)->type);
4960 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_control_type, 0 | SWIG_SHADOW); argvi++ ;
4961
4962 0 XSRETURN(argvi);
4963 0 fail:
4964
4965 0 SWIG_croak_null();
4966 }
4967 }
4968  
4969  
4970 0 XS(_wrap_gsl_odeiv_control_state_set) {
4971 {
4972 0 gsl_odeiv_control *arg1 = (gsl_odeiv_control *) 0 ;
4973 0 void *arg2 = (void *) 0 ;
4974 0 void *argp1 = 0 ;
4975 0 int res1 = 0 ;
4976 int res2 ;
4977 0 int argvi = 0;
4978 0 dXSARGS;
4979
4980 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4981 0 SWIG_croak("Usage: gsl_odeiv_control_state_set(self,state);");
4982 }
4983 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control, 0 | 0 );
4984 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4985 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_state_set" "', argument " "1"" of type '" "gsl_odeiv_control *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_state_set" "', argument " "1"" of type '" "gsl_odeiv_control *""'"); 0 0 0
4986 }
4987 0 arg1 = (gsl_odeiv_control *)(argp1);
4988 0 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
4989 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4990 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_control_state_set" "', argument " "2"" of type '" "void *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_control_state_set" "', argument " "2"" of type '" "void *""'"); 0 0 0
4991 }
4992 0 ▶ if (arg1) (arg1)->state = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->state = arg2; 0 0 0
4993 0 ST(argvi) = &PL_sv_undef;
4994
4995
4996 0 XSRETURN(argvi);
4997 0 fail:
4998
4999
5000 0 SWIG_croak_null();
5001 }
5002 }
5003  
5004  
5005 0 XS(_wrap_gsl_odeiv_control_state_get) {
5006 {
5007 0 gsl_odeiv_control *arg1 = (gsl_odeiv_control *) 0 ;
5008 0 void *argp1 = 0 ;
5009 0 int res1 = 0 ;
5010 0 int argvi = 0;
5011 0 void *result = 0 ;
5012 0 dXSARGS;
5013
5014 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5015 0 SWIG_croak("Usage: gsl_odeiv_control_state_get(self);");
5016 }
5017 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control, 0 | 0 );
5018 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5019 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_state_get" "', argument " "1"" of type '" "gsl_odeiv_control *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_state_get" "', argument " "1"" of type '" "gsl_odeiv_control *""'"); 0 0 0
5020 }
5021 0 arg1 = (gsl_odeiv_control *)(argp1);
5022 0 result = (void *) ((arg1)->state);
5023 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
5024
5025 0 XSRETURN(argvi);
5026 0 fail:
5027
5028 0 SWIG_croak_null();
5029 }
5030 }
5031  
5032  
5033 0 XS(_wrap_new_gsl_odeiv_control) {
5034 {
5035 0 int argvi = 0;
5036 0 gsl_odeiv_control *result = 0 ;
5037 0 dXSARGS;
5038
5039 0 ▶ if ((items < 0) || (items > 0)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 0) || (items > 0)) { 0 0 0
if ((items < 0) || (items > 0)) { 0 0 0
5040 0 SWIG_croak("Usage: new_gsl_odeiv_control();");
5041 }
5042 0 result = (gsl_odeiv_control *)calloc(1, sizeof(gsl_odeiv_control));
5043 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_control, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
5044 0 XSRETURN(argvi);
5045 0 fail:
5046 0 SWIG_croak_null();
5047 }
5048 }
5049  
5050  
5051 0 XS(_wrap_delete_gsl_odeiv_control) {
5052 {
5053 0 gsl_odeiv_control *arg1 = (gsl_odeiv_control *) 0 ;
5054 0 void *argp1 = 0 ;
5055 0 int res1 = 0 ;
5056 0 int argvi = 0;
5057 0 dXSARGS;
5058
5059 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5060 0 SWIG_croak("Usage: delete_gsl_odeiv_control(self);");
5061 }
5062 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control, SWIG_POINTER_DISOWN | 0 );
5063 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5064 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_control" "', argument " "1"" of type '" "gsl_odeiv_control *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_control" "', argument " "1"" of type '" "gsl_odeiv_control *""'"); 0 0 0
5065 }
5066 0 arg1 = (gsl_odeiv_control *)(argp1);
5067 0 free((char *) arg1);
5068 0 ST(argvi) = &PL_sv_undef;
5069
5070 0 XSRETURN(argvi);
5071 0 fail:
5072
5073 0 SWIG_croak_null();
5074 }
5075 }
5076  
5077  
5078 0 XS(_wrap_gsl_odeiv_control_alloc) {
5079 {
5080 0 gsl_odeiv_control_type *arg1 = (gsl_odeiv_control_type *) 0 ;
5081 0 void *argp1 = 0 ;
5082 0 int res1 = 0 ;
5083 0 int argvi = 0;
5084 0 gsl_odeiv_control *result = 0 ;
5085 0 dXSARGS;
5086
5087 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5088 0 SWIG_croak("Usage: gsl_odeiv_control_alloc(T);");
5089 }
5090 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control_type, 0 | 0 );
5091 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5092 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_alloc" "', argument " "1"" of type '" "gsl_odeiv_control_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_alloc" "', argument " "1"" of type '" "gsl_odeiv_control_type const *""'"); 0 0 0
5093 }
5094 0 arg1 = (gsl_odeiv_control_type *)(argp1);
5095 0 result = (gsl_odeiv_control *)gsl_odeiv_control_alloc((gsl_odeiv_control_type const *)arg1);
5096 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_control, 0 | SWIG_SHADOW); argvi++ ;
5097
5098 0 XSRETURN(argvi);
5099 0 fail:
5100
5101 0 SWIG_croak_null();
5102 }
5103 }
5104  
5105  
5106 0 XS(_wrap_gsl_odeiv_control_init) {
5107 {
5108 0 gsl_odeiv_control *arg1 = (gsl_odeiv_control *) 0 ;
5109 double arg2 ;
5110 double arg3 ;
5111 double arg4 ;
5112 double arg5 ;
5113 0 void *argp1 = 0 ;
5114 0 int res1 = 0 ;
5115 double val2 ;
5116 0 int ecode2 = 0 ;
5117 double val3 ;
5118 0 int ecode3 = 0 ;
5119 double val4 ;
5120 0 int ecode4 = 0 ;
5121 double val5 ;
5122 0 int ecode5 = 0 ;
5123 0 int argvi = 0;
5124 int result;
5125 0 dXSARGS;
5126
5127 0 ▶ if ((items < 5) || (items > 5)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 5) || (items > 5)) { 0 0 0
if ((items < 5) || (items > 5)) { 0 0 0
5128 0 SWIG_croak("Usage: gsl_odeiv_control_init(c,eps_abs,eps_rel,a_y,a_dydt);");
5129 }
5130 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control, 0 | 0 );
5131 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5132 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_init" "', argument " "1"" of type '" "gsl_odeiv_control *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_init" "', argument " "1"" of type '" "gsl_odeiv_control *""'"); 0 0 0
5133 }
5134 0 arg1 = (gsl_odeiv_control *)(argp1);
5135 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5136 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5137 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_control_init" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_control_init" "', argument " "2"" of type '" "double""'"); 0 0 0
5138 }
5139 0 arg2 = (double)(val2);
5140 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5141 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5142 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_odeiv_control_init" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_odeiv_control_init" "', argument " "3"" of type '" "double""'"); 0 0 0
5143 }
5144 0 arg3 = (double)(val3);
5145 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5146 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5147 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_odeiv_control_init" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_odeiv_control_init" "', argument " "4"" of type '" "double""'"); 0 0 0
5148 }
5149 0 arg4 = (double)(val4);
5150 0 ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5151 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5152 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_odeiv_control_init" "', argument " "5"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_odeiv_control_init" "', argument " "5"" of type '" "double""'"); 0 0 0
5153 }
5154 0 arg5 = (double)(val5);
5155 0 result = (int)gsl_odeiv_control_init(arg1,arg2,arg3,arg4,arg5);
5156 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5157
5158
5159
5160
5161
5162 0 XSRETURN(argvi);
5163 0 fail:
5164
5165
5166
5167
5168
5169 0 SWIG_croak_null();
5170 }
5171 }
5172  
5173  
5174 0 XS(_wrap_gsl_odeiv_control_free) {
5175 {
5176 0 gsl_odeiv_control *arg1 = (gsl_odeiv_control *) 0 ;
5177 0 void *argp1 = 0 ;
5178 0 int res1 = 0 ;
5179 0 int argvi = 0;
5180 0 dXSARGS;
5181
5182 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5183 0 SWIG_croak("Usage: gsl_odeiv_control_free(c);");
5184 }
5185 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control, 0 | 0 );
5186 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5187 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_free" "', argument " "1"" of type '" "gsl_odeiv_control *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_free" "', argument " "1"" of type '" "gsl_odeiv_control *""'"); 0 0 0
5188 }
5189 0 arg1 = (gsl_odeiv_control *)(argp1);
5190 0 gsl_odeiv_control_free(arg1);
5191 0 ST(argvi) = &PL_sv_undef;
5192
5193 0 XSRETURN(argvi);
5194 0 fail:
5195
5196 0 SWIG_croak_null();
5197 }
5198 }
5199  
5200  
5201 0 XS(_wrap_gsl_odeiv_control_hadjust) {
5202 {
5203 0 gsl_odeiv_control *arg1 = (gsl_odeiv_control *) 0 ;
5204 0 gsl_odeiv_step *arg2 = (gsl_odeiv_step *) 0 ;
5205 0 double *arg3 = (double *) (double *)0 ;
5206 0 double *arg4 = (double *) (double *)0 ;
5207 0 double *arg5 = (double *) (double *)0 ;
5208 0 double *arg6 = (double *) 0 ;
5209 0 void *argp1 = 0 ;
5210 0 int res1 = 0 ;
5211 0 void *argp2 = 0 ;
5212 0 int res2 = 0 ;
5213 0 void *argp6 = 0 ;
5214 0 int res6 = 0 ;
5215 0 int argvi = 0;
5216 int result;
5217 0 dXSARGS;
5218
5219 0 ▶ if ((items < 6) || (items > 6)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 6) || (items > 6)) { 0 0 0
if ((items < 6) || (items > 6)) { 0 0 0
5220 0 SWIG_croak("Usage: gsl_odeiv_control_hadjust(c,s,y,yerr,dydt,h);");
5221 }
5222 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control, 0 | 0 );
5223 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5224 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_hadjust" "', argument " "1"" of type '" "gsl_odeiv_control *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_hadjust" "', argument " "1"" of type '" "gsl_odeiv_control *""'"); 0 0 0
5225 }
5226 0 arg1 = (gsl_odeiv_control *)(argp1);
5227 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
5228 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5229 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_control_hadjust" "', argument " "2"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_control_hadjust" "', argument " "2"" of type '" "gsl_odeiv_step *""'"); 0 0 0
5230 }
5231 0 arg2 = (gsl_odeiv_step *)(argp2);
5232 {
5233 AV *tempav;
5234 I32 len;
5235 int i;
5236 SV **tv;
5237 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
5238 0 croak("Math::GSL : $y is not a reference!");
5239 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
5240 0 croak("Math::GSL : $y is not an array ref!");
5241
5242 0 tempav = (AV*)SvRV(ST(2));
5243 0 len = av_len(tempav);
5244 0 arg3 = (double *) malloc((len+2)*sizeof(double));
5245 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5246 0 tv = av_fetch(tempav, i, 0);
5247 0 arg3[i] = (double) SvNV(*tv);
5248 }
5249 }
5250 {
5251 AV *tempav;
5252 I32 len;
5253 int i;
5254 SV **tv;
5255 0 ▶ if (!SvROK(ST(3)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) 0 0 0
5256 0 croak("Math::GSL : $yerr is not a reference!");
5257 0 ▶ if (SvTYPE(SvRV(ST(3))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(3))) != SVt_PVAV) 0 0 0
5258 0 croak("Math::GSL : $yerr is not an array ref!");
5259
5260 0 tempav = (AV*)SvRV(ST(3));
5261 0 len = av_len(tempav);
5262 0 arg4 = (double *) malloc((len+2)*sizeof(double));
5263 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5264 0 tv = av_fetch(tempav, i, 0);
5265 0 arg4[i] = (double) SvNV(*tv);
5266 }
5267 }
5268 {
5269 AV *tempav;
5270 I32 len;
5271 int i;
5272 SV **tv;
5273 0 ▶ if (!SvROK(ST(4)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(4))) 0 0 0
5274 0 croak("Math::GSL : $dydt is not a reference!");
5275 0 ▶ if (SvTYPE(SvRV(ST(4))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(4))) != SVt_PVAV) 0 0 0
5276 0 croak("Math::GSL : $dydt is not an array ref!");
5277
5278 0 tempav = (AV*)SvRV(ST(4));
5279 0 len = av_len(tempav);
5280 0 arg5 = (double *) malloc((len+2)*sizeof(double));
5281 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5282 0 tv = av_fetch(tempav, i, 0);
5283 0 arg5[i] = (double) SvNV(*tv);
5284 }
5285 }
5286 0 res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_double, 0 | 0 );
5287 0 ▶ if (!SWIG_IsOK(res6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res6)) { 0 0 0
5288 0 ▶ SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_odeiv_control_hadjust" "', argument " "6"" of type '" "double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_odeiv_control_hadjust" "', argument " "6"" of type '" "double *""'"); 0 0 0
5289 }
5290 0 arg6 = (double *)(argp6);
5291 0 result = (int)gsl_odeiv_control_hadjust(arg1,arg2,(double const (*))arg3,(double const (*))arg4,(double const (*))arg5,arg6);
5292 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5293
5294
5295 {
5296 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5297 }
5298 {
5299 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
5300 }
5301 {
5302 0 ▶ if (arg5) free(arg5);
Branch: 1 branch
BranchTrueFalseTotal
if (arg5) free(arg5); 0 0 0
5303 }
5304
5305 0 XSRETURN(argvi);
5306 0 fail:
5307
5308
5309 {
5310 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5311 }
5312 {
5313 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
5314 }
5315 {
5316 0 ▶ if (arg5) free(arg5);
Branch: 1 branch
BranchTrueFalseTotal
if (arg5) free(arg5); 0 0 0
5317 }
5318
5319 0 SWIG_croak_null();
5320 }
5321 }
5322  
5323  
5324 0 XS(_wrap_gsl_odeiv_control_name) {
5325 {
5326 0 gsl_odeiv_control *arg1 = (gsl_odeiv_control *) 0 ;
5327 0 void *argp1 = 0 ;
5328 0 int res1 = 0 ;
5329 0 int argvi = 0;
5330 0 char *result = 0 ;
5331 0 dXSARGS;
5332
5333 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5334 0 SWIG_croak("Usage: gsl_odeiv_control_name(c);");
5335 }
5336 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_control, 0 | 0 );
5337 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5338 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_name" "', argument " "1"" of type '" "gsl_odeiv_control const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_control_name" "', argument " "1"" of type '" "gsl_odeiv_control const *""'"); 0 0 0
5339 }
5340 0 arg1 = (gsl_odeiv_control *)(argp1);
5341 0 result = (char *)gsl_odeiv_control_name((gsl_odeiv_control const *)arg1);
5342 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
5343
5344 0 XSRETURN(argvi);
5345 0 fail:
5346
5347 0 SWIG_croak_null();
5348 }
5349 }
5350  
5351  
5352 0 XS(_wrap_gsl_odeiv_control_standard_new) {
5353 {
5354 double arg1 ;
5355 double arg2 ;
5356 double arg3 ;
5357 double arg4 ;
5358 double val1 ;
5359 0 int ecode1 = 0 ;
5360 double val2 ;
5361 0 int ecode2 = 0 ;
5362 double val3 ;
5363 0 int ecode3 = 0 ;
5364 double val4 ;
5365 0 int ecode4 = 0 ;
5366 0 int argvi = 0;
5367 0 gsl_odeiv_control *result = 0 ;
5368 0 dXSARGS;
5369
5370 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
5371 0 SWIG_croak("Usage: gsl_odeiv_control_standard_new(eps_abs,eps_rel,a_y,a_dydt);");
5372 }
5373 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5374 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5375 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_odeiv_control_standard_new" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_odeiv_control_standard_new" "', argument " "1"" of type '" "double""'"); 0 0 0
5376 }
5377 0 arg1 = (double)(val1);
5378 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5379 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5380 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_control_standard_new" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_control_standard_new" "', argument " "2"" of type '" "double""'"); 0 0 0
5381 }
5382 0 arg2 = (double)(val2);
5383 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5384 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5385 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_odeiv_control_standard_new" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_odeiv_control_standard_new" "', argument " "3"" of type '" "double""'"); 0 0 0
5386 }
5387 0 arg3 = (double)(val3);
5388 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5389 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5390 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_odeiv_control_standard_new" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_odeiv_control_standard_new" "', argument " "4"" of type '" "double""'"); 0 0 0
5391 }
5392 0 arg4 = (double)(val4);
5393 0 result = (gsl_odeiv_control *)gsl_odeiv_control_standard_new(arg1,arg2,arg3,arg4);
5394 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_control, 0 | SWIG_SHADOW); argvi++ ;
5395
5396
5397
5398
5399 0 XSRETURN(argvi);
5400 0 fail:
5401
5402
5403
5404
5405 0 SWIG_croak_null();
5406 }
5407 }
5408  
5409  
5410 0 XS(_wrap_gsl_odeiv_control_y_new) {
5411 {
5412 double arg1 ;
5413 double arg2 ;
5414 double val1 ;
5415 0 int ecode1 = 0 ;
5416 double val2 ;
5417 0 int ecode2 = 0 ;
5418 0 int argvi = 0;
5419 0 gsl_odeiv_control *result = 0 ;
5420 0 dXSARGS;
5421
5422 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5423 0 SWIG_croak("Usage: gsl_odeiv_control_y_new(eps_abs,eps_rel);");
5424 }
5425 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5426 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5427 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_odeiv_control_y_new" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_odeiv_control_y_new" "', argument " "1"" of type '" "double""'"); 0 0 0
5428 }
5429 0 arg1 = (double)(val1);
5430 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5431 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5432 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_control_y_new" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_control_y_new" "', argument " "2"" of type '" "double""'"); 0 0 0
5433 }
5434 0 arg2 = (double)(val2);
5435 0 result = (gsl_odeiv_control *)gsl_odeiv_control_y_new(arg1,arg2);
5436 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_control, 0 | SWIG_SHADOW); argvi++ ;
5437
5438
5439 0 XSRETURN(argvi);
5440 0 fail:
5441
5442
5443 0 SWIG_croak_null();
5444 }
5445 }
5446  
5447  
5448 0 XS(_wrap_gsl_odeiv_control_yp_new) {
5449 {
5450 double arg1 ;
5451 double arg2 ;
5452 double val1 ;
5453 0 int ecode1 = 0 ;
5454 double val2 ;
5455 0 int ecode2 = 0 ;
5456 0 int argvi = 0;
5457 0 gsl_odeiv_control *result = 0 ;
5458 0 dXSARGS;
5459
5460 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5461 0 SWIG_croak("Usage: gsl_odeiv_control_yp_new(eps_abs,eps_rel);");
5462 }
5463 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5464 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5465 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_odeiv_control_yp_new" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_odeiv_control_yp_new" "', argument " "1"" of type '" "double""'"); 0 0 0
5466 }
5467 0 arg1 = (double)(val1);
5468 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5469 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5470 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_control_yp_new" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_control_yp_new" "', argument " "2"" of type '" "double""'"); 0 0 0
5471 }
5472 0 arg2 = (double)(val2);
5473 0 result = (gsl_odeiv_control *)gsl_odeiv_control_yp_new(arg1,arg2);
5474 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_control, 0 | SWIG_SHADOW); argvi++ ;
5475
5476
5477 0 XSRETURN(argvi);
5478 0 fail:
5479
5480
5481 0 SWIG_croak_null();
5482 }
5483 }
5484  
5485  
5486 0 XS(_wrap_gsl_odeiv_control_scaled_new) {
5487 {
5488 double arg1 ;
5489 double arg2 ;
5490 double arg3 ;
5491 double arg4 ;
5492 0 double *arg5 = (double *) (double *)0 ;
5493 size_t arg6 ;
5494 double val1 ;
5495 0 int ecode1 = 0 ;
5496 double val2 ;
5497 0 int ecode2 = 0 ;
5498 double val3 ;
5499 0 int ecode3 = 0 ;
5500 double val4 ;
5501 0 int ecode4 = 0 ;
5502 size_t val6 ;
5503 0 int ecode6 = 0 ;
5504 0 int argvi = 0;
5505 0 gsl_odeiv_control *result = 0 ;
5506 0 dXSARGS;
5507
5508 0 ▶ if ((items < 6) || (items > 6)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 6) || (items > 6)) { 0 0 0
if ((items < 6) || (items > 6)) { 0 0 0
5509 0 SWIG_croak("Usage: gsl_odeiv_control_scaled_new(eps_abs,eps_rel,a_y,a_dydt,scale_abs,dim);");
5510 }
5511 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5512 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5513 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_odeiv_control_scaled_new" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_odeiv_control_scaled_new" "', argument " "1"" of type '" "double""'"); 0 0 0
5514 }
5515 0 arg1 = (double)(val1);
5516 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5517 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5518 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_control_scaled_new" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_control_scaled_new" "', argument " "2"" of type '" "double""'"); 0 0 0
5519 }
5520 0 arg2 = (double)(val2);
5521 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5522 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5523 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_odeiv_control_scaled_new" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_odeiv_control_scaled_new" "', argument " "3"" of type '" "double""'"); 0 0 0
5524 }
5525 0 arg3 = (double)(val3);
5526 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5527 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5528 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_odeiv_control_scaled_new" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_odeiv_control_scaled_new" "', argument " "4"" of type '" "double""'"); 0 0 0
5529 }
5530 0 arg4 = (double)(val4);
5531 {
5532 AV *tempav;
5533 I32 len;
5534 int i;
5535 SV **tv;
5536 0 ▶ if (!SvROK(ST(4)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(4))) 0 0 0
5537 0 croak("Math::GSL : $scale_abs is not a reference!");
5538 0 ▶ if (SvTYPE(SvRV(ST(4))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(4))) != SVt_PVAV) 0 0 0
5539 0 croak("Math::GSL : $scale_abs is not an array ref!");
5540
5541 0 tempav = (AV*)SvRV(ST(4));
5542 0 len = av_len(tempav);
5543 0 arg5 = (double *) malloc((len+2)*sizeof(double));
5544 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5545 0 tv = av_fetch(tempav, i, 0);
5546 0 arg5[i] = (double) SvNV(*tv);
5547 }
5548 }
5549 0 ecode6 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
5550 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
5551 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_odeiv_control_scaled_new" "', argument " "6"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_odeiv_control_scaled_new" "', argument " "6"" of type '" "size_t""'"); 0 0 0
5552 }
5553 0 arg6 = (size_t)(val6);
5554 0 result = (gsl_odeiv_control *)gsl_odeiv_control_scaled_new(arg1,arg2,arg3,arg4,(double const (*))arg5,arg6);
5555 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_control, 0 | SWIG_SHADOW); argvi++ ;
5556
5557
5558
5559
5560 {
5561 0 ▶ if (arg5) free(arg5);
Branch: 1 branch
BranchTrueFalseTotal
if (arg5) free(arg5); 0 0 0
5562 }
5563
5564 0 XSRETURN(argvi);
5565 0 fail:
5566
5567
5568
5569
5570 {
5571 0 ▶ if (arg5) free(arg5);
Branch: 1 branch
BranchTrueFalseTotal
if (arg5) free(arg5); 0 0 0
5572 }
5573
5574 0 SWIG_croak_null();
5575 }
5576 }
5577  
5578  
5579 0 XS(_wrap_gsl_odeiv_evolve_dimension_set) {
5580 {
5581 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5582 size_t arg2 ;
5583 0 void *argp1 = 0 ;
5584 0 int res1 = 0 ;
5585 size_t val2 ;
5586 0 int ecode2 = 0 ;
5587 0 int argvi = 0;
5588 0 dXSARGS;
5589
5590 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5591 0 SWIG_croak("Usage: gsl_odeiv_evolve_dimension_set(self,dimension);");
5592 }
5593 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5594 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5595 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dimension_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dimension_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5596 }
5597 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5598 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5599 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5600 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_evolve_dimension_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_evolve_dimension_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5601 }
5602 0 arg2 = (size_t)(val2);
5603 0 ▶ if (arg1) (arg1)->dimension = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->dimension = arg2; 0 0 0
5604 0 ST(argvi) = &PL_sv_undef;
5605
5606
5607 0 XSRETURN(argvi);
5608 0 fail:
5609
5610
5611 0 SWIG_croak_null();
5612 }
5613 }
5614  
5615  
5616 0 XS(_wrap_gsl_odeiv_evolve_dimension_get) {
5617 {
5618 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5619 0 void *argp1 = 0 ;
5620 0 int res1 = 0 ;
5621 0 int argvi = 0;
5622 size_t result;
5623 0 dXSARGS;
5624
5625 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5626 0 SWIG_croak("Usage: gsl_odeiv_evolve_dimension_get(self);");
5627 }
5628 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5629 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5630 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dimension_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dimension_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5631 }
5632 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5633 0 result = ((arg1)->dimension);
5634 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
5635
5636 0 XSRETURN(argvi);
5637 0 fail:
5638
5639 0 SWIG_croak_null();
5640 }
5641 }
5642  
5643  
5644 0 XS(_wrap_gsl_odeiv_evolve_y0_set) {
5645 {
5646 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5647 0 double *arg2 = (double *) 0 ;
5648 0 void *argp1 = 0 ;
5649 0 int res1 = 0 ;
5650 0 void *argp2 = 0 ;
5651 0 int res2 = 0 ;
5652 0 int argvi = 0;
5653 0 dXSARGS;
5654
5655 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5656 0 SWIG_croak("Usage: gsl_odeiv_evolve_y0_set(self,y0);");
5657 }
5658 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5659 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5660 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_y0_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_y0_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5661 }
5662 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5663 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
5664 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5665 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_evolve_y0_set" "', argument " "2"" of type '" "double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_evolve_y0_set" "', argument " "2"" of type '" "double *""'"); 0 0 0
5666 }
5667 0 arg2 = (double *)(argp2);
5668 0 ▶ if (arg1) (arg1)->y0 = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->y0 = arg2; 0 0 0
5669 0 ST(argvi) = &PL_sv_undef;
5670
5671
5672 0 XSRETURN(argvi);
5673 0 fail:
5674
5675
5676 0 SWIG_croak_null();
5677 }
5678 }
5679  
5680  
5681 0 XS(_wrap_gsl_odeiv_evolve_y0_get) {
5682 {
5683 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5684 0 void *argp1 = 0 ;
5685 0 int res1 = 0 ;
5686 0 int argvi = 0;
5687 0 double *result = 0 ;
5688 0 dXSARGS;
5689
5690 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5691 0 SWIG_croak("Usage: gsl_odeiv_evolve_y0_get(self);");
5692 }
5693 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5694 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5695 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_y0_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_y0_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5696 }
5697 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5698 0 result = (double *) ((arg1)->y0);
5699 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0); argvi++ ;
5700
5701 0 XSRETURN(argvi);
5702 0 fail:
5703
5704 0 SWIG_croak_null();
5705 }
5706 }
5707  
5708  
5709 0 XS(_wrap_gsl_odeiv_evolve_yerr_set) {
5710 {
5711 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5712 0 double *arg2 = (double *) 0 ;
5713 0 void *argp1 = 0 ;
5714 0 int res1 = 0 ;
5715 0 void *argp2 = 0 ;
5716 0 int res2 = 0 ;
5717 0 int argvi = 0;
5718 0 dXSARGS;
5719
5720 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5721 0 SWIG_croak("Usage: gsl_odeiv_evolve_yerr_set(self,yerr);");
5722 }
5723 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5724 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5725 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_yerr_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_yerr_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5726 }
5727 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5728 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
5729 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5730 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_evolve_yerr_set" "', argument " "2"" of type '" "double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_evolve_yerr_set" "', argument " "2"" of type '" "double *""'"); 0 0 0
5731 }
5732 0 arg2 = (double *)(argp2);
5733 0 ▶ if (arg1) (arg1)->yerr = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->yerr = arg2; 0 0 0
5734 0 ST(argvi) = &PL_sv_undef;
5735
5736
5737 0 XSRETURN(argvi);
5738 0 fail:
5739
5740
5741 0 SWIG_croak_null();
5742 }
5743 }
5744  
5745  
5746 0 XS(_wrap_gsl_odeiv_evolve_yerr_get) {
5747 {
5748 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5749 0 void *argp1 = 0 ;
5750 0 int res1 = 0 ;
5751 0 int argvi = 0;
5752 0 double *result = 0 ;
5753 0 dXSARGS;
5754
5755 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5756 0 SWIG_croak("Usage: gsl_odeiv_evolve_yerr_get(self);");
5757 }
5758 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5759 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5760 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_yerr_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_yerr_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5761 }
5762 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5763 0 result = (double *) ((arg1)->yerr);
5764 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0); argvi++ ;
5765
5766 0 XSRETURN(argvi);
5767 0 fail:
5768
5769 0 SWIG_croak_null();
5770 }
5771 }
5772  
5773  
5774 0 XS(_wrap_gsl_odeiv_evolve_dydt_in_set) {
5775 {
5776 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5777 0 double *arg2 = (double *) 0 ;
5778 0 void *argp1 = 0 ;
5779 0 int res1 = 0 ;
5780 0 void *argp2 = 0 ;
5781 0 int res2 = 0 ;
5782 0 int argvi = 0;
5783 0 dXSARGS;
5784
5785 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5786 0 SWIG_croak("Usage: gsl_odeiv_evolve_dydt_in_set(self,dydt_in);");
5787 }
5788 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5789 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5790 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dydt_in_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dydt_in_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5791 }
5792 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5793 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
5794 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5795 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_evolve_dydt_in_set" "', argument " "2"" of type '" "double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_evolve_dydt_in_set" "', argument " "2"" of type '" "double *""'"); 0 0 0
5796 }
5797 0 arg2 = (double *)(argp2);
5798 0 ▶ if (arg1) (arg1)->dydt_in = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->dydt_in = arg2; 0 0 0
5799 0 ST(argvi) = &PL_sv_undef;
5800
5801
5802 0 XSRETURN(argvi);
5803 0 fail:
5804
5805
5806 0 SWIG_croak_null();
5807 }
5808 }
5809  
5810  
5811 0 XS(_wrap_gsl_odeiv_evolve_dydt_in_get) {
5812 {
5813 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5814 0 void *argp1 = 0 ;
5815 0 int res1 = 0 ;
5816 0 int argvi = 0;
5817 0 double *result = 0 ;
5818 0 dXSARGS;
5819
5820 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5821 0 SWIG_croak("Usage: gsl_odeiv_evolve_dydt_in_get(self);");
5822 }
5823 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5824 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5825 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dydt_in_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dydt_in_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5826 }
5827 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5828 0 result = (double *) ((arg1)->dydt_in);
5829 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0); argvi++ ;
5830
5831 0 XSRETURN(argvi);
5832 0 fail:
5833
5834 0 SWIG_croak_null();
5835 }
5836 }
5837  
5838  
5839 0 XS(_wrap_gsl_odeiv_evolve_dydt_out_set) {
5840 {
5841 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5842 0 double *arg2 = (double *) 0 ;
5843 0 void *argp1 = 0 ;
5844 0 int res1 = 0 ;
5845 0 void *argp2 = 0 ;
5846 0 int res2 = 0 ;
5847 0 int argvi = 0;
5848 0 dXSARGS;
5849
5850 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5851 0 SWIG_croak("Usage: gsl_odeiv_evolve_dydt_out_set(self,dydt_out);");
5852 }
5853 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5854 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5855 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dydt_out_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dydt_out_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5856 }
5857 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5858 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
5859 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5860 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_evolve_dydt_out_set" "', argument " "2"" of type '" "double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_evolve_dydt_out_set" "', argument " "2"" of type '" "double *""'"); 0 0 0
5861 }
5862 0 arg2 = (double *)(argp2);
5863 0 ▶ if (arg1) (arg1)->dydt_out = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->dydt_out = arg2; 0 0 0
5864 0 ST(argvi) = &PL_sv_undef;
5865
5866
5867 0 XSRETURN(argvi);
5868 0 fail:
5869
5870
5871 0 SWIG_croak_null();
5872 }
5873 }
5874  
5875  
5876 0 XS(_wrap_gsl_odeiv_evolve_dydt_out_get) {
5877 {
5878 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5879 0 void *argp1 = 0 ;
5880 0 int res1 = 0 ;
5881 0 int argvi = 0;
5882 0 double *result = 0 ;
5883 0 dXSARGS;
5884
5885 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5886 0 SWIG_croak("Usage: gsl_odeiv_evolve_dydt_out_get(self);");
5887 }
5888 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5889 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5890 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dydt_out_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_dydt_out_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5891 }
5892 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5893 0 result = (double *) ((arg1)->dydt_out);
5894 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0); argvi++ ;
5895
5896 0 XSRETURN(argvi);
5897 0 fail:
5898
5899 0 SWIG_croak_null();
5900 }
5901 }
5902  
5903  
5904 0 XS(_wrap_gsl_odeiv_evolve_last_step_set) {
5905 {
5906 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5907 double arg2 ;
5908 0 void *argp1 = 0 ;
5909 0 int res1 = 0 ;
5910 double val2 ;
5911 0 int ecode2 = 0 ;
5912 0 int argvi = 0;
5913 0 dXSARGS;
5914
5915 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5916 0 SWIG_croak("Usage: gsl_odeiv_evolve_last_step_set(self,last_step);");
5917 }
5918 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5919 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5920 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_last_step_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_last_step_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5921 }
5922 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5923 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5924 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5925 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_evolve_last_step_set" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_evolve_last_step_set" "', argument " "2"" of type '" "double""'"); 0 0 0
5926 }
5927 0 arg2 = (double)(val2);
5928 0 ▶ if (arg1) (arg1)->last_step = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->last_step = arg2; 0 0 0
5929 0 ST(argvi) = &PL_sv_undef;
5930
5931
5932 0 XSRETURN(argvi);
5933 0 fail:
5934
5935
5936 0 SWIG_croak_null();
5937 }
5938 }
5939  
5940  
5941 0 XS(_wrap_gsl_odeiv_evolve_last_step_get) {
5942 {
5943 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5944 0 void *argp1 = 0 ;
5945 0 int res1 = 0 ;
5946 0 int argvi = 0;
5947 double result;
5948 0 dXSARGS;
5949
5950 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5951 0 SWIG_croak("Usage: gsl_odeiv_evolve_last_step_get(self);");
5952 }
5953 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5954 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5955 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_last_step_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_last_step_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5956 }
5957 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5958 0 result = (double) ((arg1)->last_step);
5959 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5960
5961 0 XSRETURN(argvi);
5962 0 fail:
5963
5964 0 SWIG_croak_null();
5965 }
5966 }
5967  
5968  
5969 0 XS(_wrap_gsl_odeiv_evolve_count_set) {
5970 {
5971 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
5972 unsigned long arg2 ;
5973 0 void *argp1 = 0 ;
5974 0 int res1 = 0 ;
5975 unsigned long val2 ;
5976 0 int ecode2 = 0 ;
5977 0 int argvi = 0;
5978 0 dXSARGS;
5979
5980 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5981 0 SWIG_croak("Usage: gsl_odeiv_evolve_count_set(self,count);");
5982 }
5983 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
5984 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5985 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_count_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_count_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
5986 }
5987 0 arg1 = (gsl_odeiv_evolve *)(argp1);
5988 0 ecode2 = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5989 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5990 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_evolve_count_set" "', argument " "2"" of type '" "unsigned long""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_evolve_count_set" "', argument " "2"" of type '" "unsigned long""'"); 0 0 0
5991 }
5992 0 arg2 = (unsigned long)(val2);
5993 0 ▶ if (arg1) (arg1)->count = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->count = arg2; 0 0 0
5994 0 ST(argvi) = &PL_sv_undef;
5995
5996
5997 0 XSRETURN(argvi);
5998 0 fail:
5999
6000
6001 0 SWIG_croak_null();
6002 }
6003 }
6004  
6005  
6006 0 XS(_wrap_gsl_odeiv_evolve_count_get) {
6007 {
6008 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
6009 0 void *argp1 = 0 ;
6010 0 int res1 = 0 ;
6011 0 int argvi = 0;
6012 unsigned long result;
6013 0 dXSARGS;
6014
6015 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
6016 0 SWIG_croak("Usage: gsl_odeiv_evolve_count_get(self);");
6017 }
6018 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
6019 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6020 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_count_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_count_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
6021 }
6022 0 arg1 = (gsl_odeiv_evolve *)(argp1);
6023 0 result = (unsigned long) ((arg1)->count);
6024 0 ST(argvi) = SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long)(result)); argvi++ ;
6025
6026 0 XSRETURN(argvi);
6027 0 fail:
6028
6029 0 SWIG_croak_null();
6030 }
6031 }
6032  
6033  
6034 0 XS(_wrap_gsl_odeiv_evolve_failed_steps_set) {
6035 {
6036 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
6037 unsigned long arg2 ;
6038 0 void *argp1 = 0 ;
6039 0 int res1 = 0 ;
6040 unsigned long val2 ;
6041 0 int ecode2 = 0 ;
6042 0 int argvi = 0;
6043 0 dXSARGS;
6044
6045 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
6046 0 SWIG_croak("Usage: gsl_odeiv_evolve_failed_steps_set(self,failed_steps);");
6047 }
6048 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
6049 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6050 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_failed_steps_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_failed_steps_set" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
6051 }
6052 0 arg1 = (gsl_odeiv_evolve *)(argp1);
6053 0 ecode2 = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6054 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6055 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_evolve_failed_steps_set" "', argument " "2"" of type '" "unsigned long""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_odeiv_evolve_failed_steps_set" "', argument " "2"" of type '" "unsigned long""'"); 0 0 0
6056 }
6057 0 arg2 = (unsigned long)(val2);
6058 0 ▶ if (arg1) (arg1)->failed_steps = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->failed_steps = arg2; 0 0 0
6059 0 ST(argvi) = &PL_sv_undef;
6060
6061
6062 0 XSRETURN(argvi);
6063 0 fail:
6064
6065
6066 0 SWIG_croak_null();
6067 }
6068 }
6069  
6070  
6071 0 XS(_wrap_gsl_odeiv_evolve_failed_steps_get) {
6072 {
6073 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
6074 0 void *argp1 = 0 ;
6075 0 int res1 = 0 ;
6076 0 int argvi = 0;
6077 unsigned long result;
6078 0 dXSARGS;
6079
6080 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
6081 0 SWIG_croak("Usage: gsl_odeiv_evolve_failed_steps_get(self);");
6082 }
6083 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
6084 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6085 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_failed_steps_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_failed_steps_get" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
6086 }
6087 0 arg1 = (gsl_odeiv_evolve *)(argp1);
6088 0 result = (unsigned long) ((arg1)->failed_steps);
6089 0 ST(argvi) = SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long)(result)); argvi++ ;
6090
6091 0 XSRETURN(argvi);
6092 0 fail:
6093
6094 0 SWIG_croak_null();
6095 }
6096 }
6097  
6098  
6099 0 XS(_wrap_new_gsl_odeiv_evolve) {
6100 {
6101 0 int argvi = 0;
6102 0 gsl_odeiv_evolve *result = 0 ;
6103 0 dXSARGS;
6104
6105 0 ▶ if ((items < 0) || (items > 0)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 0) || (items > 0)) { 0 0 0
if ((items < 0) || (items > 0)) { 0 0 0
6106 0 SWIG_croak("Usage: new_gsl_odeiv_evolve();");
6107 }
6108 0 result = (gsl_odeiv_evolve *)calloc(1, sizeof(gsl_odeiv_evolve));
6109 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_evolve, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
6110 0 XSRETURN(argvi);
6111 0 fail:
6112 0 SWIG_croak_null();
6113 }
6114 }
6115  
6116  
6117 0 XS(_wrap_delete_gsl_odeiv_evolve) {
6118 {
6119 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
6120 0 void *argp1 = 0 ;
6121 0 int res1 = 0 ;
6122 0 int argvi = 0;
6123 0 dXSARGS;
6124
6125 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
6126 0 SWIG_croak("Usage: delete_gsl_odeiv_evolve(self);");
6127 }
6128 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, SWIG_POINTER_DISOWN | 0 );
6129 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6130 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_evolve" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_odeiv_evolve" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
6131 }
6132 0 arg1 = (gsl_odeiv_evolve *)(argp1);
6133 0 free((char *) arg1);
6134 0 ST(argvi) = &PL_sv_undef;
6135
6136 0 XSRETURN(argvi);
6137 0 fail:
6138
6139 0 SWIG_croak_null();
6140 }
6141 }
6142  
6143  
6144 0 XS(_wrap_gsl_odeiv_evolve_alloc) {
6145 {
6146 size_t arg1 ;
6147 size_t val1 ;
6148 0 int ecode1 = 0 ;
6149 0 int argvi = 0;
6150 0 gsl_odeiv_evolve *result = 0 ;
6151 0 dXSARGS;
6152
6153 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
6154 0 SWIG_croak("Usage: gsl_odeiv_evolve_alloc(dim);");
6155 }
6156 0 ecode1 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6157 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6158 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_odeiv_evolve_alloc" "', argument " "1"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_odeiv_evolve_alloc" "', argument " "1"" of type '" "size_t""'"); 0 0 0
6159 }
6160 0 arg1 = (size_t)(val1);
6161 0 result = (gsl_odeiv_evolve *)gsl_odeiv_evolve_alloc(arg1);
6162 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_odeiv_evolve, 0 | SWIG_SHADOW); argvi++ ;
6163
6164 0 XSRETURN(argvi);
6165 0 fail:
6166
6167 0 SWIG_croak_null();
6168 }
6169 }
6170  
6171  
6172 0 XS(_wrap_gsl_odeiv_evolve_reset) {
6173 {
6174 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
6175 0 void *argp1 = 0 ;
6176 0 int res1 = 0 ;
6177 0 int argvi = 0;
6178 int result;
6179 0 dXSARGS;
6180
6181 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
6182 0 SWIG_croak("Usage: gsl_odeiv_evolve_reset(e);");
6183 }
6184 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
6185 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6186 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_reset" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_reset" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
6187 }
6188 0 arg1 = (gsl_odeiv_evolve *)(argp1);
6189 0 result = (int)gsl_odeiv_evolve_reset(arg1);
6190 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6191
6192 0 XSRETURN(argvi);
6193 0 fail:
6194
6195 0 SWIG_croak_null();
6196 }
6197 }
6198  
6199  
6200 0 XS(_wrap_gsl_odeiv_evolve_free) {
6201 {
6202 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
6203 0 void *argp1 = 0 ;
6204 0 int res1 = 0 ;
6205 0 int argvi = 0;
6206 0 dXSARGS;
6207
6208 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
6209 0 SWIG_croak("Usage: gsl_odeiv_evolve_free(e);");
6210 }
6211 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
6212 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6213 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_free" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_free" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
6214 }
6215 0 arg1 = (gsl_odeiv_evolve *)(argp1);
6216 0 gsl_odeiv_evolve_free(arg1);
6217 0 ST(argvi) = &PL_sv_undef;
6218
6219 0 XSRETURN(argvi);
6220 0 fail:
6221
6222 0 SWIG_croak_null();
6223 }
6224 }
6225  
6226  
6227 0 XS(_wrap_gsl_odeiv_evolve_apply) {
6228 {
6229 0 gsl_odeiv_evolve *arg1 = (gsl_odeiv_evolve *) 0 ;
6230 0 gsl_odeiv_control *arg2 = (gsl_odeiv_control *) 0 ;
6231 0 gsl_odeiv_step *arg3 = (gsl_odeiv_step *) 0 ;
6232 0 gsl_odeiv_system *arg4 = (gsl_odeiv_system *) 0 ;
6233 0 double *arg5 = (double *) 0 ;
6234 double arg6 ;
6235 0 double *arg7 = (double *) 0 ;
6236 0 double *arg8 = (double *) (double *)0 ;
6237 0 void *argp1 = 0 ;
6238 0 int res1 = 0 ;
6239 0 void *argp2 = 0 ;
6240 0 int res2 = 0 ;
6241 0 void *argp3 = 0 ;
6242 0 int res3 = 0 ;
6243 double val6 ;
6244 0 int ecode6 = 0 ;
6245 0 int argvi = 0;
6246 SV * _saved[3] ;
6247 int result;
6248 0 dXSARGS;
6249
6250 0 ▶ if ((items < 8) || (items > 8)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 8) || (items > 8)) { 0 0 0
if ((items < 8) || (items > 8)) { 0 0 0
6251 0 SWIG_croak("Usage: gsl_odeiv_evolve_apply(e,con,step,dydt,t,t1,h,y);");
6252 }
6253 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_odeiv_evolve, 0 | 0 );
6254 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6255 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_apply" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_odeiv_evolve_apply" "', argument " "1"" of type '" "gsl_odeiv_evolve *""'"); 0 0 0
6256 }
6257 0 arg1 = (gsl_odeiv_evolve *)(argp1);
6258 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_odeiv_control, 0 | 0 );
6259 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
6260 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_evolve_apply" "', argument " "2"" of type '" "gsl_odeiv_control *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_odeiv_evolve_apply" "', argument " "2"" of type '" "gsl_odeiv_control *""'"); 0 0 0
6261 }
6262 0 arg2 = (gsl_odeiv_control *)(argp2);
6263 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_odeiv_step, 0 | 0 );
6264 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
6265 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_odeiv_evolve_apply" "', argument " "3"" of type '" "gsl_odeiv_step *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_odeiv_evolve_apply" "', argument " "3"" of type '" "gsl_odeiv_step *""'"); 0 0 0
6266 }
6267 0 arg3 = (gsl_odeiv_step *)(argp3);
6268 {
6269 SV *sv;
6270 HV *hash;
6271
6272 0 swig_math_gsl_odeiv_set_error_param( "gsl_odeiv_evolve_apply", "dydt" );
6273
6274 0 ▶ if (!sv_isobject(ST(3))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!sv_isobject(ST(3))) { 0 0 0
6275 0 swig_math_gsl_odeiv_input_error(
6276 "Input parameter $dydt is not a blessed reference!"
6277 );
6278 }
6279 0 ▶ if (!sv_isa(ST(3), "Math::GSL::ODEIV::gsl_odeiv_system")) {
Branch: 1 branch
BranchTrueFalseTotal
if (!sv_isa(ST(3), "Math::GSL::ODEIV::gsl_odeiv_system")) { 0 0 0
6280 0 swig_math_gsl_odeiv_input_error(
6281 "Input parameter $dydt is not an object of type "
6282 "Math::GSL::ODEIV::gsl_odeiv_system!"
6283 );
6284 }
6285 0 sv = SvRV(ST(3));
6286 0 ▶ if ((SvTYPE(sv) != SVt_PVHV)) {
Branch: 1 branch
BranchTrueFalseTotal
if ((SvTYPE(sv) != SVt_PVHV)) { 0 0 0
6287 0 swig_math_gsl_odeiv_input_error(
6288 "Input parameter $dydt is not a blessed hash reference!"
6289 );
6290 }
6291 gsl_odeiv_system *sys;
6292 0 Newx(sys, 1, gsl_odeiv_system);
6293 0 swig_math_gsl_odeiv_fill_system_struct( (HV *)sv, sys);
6294 0 arg4 = sys;
6295 }
6296 {
6297 SV *sv;
6298 swig_perl_double_in_out *h_wrap;
6299
6300 0 swig_math_gsl_odeiv_set_error_param( "gsl_odeiv_evolve_apply", "t" );
6301 0 ▶ if (!SvROK(ST(4))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(4))) { 0 0 0
6302 0 swig_math_gsl_odeiv_input_error(
6303 "Input parameter $t is not a reference!"
6304 );
6305 }
6306 0 ▶ if (SvTYPE(SvRV(ST(4))) >= SVt_PVAV) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(4))) >= SVt_PVAV) { 0 0 0
6307 0 swig_math_gsl_odeiv_input_error(
6308 "Input parameter $t is not a scalar reference!"
6309 );
6310 }
6311 0 sv = SvRV(ST(4));
6312 0 Newx(h_wrap, 1, swig_perl_double_in_out);
6313 0 h_wrap->sv = sv;
6314 0 h_wrap->h = (double) SvNV(sv);
6315 0 arg5 = (double *) &h_wrap->h;
6316 }
6317 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
6318 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
6319 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_odeiv_evolve_apply" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_odeiv_evolve_apply" "', argument " "6"" of type '" "double""'"); 0 0 0
6320 }
6321 0 arg6 = (double)(val6);
6322 {
6323 SV *sv;
6324 swig_perl_double_in_out *h_wrap;
6325
6326 0 swig_math_gsl_odeiv_set_error_param( "gsl_odeiv_evolve_apply", "h" );
6327 0 ▶ if (!SvROK(ST(6))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(6))) { 0 0 0
6328 0 swig_math_gsl_odeiv_input_error(
6329 "Input parameter $h is not a reference!"
6330 );
6331 }
6332 0 ▶ if (SvTYPE(SvRV(ST(6))) >= SVt_PVAV) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(6))) >= SVt_PVAV) { 0 0 0
6333 0 swig_math_gsl_odeiv_input_error(
6334 "Input parameter $h is not a scalar reference!"
6335 );
6336 }
6337 0 sv = SvRV(ST(6));
6338 0 Newx(h_wrap, 1, swig_perl_double_in_out);
6339 0 h_wrap->sv = sv;
6340 0 h_wrap->h = (double) SvNV(sv);
6341 0 arg7 = (double *) &h_wrap->h;
6342 }
6343 {
6344 0 struct perl_array * p_array = 0; /* see gsl_typemaps.i for definition */
6345 I32 len;
6346 AV *array;
6347 int i;
6348 SV **tv;
6349 0 swig_math_gsl_odeiv_set_error_param( "gsl_odeiv_evolve_apply", "y" );
6350 0 ▶ if (!SvROK(ST(7))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(7))) { 0 0 0
6351 0 swig_math_gsl_odeiv_input_error(
6352 "Input parameter $y is not a reference!"
6353 );
6354 }
6355 0 ▶ if (SvTYPE(SvRV(ST(7))) != SVt_PVAV) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(7))) != SVt_PVAV) { 0 0 0
6356 0 swig_math_gsl_odeiv_input_error(
6357 "Input parameter $y is not an array reference!"
6358 );
6359 }
6360 0 array = (AV*)SvRV(ST(7));
6361 0 len = av_len(array);
6362 p_array = (struct perl_array *)
6363 0 malloc((len+1)*sizeof(double)+sizeof(struct perl_array));
6364 0 p_array->len=len;
6365 0 p_array->array=array;
6366 0 arg8 = (double *)&p_array[1];
6367 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6368 0 tv = av_fetch(array, i, 0);
6369 0 arg8[i] = (double) SvNV(*tv);
6370 }
6371 }
6372 0 _saved[0] = ST(4);
6373 0 _saved[1] = ST(6);
6374 0 _saved[2] = ST(7);
6375 0 result = (int)gsl_odeiv_evolve_apply(arg1,arg2,arg3,(gsl_odeiv_system const *)arg4,arg5,arg6,arg7,arg8);
6376 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6377 {
6378 swig_perl_double_in_out *h_wrap;
6379 SV *sv;
6380
6381 0 h_wrap = (swig_perl_double_in_out *) arg5;
6382 0 sv = h_wrap->sv;
6383 0 sv_setnv(sv, h_wrap->h);
6384 }
6385 {
6386 swig_perl_double_in_out *h_wrap;
6387 SV *sv;
6388
6389 0 h_wrap = (swig_perl_double_in_out *) arg7;
6390 0 sv = h_wrap->sv;
6391 0 sv_setnv(sv, h_wrap->h);
6392 }
6393 {
6394 0 struct perl_array * p_array = 0; /* see gsl_typemaps.i for definition */
6395 int i;
6396 double val;
6397 SV **tv;
6398
6399 0 p_array=(struct perl_array *)(((char*)arg8)-sizeof(struct perl_array));
6400 0 ▶ for (i = 0; i <= p_array->len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= p_array->len; i++) { 0 0 0
6401 0 val = arg8[i];
6402 0 tv = av_fetch(p_array->array, i, 0);
6403 0 sv_setnv(*tv, val);
6404 }
6405 }
6406
6407
6408
6409 {
6410 0 swig_math_gsl_odeiv_system *ssys = (swig_math_gsl_odeiv_system *)arg4->params;
6411 0 Safefree(ssys);
6412 0 Safefree(arg4);
6413 }
6414 {
6415 0 Safefree( arg5 );
6416 }
6417
6418 {
6419 0 Safefree( arg7 );
6420 }
6421 {
6422 0 ▶ if (arg8) free(((char*)arg8)-sizeof(struct perl_array));
Branch: 1 branch
BranchTrueFalseTotal
if (arg8) free(((char*)arg8)-sizeof(struct perl_array)); 0 0 0
6423 }
6424 0 XSRETURN(argvi);
6425 0 fail:
6426
6427
6428
6429 {
6430 0 swig_math_gsl_odeiv_system *ssys = (swig_math_gsl_odeiv_system *)arg4->params;
6431 0 Safefree(ssys);
6432 0 Safefree(arg4);
6433 }
6434 {
6435 0 Safefree( arg5 );
6436 }
6437
6438 {
6439 0 Safefree( arg7 );
6440 }
6441 {
6442 0 ▶ if (arg8) free(((char*)arg8)-sizeof(struct perl_array));
Branch: 1 branch
BranchTrueFalseTotal
if (arg8) free(((char*)arg8)-sizeof(struct perl_array)); 0 0 0
6443 }
6444 0 SWIG_croak_null();
6445 }
6446 }
6447  
6448  
6449  
6450 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
6451  
6452 static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
6453 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
6454 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
6455 static swig_type_info _swigt__p_f_double_a___q_const__double_a___double_p_void__int = {"_p_f_double_a___q_const__double_a___double_p_void__int", "int (*)(double,double const [],double [],void *)", 0, 0, (void*)0, 0};
6456 static swig_type_info _swigt__p_f_double_a___q_const__double_p_double_a___double_p_void__int = {"_p_f_double_a___q_const__double_p_double_a___double_p_void__int", "int (*)(double,double const [],double *,double [],void *)", 0, 0, (void*)0, 0};
6457 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};
6458 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};
6459 static swig_type_info _swigt__p_f_p_void__unsigned_int = {"_p_f_p_void__unsigned_int", "unsigned int (*)(void *)", 0, 0, (void*)0, 0};
6460 static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0};
6461 static swig_type_info _swigt__p_f_p_void_double_double_double_double__int = {"_p_f_p_void_double_double_double_double__int", "int (*)(void *,double,double,double,double)", 0, 0, (void*)0, 0};
6462 static swig_type_info _swigt__p_f_p_void_size_t__int = {"_p_f_p_void_size_t__int", "int (*)(void *,size_t)", 0, 0, (void*)0, 0};
6463 static swig_type_info _swigt__p_f_p_void_size_t_double_double_a___double_a___double_a___q_const__double_a___double_p_q_const__gsl_odeiv_system__int = {"_p_f_p_void_size_t_double_double_a___double_a___double_a___q_const__double_a___double_p_q_const__gsl_odeiv_system__int", "int (*)(void *,size_t,double,double,double [],double [],double const [],double [],gsl_odeiv_system const *)", 0, 0, (void*)0, 0};
6464 static swig_type_info _swigt__p_f_p_void_size_t_unsigned_int_a___q_const__double_a___q_const__double_a___q_const__double_p_double__int = {"_p_f_p_void_size_t_unsigned_int_a___q_const__double_a___q_const__double_a___q_const__double_p_double__int", "int (*)(void *,size_t,unsigned int,double const [],double const [],double const [],double *)", 0, 0, (void*)0, 0};
6465 static swig_type_info _swigt__p_f_size_t__p_void = {"_p_f_size_t__p_void", "void *(*)(size_t)", 0, 0, (void*)0, 0};
6466 static swig_type_info _swigt__p_f_void__p_void = {"_p_f_void__p_void", "void *(*)(void)", 0, 0, (void*)0, 0};
6467 static swig_type_info _swigt__p_gsl_odeiv_control = {"_p_gsl_odeiv_control", "gsl_odeiv_control *", 0, 0, (void*)"Math::GSL::ODEIV::gsl_odeiv_control", 0};
6468 static swig_type_info _swigt__p_gsl_odeiv_control_type = {"_p_gsl_odeiv_control_type", "gsl_odeiv_control_type *", 0, 0, (void*)"Math::GSL::ODEIV::gsl_odeiv_control_type", 0};
6469 static swig_type_info _swigt__p_gsl_odeiv_evolve = {"_p_gsl_odeiv_evolve", "gsl_odeiv_evolve *", 0, 0, (void*)"Math::GSL::ODEIV::gsl_odeiv_evolve", 0};
6470 static swig_type_info _swigt__p_gsl_odeiv_step = {"_p_gsl_odeiv_step", "gsl_odeiv_step *", 0, 0, (void*)"Math::GSL::ODEIV::gsl_odeiv_step", 0};
6471 static swig_type_info _swigt__p_gsl_odeiv_step_type = {"_p_gsl_odeiv_step_type", "gsl_odeiv_step_type *", 0, 0, (void*)"Math::GSL::ODEIV::gsl_odeiv_step_type", 0};
6472 static swig_type_info _swigt__p_gsl_odeiv_system = {"_p_gsl_odeiv_system", "gsl_odeiv_system *", 0, 0, (void*)"Math::GSL::ODEIV::gsl_odeiv_system", 0};
6473 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
6474  
6475 static swig_type_info *swig_type_initial[] = {
6476 &_swigt__p_FILE,
6477 &_swigt__p_char,
6478 &_swigt__p_double,
6479 &_swigt__p_f_double_a___q_const__double_a___double_p_void__int,
6480 &_swigt__p_f_double_a___q_const__double_p_double_a___double_p_void__int,
6481 &_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void,
6482 &_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
6483 &_swigt__p_f_p_void__unsigned_int,
6484 &_swigt__p_f_p_void__void,
6485 &_swigt__p_f_p_void_double_double_double_double__int,
6486 &_swigt__p_f_p_void_size_t__int,
6487 &_swigt__p_f_p_void_size_t_double_double_a___double_a___double_a___q_const__double_a___double_p_q_const__gsl_odeiv_system__int,
6488 &_swigt__p_f_p_void_size_t_unsigned_int_a___q_const__double_a___q_const__double_a___q_const__double_p_double__int,
6489 &_swigt__p_f_size_t__p_void,
6490 &_swigt__p_f_void__p_void,
6491 &_swigt__p_gsl_odeiv_control,
6492 &_swigt__p_gsl_odeiv_control_type,
6493 &_swigt__p_gsl_odeiv_evolve,
6494 &_swigt__p_gsl_odeiv_step,
6495 &_swigt__p_gsl_odeiv_step_type,
6496 &_swigt__p_gsl_odeiv_system,
6497 &_swigt__p_void,
6498 };
6499  
6500 static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
6501 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
6502 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
6503 static swig_cast_info _swigc__p_f_double_a___q_const__double_a___double_p_void__int[] = { {&_swigt__p_f_double_a___q_const__double_a___double_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
6504 static swig_cast_info _swigc__p_f_double_a___q_const__double_p_double_a___double_p_void__int[] = { {&_swigt__p_f_double_a___q_const__double_p_double_a___double_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
6505 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}};
6506 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}};
6507 static swig_cast_info _swigc__p_f_p_void__unsigned_int[] = { {&_swigt__p_f_p_void__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
6508 static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
6509 static swig_cast_info _swigc__p_f_p_void_double_double_double_double__int[] = { {&_swigt__p_f_p_void_double_double_double_double__int, 0, 0, 0},{0, 0, 0, 0}};
6510 static swig_cast_info _swigc__p_f_p_void_size_t__int[] = { {&_swigt__p_f_p_void_size_t__int, 0, 0, 0},{0, 0, 0, 0}};
6511 static swig_cast_info _swigc__p_f_p_void_size_t_double_double_a___double_a___double_a___q_const__double_a___double_p_q_const__gsl_odeiv_system__int[] = { {&_swigt__p_f_p_void_size_t_double_double_a___double_a___double_a___q_const__double_a___double_p_q_const__gsl_odeiv_system__int, 0, 0, 0},{0, 0, 0, 0}};
6512 static swig_cast_info _swigc__p_f_p_void_size_t_unsigned_int_a___q_const__double_a___q_const__double_a___q_const__double_p_double__int[] = { {&_swigt__p_f_p_void_size_t_unsigned_int_a___q_const__double_a___q_const__double_a___q_const__double_p_double__int, 0, 0, 0},{0, 0, 0, 0}};
6513 static swig_cast_info _swigc__p_f_size_t__p_void[] = { {&_swigt__p_f_size_t__p_void, 0, 0, 0},{0, 0, 0, 0}};
6514 static swig_cast_info _swigc__p_f_void__p_void[] = { {&_swigt__p_f_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
6515 static swig_cast_info _swigc__p_gsl_odeiv_control[] = { {&_swigt__p_gsl_odeiv_control, 0, 0, 0},{0, 0, 0, 0}};
6516 static swig_cast_info _swigc__p_gsl_odeiv_control_type[] = { {&_swigt__p_gsl_odeiv_control_type, 0, 0, 0},{0, 0, 0, 0}};
6517 static swig_cast_info _swigc__p_gsl_odeiv_evolve[] = { {&_swigt__p_gsl_odeiv_evolve, 0, 0, 0},{0, 0, 0, 0}};
6518 static swig_cast_info _swigc__p_gsl_odeiv_step[] = { {&_swigt__p_gsl_odeiv_step, 0, 0, 0},{0, 0, 0, 0}};
6519 static swig_cast_info _swigc__p_gsl_odeiv_step_type[] = { {&_swigt__p_gsl_odeiv_step_type, 0, 0, 0},{0, 0, 0, 0}};
6520 static swig_cast_info _swigc__p_gsl_odeiv_system[] = { {&_swigt__p_gsl_odeiv_system, 0, 0, 0},{0, 0, 0, 0}};
6521 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
6522  
6523 static swig_cast_info *swig_cast_initial[] = {
6524 _swigc__p_FILE,
6525 _swigc__p_char,
6526 _swigc__p_double,
6527 _swigc__p_f_double_a___q_const__double_a___double_p_void__int,
6528 _swigc__p_f_double_a___q_const__double_p_double_a___double_p_void__int,
6529 _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void,
6530 _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
6531 _swigc__p_f_p_void__unsigned_int,
6532 _swigc__p_f_p_void__void,
6533 _swigc__p_f_p_void_double_double_double_double__int,
6534 _swigc__p_f_p_void_size_t__int,
6535 _swigc__p_f_p_void_size_t_double_double_a___double_a___double_a___q_const__double_a___double_p_q_const__gsl_odeiv_system__int,
6536 _swigc__p_f_p_void_size_t_unsigned_int_a___q_const__double_a___q_const__double_a___q_const__double_p_double__int,
6537 _swigc__p_f_size_t__p_void,
6538 _swigc__p_f_void__p_void,
6539 _swigc__p_gsl_odeiv_control,
6540 _swigc__p_gsl_odeiv_control_type,
6541 _swigc__p_gsl_odeiv_evolve,
6542 _swigc__p_gsl_odeiv_step,
6543 _swigc__p_gsl_odeiv_step_type,
6544 _swigc__p_gsl_odeiv_system,
6545 _swigc__p_void,
6546 };
6547  
6548  
6549 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
6550  
6551 static swig_constant_info swig_constants[] = {
6552 {0,0,0,0,0,0}
6553 };
6554 #ifdef __cplusplus
6555 }
6556 #endif
6557 static swig_variable_info swig_variables[] = {
6558 { "Math::GSL::ODEIVc::gsl_odeiv_step_rk2", MAGIC_CLASS _wrap_gsl_odeiv_step_rk2_set, MAGIC_CLASS _wrap_gsl_odeiv_step_rk2_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6559 { "Math::GSL::ODEIVc::gsl_odeiv_step_rk4", MAGIC_CLASS _wrap_gsl_odeiv_step_rk4_set, MAGIC_CLASS _wrap_gsl_odeiv_step_rk4_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6560 { "Math::GSL::ODEIVc::gsl_odeiv_step_rkf45", MAGIC_CLASS _wrap_gsl_odeiv_step_rkf45_set, MAGIC_CLASS _wrap_gsl_odeiv_step_rkf45_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6561 { "Math::GSL::ODEIVc::gsl_odeiv_step_rkck", MAGIC_CLASS _wrap_gsl_odeiv_step_rkck_set, MAGIC_CLASS _wrap_gsl_odeiv_step_rkck_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6562 { "Math::GSL::ODEIVc::gsl_odeiv_step_rk8pd", MAGIC_CLASS _wrap_gsl_odeiv_step_rk8pd_set, MAGIC_CLASS _wrap_gsl_odeiv_step_rk8pd_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6563 { "Math::GSL::ODEIVc::gsl_odeiv_step_rk2imp", MAGIC_CLASS _wrap_gsl_odeiv_step_rk2imp_set, MAGIC_CLASS _wrap_gsl_odeiv_step_rk2imp_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6564 { "Math::GSL::ODEIVc::gsl_odeiv_step_rk2simp", MAGIC_CLASS _wrap_gsl_odeiv_step_rk2simp_set, MAGIC_CLASS _wrap_gsl_odeiv_step_rk2simp_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6565 { "Math::GSL::ODEIVc::gsl_odeiv_step_rk4imp", MAGIC_CLASS _wrap_gsl_odeiv_step_rk4imp_set, MAGIC_CLASS _wrap_gsl_odeiv_step_rk4imp_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6566 { "Math::GSL::ODEIVc::gsl_odeiv_step_bsimp", MAGIC_CLASS _wrap_gsl_odeiv_step_bsimp_set, MAGIC_CLASS _wrap_gsl_odeiv_step_bsimp_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6567 { "Math::GSL::ODEIVc::gsl_odeiv_step_gear1", MAGIC_CLASS _wrap_gsl_odeiv_step_gear1_set, MAGIC_CLASS _wrap_gsl_odeiv_step_gear1_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6568 { "Math::GSL::ODEIVc::gsl_odeiv_step_gear2", MAGIC_CLASS _wrap_gsl_odeiv_step_gear2_set, MAGIC_CLASS _wrap_gsl_odeiv_step_gear2_get,&SWIGTYPE_p_gsl_odeiv_step_type },
6569 {0,0,0,0}
6570 };
6571 static swig_command_info swig_commands[] = {
6572 {"Math::GSL::ODEIVc::gsl_error", _wrap_gsl_error},
6573 {"Math::GSL::ODEIVc::gsl_stream_printf", _wrap_gsl_stream_printf},
6574 {"Math::GSL::ODEIVc::gsl_strerror", _wrap_gsl_strerror},
6575 {"Math::GSL::ODEIVc::gsl_set_error_handler", _wrap_gsl_set_error_handler},
6576 {"Math::GSL::ODEIVc::gsl_set_error_handler_off", _wrap_gsl_set_error_handler_off},
6577 {"Math::GSL::ODEIVc::gsl_set_stream_handler", _wrap_gsl_set_stream_handler},
6578 {"Math::GSL::ODEIVc::gsl_set_stream", _wrap_gsl_set_stream},
6579 {"Math::GSL::ODEIVc::gsl_odeiv_system_function_set", _wrap_gsl_odeiv_system_function_set},
6580 {"Math::GSL::ODEIVc::gsl_odeiv_system_function_get", _wrap_gsl_odeiv_system_function_get},
6581 {"Math::GSL::ODEIVc::gsl_odeiv_system_jacobian_set", _wrap_gsl_odeiv_system_jacobian_set},
6582 {"Math::GSL::ODEIVc::gsl_odeiv_system_jacobian_get", _wrap_gsl_odeiv_system_jacobian_get},
6583 {"Math::GSL::ODEIVc::gsl_odeiv_system_dimension_set", _wrap_gsl_odeiv_system_dimension_set},
6584 {"Math::GSL::ODEIVc::gsl_odeiv_system_dimension_get", _wrap_gsl_odeiv_system_dimension_get},
6585 {"Math::GSL::ODEIVc::gsl_odeiv_system_params_set", _wrap_gsl_odeiv_system_params_set},
6586 {"Math::GSL::ODEIVc::gsl_odeiv_system_params_get", _wrap_gsl_odeiv_system_params_get},
6587 {"Math::GSL::ODEIVc::new_gsl_odeiv_system", _wrap_new_gsl_odeiv_system},
6588 {"Math::GSL::ODEIVc::delete_gsl_odeiv_system", _wrap_delete_gsl_odeiv_system},
6589 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_name_set", _wrap_gsl_odeiv_step_type_name_set},
6590 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_name_get", _wrap_gsl_odeiv_step_type_name_get},
6591 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_can_use_dydt_in_set", _wrap_gsl_odeiv_step_type_can_use_dydt_in_set},
6592 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_can_use_dydt_in_get", _wrap_gsl_odeiv_step_type_can_use_dydt_in_get},
6593 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_gives_exact_dydt_out_set", _wrap_gsl_odeiv_step_type_gives_exact_dydt_out_set},
6594 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_gives_exact_dydt_out_get", _wrap_gsl_odeiv_step_type_gives_exact_dydt_out_get},
6595 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_alloc_set", _wrap_gsl_odeiv_step_type_alloc_set},
6596 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_alloc_get", _wrap_gsl_odeiv_step_type_alloc_get},
6597 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_apply_set", _wrap_gsl_odeiv_step_type_apply_set},
6598 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_apply_get", _wrap_gsl_odeiv_step_type_apply_get},
6599 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_reset_set", _wrap_gsl_odeiv_step_type_reset_set},
6600 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_reset_get", _wrap_gsl_odeiv_step_type_reset_get},
6601 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_order_set", _wrap_gsl_odeiv_step_type_order_set},
6602 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_order_get", _wrap_gsl_odeiv_step_type_order_get},
6603 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_free_set", _wrap_gsl_odeiv_step_type_free_set},
6604 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_free_get", _wrap_gsl_odeiv_step_type_free_get},
6605 {"Math::GSL::ODEIVc::new_gsl_odeiv_step_type", _wrap_new_gsl_odeiv_step_type},
6606 {"Math::GSL::ODEIVc::delete_gsl_odeiv_step_type", _wrap_delete_gsl_odeiv_step_type},
6607 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_set", _wrap_gsl_odeiv_step_type_set},
6608 {"Math::GSL::ODEIVc::gsl_odeiv_step_type_get", _wrap_gsl_odeiv_step_type_get},
6609 {"Math::GSL::ODEIVc::gsl_odeiv_step_dimension_set", _wrap_gsl_odeiv_step_dimension_set},
6610 {"Math::GSL::ODEIVc::gsl_odeiv_step_dimension_get", _wrap_gsl_odeiv_step_dimension_get},
6611 {"Math::GSL::ODEIVc::gsl_odeiv_step_state_set", _wrap_gsl_odeiv_step_state_set},
6612 {"Math::GSL::ODEIVc::gsl_odeiv_step_state_get", _wrap_gsl_odeiv_step_state_get},
6613 {"Math::GSL::ODEIVc::new_gsl_odeiv_step", _wrap_new_gsl_odeiv_step},
6614 {"Math::GSL::ODEIVc::delete_gsl_odeiv_step", _wrap_delete_gsl_odeiv_step},
6615 {"Math::GSL::ODEIVc::gsl_odeiv_step_alloc", _wrap_gsl_odeiv_step_alloc},
6616 {"Math::GSL::ODEIVc::gsl_odeiv_step_reset", _wrap_gsl_odeiv_step_reset},
6617 {"Math::GSL::ODEIVc::gsl_odeiv_step_free", _wrap_gsl_odeiv_step_free},
6618 {"Math::GSL::ODEIVc::gsl_odeiv_step_name", _wrap_gsl_odeiv_step_name},
6619 {"Math::GSL::ODEIVc::gsl_odeiv_step_order", _wrap_gsl_odeiv_step_order},
6620 {"Math::GSL::ODEIVc::gsl_odeiv_step_apply", _wrap_gsl_odeiv_step_apply},
6621 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_name_set", _wrap_gsl_odeiv_control_type_name_set},
6622 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_name_get", _wrap_gsl_odeiv_control_type_name_get},
6623 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_alloc_set", _wrap_gsl_odeiv_control_type_alloc_set},
6624 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_alloc_get", _wrap_gsl_odeiv_control_type_alloc_get},
6625 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_init_set", _wrap_gsl_odeiv_control_type_init_set},
6626 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_init_get", _wrap_gsl_odeiv_control_type_init_get},
6627 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_hadjust_set", _wrap_gsl_odeiv_control_type_hadjust_set},
6628 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_hadjust_get", _wrap_gsl_odeiv_control_type_hadjust_get},
6629 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_free_set", _wrap_gsl_odeiv_control_type_free_set},
6630 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_free_get", _wrap_gsl_odeiv_control_type_free_get},
6631 {"Math::GSL::ODEIVc::new_gsl_odeiv_control_type", _wrap_new_gsl_odeiv_control_type},
6632 {"Math::GSL::ODEIVc::delete_gsl_odeiv_control_type", _wrap_delete_gsl_odeiv_control_type},
6633 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_set", _wrap_gsl_odeiv_control_type_set},
6634 {"Math::GSL::ODEIVc::gsl_odeiv_control_type_get", _wrap_gsl_odeiv_control_type_get},
6635 {"Math::GSL::ODEIVc::gsl_odeiv_control_state_set", _wrap_gsl_odeiv_control_state_set},
6636 {"Math::GSL::ODEIVc::gsl_odeiv_control_state_get", _wrap_gsl_odeiv_control_state_get},
6637 {"Math::GSL::ODEIVc::new_gsl_odeiv_control", _wrap_new_gsl_odeiv_control},
6638 {"Math::GSL::ODEIVc::delete_gsl_odeiv_control", _wrap_delete_gsl_odeiv_control},
6639 {"Math::GSL::ODEIVc::gsl_odeiv_control_alloc", _wrap_gsl_odeiv_control_alloc},
6640 {"Math::GSL::ODEIVc::gsl_odeiv_control_init", _wrap_gsl_odeiv_control_init},
6641 {"Math::GSL::ODEIVc::gsl_odeiv_control_free", _wrap_gsl_odeiv_control_free},
6642 {"Math::GSL::ODEIVc::gsl_odeiv_control_hadjust", _wrap_gsl_odeiv_control_hadjust},
6643 {"Math::GSL::ODEIVc::gsl_odeiv_control_name", _wrap_gsl_odeiv_control_name},
6644 {"Math::GSL::ODEIVc::gsl_odeiv_control_standard_new", _wrap_gsl_odeiv_control_standard_new},
6645 {"Math::GSL::ODEIVc::gsl_odeiv_control_y_new", _wrap_gsl_odeiv_control_y_new},
6646 {"Math::GSL::ODEIVc::gsl_odeiv_control_yp_new", _wrap_gsl_odeiv_control_yp_new},
6647 {"Math::GSL::ODEIVc::gsl_odeiv_control_scaled_new", _wrap_gsl_odeiv_control_scaled_new},
6648 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_dimension_set", _wrap_gsl_odeiv_evolve_dimension_set},
6649 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_dimension_get", _wrap_gsl_odeiv_evolve_dimension_get},
6650 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_y0_set", _wrap_gsl_odeiv_evolve_y0_set},
6651 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_y0_get", _wrap_gsl_odeiv_evolve_y0_get},
6652 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_yerr_set", _wrap_gsl_odeiv_evolve_yerr_set},
6653 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_yerr_get", _wrap_gsl_odeiv_evolve_yerr_get},
6654 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_dydt_in_set", _wrap_gsl_odeiv_evolve_dydt_in_set},
6655 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_dydt_in_get", _wrap_gsl_odeiv_evolve_dydt_in_get},
6656 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_dydt_out_set", _wrap_gsl_odeiv_evolve_dydt_out_set},
6657 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_dydt_out_get", _wrap_gsl_odeiv_evolve_dydt_out_get},
6658 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_last_step_set", _wrap_gsl_odeiv_evolve_last_step_set},
6659 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_last_step_get", _wrap_gsl_odeiv_evolve_last_step_get},
6660 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_count_set", _wrap_gsl_odeiv_evolve_count_set},
6661 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_count_get", _wrap_gsl_odeiv_evolve_count_get},
6662 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_failed_steps_set", _wrap_gsl_odeiv_evolve_failed_steps_set},
6663 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_failed_steps_get", _wrap_gsl_odeiv_evolve_failed_steps_get},
6664 {"Math::GSL::ODEIVc::new_gsl_odeiv_evolve", _wrap_new_gsl_odeiv_evolve},
6665 {"Math::GSL::ODEIVc::delete_gsl_odeiv_evolve", _wrap_delete_gsl_odeiv_evolve},
6666 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_alloc", _wrap_gsl_odeiv_evolve_alloc},
6667 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_reset", _wrap_gsl_odeiv_evolve_reset},
6668 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_free", _wrap_gsl_odeiv_evolve_free},
6669 {"Math::GSL::ODEIVc::gsl_odeiv_evolve_apply", _wrap_gsl_odeiv_evolve_apply},
6670 {0,0}
6671 };
6672 /* -----------------------------------------------------------------------------
6673 * Type initialization:
6674 * This problem is tough by the requirement that no dynamic
6675 * memory is used. Also, since swig_type_info structures store pointers to
6676 * swig_cast_info structures and swig_cast_info structures store pointers back
6677 * to swig_type_info structures, we need some lookup code at initialization.
6678 * The idea is that swig generates all the structures that are needed.
6679 * The runtime then collects these partially filled structures.
6680 * The SWIG_InitializeModule function takes these initial arrays out of
6681 * swig_module, and does all the lookup, filling in the swig_module.types
6682 * array with the correct data and linking the correct swig_cast_info
6683 * structures together.
6684 *
6685 * The generated swig_type_info structures are assigned statically to an initial
6686 * array. We just loop through that array, and handle each type individually.
6687 * First we lookup if this type has been already loaded, and if so, use the
6688 * loaded structure instead of the generated one. Then we have to fill in the
6689 * cast linked list. The cast data is initially stored in something like a
6690 * two-dimensional array. Each row corresponds to a type (there are the same
6691 * number of rows as there are in the swig_type_initial array). Each entry in
6692 * a column is one of the swig_cast_info structures for that type.
6693 * The cast_initial array is actually an array of arrays, because each row has
6694 * a variable number of columns. So to actually build the cast linked list,
6695 * we find the array of casts associated with the type, and loop through it
6696 * adding the casts to the list. The one last trick we need to do is making
6697 * sure the type pointer in the swig_cast_info struct is correct.
6698 *
6699 * First off, we lookup the cast->type name to see if it is already loaded.
6700 * There are three cases to handle:
6701 * 1) If the cast->type has already been loaded AND the type we are adding
6702 * casting info to has not been loaded (it is in this module), THEN we
6703 * replace the cast->type pointer with the type pointer that has already
6704 * been loaded.
6705 * 2) If BOTH types (the one we are adding casting info to, and the
6706 * cast->type) are loaded, THEN the cast info has already been loaded by
6707 * the previous module so we just ignore it.
6708 * 3) Finally, if cast->type has not already been loaded, then we add that
6709 * swig_cast_info to the linked list (because the cast->type) pointer will
6710 * be correct.
6711 * ----------------------------------------------------------------------------- */
6712  
6713 #ifdef __cplusplus
6714 extern "C" {
6715 #if 0
6716 } /* c-mode */
6717 #endif
6718 #endif
6719  
6720 #if 0
6721 #define SWIGRUNTIME_DEBUG
6722 #endif
6723  
6724 #ifndef SWIG_INIT_CLIENT_DATA_TYPE
6725 #define SWIG_INIT_CLIENT_DATA_TYPE void *
6726 #endif
6727  
6728 SWIGRUNTIME void
6729 0 SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
6730 size_t i;
6731 swig_module_info *module_head, *iter;
6732 int init;
6733
6734 /* check to see if the circular list has been setup, if not, set it up */
6735 0 ▶ if (swig_module.next==0) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next==0) { 0 0 0
6736 /* Initialize the swig_module */
6737 0 swig_module.type_initial = swig_type_initial;
6738 0 swig_module.cast_initial = swig_cast_initial;
6739 0 swig_module.next = &swig_module;
6740 0 init = 1;
6741 } else {
6742 0 init = 0;
6743 }
6744
6745 /* Try and load any already created modules */
6746 0 module_head = SWIG_GetModule(clientdata);
6747 0 ▶ if (!module_head) {
Branch: 1 branch
BranchTrueFalseTotal
if (!module_head) { 0 0 0
6748 /* This is the first module loaded for this interpreter */
6749 /* so set the swig module into the interpreter */
6750 0 SWIG_SetModule(clientdata, &swig_module);
6751 } else {
6752 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
6753 0 iter=module_head;
6754 do {
6755 0 ▶ if (iter==&swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter==&swig_module) { 0 0 0
6756 /* Our module is already in the list, so there's nothing more to do. */
6757 0 return;
6758 }
6759 0 iter=iter->next;
6760 0 ▶ } while (iter!= module_head);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter!= module_head); 0 0 0
6761
6762 /* otherwise we must add our module into the list */
6763 0 swig_module.next = module_head->next;
6764 0 module_head->next = &swig_module;
6765 }
6766
6767 /* When multiple interpreters are used, a module could have already been initialized in
6768 a different interpreter, but not yet have a pointer in this interpreter.
6769 In this case, we do not want to continue adding types... everything should be
6770 set up already */
6771 0 ▶ if (init == 0) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init == 0) return; 0 0 0
6772
6773 /* Now work on filling in swig_module.types */
6774 #ifdef SWIGRUNTIME_DEBUG
6775 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
6776 #endif
6777 0 ▶ for (i = 0; i < swig_module.size; ++i) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; ++i) { 0 0 0
6778 0 swig_type_info *type = 0;
6779 swig_type_info *ret;
6780 swig_cast_info *cast;
6781
6782 #ifdef SWIGRUNTIME_DEBUG
6783 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
6784 #endif
6785
6786 /* if there is another module already loaded */
6787 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
6788 0 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
6789 }
6790 0 ▶ if (type) {
Branch: 1 branch
BranchTrueFalseTotal
if (type) { 0 0 0
6791 /* Overwrite clientdata field */
6792 #ifdef SWIGRUNTIME_DEBUG
6793 printf("SWIG_InitializeModule: found type %s\n", type->name);
6794 #endif
6795 0 ▶ if (swig_module.type_initial[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.type_initial[i]->clientdata) { 0 0 0
6796 0 type->clientdata = swig_module.type_initial[i]->clientdata;
6797 #ifdef SWIGRUNTIME_DEBUG
6798 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
6799 #endif
6800 }
6801 } else {
6802 0 type = swig_module.type_initial[i];
6803 }
6804
6805 /* Insert casting types */
6806 0 cast = swig_module.cast_initial[i];
6807 0 ▶ while (cast->type) {
Branch: 1 branch
BranchTrueFalseTotal
while (cast->type) { 0 0 0
6808 /* Don't need to add information already in the list */
6809 0 ret = 0;
6810 #ifdef SWIGRUNTIME_DEBUG
6811 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
6812 #endif
6813 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
6814 0 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
6815 #ifdef SWIGRUNTIME_DEBUG
6816 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
6817 #endif
6818 }
6819 0 ▶ if (ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (ret) { 0 0 0
6820 0 ▶ if (type == swig_module.type_initial[i]) {
Branch: 1 branch
BranchTrueFalseTotal
if (type == swig_module.type_initial[i]) { 0 0 0
6821 #ifdef SWIGRUNTIME_DEBUG
6822 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
6823 #endif
6824 0 cast->type = ret;
6825 0 ret = 0;
6826 } else {
6827 /* Check for casting already in the list */
6828 0 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
6829 #ifdef SWIGRUNTIME_DEBUG
6830 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
6831 #endif
6832 0 ▶ if (!ocast) ret = 0;
Branch: 1 branch
BranchTrueFalseTotal
if (!ocast) ret = 0; 0 0 0
6833 }
6834 }
6835
6836 0 ▶ if (!ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (!ret) { 0 0 0
6837 #ifdef SWIGRUNTIME_DEBUG
6838 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
6839 #endif
6840 0 ▶ if (type->cast) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->cast) { 0 0 0
6841 0 type->cast->prev = cast;
6842 0 cast->next = type->cast;
6843 }
6844 0 type->cast = cast;
6845 }
6846 0 cast++;
6847 }
6848 /* Set entry in modules->types array equal to the type */
6849 0 swig_module.types[i] = type;
6850 }
6851 0 swig_module.types[i] = 0;
6852
6853 #ifdef SWIGRUNTIME_DEBUG
6854 printf("**** SWIG_InitializeModule: Cast List ******\n");
6855 for (i = 0; i < swig_module.size; ++i) {
6856 int j = 0;
6857 swig_cast_info *cast = swig_module.cast_initial[i];
6858 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
6859 while (cast->type) {
6860 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
6861 cast++;
6862 ++j;
6863 }
6864 printf("---- Total casts: %d\n",j);
6865 }
6866 printf("**** SWIG_InitializeModule: Cast List ******\n");
6867 #endif
6868 }
6869  
6870 /* This function will propagate the clientdata field of type to
6871 * any new swig_type_info structures that have been added into the list
6872 * of equivalent types. It is like calling
6873 * SWIG_TypeClientData(type, clientdata) a second time.
6874 */
6875 SWIGRUNTIME void
6876 0 SWIG_PropagateClientData(void) {
6877 size_t i;
6878 swig_cast_info *equiv;
6879 static int init_run = 0;
6880
6881 0 ▶ if (init_run) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init_run) return; 0 0 0
6882 0 init_run = 1;
6883
6884 0 ▶ for (i = 0; i < swig_module.size; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; i++) { 0 0 0
6885 0 ▶ if (swig_module.types[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.types[i]->clientdata) { 0 0 0
6886 0 equiv = swig_module.types[i]->cast;
6887 0 ▶ while (equiv) {
Branch: 1 branch
BranchTrueFalseTotal
while (equiv) { 0 0 0
6888 0 ▶ if (!equiv->converter) {
Branch: 1 branch
BranchTrueFalseTotal
if (!equiv->converter) { 0 0 0
6889 0 ▶ if (equiv->type && !equiv->type->clientdata)
Branch: 2 branches
BranchTrueFalseTotal
if (equiv->type && !equiv->type->clientdata) 0 0 0
if (equiv->type && !equiv->type->clientdata) 0 0 0
6890 0 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
6891 }
6892 0 equiv = equiv->next;
6893 }
6894 }
6895 }
6896 }
6897  
6898 #ifdef __cplusplus
6899 #if 0
6900 {
6901 /* c-mode */
6902 #endif
6903 }
6904 #endif
6905  
6906  
6907  
6908 #if defined(__cplusplus) && ! defined(XSPROTO)
6909 extern "C"
6910 #endif
6911  
6912 0 XS(SWIG_init) {
6913 0 dXSARGS;
6914 int i;
6915 (void)items;
6916
6917 0 SWIG_InitializeModule(0);
6918
6919 /* Install commands */
6920 0 ▶ for (i = 0; swig_commands[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_commands[i].name; i++) { 0 0 0
6921 /* Casts only needed for Perl < 5.10. */
6922 #ifdef __cplusplus
6923 newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
6924 #else
6925 0 newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
6926 #endif
6927 }
6928
6929 /* Install variables */
6930 0 ▶ for (i = 0; swig_variables[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_variables[i].name; i++) { 0 0 0
6931 SV *sv;
6932 0 sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
6933 0 ▶ if (swig_variables[i].type) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_variables[i].type) { 0 0 0
6934 0 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
6935 } else {
6936 0 sv_setiv(sv,(IV) 0);
6937 }
6938 0 swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
6939 }
6940
6941 /* Install constant */
6942 0 ▶ for (i = 0; swig_constants[i].type; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_constants[i].type; i++) { 0 0 0
6943 SV *sv;
6944 0 sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
6945 0 switch(swig_constants[i].type) {
6946 0 case SWIG_INT:
6947 0 sv_setiv(sv, (IV) swig_constants[i].lvalue);
6948 0 break;
6949 0 case SWIG_FLOAT:
6950 0 sv_setnv(sv, (double) swig_constants[i].dvalue);
6951 0 break;
6952 0 case SWIG_STRING:
6953 0 sv_setpv(sv, (const char *) swig_constants[i].pvalue);
6954 0 break;
6955 0 case SWIG_POINTER:
6956 0 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
6957 0 break;
6958 0 case SWIG_BINARY:
6959 0 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
6960 0 break;
6961 0 default:
6962 0 break;
6963 }
6964 0 SvREADONLY_on(sv);
6965 }
6966
6967 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6968 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_VERSION", TRUE | 0x2 | GV_ADDMULTI);
6969 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(2.8)));
6970 0 SvREADONLY_on(sv);
6971 } while(0) /*@SWIG@*/;
6972 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6973 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MAJOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
6974 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(2)));
6975 0 SvREADONLY_on(sv);
6976 } while(0) /*@SWIG@*/;
6977 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6978 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MINOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
6979 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(8)));
6980 0 SvREADONLY_on(sv);
6981 } while(0) /*@SWIG@*/;
6982 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6983 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_POSZERO", TRUE | 0x2 | GV_ADDMULTI);
6984 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((+0.0))));
6985 0 SvREADONLY_on(sv);
6986 } while(0) /*@SWIG@*/;
6987 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6988 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_NEGZERO", TRUE | 0x2 | GV_ADDMULTI);
6989 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((-0.0))));
6990 0 SvREADONLY_on(sv);
6991 } while(0) /*@SWIG@*/;
6992 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6993 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_SUCCESS", TRUE | 0x2 | GV_ADDMULTI);
6994 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_SUCCESS)));
6995 0 SvREADONLY_on(sv);
6996 } while(0) /*@SWIG@*/;
6997 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6998 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_FAILURE", TRUE | 0x2 | GV_ADDMULTI);
6999 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_FAILURE)));
7000 0 SvREADONLY_on(sv);
7001 } while(0) /*@SWIG@*/;
7002 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7003 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_CONTINUE", TRUE | 0x2 | GV_ADDMULTI);
7004 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_CONTINUE)));
7005 0 SvREADONLY_on(sv);
7006 } while(0) /*@SWIG@*/;
7007 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7008 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDOM", TRUE | 0x2 | GV_ADDMULTI);
7009 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDOM)));
7010 0 SvREADONLY_on(sv);
7011 } while(0) /*@SWIG@*/;
7012 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7013 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERANGE", TRUE | 0x2 | GV_ADDMULTI);
7014 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERANGE)));
7015 0 SvREADONLY_on(sv);
7016 } while(0) /*@SWIG@*/;
7017 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7018 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAULT", TRUE | 0x2 | GV_ADDMULTI);
7019 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAULT)));
7020 0 SvREADONLY_on(sv);
7021 } while(0) /*@SWIG@*/;
7022 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7023 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EINVAL", TRUE | 0x2 | GV_ADDMULTI);
7024 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EINVAL)));
7025 0 SvREADONLY_on(sv);
7026 } while(0) /*@SWIG@*/;
7027 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7028 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAILED", TRUE | 0x2 | GV_ADDMULTI);
7029 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAILED)));
7030 0 SvREADONLY_on(sv);
7031 } while(0) /*@SWIG@*/;
7032 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7033 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFACTOR", TRUE | 0x2 | GV_ADDMULTI);
7034 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFACTOR)));
7035 0 SvREADONLY_on(sv);
7036 } while(0) /*@SWIG@*/;
7037 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7038 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESANITY", TRUE | 0x2 | GV_ADDMULTI);
7039 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESANITY)));
7040 0 SvREADONLY_on(sv);
7041 } while(0) /*@SWIG@*/;
7042 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7043 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOMEM", TRUE | 0x2 | GV_ADDMULTI);
7044 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOMEM)));
7045 0 SvREADONLY_on(sv);
7046 } while(0) /*@SWIG@*/;
7047 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7048 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADFUNC", TRUE | 0x2 | GV_ADDMULTI);
7049 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADFUNC)));
7050 0 SvREADONLY_on(sv);
7051 } while(0) /*@SWIG@*/;
7052 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7053 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERUNAWAY", TRUE | 0x2 | GV_ADDMULTI);
7054 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERUNAWAY)));
7055 0 SvREADONLY_on(sv);
7056 } while(0) /*@SWIG@*/;
7057 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7058 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EMAXITER", TRUE | 0x2 | GV_ADDMULTI);
7059 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EMAXITER)));
7060 0 SvREADONLY_on(sv);
7061 } while(0) /*@SWIG@*/;
7062 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7063 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EZERODIV", TRUE | 0x2 | GV_ADDMULTI);
7064 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EZERODIV)));
7065 0 SvREADONLY_on(sv);
7066 } while(0) /*@SWIG@*/;
7067 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7068 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADTOL", TRUE | 0x2 | GV_ADDMULTI);
7069 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADTOL)));
7070 0 SvREADONLY_on(sv);
7071 } while(0) /*@SWIG@*/;
7072 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7073 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOL", TRUE | 0x2 | GV_ADDMULTI);
7074 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOL)));
7075 0 SvREADONLY_on(sv);
7076 } while(0) /*@SWIG@*/;
7077 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7078 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNDRFLW", TRUE | 0x2 | GV_ADDMULTI);
7079 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNDRFLW)));
7080 0 SvREADONLY_on(sv);
7081 } while(0) /*@SWIG@*/;
7082 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7083 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOVRFLW", TRUE | 0x2 | GV_ADDMULTI);
7084 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOVRFLW)));
7085 0 SvREADONLY_on(sv);
7086 } while(0) /*@SWIG@*/;
7087 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7088 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ELOSS", TRUE | 0x2 | GV_ADDMULTI);
7089 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ELOSS)));
7090 0 SvREADONLY_on(sv);
7091 } while(0) /*@SWIG@*/;
7092 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7093 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EROUND", TRUE | 0x2 | GV_ADDMULTI);
7094 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EROUND)));
7095 0 SvREADONLY_on(sv);
7096 } while(0) /*@SWIG@*/;
7097 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7098 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADLEN", TRUE | 0x2 | GV_ADDMULTI);
7099 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADLEN)));
7100 0 SvREADONLY_on(sv);
7101 } while(0) /*@SWIG@*/;
7102 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7103 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOTSQR", TRUE | 0x2 | GV_ADDMULTI);
7104 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOTSQR)));
7105 0 SvREADONLY_on(sv);
7106 } while(0) /*@SWIG@*/;
7107 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7108 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESING", TRUE | 0x2 | GV_ADDMULTI);
7109 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESING)));
7110 0 SvREADONLY_on(sv);
7111 } while(0) /*@SWIG@*/;
7112 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7113 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDIVERGE", TRUE | 0x2 | GV_ADDMULTI);
7114 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDIVERGE)));
7115 0 SvREADONLY_on(sv);
7116 } while(0) /*@SWIG@*/;
7117 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7118 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNSUP", TRUE | 0x2 | GV_ADDMULTI);
7119 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNSUP)));
7120 0 SvREADONLY_on(sv);
7121 } while(0) /*@SWIG@*/;
7122 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7123 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNIMPL", TRUE | 0x2 | GV_ADDMULTI);
7124 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNIMPL)));
7125 0 SvREADONLY_on(sv);
7126 } while(0) /*@SWIG@*/;
7127 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7128 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ECACHE", TRUE | 0x2 | GV_ADDMULTI);
7129 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ECACHE)));
7130 0 SvREADONLY_on(sv);
7131 } while(0) /*@SWIG@*/;
7132 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7133 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETABLE", TRUE | 0x2 | GV_ADDMULTI);
7134 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETABLE)));
7135 0 SvREADONLY_on(sv);
7136 } while(0) /*@SWIG@*/;
7137 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7138 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROG", TRUE | 0x2 | GV_ADDMULTI);
7139 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROG)));
7140 0 SvREADONLY_on(sv);
7141 } while(0) /*@SWIG@*/;
7142 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7143 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROGJ", TRUE | 0x2 | GV_ADDMULTI);
7144 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROGJ)));
7145 0 SvREADONLY_on(sv);
7146 } while(0) /*@SWIG@*/;
7147 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7148 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLF", TRUE | 0x2 | GV_ADDMULTI);
7149 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLF)));
7150 0 SvREADONLY_on(sv);
7151 } while(0) /*@SWIG@*/;
7152 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7153 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLX", TRUE | 0x2 | GV_ADDMULTI);
7154 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLX)));
7155 0 SvREADONLY_on(sv);
7156 } while(0) /*@SWIG@*/;
7157 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7158 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLG", TRUE | 0x2 | GV_ADDMULTI);
7159 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLG)));
7160 0 SvREADONLY_on(sv);
7161 } while(0) /*@SWIG@*/;
7162 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7163 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOF", TRUE | 0x2 | GV_ADDMULTI);
7164 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOF)));
7165 0 SvREADONLY_on(sv);
7166 } while(0) /*@SWIG@*/;
7167 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_odeiv_system, (void*) "Math::GSL::ODEIV::gsl_odeiv_system");
7168 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_odeiv_step_type, (void*) "Math::GSL::ODEIV::gsl_odeiv_step_type");
7169 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_odeiv_step, (void*) "Math::GSL::ODEIV::gsl_odeiv_step");
7170 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_odeiv_control_type, (void*) "Math::GSL::ODEIV::gsl_odeiv_control_type");
7171 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_odeiv_control, (void*) "Math::GSL::ODEIV::gsl_odeiv_control");
7172 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7173 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ODEIV_HADJ_INC", TRUE | 0x2 | GV_ADDMULTI);
7174 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(1)));
7175 0 SvREADONLY_on(sv);
7176 } while(0) /*@SWIG@*/;
7177 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7178 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ODEIV_HADJ_NIL", TRUE | 0x2 | GV_ADDMULTI);
7179 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(0)));
7180 0 SvREADONLY_on(sv);
7181 } while(0) /*@SWIG@*/;
7182 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7183 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ODEIV_HADJ_DEC", TRUE | 0x2 | GV_ADDMULTI);
7184 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)((-1))));
7185 0 SvREADONLY_on(sv);
7186 } while(0) /*@SWIG@*/;
7187 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_odeiv_evolve, (void*) "Math::GSL::ODEIV::gsl_odeiv_evolve");
7188 0 ST(0) = &PL_sv_yes;
7189 0 XSRETURN(1);
7190 }
7191  
« xs/NTuple_wrap.2.8.c ↑ Summary xs/Permutation_wrap.2.8.c »