xs/Roots_wrap.2.8.c

filter: Statementstmt 0.0% 0 / 2408 Branchbran 0.0% 0 / 1342 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 3750 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/Randist_wrap.2.8.c ↑ Summary xs/Rstat_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_f_p_q_const__char_p_q_const__char_int_int__void swig_types[2]
1513 #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void swig_types[3]
1514 #define SWIGTYPE_p_f_p_void_p_gsl_function_fdf_p_double__int swig_types[4]
1515 #define SWIGTYPE_p_f_p_void_p_gsl_function_p_double_double_double__int swig_types[5]
1516 #define SWIGTYPE_p_f_p_void_p_gsl_function_p_double_p_double_p_double__int swig_types[6]
1517 #define SWIGTYPE_p_gsl_function swig_types[7]
1518 #define SWIGTYPE_p_gsl_function_fdf swig_types[8]
1519 #define SWIGTYPE_p_gsl_root_fdfsolver swig_types[9]
1520 #define SWIGTYPE_p_gsl_root_fdfsolver_type swig_types[10]
1521 #define SWIGTYPE_p_gsl_root_fsolver swig_types[11]
1522 #define SWIGTYPE_p_gsl_root_fsolver_type swig_types[12]
1523 #define SWIGTYPE_p_void swig_types[13]
1524 static swig_type_info *swig_types[15];
1525 static swig_module_info swig_module = {swig_types, 14, 0, 0, 0, 0};
1526 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1527 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1528  
1529 /* -------- TYPES TABLE (END) -------- */
1530  
1531 #define SWIG_init boot_Math__GSL__Roots
1532  
1533 #define SWIG_name "Math::GSL::Rootsc::boot_Math__GSL__Roots"
1534 #define SWIG_prefix "Math::GSL::Rootsc::"
1535  
1536 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1537 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1538  
1539  
1540 #ifdef __cplusplus
1541 extern "C"
1542 #endif
1543 #ifndef MULTIPLICITY
1544 SWIGEXPORT void SWIG_init (CV* cv);
1545 #else
1546 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
1547 #endif
1548  
1549  
1550 SWIGINTERNINLINE SV *
1551 0 SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value)
1552 {
1553 0 return sv_2mortal(newSVnv(value));
1554 }
1555  
1556  
1557 SWIGINTERNINLINE SV *
1558 0 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
1559 {
1560 SV *sv;
1561 if (IVSIZE >= sizeof(value) || (value >= IV_MIN && value <= IV_MAX))
1562 0 sv = newSViv(value);
1563 else
1564 sv = newSVpvf("%ld", value);
1565 0 return sv_2mortal(sv);
1566 }
1567  
1568  
1569 SWIGINTERNINLINE SV *
1570 0 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
1571 {
1572 0 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
1573 }
1574  
1575  
1576 SWIGINTERN swig_type_info*
1577 0 SWIG_pchar_descriptor(void)
1578 {
1579 static int init = 0;
1580 static swig_type_info* info = 0;
1581 0 ▶ if (!init) {
Branch: 1 branch
BranchTrueFalseTotal
if (!init) { 0 0 0
1582 0 info = SWIG_TypeQuery("_p_char");
1583 0 init = 1;
1584 }
1585 0 return info;
1586 }
1587  
1588  
1589 SWIGINTERN int
1590 0 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1591 {
1592 0 ▶ if (SvMAGICAL(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvMAGICAL(obj)) { 0 0 0
1593 0 SV *tmp = sv_newmortal();
1594 0 ▶ SvSetSV(tmp, obj);
Branch: 1 branch
BranchTrueFalseTotal
SvSetSV(tmp, obj); 0 0 0
1595 0 obj = tmp;
1596 }
1597 0 ▶ if (SvPOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvPOK(obj)) { 0 0 0
1598 0 STRLEN len = 0;
1599 0 char *cstr = SvPV(obj, len);
1600 0 size_t size = len + 1;
1601 0 ▶ if (cptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) { 0 0 0
1602 0 ▶ if (alloc) {
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) { 0 0 0
1603 0 ▶ if (*alloc == SWIG_NEWOBJ) {
Branch: 1 branch
BranchTrueFalseTotal
if (*alloc == SWIG_NEWOBJ) { 0 0 0
1604 0 *cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1605 } else {
1606 0 *cptr = cstr;
1607 0 *alloc = SWIG_OLDOBJ;
1608 }
1609 }
1610 }
1611 0 ▶ if (psize) *psize = size;
Branch: 1 branch
BranchTrueFalseTotal
if (psize) *psize = size; 0 0 0
1612 0 return SWIG_OK;
1613 } else {
1614 0 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1615 0 ▶ if (pchar_descriptor) {
Branch: 1 branch
BranchTrueFalseTotal
if (pchar_descriptor) { 0 0 0
1616 0 char* vptr = 0;
1617 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
1618 0 ▶ if (cptr) *cptr = vptr;
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) *cptr = vptr; 0 0 0
1619 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
1620 0 ▶ if (alloc) *alloc = SWIG_OLDOBJ;
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) *alloc = SWIG_OLDOBJ; 0 0 0
1621 0 return SWIG_OK;
1622 }
1623 }
1624 }
1625 0 return SWIG_TypeError;
1626 }
1627  
1628  
1629  
1630  
1631  
1632 #include <limits.h>
1633 #if !defined(SWIG_NO_LLONG_MAX)
1634 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1635 # define LLONG_MAX __LONG_LONG_MAX__
1636 # define LLONG_MIN (-LLONG_MAX - 1LL)
1637 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1638 # endif
1639 #endif
1640  
1641  
1642 #include <stdlib.h>
1643 #ifdef _MSC_VER
1644 # ifndef strtoull
1645 # define strtoull _strtoui64
1646 # endif
1647 # ifndef strtoll
1648 # define strtoll _strtoi64
1649 # endif
1650 #endif
1651  
1652  
1653 SWIGINTERN int
1654 0 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
1655 {
1656 0 ▶ if (SvNIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvNIOK(obj)) { 0 0 0
1657 0 ▶ if (val) *val = SvNV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvNV(obj); 0 0 0
1658 0 return SWIG_OK;
1659 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1660 0 ▶ if (val) *val = (double) SvIV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (double) SvIV(obj); 0 0 0
1661 0 return SWIG_AddCast(SWIG_OK);
1662 } else {
1663 0 const char *nptr = SvPV_nolen(obj);
1664 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1665 char *endptr;
1666 double v;
1667 0 errno = 0;
1668 0 v = strtod(nptr, &endptr);
1669 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1670 0 errno = 0;
1671 0 return SWIG_OverflowError;
1672 } else {
1673 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1674 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1675 0 return SWIG_Str2NumCast(SWIG_OK);
1676 }
1677 }
1678 }
1679 }
1680 0 return SWIG_TypeError;
1681 }
1682  
1683  
1684 #include <float.h>
1685  
1686  
1687 #include <math.h>
1688  
1689  
1690 SWIGINTERNINLINE int
1691 0 SWIG_CanCastAsInteger(double *d, double min, double max) {
1692 0 double x = *d;
1693 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
1694 double fx, cx, rd;
1695 0 errno = 0;
1696 0 fx = floor(x);
1697 0 cx = ceil(x);
1698 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
1699 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
1700 0 errno = 0;
1701 } else {
1702 double summ, reps, diff;
1703 0 ▶ if (rd < x) {
Branch: 1 branch
BranchTrueFalseTotal
if (rd < x) { 0 0 0
1704 0 diff = x - rd;
1705 0 ▶ } else if (rd > x) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (rd > x) { 0 0 0
1706 0 diff = rd - x;
1707 } else {
1708 0 return 1;
1709 }
1710 0 summ = rd + x;
1711 0 reps = diff/summ;
1712 0 ▶ if (reps < 8*DBL_EPSILON) {
Branch: 1 branch
BranchTrueFalseTotal
if (reps < 8*DBL_EPSILON) { 0 0 0
1713 0 *d = rd;
1714 0 return 1;
1715 }
1716 }
1717 }
1718 0 return 0;
1719 }
1720  
1721  
1722 SWIGINTERN int
1723 0 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
1724 {
1725 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
1726 0 UV v = SvUV(obj);
1727 0 ▶ if (UVSIZE < sizeof(*val) || v <= LONG_MAX) {
Branch: 1 branch
BranchTrueFalseTotal
if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { 0 0 0
1728 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1729 0 return SWIG_OK;
1730 }
1731 0 return SWIG_OverflowError;
1732 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1733 0 IV v = SvIV(obj);
1734 if (IVSIZE <= sizeof(*val) || (v >= LONG_MIN && v <= LONG_MAX)) {
1735 0 ▶ if(val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if(val) *val = v; 0 0 0
1736 0 return SWIG_OK;
1737 }
1738 return SWIG_OverflowError;
1739 } else {
1740 0 int dispatch = 0;
1741 0 const char *nptr = SvPV_nolen(obj);
1742 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1743 char *endptr;
1744 long v;
1745 0 errno = 0;
1746 0 v = strtol(nptr, &endptr,0);
1747 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1748 0 errno = 0;
1749 0 return SWIG_OverflowError;
1750 } else {
1751 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1752 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1753 0 return SWIG_Str2NumCast(SWIG_OK);
1754 }
1755 }
1756 }
1757 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
1758 double d;
1759 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1760 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
1761 0 ▶ if (val) *val = (long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (long)(d); 0 0 0
1762 0 return res;
1763 }
1764 }
1765 }
1766 0 return SWIG_TypeError;
1767 }
1768  
1769  
1770 SWIGINTERN int
1771 0 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
1772 {
1773 long v;
1774 0 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
1775 0 ▶ if (SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SWIG_IsOK(res)) { 0 0 0
1776 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
1777 0 return SWIG_OverflowError;
1778 } else {
1779 0 ▶ if (val) *val = (int)(v);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (int)(v); 0 0 0
1780 }
1781 }
1782 0 return res;
1783 }
1784  
1785  
1786 SWIGINTERNINLINE SV *
1787 0 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1788 {
1789 0 SV *obj = sv_newmortal();
1790 0 ▶ if (carray) {
Branch: 1 branch
BranchTrueFalseTotal
if (carray) { 0 0 0
1791 0 sv_setpvn(obj, carray, size);
1792 } else {
1793 0 sv_setsv(obj, &PL_sv_undef);
1794 }
1795 0 return obj;
1796 }
1797  
1798  
1799 SWIGINTERNINLINE SV *
1800 0 SWIG_FromCharPtr(const char *cptr)
1801 {
1802 0 ▶ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
Branch: 1 branch
BranchTrueFalseTotal
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); 0 0 0
1803 }
1804  
1805  
1806 #include "gsl/gsl_nan.h"
1807 #include "gsl/gsl_errno.h"
1808 #include "gsl/gsl_math.h"
1809 #include "gsl/gsl_monte.h"
1810  
1811  
1812 struct perl_array {
1813 I32 len;
1814 AV *array;
1815 };
1816  
1817  
1818  
1819 enum awType { awDouble, awFloat, awInt, awUnsigned };
1820  
1821 typedef struct {
1822 I32 size;
1823 enum awType type;
1824 void * data;
1825 } array_wrapper;
1826  
1827 0 array_wrapper * array_wrapper_alloc(int numelem, enum awType type){
1828 0 array_wrapper * rv = malloc(sizeof(array_wrapper));
1829  
1830 0 ▶ if (rv == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv == NULL) 0 0 0
1831 0 croak("array_wrapper_alloc: can't malloc wrapper\n");
1832  
1833 0 switch (type){
1834 0 case awDouble:
1835 0 rv->data = malloc(sizeof(double) * numelem);
1836 0 break;
1837 0 case awFloat:
1838 0 rv->data = malloc(sizeof(float) * numelem);
1839 0 break;
1840 0 case awInt:
1841 0 rv->data = malloc(sizeof(int) * numelem);
1842 0 break;
1843 0 case awUnsigned:
1844 0 rv->data = malloc(sizeof(unsigned int) * numelem);
1845 0 break;
1846 0 default:
1847 0 croak("array_wrapper_alloc: type should be awDouble, awFloat, awInt, or awUnsigned");
1848 }
1849  
1850 0 ▶ if (rv->data == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv->data == NULL) 0 0 0
1851 0 croak("array_wrapper_alloc: can't malloc data");
1852  
1853 0 rv->size = numelem;
1854 0 rv->type = type;
1855 0 return rv;
1856 }
1857  
1858 0 void array_wrapper_free(array_wrapper * daw){
1859 0 free(daw->data);
1860 0 free(daw);
1861 0 }
1862  
1863  
1864 /* structure to hold required information while the gsl function call
1865 for each callback
1866 */
1867 struct gsl_function_perl {
1868 gsl_function C_gsl_function;
1869 SV * function;
1870 SV * params;
1871 };
1872  
1873 struct gsl_function_fdf_perl {
1874 gsl_function_fdf C_gsl_function_fdf;
1875 SV * f;
1876 SV * df;
1877 SV * fdf;
1878 SV * params;
1879 };
1880  
1881 struct gsl_monte_function_perl {
1882 gsl_monte_function C_gsl_monte_function;
1883 SV * f;
1884 SV * dim;
1885 SV * params;
1886 };
1887  
1888 0 void gsl_function_perl_free(struct gsl_function_perl * perl_f){
1889 0 ▶ if (perl_f != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_f != NULL) { 0 0 0
1890 0 SvREFCNT_dec(perl_f->function);
1891 0 SvREFCNT_dec(perl_f->params);
1892 0 Safefree(perl_f);
1893 }
1894 0 }
1895  
1896 0 void gsl_function_fdf_perl_free(struct gsl_function_fdf_perl * perl_fdf){
1897 0 ▶ if (perl_fdf != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_fdf != NULL) { 0 0 0
1898 0 SvREFCNT_dec(perl_fdf->f);
1899 0 SvREFCNT_dec(perl_fdf->df);
1900 0 SvREFCNT_dec(perl_fdf->fdf);
1901 0 SvREFCNT_dec(perl_fdf->params);
1902 0 Safefree(perl_fdf);
1903 }
1904 0 }
1905  
1906 /* These functions (C callbacks) calls the perl callbacks.
1907 Info for perl callback can be found using the 'void*params' parameter
1908 */
1909 0 double call_gsl_function_x_params(SV* function, double x, SV *params){
1910 unsigned int count;
1911 double y;
1912 0 dSP;
1913  
1914 //fprintf(stderr, "LOOKUP CALLBACK\n");
1915 0 ENTER;
1916 0 SAVETMPS;
1917  
1918 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1919 0 ▶ XPUSHs(sv_2mortal(newSVnv((double)x)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSVnv((double)x))); 0 0 0
1920 0 ▶ XPUSHs(params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(params); 0 0 0
1921 0 PUTBACK; /* make local stack pointer global */
1922  
1923 0 count = call_sv(function, G_SCALAR);
1924 0 SPAGAIN;
1925  
1926 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
1927 0 croak("Expected to call subroutine in scalar context!");
1928  
1929 0 y = POPn;
1930  
1931 0 PUTBACK; /* make local stack pointer global */
1932 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1933 0 LEAVE;
1934  
1935 0 return y;
1936 }
1937  
1938 0 double call_gsl_function(double x , void *params){
1939 0 struct gsl_function_perl *F=(struct gsl_function_perl*)params;
1940 0 return call_gsl_function_x_params( F->function, x, F->params );
1941 }
1942  
1943 0 double call_gsl_function_fdf_f(double x , void *params){
1944 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1945 0 return call_gsl_function_x_params( F->f, x, F->params );
1946 }
1947  
1948 0 double call_gsl_function_fdf_df(double x , void *params){
1949 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1950 0 return call_gsl_function_x_params( F->df, x, F->params );
1951 }
1952  
1953 0 void call_gsl_function_fdf_fdf(double x , void *params, double *f, double *df ){
1954 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1955  
1956 0 dSP;
1957  
1958 0 ENTER;
1959 0 SAVETMPS;
1960  
1961 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1962 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
1963 0 PUSHs(sv_2mortal(newSVnv((double)x)));
1964 0 PUSHs(F->params);
1965 0 PUTBACK; /* make local stack pointer global */
1966  
1967 {
1968 0 unsigned int count = call_sv(F->fdf, G_ARRAY);
1969 0 SPAGAIN;
1970  
1971 0 ▶ if (count != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 2) 0 0 0
1972 0 croak( "Expected two return values, got %d", count );
1973 }
1974  
1975 0 *df = POPn;
1976 0 *f = POPn;
1977  
1978 0 PUTBACK; /* make local stack pointer global */
1979 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1980 0 LEAVE;
1981 0 }
1982  
1983 0 double call_gsl_monte_function(double *x_array , size_t dim, void *params){
1984 0 struct gsl_monte_function_perl *F=(struct gsl_monte_function_perl*)params;
1985 unsigned int count;
1986 unsigned int i;
1987 AV* perl_array;
1988 double y;
1989 0 dSP;
1990  
1991 //fprintf(stderr, "LOOKUP CALLBACK\n");
1992 0 ENTER;
1993 0 SAVETMPS;
1994  
1995 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1996 0 perl_array=newAV();
1997 0 sv_2mortal((SV*)perl_array);
1998 0 ▶ XPUSHs(sv_2mortal(newRV((SV *)perl_array)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newRV((SV *)perl_array))); 0 0 0
1999 0 ▶ for(i=0; i<dim; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for(i=0; i<dim; i++) { 0 0 0
2000 /* no mortal : it is referenced by the array */
2001 0 av_push(perl_array, newSVnv(x_array[i]));
2002 }
2003 0 ▶ XPUSHs(sv_2mortal(newSViv(dim)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSViv(dim))); 0 0 0
2004 0 ▶ XPUSHs(F->params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(F->params); 0 0 0
2005 0 PUTBACK; /* make local stack pointer global */
2006  
2007 0 count = call_sv(F->f, G_SCALAR);
2008 0 SPAGAIN;
2009  
2010 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
2011 0 croak("Expected to call subroutine in scalar context!");
2012  
2013 0 y = POPn;
2014  
2015 0 PUTBACK; /* make local stack pointer global */
2016 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
2017 0 LEAVE;
2018  
2019 0 return y;
2020 }
2021  
2022  
2023 0 void gsl_function_fdf_extract( char* param_name, HV* hash, SV* func[] ) {
2024 static const char *keys[3] = { "f", "df", "fdf" };
2025  
2026 int ikey;
2027  
2028 0 ▶ for ( ikey = 0 ; ikey < 3 ; ++ikey ) {
Branch: 1 branch
BranchTrueFalseTotal
for ( ikey = 0 ; ikey < 3 ; ++ikey ) { 0 0 0
2029 0 func[ikey] = 0;
2030 0 const char* key = keys[ikey];
2031 /* it just so happens that strlen(keys[ikey]) == ikey + 1 */
2032 0 SV** pp_sv = hv_fetch( hash, key, ikey+1, 0 );
2033 SV* function;
2034  
2035 0 ▶ if ( !pp_sv )
Branch: 1 branch
BranchTrueFalseTotal
if ( !pp_sv ) 0 0 0
2036 0 croak("Math::GSL : %s: missing key %s!", param_name, key);
2037  
2038 0 function = *pp_sv;
2039  
2040 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
2041 /* hold on to SV after the enclosing hash goes away */
2042 0 SvREFCNT_inc( function );
2043 0 func[ikey] = function;
2044 }
2045 else {
2046 0 croak( "Math::GSL : %s: key %s is not a reference to code!", param_name, key);
2047 }
2048 }
2049 0 }
2050  
2051  
2052  
2053 #include "gsl/gsl_types.h"
2054 #include "gsl/gsl_roots.h"
2055  
2056  
2057 SWIGINTERN int
2058 0 SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val)
2059 {
2060 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
2061 0 UV v = SvUV(obj);
2062 if (UVSIZE <= sizeof(*val) || v <= ULONG_MAX) {
2063 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2064 0 return SWIG_OK;
2065 }
2066 return SWIG_OverflowError;
2067 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
2068 0 IV v = SvIV(obj);
2069 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
2070 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2071 0 return SWIG_OK;
2072 }
2073 0 return SWIG_OverflowError;
2074 } else {
2075 0 int dispatch = 0;
2076 0 const char *nptr = SvPV_nolen(obj);
2077 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
2078 char *endptr;
2079 unsigned long v;
2080 0 errno = 0;
2081 0 v = strtoul(nptr, &endptr,0);
2082 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
2083 0 errno = 0;
2084 0 return SWIG_OverflowError;
2085 } else {
2086 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
2087 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2088 0 return SWIG_Str2NumCast(SWIG_OK);
2089 }
2090 }
2091 }
2092 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
2093 double d;
2094 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
2095 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
2096 0 ▶ if (val) *val = (unsigned long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned long)(d); 0 0 0
2097 0 return res;
2098 }
2099 }
2100 }
2101 0 return SWIG_TypeError;
2102 }
2103  
2104  
2105 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
2106 # define SWIG_LONG_LONG_AVAILABLE
2107 #endif
2108  
2109  
2110 #ifdef SWIG_LONG_LONG_AVAILABLE
2111 SWIGINTERN int
2112 0 SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long long *val)
2113 {
2114 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
2115 /* pretty sure this should be conditional on
2116 * (UVSIZE <= sizeof(*val) || v <= ULLONG_MAX) */
2117 0 ▶ if (val) *val = SvUV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvUV(obj); 0 0 0
2118 0 return SWIG_OK;
2119 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
2120 0 IV v = SvIV(obj);
2121 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
2122 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2123 0 return SWIG_OK;
2124 } else {
2125 0 return SWIG_OverflowError;
2126 }
2127 } else {
2128 0 int dispatch = 0;
2129 0 const char *nptr = SvPV_nolen(obj);
2130 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
2131 char *endptr;
2132 unsigned long long v;
2133 0 errno = 0;
2134 0 v = strtoull(nptr, &endptr,0);
2135 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
2136 0 errno = 0;
2137 0 return SWIG_OverflowError;
2138 } else {
2139 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
2140 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2141 0 return SWIG_Str2NumCast(SWIG_OK);
2142 }
2143 }
2144 }
2145 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
2146 0 const double mant_max = 1LL << DBL_MANT_DIG;
2147 double d;
2148 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
2149 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
2150 0 ▶ if (val) *val = (unsigned long long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned long long)(d); 0 0 0
2151 0 return res;
2152 }
2153 }
2154 }
2155 0 return SWIG_TypeError;
2156 }
2157 #endif
2158  
2159  
2160 SWIGINTERNINLINE int
2161 0 SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val)
2162 {
2163 0 int res = SWIG_TypeError;
2164 #ifdef SWIG_LONG_LONG_AVAILABLE
2165 if (sizeof(size_t) <= sizeof(unsigned long)) {
2166 #endif
2167 unsigned long v;
2168 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
2169 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
2170 #ifdef SWIG_LONG_LONG_AVAILABLE
2171 } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
2172 unsigned long long v;
2173 res = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
2174 if (SWIG_IsOK(res) && val) *val = (size_t)(v);
2175 }
2176 #endif
2177 0 return res;
2178 }
2179  
2180  
2181 SWIGINTERNINLINE SV *
2182 0 SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value)
2183 {
2184 SV *sv;
2185 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2186 0 sv = newSVuv(value);
2187 else
2188 sv = newSVpvf("%lu", value);
2189 0 return sv_2mortal(sv);
2190 }
2191  
2192  
2193 #include <stdio.h>
2194 #if (defined(_MSC_VER) && (_MSC_VER < 1900)) || defined(__BORLANDC__) || defined(_WATCOM)
2195 # ifndef snprintf
2196 # define snprintf _snprintf
2197 # endif
2198 #endif
2199  
2200  
2201 #ifdef SWIG_LONG_LONG_AVAILABLE
2202 SWIGINTERNINLINE SV *
2203 SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long long value)
2204 {
2205 SV *sv;
2206 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2207 sv = newSVuv((UV)(value));
2208 else {
2209 //sv = newSVpvf("%llu", value); doesn't work in non 64bit Perl
2210 char temp[256];
2211 SWIG_snprintf(temp, sizeof(temp), "%llu", value);
2212 sv = newSVpv(temp, 0);
2213 }
2214 return sv_2mortal(sv);
2215 }
2216 #endif
2217  
2218  
2219 SWIGINTERNINLINE SV *
2220 0 SWIG_From_size_t SWIG_PERL_DECL_ARGS_1(size_t value)
2221 {
2222 #ifdef SWIG_LONG_LONG_AVAILABLE
2223 if (sizeof(size_t) <= sizeof(unsigned long)) {
2224 #endif
2225 0 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long)(value));
2226 #ifdef SWIG_LONG_LONG_AVAILABLE
2227 } else {
2228 /* assume sizeof(size_t) <= sizeof(unsigned long long) */
2229 return SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long long)(value));
2230 }
2231 #endif
2232 }
2233  
2234 0 SWIGINTERN void delete_gsl_root_fsolver(gsl_root_fsolver *self){
2235 0 struct gsl_function *gsl_f = (struct gsl_function *) self->function;
2236 0 ▶ if (gsl_f != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (gsl_f != NULL) { 0 0 0
2237 0 struct gsl_function_perl *perl_f = (struct gsl_function_perl *) self->function->params;
2238 0 gsl_function_perl_free(perl_f);
2239 }
2240 0 gsl_root_fsolver_free(self);
2241 0 }
2242 0 SWIGINTERN void delete_gsl_root_fdfsolver(gsl_root_fdfsolver *self){
2243 0 ▶ if (self->fdf != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (self->fdf != NULL) { 0 0 0
2244 0 struct gsl_function_fdf_perl *perl_fdf = (struct gsl_function_fdf_perl *) self->fdf->params;
2245 0 gsl_function_fdf_perl_free(perl_fdf);
2246 }
2247 0 gsl_root_fdfsolver_free(self);
2248 0 }
2249 #ifdef __cplusplus
2250 extern "C" {
2251 #endif
2252  
2253 #define MAGIC_CLASS
2254 0 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
2255 MAGIC_PPERL
2256 0 croak("Value is read-only.");
2257 return 0;
2258 }
2259 0 SWIGCLASS_STATIC int _wrap_gsl_root_fsolver_bisection_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2260 MAGIC_PPERL
2261 {
2262 0 void *argp = 0;
2263 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_root_fsolver_type, 0 );
2264 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2265 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fsolver_bisection""' of type '""gsl_root_fsolver_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fsolver_bisection""' of type '""gsl_root_fsolver_type const *""'"); 0 0 0
2266 }
2267 0 gsl_root_fsolver_bisection = (gsl_root_fsolver_type *)(argp);
2268 }
2269 0 fail:
2270 0 return 1;
2271 }
2272  
2273  
2274 0 SWIGCLASS_STATIC int _wrap_gsl_root_fsolver_bisection_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2275 MAGIC_PPERL
2276 0 sv_setiv(SvRV(sv),PTR2IV(gsl_root_fsolver_bisection));
2277 0 return 1;
2278 }
2279  
2280  
2281 0 SWIGCLASS_STATIC int _wrap_gsl_root_fsolver_brent_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2282 MAGIC_PPERL
2283 {
2284 0 void *argp = 0;
2285 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_root_fsolver_type, 0 );
2286 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2287 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fsolver_brent""' of type '""gsl_root_fsolver_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fsolver_brent""' of type '""gsl_root_fsolver_type const *""'"); 0 0 0
2288 }
2289 0 gsl_root_fsolver_brent = (gsl_root_fsolver_type *)(argp);
2290 }
2291 0 fail:
2292 0 return 1;
2293 }
2294  
2295  
2296 0 SWIGCLASS_STATIC int _wrap_gsl_root_fsolver_brent_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2297 MAGIC_PPERL
2298 0 sv_setiv(SvRV(sv),PTR2IV(gsl_root_fsolver_brent));
2299 0 return 1;
2300 }
2301  
2302  
2303 0 SWIGCLASS_STATIC int _wrap_gsl_root_fsolver_falsepos_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2304 MAGIC_PPERL
2305 {
2306 0 void *argp = 0;
2307 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_root_fsolver_type, 0 );
2308 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2309 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fsolver_falsepos""' of type '""gsl_root_fsolver_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fsolver_falsepos""' of type '""gsl_root_fsolver_type const *""'"); 0 0 0
2310 }
2311 0 gsl_root_fsolver_falsepos = (gsl_root_fsolver_type *)(argp);
2312 }
2313 0 fail:
2314 0 return 1;
2315 }
2316  
2317  
2318 0 SWIGCLASS_STATIC int _wrap_gsl_root_fsolver_falsepos_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2319 MAGIC_PPERL
2320 0 sv_setiv(SvRV(sv),PTR2IV(gsl_root_fsolver_falsepos));
2321 0 return 1;
2322 }
2323  
2324  
2325 0 SWIGCLASS_STATIC int _wrap_gsl_root_fdfsolver_newton_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2326 MAGIC_PPERL
2327 {
2328 0 void *argp = 0;
2329 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_root_fdfsolver_type, 0 );
2330 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2331 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fdfsolver_newton""' of type '""gsl_root_fdfsolver_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fdfsolver_newton""' of type '""gsl_root_fdfsolver_type const *""'"); 0 0 0
2332 }
2333 0 gsl_root_fdfsolver_newton = (gsl_root_fdfsolver_type *)(argp);
2334 }
2335 0 fail:
2336 0 return 1;
2337 }
2338  
2339  
2340 0 SWIGCLASS_STATIC int _wrap_gsl_root_fdfsolver_newton_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2341 MAGIC_PPERL
2342 0 sv_setiv(SvRV(sv),PTR2IV(gsl_root_fdfsolver_newton));
2343 0 return 1;
2344 }
2345  
2346  
2347 0 SWIGCLASS_STATIC int _wrap_gsl_root_fdfsolver_secant_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2348 MAGIC_PPERL
2349 {
2350 0 void *argp = 0;
2351 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_root_fdfsolver_type, 0 );
2352 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2353 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fdfsolver_secant""' of type '""gsl_root_fdfsolver_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fdfsolver_secant""' of type '""gsl_root_fdfsolver_type const *""'"); 0 0 0
2354 }
2355 0 gsl_root_fdfsolver_secant = (gsl_root_fdfsolver_type *)(argp);
2356 }
2357 0 fail:
2358 0 return 1;
2359 }
2360  
2361  
2362 0 SWIGCLASS_STATIC int _wrap_gsl_root_fdfsolver_secant_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2363 MAGIC_PPERL
2364 0 sv_setiv(SvRV(sv),PTR2IV(gsl_root_fdfsolver_secant));
2365 0 return 1;
2366 }
2367  
2368  
2369 0 SWIGCLASS_STATIC int _wrap_gsl_root_fdfsolver_steffenson_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2370 MAGIC_PPERL
2371 {
2372 0 void *argp = 0;
2373 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_root_fdfsolver_type, 0 );
2374 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2375 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fdfsolver_steffenson""' of type '""gsl_root_fdfsolver_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_root_fdfsolver_steffenson""' of type '""gsl_root_fdfsolver_type const *""'"); 0 0 0
2376 }
2377 0 gsl_root_fdfsolver_steffenson = (gsl_root_fdfsolver_type *)(argp);
2378 }
2379 0 fail:
2380 0 return 1;
2381 }
2382  
2383  
2384 0 SWIGCLASS_STATIC int _wrap_gsl_root_fdfsolver_steffenson_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2385 MAGIC_PPERL
2386 0 sv_setiv(SvRV(sv),PTR2IV(gsl_root_fdfsolver_steffenson));
2387 0 return 1;
2388 }
2389  
2390  
2391  
2392 #ifdef __cplusplus
2393 }
2394 #endif
2395  
2396 #ifdef __cplusplus
2397 extern "C" {
2398 #endif
2399 0 XS(_wrap_gsl_error) {
2400 {
2401 0 char *arg1 = (char *) 0 ;
2402 0 char *arg2 = (char *) 0 ;
2403 int arg3 ;
2404 int arg4 ;
2405 int res1 ;
2406 0 char *buf1 = 0 ;
2407 0 int alloc1 = 0 ;
2408 int res2 ;
2409 0 char *buf2 = 0 ;
2410 0 int alloc2 = 0 ;
2411 int val3 ;
2412 0 int ecode3 = 0 ;
2413 int val4 ;
2414 0 int ecode4 = 0 ;
2415 0 int argvi = 0;
2416 0 dXSARGS;
2417
2418 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
2419 0 SWIG_croak("Usage: gsl_error(reason,file,line,gsl_errno);");
2420 }
2421 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2422 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2423 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
2424 }
2425 0 arg1 = (char *)(buf1);
2426 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2427 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2428 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
2429 }
2430 0 arg2 = (char *)(buf2);
2431 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2432 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2433 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
2434 }
2435 0 arg3 = (int)(val3);
2436 0 ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2437 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2438 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
2439 }
2440 0 arg4 = (int)(val4);
2441 0 gsl_error((char const *)arg1,(char const *)arg2,arg3,arg4);
2442 0 ST(argvi) = &PL_sv_undef;
2443 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2444 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2445
2446
2447 0 XSRETURN(argvi);
2448 0 fail:
2449 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2450 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2451
2452
2453 0 SWIG_croak_null();
2454 }
2455 }
2456  
2457  
2458 0 XS(_wrap_gsl_stream_printf) {
2459 {
2460 0 char *arg1 = (char *) 0 ;
2461 0 char *arg2 = (char *) 0 ;
2462 int arg3 ;
2463 0 char *arg4 = (char *) 0 ;
2464 int res1 ;
2465 0 char *buf1 = 0 ;
2466 0 int alloc1 = 0 ;
2467 int res2 ;
2468 0 char *buf2 = 0 ;
2469 0 int alloc2 = 0 ;
2470 int val3 ;
2471 0 int ecode3 = 0 ;
2472 int res4 ;
2473 0 char *buf4 = 0 ;
2474 0 int alloc4 = 0 ;
2475 0 int argvi = 0;
2476 0 dXSARGS;
2477
2478 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
2479 0 SWIG_croak("Usage: gsl_stream_printf(label,file,line,reason);");
2480 }
2481 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2482 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2483 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
2484 }
2485 0 arg1 = (char *)(buf1);
2486 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2487 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2488 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
2489 }
2490 0 arg2 = (char *)(buf2);
2491 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2492 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2493 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
2494 }
2495 0 arg3 = (int)(val3);
2496 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
2497 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
2498 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
2499 }
2500 0 arg4 = (char *)(buf4);
2501 0 gsl_stream_printf((char const *)arg1,(char const *)arg2,arg3,(char const *)arg4);
2502 0 ST(argvi) = &PL_sv_undef;
2503 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2504 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2505
2506 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2507 0 XSRETURN(argvi);
2508 0 fail:
2509 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2510 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2511
2512 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2513 0 SWIG_croak_null();
2514 }
2515 }
2516  
2517  
2518 0 XS(_wrap_gsl_strerror) {
2519 {
2520 int arg1 ;
2521 int val1 ;
2522 0 int ecode1 = 0 ;
2523 0 int argvi = 0;
2524 0 char *result = 0 ;
2525 0 dXSARGS;
2526
2527 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
2528 0 SWIG_croak("Usage: gsl_strerror(gsl_errno);");
2529 }
2530 0 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
2531 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
2532 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
2533 }
2534 0 arg1 = (int)(val1);
2535 0 result = (char *)gsl_strerror(arg1);
2536 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2537
2538 0 XSRETURN(argvi);
2539 0 fail:
2540
2541 0 SWIG_croak_null();
2542 }
2543 }
2544  
2545  
2546 0 XS(_wrap_gsl_set_error_handler) {
2547 {
2548 0 gsl_error_handler_t *arg1 = (gsl_error_handler_t *) 0 ;
2549 0 int argvi = 0;
2550 0 gsl_error_handler_t *result = 0 ;
2551 0 dXSARGS;
2552
2553 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
2554 0 SWIG_croak("Usage: gsl_set_error_handler(new_handler);");
2555 }
2556 {
2557 0 int res = SWIG_ConvertFunctionPtr(ST(0), (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void);
2558 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2559 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
2560 }
2561 }
2562 0 result = (gsl_error_handler_t *)gsl_set_error_handler(arg1);
2563 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
2564
2565 0 XSRETURN(argvi);
2566 0 fail:
2567
2568 0 SWIG_croak_null();
2569 }
2570 }
2571  
2572  
2573 0 XS(_wrap_gsl_set_error_handler_off) {
2574 {
2575 0 int argvi = 0;
2576 0 gsl_error_handler_t *result = 0 ;
2577 0 dXSARGS;
2578
2579 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
2580 0 SWIG_croak("Usage: gsl_set_error_handler_off();");
2581 }
2582 0 result = (gsl_error_handler_t *)gsl_set_error_handler_off();
2583 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
2584 0 XSRETURN(argvi);
2585 0 fail:
2586 0 SWIG_croak_null();
2587 }
2588 }
2589  
2590  
2591 0 XS(_wrap_gsl_set_stream_handler) {
2592 {
2593 0 gsl_stream_handler_t *arg1 = (gsl_stream_handler_t *) 0 ;
2594 0 int argvi = 0;
2595 0 gsl_stream_handler_t *result = 0 ;
2596 0 dXSARGS;
2597
2598 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
2599 0 SWIG_croak("Usage: gsl_set_stream_handler(new_handler);");
2600 }
2601 {
2602 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);
2603 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2604 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
2605 }
2606 }
2607 0 result = (gsl_stream_handler_t *)gsl_set_stream_handler(arg1);
2608 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++ ;
2609
2610 0 XSRETURN(argvi);
2611 0 fail:
2612
2613 0 SWIG_croak_null();
2614 }
2615 }
2616  
2617  
2618 0 XS(_wrap_gsl_set_stream) {
2619 {
2620 0 FILE *arg1 = (FILE *) 0 ;
2621 0 void *argp1 = 0 ;
2622 0 int res1 = 0 ;
2623 0 int argvi = 0;
2624 0 FILE *result = 0 ;
2625 0 dXSARGS;
2626
2627 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
2628 0 SWIG_croak("Usage: gsl_set_stream(new_stream);");
2629 }
2630 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2631 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2632 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
2633 }
2634 0 arg1 = (FILE *)(argp1);
2635 0 result = (FILE *)gsl_set_stream(arg1);
2636 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0); argvi++ ;
2637
2638 0 XSRETURN(argvi);
2639 0 fail:
2640
2641 0 SWIG_croak_null();
2642 }
2643 }
2644  
2645  
2646 0 XS(_wrap_gsl_root_fsolver_type_name_set) {
2647 {
2648 0 gsl_root_fsolver_type *arg1 = (gsl_root_fsolver_type *) 0 ;
2649 0 char *arg2 = (char *) 0 ;
2650 0 void *argp1 = 0 ;
2651 0 int res1 = 0 ;
2652 int res2 ;
2653 0 char *buf2 = 0 ;
2654 0 int alloc2 = 0 ;
2655 0 int argvi = 0;
2656 0 dXSARGS;
2657
2658 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
2659 0 SWIG_croak("Usage: gsl_root_fsolver_type_name_set(self,name);");
2660 }
2661 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver_type, 0 | 0 );
2662 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2663 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_name_set" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_name_set" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'"); 0 0 0
2664 }
2665 0 arg1 = (gsl_root_fsolver_type *)(argp1);
2666 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2667 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2668 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fsolver_type_name_set" "', argument " "2"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fsolver_type_name_set" "', argument " "2"" of type '" "char const *""'"); 0 0 0
2669 }
2670 0 arg2 = (char *)(buf2);
2671 0 ▶ if (arg2) {
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) { 0 0 0
2672 0 size_t size = strlen((const char *)((const char *)(arg2))) + 1;
2673 0 arg1->name = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
2674 } else {
2675 0 arg1->name = 0;
2676 }
2677 0 ST(argvi) = &PL_sv_undef;
2678
2679 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2680 0 XSRETURN(argvi);
2681 0 fail:
2682
2683 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2684 0 SWIG_croak_null();
2685 }
2686 }
2687  
2688  
2689 0 XS(_wrap_gsl_root_fsolver_type_name_get) {
2690 {
2691 0 gsl_root_fsolver_type *arg1 = (gsl_root_fsolver_type *) 0 ;
2692 0 void *argp1 = 0 ;
2693 0 int res1 = 0 ;
2694 0 int argvi = 0;
2695 0 char *result = 0 ;
2696 0 dXSARGS;
2697
2698 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
2699 0 SWIG_croak("Usage: gsl_root_fsolver_type_name_get(self);");
2700 }
2701 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver_type, 0 | 0 );
2702 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2703 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_name_get" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_name_get" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'"); 0 0 0
2704 }
2705 0 arg1 = (gsl_root_fsolver_type *)(argp1);
2706 0 result = (char *) ((arg1)->name);
2707 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2708
2709 0 XSRETURN(argvi);
2710 0 fail:
2711
2712 0 SWIG_croak_null();
2713 }
2714 }
2715  
2716  
2717 0 XS(_wrap_gsl_root_fsolver_type_size_set) {
2718 {
2719 0 gsl_root_fsolver_type *arg1 = (gsl_root_fsolver_type *) 0 ;
2720 size_t arg2 ;
2721 0 void *argp1 = 0 ;
2722 0 int res1 = 0 ;
2723 size_t val2 ;
2724 0 int ecode2 = 0 ;
2725 0 int argvi = 0;
2726 0 dXSARGS;
2727
2728 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
2729 0 SWIG_croak("Usage: gsl_root_fsolver_type_size_set(self,size);");
2730 }
2731 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver_type, 0 | 0 );
2732 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2733 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_size_set" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_size_set" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'"); 0 0 0
2734 }
2735 0 arg1 = (gsl_root_fsolver_type *)(argp1);
2736 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2737 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2738 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fsolver_type_size_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fsolver_type_size_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2739 }
2740 0 arg2 = (size_t)(val2);
2741 0 ▶ if (arg1) (arg1)->size = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->size = arg2; 0 0 0
2742 0 ST(argvi) = &PL_sv_undef;
2743
2744
2745 0 XSRETURN(argvi);
2746 0 fail:
2747
2748
2749 0 SWIG_croak_null();
2750 }
2751 }
2752  
2753  
2754 0 XS(_wrap_gsl_root_fsolver_type_size_get) {
2755 {
2756 0 gsl_root_fsolver_type *arg1 = (gsl_root_fsolver_type *) 0 ;
2757 0 void *argp1 = 0 ;
2758 0 int res1 = 0 ;
2759 0 int argvi = 0;
2760 size_t result;
2761 0 dXSARGS;
2762
2763 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
2764 0 SWIG_croak("Usage: gsl_root_fsolver_type_size_get(self);");
2765 }
2766 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver_type, 0 | 0 );
2767 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2768 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_size_get" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_size_get" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'"); 0 0 0
2769 }
2770 0 arg1 = (gsl_root_fsolver_type *)(argp1);
2771 0 result = ((arg1)->size);
2772 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
2773
2774 0 XSRETURN(argvi);
2775 0 fail:
2776
2777 0 SWIG_croak_null();
2778 }
2779 }
2780  
2781  
2782 0 XS(_wrap_gsl_root_fsolver_type_set_set) {
2783 {
2784 0 gsl_root_fsolver_type *arg1 = (gsl_root_fsolver_type *) 0 ;
2785 0 int (*arg2)(void *,gsl_function *,double *,double,double) = (int (*)(void *,gsl_function *,double *,double,double)) 0 ;
2786 0 void *argp1 = 0 ;
2787 0 int res1 = 0 ;
2788 0 int argvi = 0;
2789 0 dXSARGS;
2790
2791 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
2792 0 SWIG_croak("Usage: gsl_root_fsolver_type_set_set(self,set);");
2793 }
2794 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver_type, 0 | 0 );
2795 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2796 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_set_set" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_set_set" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'"); 0 0 0
2797 }
2798 0 arg1 = (gsl_root_fsolver_type *)(argp1);
2799 {
2800 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_gsl_function_p_double_double_double__int);
2801 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2802 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_root_fsolver_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_function *,double *,double,double)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_root_fsolver_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_function *,double *,double,double)""'"); 0 0 0
2803 }
2804 }
2805 0 ▶ if (arg1) (arg1)->set = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->set = arg2; 0 0 0
2806 0 ST(argvi) = &PL_sv_undef;
2807
2808
2809 0 XSRETURN(argvi);
2810 0 fail:
2811
2812
2813 0 SWIG_croak_null();
2814 }
2815 }
2816  
2817  
2818 0 XS(_wrap_gsl_root_fsolver_type_set_get) {
2819 {
2820 0 gsl_root_fsolver_type *arg1 = (gsl_root_fsolver_type *) 0 ;
2821 0 void *argp1 = 0 ;
2822 0 int res1 = 0 ;
2823 0 int argvi = 0;
2824 0 int (*result)(void *,gsl_function *,double *,double,double) = 0 ;
2825 0 dXSARGS;
2826
2827 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
2828 0 SWIG_croak("Usage: gsl_root_fsolver_type_set_get(self);");
2829 }
2830 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver_type, 0 | 0 );
2831 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2832 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_set_get" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_set_get" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'"); 0 0 0
2833 }
2834 0 arg1 = (gsl_root_fsolver_type *)(argp1);
2835 0 result = (int (*)(void *,gsl_function *,double *,double,double)) ((arg1)->set);
2836 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_gsl_function_p_double_double_double__int); argvi++ ;
2837
2838 0 XSRETURN(argvi);
2839 0 fail:
2840
2841 0 SWIG_croak_null();
2842 }
2843 }
2844  
2845  
2846 0 XS(_wrap_gsl_root_fsolver_type_iterate_set) {
2847 {
2848 0 gsl_root_fsolver_type *arg1 = (gsl_root_fsolver_type *) 0 ;
2849 0 int (*arg2)(void *,gsl_function *,double *,double *,double *) = (int (*)(void *,gsl_function *,double *,double *,double *)) 0 ;
2850 0 void *argp1 = 0 ;
2851 0 int res1 = 0 ;
2852 0 int argvi = 0;
2853 0 dXSARGS;
2854
2855 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
2856 0 SWIG_croak("Usage: gsl_root_fsolver_type_iterate_set(self,iterate);");
2857 }
2858 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver_type, 0 | 0 );
2859 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2860 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_iterate_set" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_iterate_set" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'"); 0 0 0
2861 }
2862 0 arg1 = (gsl_root_fsolver_type *)(argp1);
2863 {
2864 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_gsl_function_p_double_p_double_p_double__int);
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 method '" "gsl_root_fsolver_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_function *,double *,double *,double *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_root_fsolver_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_function *,double *,double *,double *)""'"); 0 0 0
2867 }
2868 }
2869 0 ▶ if (arg1) (arg1)->iterate = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->iterate = arg2; 0 0 0
2870 0 ST(argvi) = &PL_sv_undef;
2871
2872
2873 0 XSRETURN(argvi);
2874 0 fail:
2875
2876
2877 0 SWIG_croak_null();
2878 }
2879 }
2880  
2881  
2882 0 XS(_wrap_gsl_root_fsolver_type_iterate_get) {
2883 {
2884 0 gsl_root_fsolver_type *arg1 = (gsl_root_fsolver_type *) 0 ;
2885 0 void *argp1 = 0 ;
2886 0 int res1 = 0 ;
2887 0 int argvi = 0;
2888 0 int (*result)(void *,gsl_function *,double *,double *,double *) = 0 ;
2889 0 dXSARGS;
2890
2891 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
2892 0 SWIG_croak("Usage: gsl_root_fsolver_type_iterate_get(self);");
2893 }
2894 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver_type, 0 | 0 );
2895 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2896 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_iterate_get" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_iterate_get" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'"); 0 0 0
2897 }
2898 0 arg1 = (gsl_root_fsolver_type *)(argp1);
2899 0 result = (int (*)(void *,gsl_function *,double *,double *,double *)) ((arg1)->iterate);
2900 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_gsl_function_p_double_p_double_p_double__int); argvi++ ;
2901
2902 0 XSRETURN(argvi);
2903 0 fail:
2904
2905 0 SWIG_croak_null();
2906 }
2907 }
2908  
2909  
2910 0 XS(_wrap_new_gsl_root_fsolver_type) {
2911 {
2912 0 int argvi = 0;
2913 0 gsl_root_fsolver_type *result = 0 ;
2914 0 dXSARGS;
2915
2916 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
2917 0 SWIG_croak("Usage: new_gsl_root_fsolver_type();");
2918 }
2919 0 result = (gsl_root_fsolver_type *)calloc(1, sizeof(gsl_root_fsolver_type));
2920 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_root_fsolver_type, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
2921 0 XSRETURN(argvi);
2922 0 fail:
2923 0 SWIG_croak_null();
2924 }
2925 }
2926  
2927  
2928 0 XS(_wrap_delete_gsl_root_fsolver_type) {
2929 {
2930 0 gsl_root_fsolver_type *arg1 = (gsl_root_fsolver_type *) 0 ;
2931 0 void *argp1 = 0 ;
2932 0 int res1 = 0 ;
2933 0 int argvi = 0;
2934 0 dXSARGS;
2935
2936 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
2937 0 SWIG_croak("Usage: delete_gsl_root_fsolver_type(self);");
2938 }
2939 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver_type, SWIG_POINTER_DISOWN | 0 );
2940 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2941 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_root_fsolver_type" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_root_fsolver_type" "', argument " "1"" of type '" "gsl_root_fsolver_type *""'"); 0 0 0
2942 }
2943 0 arg1 = (gsl_root_fsolver_type *)(argp1);
2944 0 free((char *) arg1);
2945 0 ST(argvi) = &PL_sv_undef;
2946
2947 0 XSRETURN(argvi);
2948 0 fail:
2949
2950 0 SWIG_croak_null();
2951 }
2952 }
2953  
2954  
2955 0 XS(_wrap_delete_gsl_root_fsolver) {
2956 {
2957 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
2958 0 void *argp1 = 0 ;
2959 0 int res1 = 0 ;
2960 0 int argvi = 0;
2961 0 dXSARGS;
2962
2963 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
2964 0 SWIG_croak("Usage: delete_gsl_root_fsolver(self);");
2965 }
2966 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, SWIG_POINTER_DISOWN | 0 );
2967 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2968 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_root_fsolver" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_root_fsolver" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
2969 }
2970 0 arg1 = (gsl_root_fsolver *)(argp1);
2971 0 delete_gsl_root_fsolver(arg1);
2972 0 ST(argvi) = &PL_sv_undef;
2973
2974 0 XSRETURN(argvi);
2975 0 fail:
2976
2977 0 SWIG_croak_null();
2978 }
2979 }
2980  
2981  
2982 0 XS(_wrap_gsl_root_fsolver_type_set) {
2983 {
2984 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
2985 0 gsl_root_fsolver_type *arg2 = (gsl_root_fsolver_type *) 0 ;
2986 0 void *argp1 = 0 ;
2987 0 int res1 = 0 ;
2988 0 void *argp2 = 0 ;
2989 0 int res2 = 0 ;
2990 0 int argvi = 0;
2991 0 dXSARGS;
2992
2993 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
2994 0 SWIG_croak("Usage: gsl_root_fsolver_type_set(self,type);");
2995 }
2996 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
2997 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2998 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
2999 }
3000 0 arg1 = (gsl_root_fsolver *)(argp1);
3001 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_root_fsolver_type, SWIG_POINTER_DISOWN | 0 );
3002 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3003 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fsolver_type_set" "', argument " "2"" of type '" "gsl_root_fsolver_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fsolver_type_set" "', argument " "2"" of type '" "gsl_root_fsolver_type const *""'"); 0 0 0
3004 }
3005 0 arg2 = (gsl_root_fsolver_type *)(argp2);
3006 0 ▶ if (arg1) (arg1)->type = (gsl_root_fsolver_type const *)arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->type = (gsl_root_fsolver_type const *)arg2; 0 0 0
3007 0 ST(argvi) = &PL_sv_undef;
3008
3009
3010 0 XSRETURN(argvi);
3011 0 fail:
3012
3013
3014 0 SWIG_croak_null();
3015 }
3016 }
3017  
3018  
3019 0 XS(_wrap_gsl_root_fsolver_type_get) {
3020 {
3021 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3022 0 void *argp1 = 0 ;
3023 0 int res1 = 0 ;
3024 0 int argvi = 0;
3025 0 gsl_root_fsolver_type *result = 0 ;
3026 0 dXSARGS;
3027
3028 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
3029 0 SWIG_croak("Usage: gsl_root_fsolver_type_get(self);");
3030 }
3031 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3032 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3033 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_type_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3034 }
3035 0 arg1 = (gsl_root_fsolver *)(argp1);
3036 0 result = (gsl_root_fsolver_type *) ((arg1)->type);
3037 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_root_fsolver_type, 0 | SWIG_SHADOW); argvi++ ;
3038
3039 0 XSRETURN(argvi);
3040 0 fail:
3041
3042 0 SWIG_croak_null();
3043 }
3044 }
3045  
3046  
3047 0 XS(_wrap_gsl_root_fsolver_function_set) {
3048 {
3049 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3050 0 gsl_function *arg2 = (gsl_function *) 0 ;
3051 0 void *argp1 = 0 ;
3052 0 int res1 = 0 ;
3053 0 int argvi = 0;
3054 0 dXSARGS;
3055
3056 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
3057 0 SWIG_croak("Usage: gsl_root_fsolver_function_set(self,function);");
3058 }
3059 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3060 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3061 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_function_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_function_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3062 }
3063 0 arg1 = (gsl_root_fsolver *)(argp1);
3064 {
3065 0 SV * function = 0;
3066 0 SV * params = 0;
3067 struct gsl_function_perl *w_gsl_function;
3068 0 Newx(w_gsl_function, 1, struct gsl_function_perl);
3069
3070 0 ▶ if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) { 0 0 0
if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) { 0 0 0
3071 0 AV* array=(AV*)SvRV(ST(1));
3072 0 SV ** p_function = 0;
3073 0 ▶ if (av_len(array)<0) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)<0) { 0 0 0
3074 0 croak("Math::GSL : $function is an empty array!");
3075 }
3076 0 ▶ if (av_len(array)>1) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)>1) { 0 0 0
3077 0 croak("Math::GSL : $function is an array with more than 2 elements!");
3078 }
3079 0 p_function = av_fetch(array, 0, 0);
3080 0 function = *p_function;
3081 0 ▶ if (av_len(array)>0) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)>0) { 0 0 0
3082 0 SV ** p_params = 0;
3083 0 p_params = av_fetch(array, 1, 0);
3084 0 params = *p_params;
3085 }
3086 } else {
3087 0 function = ST(1);
3088 }
3089
3090 0 ▶ if (!function || !(SvPOK(function) || (SvROK(function) && (SvTYPE(SvRV(function)) == SVt_PVCV)))) {
Branch: 4 branches
BranchTrueFalseTotal
if (!function || !(SvPOK(function) || (SvROK(function) && (SvTYPE(SvRV(function)) == SVt_PVCV)))) { 0 0 0
if (!function || !(SvPOK(function) || (SvROK(function) && (SvTYPE(SvRV(function)) == SVt_PVCV)))) { 0 0 0
if (!function || !(SvPOK(function) || (SvROK(function) && (SvTYPE(SvRV(function)) == SVt_PVCV)))) { 0 0 0
if (!function || !(SvPOK(function) || (SvROK(function) && (SvTYPE(SvRV(function)) == SVt_PVCV)))) { 0 0 0
3091 0 croak("Math::GSL : $function is not a reference to code!");
3092 }
3093
3094 0 function = newSVsv(function);
3095
3096 0 ▶ if (! params) {
Branch: 1 branch
BranchTrueFalseTotal
if (! params) { 0 0 0
3097 0 params=&PL_sv_undef;
3098 }
3099 0 params = newSVsv(params);
3100
3101 0 w_gsl_function->params = params;
3102 0 w_gsl_function->function = function;
3103 0 w_gsl_function->C_gsl_function.params = w_gsl_function;
3104 0 w_gsl_function->C_gsl_function.function = &call_gsl_function;
3105
3106 0 arg2 = &(w_gsl_function->C_gsl_function);
3107 }
3108 0 ▶ if (arg1) (arg1)->function = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->function = arg2; 0 0 0
3109 0 ST(argvi) = &PL_sv_undef;
3110
3111
3112 0 XSRETURN(argvi);
3113 0 fail:
3114
3115
3116 0 SWIG_croak_null();
3117 }
3118 }
3119  
3120  
3121 0 XS(_wrap_gsl_root_fsolver_function_get) {
3122 {
3123 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3124 0 void *argp1 = 0 ;
3125 0 int res1 = 0 ;
3126 0 int argvi = 0;
3127 0 gsl_function *result = 0 ;
3128 0 dXSARGS;
3129
3130 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
3131 0 SWIG_croak("Usage: gsl_root_fsolver_function_get(self);");
3132 }
3133 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3134 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3135 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_function_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_function_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3136 }
3137 0 arg1 = (gsl_root_fsolver *)(argp1);
3138 0 result = (gsl_function *) ((arg1)->function);
3139 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_function, 0 | 0); argvi++ ;
3140
3141 0 XSRETURN(argvi);
3142 0 fail:
3143
3144 0 SWIG_croak_null();
3145 }
3146 }
3147  
3148  
3149 0 XS(_wrap_gsl_root_fsolver_root_set) {
3150 {
3151 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3152 double arg2 ;
3153 0 void *argp1 = 0 ;
3154 0 int res1 = 0 ;
3155 double val2 ;
3156 0 int ecode2 = 0 ;
3157 0 int argvi = 0;
3158 0 dXSARGS;
3159
3160 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
3161 0 SWIG_croak("Usage: gsl_root_fsolver_root_set(self,root);");
3162 }
3163 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3164 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3165 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_root_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_root_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3166 }
3167 0 arg1 = (gsl_root_fsolver *)(argp1);
3168 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3169 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3170 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fsolver_root_set" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fsolver_root_set" "', argument " "2"" of type '" "double""'"); 0 0 0
3171 }
3172 0 arg2 = (double)(val2);
3173 0 ▶ if (arg1) (arg1)->root = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->root = arg2; 0 0 0
3174 0 ST(argvi) = &PL_sv_undef;
3175
3176
3177 0 XSRETURN(argvi);
3178 0 fail:
3179
3180
3181 0 SWIG_croak_null();
3182 }
3183 }
3184  
3185  
3186 0 XS(_wrap_gsl_root_fsolver_root_get) {
3187 {
3188 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3189 0 void *argp1 = 0 ;
3190 0 int res1 = 0 ;
3191 0 int argvi = 0;
3192 double result;
3193 0 dXSARGS;
3194
3195 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
3196 0 SWIG_croak("Usage: gsl_root_fsolver_root_get(self);");
3197 }
3198 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3199 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3200 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_root_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_root_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3201 }
3202 0 arg1 = (gsl_root_fsolver *)(argp1);
3203 0 result = (double) ((arg1)->root);
3204 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3205
3206 0 XSRETURN(argvi);
3207 0 fail:
3208
3209 0 SWIG_croak_null();
3210 }
3211 }
3212  
3213  
3214 0 XS(_wrap_gsl_root_fsolver_x_lower_set) {
3215 {
3216 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3217 double arg2 ;
3218 0 void *argp1 = 0 ;
3219 0 int res1 = 0 ;
3220 double val2 ;
3221 0 int ecode2 = 0 ;
3222 0 int argvi = 0;
3223 0 dXSARGS;
3224
3225 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
3226 0 SWIG_croak("Usage: gsl_root_fsolver_x_lower_set(self,x_lower);");
3227 }
3228 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3229 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3230 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_lower_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_lower_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3231 }
3232 0 arg1 = (gsl_root_fsolver *)(argp1);
3233 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3234 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3235 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fsolver_x_lower_set" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fsolver_x_lower_set" "', argument " "2"" of type '" "double""'"); 0 0 0
3236 }
3237 0 arg2 = (double)(val2);
3238 0 ▶ if (arg1) (arg1)->x_lower = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->x_lower = arg2; 0 0 0
3239 0 ST(argvi) = &PL_sv_undef;
3240
3241
3242 0 XSRETURN(argvi);
3243 0 fail:
3244
3245
3246 0 SWIG_croak_null();
3247 }
3248 }
3249  
3250  
3251 0 XS(_wrap_gsl_root_fsolver_x_lower_get) {
3252 {
3253 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3254 0 void *argp1 = 0 ;
3255 0 int res1 = 0 ;
3256 0 int argvi = 0;
3257 double result;
3258 0 dXSARGS;
3259
3260 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
3261 0 SWIG_croak("Usage: gsl_root_fsolver_x_lower_get(self);");
3262 }
3263 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3264 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3265 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_lower_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_lower_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3266 }
3267 0 arg1 = (gsl_root_fsolver *)(argp1);
3268 0 result = (double) ((arg1)->x_lower);
3269 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3270
3271 0 XSRETURN(argvi);
3272 0 fail:
3273
3274 0 SWIG_croak_null();
3275 }
3276 }
3277  
3278  
3279 0 XS(_wrap_gsl_root_fsolver_x_upper_set) {
3280 {
3281 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3282 double arg2 ;
3283 0 void *argp1 = 0 ;
3284 0 int res1 = 0 ;
3285 double val2 ;
3286 0 int ecode2 = 0 ;
3287 0 int argvi = 0;
3288 0 dXSARGS;
3289
3290 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
3291 0 SWIG_croak("Usage: gsl_root_fsolver_x_upper_set(self,x_upper);");
3292 }
3293 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3294 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3295 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_upper_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_upper_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3296 }
3297 0 arg1 = (gsl_root_fsolver *)(argp1);
3298 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3299 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3300 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fsolver_x_upper_set" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fsolver_x_upper_set" "', argument " "2"" of type '" "double""'"); 0 0 0
3301 }
3302 0 arg2 = (double)(val2);
3303 0 ▶ if (arg1) (arg1)->x_upper = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->x_upper = arg2; 0 0 0
3304 0 ST(argvi) = &PL_sv_undef;
3305
3306
3307 0 XSRETURN(argvi);
3308 0 fail:
3309
3310
3311 0 SWIG_croak_null();
3312 }
3313 }
3314  
3315  
3316 0 XS(_wrap_gsl_root_fsolver_x_upper_get) {
3317 {
3318 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3319 0 void *argp1 = 0 ;
3320 0 int res1 = 0 ;
3321 0 int argvi = 0;
3322 double result;
3323 0 dXSARGS;
3324
3325 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
3326 0 SWIG_croak("Usage: gsl_root_fsolver_x_upper_get(self);");
3327 }
3328 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3329 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3330 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_upper_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_upper_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3331 }
3332 0 arg1 = (gsl_root_fsolver *)(argp1);
3333 0 result = (double) ((arg1)->x_upper);
3334 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3335
3336 0 XSRETURN(argvi);
3337 0 fail:
3338
3339 0 SWIG_croak_null();
3340 }
3341 }
3342  
3343  
3344 0 XS(_wrap_gsl_root_fsolver_state_set) {
3345 {
3346 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3347 0 void *arg2 = (void *) 0 ;
3348 0 void *argp1 = 0 ;
3349 0 int res1 = 0 ;
3350 int res2 ;
3351 0 int argvi = 0;
3352 0 dXSARGS;
3353
3354 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
3355 0 SWIG_croak("Usage: gsl_root_fsolver_state_set(self,state);");
3356 }
3357 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3358 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3359 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_state_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_state_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3360 }
3361 0 arg1 = (gsl_root_fsolver *)(argp1);
3362 0 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
3363 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3364 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fsolver_state_set" "', argument " "2"" of type '" "void *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fsolver_state_set" "', argument " "2"" of type '" "void *""'"); 0 0 0
3365 }
3366 0 ▶ if (arg1) (arg1)->state = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->state = arg2; 0 0 0
3367 0 ST(argvi) = &PL_sv_undef;
3368
3369
3370 0 XSRETURN(argvi);
3371 0 fail:
3372
3373
3374 0 SWIG_croak_null();
3375 }
3376 }
3377  
3378  
3379 0 XS(_wrap_gsl_root_fsolver_state_get) {
3380 {
3381 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
3382 0 void *argp1 = 0 ;
3383 0 int res1 = 0 ;
3384 0 int argvi = 0;
3385 0 void *result = 0 ;
3386 0 dXSARGS;
3387
3388 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
3389 0 SWIG_croak("Usage: gsl_root_fsolver_state_get(self);");
3390 }
3391 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
3392 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3393 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_state_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_state_get" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
3394 }
3395 0 arg1 = (gsl_root_fsolver *)(argp1);
3396 0 result = (void *) ((arg1)->state);
3397 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
3398
3399 0 XSRETURN(argvi);
3400 0 fail:
3401
3402 0 SWIG_croak_null();
3403 }
3404 }
3405  
3406  
3407 0 XS(_wrap_new_gsl_root_fsolver) {
3408 {
3409 0 int argvi = 0;
3410 0 gsl_root_fsolver *result = 0 ;
3411 0 dXSARGS;
3412
3413 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
3414 0 SWIG_croak("Usage: new_gsl_root_fsolver();");
3415 }
3416 0 result = (gsl_root_fsolver *)calloc(1, sizeof(gsl_root_fsolver));
3417 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_root_fsolver, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
3418 0 XSRETURN(argvi);
3419 0 fail:
3420 0 SWIG_croak_null();
3421 }
3422 }
3423  
3424  
3425 0 XS(_wrap_gsl_root_fdfsolver_type_name_set) {
3426 {
3427 0 gsl_root_fdfsolver_type *arg1 = (gsl_root_fdfsolver_type *) 0 ;
3428 0 char *arg2 = (char *) 0 ;
3429 0 void *argp1 = 0 ;
3430 0 int res1 = 0 ;
3431 int res2 ;
3432 0 char *buf2 = 0 ;
3433 0 int alloc2 = 0 ;
3434 0 int argvi = 0;
3435 0 dXSARGS;
3436
3437 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
3438 0 SWIG_croak("Usage: gsl_root_fdfsolver_type_name_set(self,name);");
3439 }
3440 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver_type, 0 | 0 );
3441 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3442 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_name_set" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_name_set" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'"); 0 0 0
3443 }
3444 0 arg1 = (gsl_root_fdfsolver_type *)(argp1);
3445 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
3446 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3447 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fdfsolver_type_name_set" "', argument " "2"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fdfsolver_type_name_set" "', argument " "2"" of type '" "char const *""'"); 0 0 0
3448 }
3449 0 arg2 = (char *)(buf2);
3450 0 ▶ if (arg2) {
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) { 0 0 0
3451 0 size_t size = strlen((const char *)((const char *)(arg2))) + 1;
3452 0 arg1->name = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
3453 } else {
3454 0 arg1->name = 0;
3455 }
3456 0 ST(argvi) = &PL_sv_undef;
3457
3458 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
3459 0 XSRETURN(argvi);
3460 0 fail:
3461
3462 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
3463 0 SWIG_croak_null();
3464 }
3465 }
3466  
3467  
3468 0 XS(_wrap_gsl_root_fdfsolver_type_name_get) {
3469 {
3470 0 gsl_root_fdfsolver_type *arg1 = (gsl_root_fdfsolver_type *) 0 ;
3471 0 void *argp1 = 0 ;
3472 0 int res1 = 0 ;
3473 0 int argvi = 0;
3474 0 char *result = 0 ;
3475 0 dXSARGS;
3476
3477 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
3478 0 SWIG_croak("Usage: gsl_root_fdfsolver_type_name_get(self);");
3479 }
3480 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver_type, 0 | 0 );
3481 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3482 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_name_get" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_name_get" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'"); 0 0 0
3483 }
3484 0 arg1 = (gsl_root_fdfsolver_type *)(argp1);
3485 0 result = (char *) ((arg1)->name);
3486 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3487
3488 0 XSRETURN(argvi);
3489 0 fail:
3490
3491 0 SWIG_croak_null();
3492 }
3493 }
3494  
3495  
3496 0 XS(_wrap_gsl_root_fdfsolver_type_size_set) {
3497 {
3498 0 gsl_root_fdfsolver_type *arg1 = (gsl_root_fdfsolver_type *) 0 ;
3499 size_t arg2 ;
3500 0 void *argp1 = 0 ;
3501 0 int res1 = 0 ;
3502 size_t val2 ;
3503 0 int ecode2 = 0 ;
3504 0 int argvi = 0;
3505 0 dXSARGS;
3506
3507 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
3508 0 SWIG_croak("Usage: gsl_root_fdfsolver_type_size_set(self,size);");
3509 }
3510 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver_type, 0 | 0 );
3511 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3512 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_size_set" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_size_set" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'"); 0 0 0
3513 }
3514 0 arg1 = (gsl_root_fdfsolver_type *)(argp1);
3515 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3516 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3517 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fdfsolver_type_size_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fdfsolver_type_size_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3518 }
3519 0 arg2 = (size_t)(val2);
3520 0 ▶ if (arg1) (arg1)->size = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->size = arg2; 0 0 0
3521 0 ST(argvi) = &PL_sv_undef;
3522
3523
3524 0 XSRETURN(argvi);
3525 0 fail:
3526
3527
3528 0 SWIG_croak_null();
3529 }
3530 }
3531  
3532  
3533 0 XS(_wrap_gsl_root_fdfsolver_type_size_get) {
3534 {
3535 0 gsl_root_fdfsolver_type *arg1 = (gsl_root_fdfsolver_type *) 0 ;
3536 0 void *argp1 = 0 ;
3537 0 int res1 = 0 ;
3538 0 int argvi = 0;
3539 size_t result;
3540 0 dXSARGS;
3541
3542 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
3543 0 SWIG_croak("Usage: gsl_root_fdfsolver_type_size_get(self);");
3544 }
3545 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver_type, 0 | 0 );
3546 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3547 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_size_get" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_size_get" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'"); 0 0 0
3548 }
3549 0 arg1 = (gsl_root_fdfsolver_type *)(argp1);
3550 0 result = ((arg1)->size);
3551 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
3552
3553 0 XSRETURN(argvi);
3554 0 fail:
3555
3556 0 SWIG_croak_null();
3557 }
3558 }
3559  
3560  
3561 0 XS(_wrap_gsl_root_fdfsolver_type_set_set) {
3562 {
3563 0 gsl_root_fdfsolver_type *arg1 = (gsl_root_fdfsolver_type *) 0 ;
3564 0 int (*arg2)(void *,gsl_function_fdf *,double *) = (int (*)(void *,gsl_function_fdf *,double *)) 0 ;
3565 0 void *argp1 = 0 ;
3566 0 int res1 = 0 ;
3567 0 int argvi = 0;
3568 0 dXSARGS;
3569
3570 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
3571 0 SWIG_croak("Usage: gsl_root_fdfsolver_type_set_set(self,set);");
3572 }
3573 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver_type, 0 | 0 );
3574 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3575 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_set_set" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_set_set" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'"); 0 0 0
3576 }
3577 0 arg1 = (gsl_root_fdfsolver_type *)(argp1);
3578 {
3579 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_gsl_function_fdf_p_double__int);
3580 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3581 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_root_fdfsolver_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_function_fdf *,double *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_root_fdfsolver_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_function_fdf *,double *)""'"); 0 0 0
3582 }
3583 }
3584 0 ▶ if (arg1) (arg1)->set = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->set = arg2; 0 0 0
3585 0 ST(argvi) = &PL_sv_undef;
3586
3587
3588 0 XSRETURN(argvi);
3589 0 fail:
3590
3591
3592 0 SWIG_croak_null();
3593 }
3594 }
3595  
3596  
3597 0 XS(_wrap_gsl_root_fdfsolver_type_set_get) {
3598 {
3599 0 gsl_root_fdfsolver_type *arg1 = (gsl_root_fdfsolver_type *) 0 ;
3600 0 void *argp1 = 0 ;
3601 0 int res1 = 0 ;
3602 0 int argvi = 0;
3603 0 int (*result)(void *,gsl_function_fdf *,double *) = 0 ;
3604 0 dXSARGS;
3605
3606 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
3607 0 SWIG_croak("Usage: gsl_root_fdfsolver_type_set_get(self);");
3608 }
3609 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver_type, 0 | 0 );
3610 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3611 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_set_get" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_set_get" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'"); 0 0 0
3612 }
3613 0 arg1 = (gsl_root_fdfsolver_type *)(argp1);
3614 0 result = (int (*)(void *,gsl_function_fdf *,double *)) ((arg1)->set);
3615 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_gsl_function_fdf_p_double__int); argvi++ ;
3616
3617 0 XSRETURN(argvi);
3618 0 fail:
3619
3620 0 SWIG_croak_null();
3621 }
3622 }
3623  
3624  
3625 0 XS(_wrap_gsl_root_fdfsolver_type_iterate_set) {
3626 {
3627 0 gsl_root_fdfsolver_type *arg1 = (gsl_root_fdfsolver_type *) 0 ;
3628 0 int (*arg2)(void *,gsl_function_fdf *,double *) = (int (*)(void *,gsl_function_fdf *,double *)) 0 ;
3629 0 void *argp1 = 0 ;
3630 0 int res1 = 0 ;
3631 0 int argvi = 0;
3632 0 dXSARGS;
3633
3634 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
3635 0 SWIG_croak("Usage: gsl_root_fdfsolver_type_iterate_set(self,iterate);");
3636 }
3637 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver_type, 0 | 0 );
3638 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3639 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_iterate_set" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_iterate_set" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'"); 0 0 0
3640 }
3641 0 arg1 = (gsl_root_fdfsolver_type *)(argp1);
3642 {
3643 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_gsl_function_fdf_p_double__int);
3644 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3645 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_root_fdfsolver_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_function_fdf *,double *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_root_fdfsolver_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_function_fdf *,double *)""'"); 0 0 0
3646 }
3647 }
3648 0 ▶ if (arg1) (arg1)->iterate = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->iterate = arg2; 0 0 0
3649 0 ST(argvi) = &PL_sv_undef;
3650
3651
3652 0 XSRETURN(argvi);
3653 0 fail:
3654
3655
3656 0 SWIG_croak_null();
3657 }
3658 }
3659  
3660  
3661 0 XS(_wrap_gsl_root_fdfsolver_type_iterate_get) {
3662 {
3663 0 gsl_root_fdfsolver_type *arg1 = (gsl_root_fdfsolver_type *) 0 ;
3664 0 void *argp1 = 0 ;
3665 0 int res1 = 0 ;
3666 0 int argvi = 0;
3667 0 int (*result)(void *,gsl_function_fdf *,double *) = 0 ;
3668 0 dXSARGS;
3669
3670 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
3671 0 SWIG_croak("Usage: gsl_root_fdfsolver_type_iterate_get(self);");
3672 }
3673 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver_type, 0 | 0 );
3674 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3675 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_iterate_get" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_iterate_get" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'"); 0 0 0
3676 }
3677 0 arg1 = (gsl_root_fdfsolver_type *)(argp1);
3678 0 result = (int (*)(void *,gsl_function_fdf *,double *)) ((arg1)->iterate);
3679 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_gsl_function_fdf_p_double__int); argvi++ ;
3680
3681 0 XSRETURN(argvi);
3682 0 fail:
3683
3684 0 SWIG_croak_null();
3685 }
3686 }
3687  
3688  
3689 0 XS(_wrap_new_gsl_root_fdfsolver_type) {
3690 {
3691 0 int argvi = 0;
3692 0 gsl_root_fdfsolver_type *result = 0 ;
3693 0 dXSARGS;
3694
3695 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
3696 0 SWIG_croak("Usage: new_gsl_root_fdfsolver_type();");
3697 }
3698 0 result = (gsl_root_fdfsolver_type *)calloc(1, sizeof(gsl_root_fdfsolver_type));
3699 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_root_fdfsolver_type, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
3700 0 XSRETURN(argvi);
3701 0 fail:
3702 0 SWIG_croak_null();
3703 }
3704 }
3705  
3706  
3707 0 XS(_wrap_delete_gsl_root_fdfsolver_type) {
3708 {
3709 0 gsl_root_fdfsolver_type *arg1 = (gsl_root_fdfsolver_type *) 0 ;
3710 0 void *argp1 = 0 ;
3711 0 int res1 = 0 ;
3712 0 int argvi = 0;
3713 0 dXSARGS;
3714
3715 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
3716 0 SWIG_croak("Usage: delete_gsl_root_fdfsolver_type(self);");
3717 }
3718 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver_type, SWIG_POINTER_DISOWN | 0 );
3719 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3720 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_root_fdfsolver_type" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_root_fdfsolver_type" "', argument " "1"" of type '" "gsl_root_fdfsolver_type *""'"); 0 0 0
3721 }
3722 0 arg1 = (gsl_root_fdfsolver_type *)(argp1);
3723 0 free((char *) arg1);
3724 0 ST(argvi) = &PL_sv_undef;
3725
3726 0 XSRETURN(argvi);
3727 0 fail:
3728
3729 0 SWIG_croak_null();
3730 }
3731 }
3732  
3733  
3734 0 XS(_wrap_delete_gsl_root_fdfsolver) {
3735 {
3736 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
3737 0 void *argp1 = 0 ;
3738 0 int res1 = 0 ;
3739 0 int argvi = 0;
3740 0 dXSARGS;
3741
3742 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
3743 0 SWIG_croak("Usage: delete_gsl_root_fdfsolver(self);");
3744 }
3745 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, SWIG_POINTER_DISOWN | 0 );
3746 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3747 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_root_fdfsolver" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_root_fdfsolver" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
3748 }
3749 0 arg1 = (gsl_root_fdfsolver *)(argp1);
3750 0 delete_gsl_root_fdfsolver(arg1);
3751 0 ST(argvi) = &PL_sv_undef;
3752
3753 0 XSRETURN(argvi);
3754 0 fail:
3755
3756 0 SWIG_croak_null();
3757 }
3758 }
3759  
3760  
3761 0 XS(_wrap_gsl_root_fdfsolver_type_set) {
3762 {
3763 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
3764 0 gsl_root_fdfsolver_type *arg2 = (gsl_root_fdfsolver_type *) 0 ;
3765 0 void *argp1 = 0 ;
3766 0 int res1 = 0 ;
3767 0 void *argp2 = 0 ;
3768 0 int res2 = 0 ;
3769 0 int argvi = 0;
3770 0 dXSARGS;
3771
3772 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
3773 0 SWIG_croak("Usage: gsl_root_fdfsolver_type_set(self,type);");
3774 }
3775 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
3776 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3777 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_set" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_set" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
3778 }
3779 0 arg1 = (gsl_root_fdfsolver *)(argp1);
3780 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_root_fdfsolver_type, SWIG_POINTER_DISOWN | 0 );
3781 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3782 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fdfsolver_type_set" "', argument " "2"" of type '" "gsl_root_fdfsolver_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fdfsolver_type_set" "', argument " "2"" of type '" "gsl_root_fdfsolver_type const *""'"); 0 0 0
3783 }
3784 0 arg2 = (gsl_root_fdfsolver_type *)(argp2);
3785 0 ▶ if (arg1) (arg1)->type = (gsl_root_fdfsolver_type const *)arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->type = (gsl_root_fdfsolver_type const *)arg2; 0 0 0
3786 0 ST(argvi) = &PL_sv_undef;
3787
3788
3789 0 XSRETURN(argvi);
3790 0 fail:
3791
3792
3793 0 SWIG_croak_null();
3794 }
3795 }
3796  
3797  
3798 0 XS(_wrap_gsl_root_fdfsolver_type_get) {
3799 {
3800 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
3801 0 void *argp1 = 0 ;
3802 0 int res1 = 0 ;
3803 0 int argvi = 0;
3804 0 gsl_root_fdfsolver_type *result = 0 ;
3805 0 dXSARGS;
3806
3807 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
3808 0 SWIG_croak("Usage: gsl_root_fdfsolver_type_get(self);");
3809 }
3810 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
3811 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3812 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_get" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_type_get" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
3813 }
3814 0 arg1 = (gsl_root_fdfsolver *)(argp1);
3815 0 result = (gsl_root_fdfsolver_type *) ((arg1)->type);
3816 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_root_fdfsolver_type, 0 | SWIG_SHADOW); argvi++ ;
3817
3818 0 XSRETURN(argvi);
3819 0 fail:
3820
3821 0 SWIG_croak_null();
3822 }
3823 }
3824  
3825  
3826 0 XS(_wrap_gsl_root_fdfsolver_fdf_set) {
3827 {
3828 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
3829 0 gsl_function_fdf *arg2 = (gsl_function_fdf *) 0 ;
3830 0 void *argp1 = 0 ;
3831 0 int res1 = 0 ;
3832 0 int argvi = 0;
3833 0 dXSARGS;
3834
3835 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
3836 0 SWIG_croak("Usage: gsl_root_fdfsolver_fdf_set(self,fdf);");
3837 }
3838 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
3839 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3840 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_fdf_set" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_fdf_set" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
3841 }
3842 0 arg1 = (gsl_root_fdfsolver *)(argp1);
3843 {
3844 SV* func[3];
3845 0 SV * params = 0;
3846
3847 struct gsl_function_fdf_perl *w_gsl_function_fdf;
3848 0 Newx(w_gsl_function_fdf, 1, struct gsl_function_fdf_perl);
3849
3850 0 ▶ if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) { 0 0 0
if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) { 0 0 0
3851 0 AV* array=(AV*)SvRV(ST(1));
3852
3853 0 ▶ if (av_len(array)<0) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)<0) { 0 0 0
3854 0 croak("Math::GSL : $fdf is an empty array!");
3855 }
3856 0 ▶ if (av_len(array)>1) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)>1) { 0 0 0
3857 0 croak("Math::GSL : $fdf is an array with more than 2 elements!");
3858 }
3859
3860 {
3861 0 SV** pp_sv = av_fetch(array, 0, 0);
3862 0 ▶ if ( ! SvROK( *pp_sv ) || SvTYPE(SvRV(*pp_sv)) != SVt_PVHV )
Branch: 2 branches
BranchTrueFalseTotal
if ( ! SvROK( *pp_sv ) || SvTYPE(SvRV(*pp_sv)) != SVt_PVHV ) 0 0 0
if ( ! SvROK( *pp_sv ) || SvTYPE(SvRV(*pp_sv)) != SVt_PVHV ) 0 0 0
3863 0 croak("Math::GSL : first element of $fdf must be a hashref!");
3864
3865 0 gsl_function_fdf_extract( "$fdf", (HV*) SvRV(*pp_sv), func );
3866 }
3867
3868 0 ▶ if (av_len(array)>0) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)>0) { 0 0 0
3869 0 SV ** p_params = 0;
3870 0 p_params = av_fetch(array, 1, 0);
3871 0 params = *p_params;
3872 }
3873 0 ▶ } else if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVHV)) {
Branch: 2 branches
BranchTrueFalseTotal
} else if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVHV)) { 0 0 0
} else if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVHV)) { 0 0 0
3874 0 HV* hash = (HV*) SvRV(ST(1) );
3875 0 gsl_function_fdf_extract( "$fdf", hash, func );
3876
3877 } else {
3878 0 croak("Math::GSL : $fdf must be a hashref!");
3879 }
3880
3881 0 ▶ if (! params) {
Branch: 1 branch
BranchTrueFalseTotal
if (! params) { 0 0 0
3882 0 params=&PL_sv_undef;
3883 }
3884 0 params = newSVsv(params);
3885
3886 0 w_gsl_function_fdf->params = params;
3887 0 w_gsl_function_fdf->f = func[0];
3888 0 w_gsl_function_fdf->df = func[1];
3889 0 w_gsl_function_fdf->fdf = func[2];
3890
3891
3892 0 w_gsl_function_fdf->C_gsl_function_fdf.params = w_gsl_function_fdf;
3893 0 w_gsl_function_fdf->C_gsl_function_fdf.f = &call_gsl_function_fdf_f;
3894 0 w_gsl_function_fdf->C_gsl_function_fdf.df = &call_gsl_function_fdf_df;
3895 0 w_gsl_function_fdf->C_gsl_function_fdf.fdf = &call_gsl_function_fdf_fdf;
3896
3897 0 arg2 = &w_gsl_function_fdf->C_gsl_function_fdf;
3898 }
3899 0 ▶ if (arg1) (arg1)->fdf = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->fdf = arg2; 0 0 0
3900 0 ST(argvi) = &PL_sv_undef;
3901
3902
3903 0 XSRETURN(argvi);
3904 0 fail:
3905
3906
3907 0 SWIG_croak_null();
3908 }
3909 }
3910  
3911  
3912 0 XS(_wrap_gsl_root_fdfsolver_fdf_get) {
3913 {
3914 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
3915 0 void *argp1 = 0 ;
3916 0 int res1 = 0 ;
3917 0 int argvi = 0;
3918 0 gsl_function_fdf *result = 0 ;
3919 0 dXSARGS;
3920
3921 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
3922 0 SWIG_croak("Usage: gsl_root_fdfsolver_fdf_get(self);");
3923 }
3924 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
3925 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3926 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_fdf_get" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_fdf_get" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
3927 }
3928 0 arg1 = (gsl_root_fdfsolver *)(argp1);
3929 0 result = (gsl_function_fdf *) ((arg1)->fdf);
3930 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_function_fdf, 0 | 0); argvi++ ;
3931
3932 0 XSRETURN(argvi);
3933 0 fail:
3934
3935 0 SWIG_croak_null();
3936 }
3937 }
3938  
3939  
3940 0 XS(_wrap_gsl_root_fdfsolver_root_set) {
3941 {
3942 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
3943 double arg2 ;
3944 0 void *argp1 = 0 ;
3945 0 int res1 = 0 ;
3946 double val2 ;
3947 0 int ecode2 = 0 ;
3948 0 int argvi = 0;
3949 0 dXSARGS;
3950
3951 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
3952 0 SWIG_croak("Usage: gsl_root_fdfsolver_root_set(self,root);");
3953 }
3954 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
3955 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3956 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_root_set" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_root_set" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
3957 }
3958 0 arg1 = (gsl_root_fdfsolver *)(argp1);
3959 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3960 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3961 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fdfsolver_root_set" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_fdfsolver_root_set" "', argument " "2"" of type '" "double""'"); 0 0 0
3962 }
3963 0 arg2 = (double)(val2);
3964 0 ▶ if (arg1) (arg1)->root = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->root = arg2; 0 0 0
3965 0 ST(argvi) = &PL_sv_undef;
3966
3967
3968 0 XSRETURN(argvi);
3969 0 fail:
3970
3971
3972 0 SWIG_croak_null();
3973 }
3974 }
3975  
3976  
3977 0 XS(_wrap_gsl_root_fdfsolver_root_get) {
3978 {
3979 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
3980 0 void *argp1 = 0 ;
3981 0 int res1 = 0 ;
3982 0 int argvi = 0;
3983 double result;
3984 0 dXSARGS;
3985
3986 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
3987 0 SWIG_croak("Usage: gsl_root_fdfsolver_root_get(self);");
3988 }
3989 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
3990 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3991 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_root_get" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_root_get" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
3992 }
3993 0 arg1 = (gsl_root_fdfsolver *)(argp1);
3994 0 result = (double) ((arg1)->root);
3995 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3996
3997 0 XSRETURN(argvi);
3998 0 fail:
3999
4000 0 SWIG_croak_null();
4001 }
4002 }
4003  
4004  
4005 0 XS(_wrap_gsl_root_fdfsolver_state_set) {
4006 {
4007 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
4008 0 void *arg2 = (void *) 0 ;
4009 0 void *argp1 = 0 ;
4010 0 int res1 = 0 ;
4011 int res2 ;
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_root_fdfsolver_state_set(self,state);");
4017 }
4018 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 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_root_fdfsolver_state_set" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_state_set" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
4021 }
4022 0 arg1 = (gsl_root_fdfsolver *)(argp1);
4023 0 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
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_root_fdfsolver_state_set" "', argument " "2"" of type '" "void *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_root_fdfsolver_state_set" "', argument " "2"" of type '" "void *""'"); 0 0 0
4026 }
4027 0 ▶ if (arg1) (arg1)->state = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->state = arg2; 0 0 0
4028 0 ST(argvi) = &PL_sv_undef;
4029
4030
4031 0 XSRETURN(argvi);
4032 0 fail:
4033
4034
4035 0 SWIG_croak_null();
4036 }
4037 }
4038  
4039  
4040 0 XS(_wrap_gsl_root_fdfsolver_state_get) {
4041 {
4042 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
4043 0 void *argp1 = 0 ;
4044 0 int res1 = 0 ;
4045 0 int argvi = 0;
4046 0 void *result = 0 ;
4047 0 dXSARGS;
4048
4049 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
4050 0 SWIG_croak("Usage: gsl_root_fdfsolver_state_get(self);");
4051 }
4052 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
4053 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4054 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_state_get" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_state_get" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
4055 }
4056 0 arg1 = (gsl_root_fdfsolver *)(argp1);
4057 0 result = (void *) ((arg1)->state);
4058 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
4059
4060 0 XSRETURN(argvi);
4061 0 fail:
4062
4063 0 SWIG_croak_null();
4064 }
4065 }
4066  
4067  
4068 0 XS(_wrap_new_gsl_root_fdfsolver) {
4069 {
4070 0 int argvi = 0;
4071 0 gsl_root_fdfsolver *result = 0 ;
4072 0 dXSARGS;
4073
4074 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
4075 0 SWIG_croak("Usage: new_gsl_root_fdfsolver();");
4076 }
4077 0 result = (gsl_root_fdfsolver *)calloc(1, sizeof(gsl_root_fdfsolver));
4078 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_root_fdfsolver, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
4079 0 XSRETURN(argvi);
4080 0 fail:
4081 0 SWIG_croak_null();
4082 }
4083 }
4084  
4085  
4086 0 XS(_wrap_gsl_root_fsolver_alloc) {
4087 {
4088 0 gsl_root_fsolver_type *arg1 = (gsl_root_fsolver_type *) 0 ;
4089 0 void *argp1 = 0 ;
4090 0 int res1 = 0 ;
4091 0 int argvi = 0;
4092 0 gsl_root_fsolver *result = 0 ;
4093 0 dXSARGS;
4094
4095 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
4096 0 SWIG_croak("Usage: gsl_root_fsolver_alloc(T);");
4097 }
4098 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver_type, 0 | 0 );
4099 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4100 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_alloc" "', argument " "1"" of type '" "gsl_root_fsolver_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_alloc" "', argument " "1"" of type '" "gsl_root_fsolver_type const *""'"); 0 0 0
4101 }
4102 0 arg1 = (gsl_root_fsolver_type *)(argp1);
4103 0 result = (gsl_root_fsolver *)gsl_root_fsolver_alloc((gsl_root_fsolver_type const *)arg1);
4104 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_root_fsolver, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
4105
4106 0 XSRETURN(argvi);
4107 0 fail:
4108
4109 0 SWIG_croak_null();
4110 }
4111 }
4112  
4113  
4114 0 XS(_wrap_gsl_root_fsolver_free) {
4115 {
4116 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
4117 0 void *argp1 = 0 ;
4118 0 int res1 = 0 ;
4119 0 int argvi = 0;
4120 0 dXSARGS;
4121
4122 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
4123 0 SWIG_croak("Usage: gsl_root_fsolver_free(s);");
4124 }
4125 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
4126 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4127 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_free" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_free" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
4128 }
4129 0 arg1 = (gsl_root_fsolver *)(argp1);
4130 0 gsl_root_fsolver_free(arg1);
4131 0 ST(argvi) = &PL_sv_undef;
4132
4133 0 XSRETURN(argvi);
4134 0 fail:
4135
4136 0 SWIG_croak_null();
4137 }
4138 }
4139  
4140  
4141 0 XS(_wrap_gsl_root_fsolver_set) {
4142 {
4143 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
4144 0 gsl_function *arg2 = (gsl_function *) 0 ;
4145 double arg3 ;
4146 double arg4 ;
4147 0 void *argp1 = 0 ;
4148 0 int res1 = 0 ;
4149 double val3 ;
4150 0 int ecode3 = 0 ;
4151 double val4 ;
4152 0 int ecode4 = 0 ;
4153 0 int argvi = 0;
4154 int result;
4155 0 dXSARGS;
4156
4157 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
4158 0 SWIG_croak("Usage: gsl_root_fsolver_set(s,f,x_lower,x_upper);");
4159 }
4160 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
4161 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4162 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_set" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
4163 }
4164 0 arg1 = (gsl_root_fsolver *)(argp1);
4165 {
4166 0 SV * function = 0;
4167 0 SV * params = 0;
4168 struct gsl_function_perl *w_gsl_function;
4169 0 Newx(w_gsl_function, 1, struct gsl_function_perl);
4170
4171 0 ▶ if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) { 0 0 0
if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) { 0 0 0
4172 0 AV* array=(AV*)SvRV(ST(1));
4173 0 SV ** p_function = 0;
4174 0 ▶ if (av_len(array)<0) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)<0) { 0 0 0
4175 0 croak("Math::GSL : $f is an empty array!");
4176 }
4177 0 ▶ if (av_len(array)>1) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)>1) { 0 0 0
4178 0 croak("Math::GSL : $f is an array with more than 2 elements!");
4179 }
4180 0 p_function = av_fetch(array, 0, 0);
4181 0 function = *p_function;
4182 0 ▶ if (av_len(array)>0) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)>0) { 0 0 0
4183 0 SV ** p_params = 0;
4184 0 p_params = av_fetch(array, 1, 0);
4185 0 params = *p_params;
4186 }
4187 } else {
4188 0 function = ST(1);
4189 }
4190
4191 0 ▶ if (!function || !(SvPOK(function) || (SvROK(function) && (SvTYPE(SvRV(function)) == SVt_PVCV)))) {
Branch: 4 branches
BranchTrueFalseTotal
if (!function || !(SvPOK(function) || (SvROK(function) && (SvTYPE(SvRV(function)) == SVt_PVCV)))) { 0 0 0
if (!function || !(SvPOK(function) || (SvROK(function) && (SvTYPE(SvRV(function)) == SVt_PVCV)))) { 0 0 0
if (!function || !(SvPOK(function) || (SvROK(function) && (SvTYPE(SvRV(function)) == SVt_PVCV)))) { 0 0 0
if (!function || !(SvPOK(function) || (SvROK(function) && (SvTYPE(SvRV(function)) == SVt_PVCV)))) { 0 0 0
4192 0 croak("Math::GSL : $f is not a reference to code!");
4193 }
4194
4195 0 function = newSVsv(function);
4196
4197 0 ▶ if (! params) {
Branch: 1 branch
BranchTrueFalseTotal
if (! params) { 0 0 0
4198 0 params=&PL_sv_undef;
4199 }
4200 0 params = newSVsv(params);
4201
4202 0 w_gsl_function->params = params;
4203 0 w_gsl_function->function = function;
4204 0 w_gsl_function->C_gsl_function.params = w_gsl_function;
4205 0 w_gsl_function->C_gsl_function.function = &call_gsl_function;
4206
4207 0 arg2 = &(w_gsl_function->C_gsl_function);
4208 }
4209 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4210 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4211 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_root_fsolver_set" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_root_fsolver_set" "', argument " "3"" of type '" "double""'"); 0 0 0
4212 }
4213 0 arg3 = (double)(val3);
4214 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4215 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4216 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_root_fsolver_set" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_root_fsolver_set" "', argument " "4"" of type '" "double""'"); 0 0 0
4217 }
4218 0 arg4 = (double)(val4);
4219 0 result = (int)gsl_root_fsolver_set(arg1,arg2,arg3,arg4);
4220 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4221
4222
4223
4224
4225 0 XSRETURN(argvi);
4226 0 fail:
4227
4228
4229
4230
4231 0 SWIG_croak_null();
4232 }
4233 }
4234  
4235  
4236 0 XS(_wrap_gsl_root_fsolver_iterate) {
4237 {
4238 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
4239 0 void *argp1 = 0 ;
4240 0 int res1 = 0 ;
4241 0 int argvi = 0;
4242 int result;
4243 0 dXSARGS;
4244
4245 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
4246 0 SWIG_croak("Usage: gsl_root_fsolver_iterate(s);");
4247 }
4248 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
4249 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4250 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_iterate" "', argument " "1"" of type '" "gsl_root_fsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_iterate" "', argument " "1"" of type '" "gsl_root_fsolver *""'"); 0 0 0
4251 }
4252 0 arg1 = (gsl_root_fsolver *)(argp1);
4253 0 result = (int)gsl_root_fsolver_iterate(arg1);
4254 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4255
4256 0 XSRETURN(argvi);
4257 0 fail:
4258
4259 0 SWIG_croak_null();
4260 }
4261 }
4262  
4263  
4264 0 XS(_wrap_gsl_root_fsolver_name) {
4265 {
4266 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
4267 0 void *argp1 = 0 ;
4268 0 int res1 = 0 ;
4269 0 int argvi = 0;
4270 0 char *result = 0 ;
4271 0 dXSARGS;
4272
4273 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
4274 0 SWIG_croak("Usage: gsl_root_fsolver_name(s);");
4275 }
4276 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
4277 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4278 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_name" "', argument " "1"" of type '" "gsl_root_fsolver const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_name" "', argument " "1"" of type '" "gsl_root_fsolver const *""'"); 0 0 0
4279 }
4280 0 arg1 = (gsl_root_fsolver *)(argp1);
4281 0 result = (char *)gsl_root_fsolver_name((gsl_root_fsolver const *)arg1);
4282 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
4283
4284 0 XSRETURN(argvi);
4285 0 fail:
4286
4287 0 SWIG_croak_null();
4288 }
4289 }
4290  
4291  
4292 0 XS(_wrap_gsl_root_fsolver_root) {
4293 {
4294 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
4295 0 void *argp1 = 0 ;
4296 0 int res1 = 0 ;
4297 0 int argvi = 0;
4298 double result;
4299 0 dXSARGS;
4300
4301 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
4302 0 SWIG_croak("Usage: gsl_root_fsolver_root(s);");
4303 }
4304 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
4305 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4306 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_root" "', argument " "1"" of type '" "gsl_root_fsolver const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_root" "', argument " "1"" of type '" "gsl_root_fsolver const *""'"); 0 0 0
4307 }
4308 0 arg1 = (gsl_root_fsolver *)(argp1);
4309 0 result = (double)gsl_root_fsolver_root((gsl_root_fsolver const *)arg1);
4310 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4311
4312 0 XSRETURN(argvi);
4313 0 fail:
4314
4315 0 SWIG_croak_null();
4316 }
4317 }
4318  
4319  
4320 0 XS(_wrap_gsl_root_fsolver_x_lower) {
4321 {
4322 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
4323 0 void *argp1 = 0 ;
4324 0 int res1 = 0 ;
4325 0 int argvi = 0;
4326 double result;
4327 0 dXSARGS;
4328
4329 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
4330 0 SWIG_croak("Usage: gsl_root_fsolver_x_lower(s);");
4331 }
4332 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
4333 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4334 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_lower" "', argument " "1"" of type '" "gsl_root_fsolver const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_lower" "', argument " "1"" of type '" "gsl_root_fsolver const *""'"); 0 0 0
4335 }
4336 0 arg1 = (gsl_root_fsolver *)(argp1);
4337 0 result = (double)gsl_root_fsolver_x_lower((gsl_root_fsolver const *)arg1);
4338 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4339
4340 0 XSRETURN(argvi);
4341 0 fail:
4342
4343 0 SWIG_croak_null();
4344 }
4345 }
4346  
4347  
4348 0 XS(_wrap_gsl_root_fsolver_x_upper) {
4349 {
4350 0 gsl_root_fsolver *arg1 = (gsl_root_fsolver *) 0 ;
4351 0 void *argp1 = 0 ;
4352 0 int res1 = 0 ;
4353 0 int argvi = 0;
4354 double result;
4355 0 dXSARGS;
4356
4357 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
4358 0 SWIG_croak("Usage: gsl_root_fsolver_x_upper(s);");
4359 }
4360 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fsolver, 0 | 0 );
4361 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4362 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_upper" "', argument " "1"" of type '" "gsl_root_fsolver const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fsolver_x_upper" "', argument " "1"" of type '" "gsl_root_fsolver const *""'"); 0 0 0
4363 }
4364 0 arg1 = (gsl_root_fsolver *)(argp1);
4365 0 result = (double)gsl_root_fsolver_x_upper((gsl_root_fsolver const *)arg1);
4366 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4367
4368 0 XSRETURN(argvi);
4369 0 fail:
4370
4371 0 SWIG_croak_null();
4372 }
4373 }
4374  
4375  
4376 0 XS(_wrap_gsl_root_fdfsolver_alloc) {
4377 {
4378 0 gsl_root_fdfsolver_type *arg1 = (gsl_root_fdfsolver_type *) 0 ;
4379 0 void *argp1 = 0 ;
4380 0 int res1 = 0 ;
4381 0 int argvi = 0;
4382 0 gsl_root_fdfsolver *result = 0 ;
4383 0 dXSARGS;
4384
4385 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
4386 0 SWIG_croak("Usage: gsl_root_fdfsolver_alloc(T);");
4387 }
4388 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver_type, 0 | 0 );
4389 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4390 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_alloc" "', argument " "1"" of type '" "gsl_root_fdfsolver_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_alloc" "', argument " "1"" of type '" "gsl_root_fdfsolver_type const *""'"); 0 0 0
4391 }
4392 0 arg1 = (gsl_root_fdfsolver_type *)(argp1);
4393 0 result = (gsl_root_fdfsolver *)gsl_root_fdfsolver_alloc((gsl_root_fdfsolver_type const *)arg1);
4394 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_root_fdfsolver, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
4395
4396 0 XSRETURN(argvi);
4397 0 fail:
4398
4399 0 SWIG_croak_null();
4400 }
4401 }
4402  
4403  
4404 0 XS(_wrap_gsl_root_fdfsolver_set) {
4405 {
4406 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
4407 0 gsl_function_fdf *arg2 = (gsl_function_fdf *) 0 ;
4408 double arg3 ;
4409 0 void *argp1 = 0 ;
4410 0 int res1 = 0 ;
4411 double val3 ;
4412 0 int ecode3 = 0 ;
4413 0 int argvi = 0;
4414 int result;
4415 0 dXSARGS;
4416
4417 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4418 0 SWIG_croak("Usage: gsl_root_fdfsolver_set(s,fdf,root);");
4419 }
4420 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 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_root_fdfsolver_set" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_set" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
4423 }
4424 0 arg1 = (gsl_root_fdfsolver *)(argp1);
4425 {
4426 SV* func[3];
4427 0 SV * params = 0;
4428
4429 struct gsl_function_fdf_perl *w_gsl_function_fdf;
4430 0 Newx(w_gsl_function_fdf, 1, struct gsl_function_fdf_perl);
4431
4432 0 ▶ if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) { 0 0 0
if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVAV)) { 0 0 0
4433 0 AV* array=(AV*)SvRV(ST(1));
4434
4435 0 ▶ if (av_len(array)<0) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)<0) { 0 0 0
4436 0 croak("Math::GSL : $fdf is an empty array!");
4437 }
4438 0 ▶ if (av_len(array)>1) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)>1) { 0 0 0
4439 0 croak("Math::GSL : $fdf is an array with more than 2 elements!");
4440 }
4441
4442 {
4443 0 SV** pp_sv = av_fetch(array, 0, 0);
4444 0 ▶ if ( ! SvROK( *pp_sv ) || SvTYPE(SvRV(*pp_sv)) != SVt_PVHV )
Branch: 2 branches
BranchTrueFalseTotal
if ( ! SvROK( *pp_sv ) || SvTYPE(SvRV(*pp_sv)) != SVt_PVHV ) 0 0 0
if ( ! SvROK( *pp_sv ) || SvTYPE(SvRV(*pp_sv)) != SVt_PVHV ) 0 0 0
4445 0 croak("Math::GSL : first element of $fdf must be a hashref!");
4446
4447 0 gsl_function_fdf_extract( "$fdf", (HV*) SvRV(*pp_sv), func );
4448 }
4449
4450 0 ▶ if (av_len(array)>0) {
Branch: 1 branch
BranchTrueFalseTotal
if (av_len(array)>0) { 0 0 0
4451 0 SV ** p_params = 0;
4452 0 p_params = av_fetch(array, 1, 0);
4453 0 params = *p_params;
4454 }
4455 0 ▶ } else if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVHV)) {
Branch: 2 branches
BranchTrueFalseTotal
} else if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVHV)) { 0 0 0
} else if (SvROK(ST(1)) && (SvTYPE(SvRV(ST(1))) == SVt_PVHV)) { 0 0 0
4456 0 HV* hash = (HV*) SvRV(ST(1) );
4457 0 gsl_function_fdf_extract( "$fdf", hash, func );
4458
4459 } else {
4460 0 croak("Math::GSL : $fdf must be a hashref!");
4461 }
4462
4463 0 ▶ if (! params) {
Branch: 1 branch
BranchTrueFalseTotal
if (! params) { 0 0 0
4464 0 params=&PL_sv_undef;
4465 }
4466 0 params = newSVsv(params);
4467
4468 0 w_gsl_function_fdf->params = params;
4469 0 w_gsl_function_fdf->f = func[0];
4470 0 w_gsl_function_fdf->df = func[1];
4471 0 w_gsl_function_fdf->fdf = func[2];
4472
4473
4474 0 w_gsl_function_fdf->C_gsl_function_fdf.params = w_gsl_function_fdf;
4475 0 w_gsl_function_fdf->C_gsl_function_fdf.f = &call_gsl_function_fdf_f;
4476 0 w_gsl_function_fdf->C_gsl_function_fdf.df = &call_gsl_function_fdf_df;
4477 0 w_gsl_function_fdf->C_gsl_function_fdf.fdf = &call_gsl_function_fdf_fdf;
4478
4479 0 arg2 = &w_gsl_function_fdf->C_gsl_function_fdf;
4480 }
4481 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4482 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4483 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_root_fdfsolver_set" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_root_fdfsolver_set" "', argument " "3"" of type '" "double""'"); 0 0 0
4484 }
4485 0 arg3 = (double)(val3);
4486 0 result = (int)gsl_root_fdfsolver_set(arg1,arg2,arg3);
4487 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4488
4489
4490
4491 0 XSRETURN(argvi);
4492 0 fail:
4493
4494
4495
4496 0 SWIG_croak_null();
4497 }
4498 }
4499  
4500  
4501 0 XS(_wrap_gsl_root_fdfsolver_iterate) {
4502 {
4503 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
4504 0 void *argp1 = 0 ;
4505 0 int res1 = 0 ;
4506 0 int argvi = 0;
4507 int result;
4508 0 dXSARGS;
4509
4510 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
4511 0 SWIG_croak("Usage: gsl_root_fdfsolver_iterate(s);");
4512 }
4513 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
4514 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4515 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_iterate" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_iterate" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
4516 }
4517 0 arg1 = (gsl_root_fdfsolver *)(argp1);
4518 0 result = (int)gsl_root_fdfsolver_iterate(arg1);
4519 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4520
4521 0 XSRETURN(argvi);
4522 0 fail:
4523
4524 0 SWIG_croak_null();
4525 }
4526 }
4527  
4528  
4529 0 XS(_wrap_gsl_root_fdfsolver_free) {
4530 {
4531 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
4532 0 void *argp1 = 0 ;
4533 0 int res1 = 0 ;
4534 0 int argvi = 0;
4535 0 dXSARGS;
4536
4537 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
4538 0 SWIG_croak("Usage: gsl_root_fdfsolver_free(s);");
4539 }
4540 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
4541 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4542 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_free" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_free" "', argument " "1"" of type '" "gsl_root_fdfsolver *""'"); 0 0 0
4543 }
4544 0 arg1 = (gsl_root_fdfsolver *)(argp1);
4545 0 gsl_root_fdfsolver_free(arg1);
4546 0 ST(argvi) = &PL_sv_undef;
4547
4548 0 XSRETURN(argvi);
4549 0 fail:
4550
4551 0 SWIG_croak_null();
4552 }
4553 }
4554  
4555  
4556 0 XS(_wrap_gsl_root_fdfsolver_name) {
4557 {
4558 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
4559 0 void *argp1 = 0 ;
4560 0 int res1 = 0 ;
4561 0 int argvi = 0;
4562 0 char *result = 0 ;
4563 0 dXSARGS;
4564
4565 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
4566 0 SWIG_croak("Usage: gsl_root_fdfsolver_name(s);");
4567 }
4568 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
4569 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4570 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_name" "', argument " "1"" of type '" "gsl_root_fdfsolver const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_name" "', argument " "1"" of type '" "gsl_root_fdfsolver const *""'"); 0 0 0
4571 }
4572 0 arg1 = (gsl_root_fdfsolver *)(argp1);
4573 0 result = (char *)gsl_root_fdfsolver_name((gsl_root_fdfsolver const *)arg1);
4574 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
4575
4576 0 XSRETURN(argvi);
4577 0 fail:
4578
4579 0 SWIG_croak_null();
4580 }
4581 }
4582  
4583  
4584 0 XS(_wrap_gsl_root_fdfsolver_root) {
4585 {
4586 0 gsl_root_fdfsolver *arg1 = (gsl_root_fdfsolver *) 0 ;
4587 0 void *argp1 = 0 ;
4588 0 int res1 = 0 ;
4589 0 int argvi = 0;
4590 double result;
4591 0 dXSARGS;
4592
4593 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
4594 0 SWIG_croak("Usage: gsl_root_fdfsolver_root(s);");
4595 }
4596 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_root_fdfsolver, 0 | 0 );
4597 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4598 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_root" "', argument " "1"" of type '" "gsl_root_fdfsolver const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_root_fdfsolver_root" "', argument " "1"" of type '" "gsl_root_fdfsolver const *""'"); 0 0 0
4599 }
4600 0 arg1 = (gsl_root_fdfsolver *)(argp1);
4601 0 result = (double)gsl_root_fdfsolver_root((gsl_root_fdfsolver const *)arg1);
4602 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4603
4604 0 XSRETURN(argvi);
4605 0 fail:
4606
4607 0 SWIG_croak_null();
4608 }
4609 }
4610  
4611  
4612 0 XS(_wrap_gsl_root_test_interval) {
4613 {
4614 double arg1 ;
4615 double arg2 ;
4616 double arg3 ;
4617 double arg4 ;
4618 double val1 ;
4619 0 int ecode1 = 0 ;
4620 double val2 ;
4621 0 int ecode2 = 0 ;
4622 double val3 ;
4623 0 int ecode3 = 0 ;
4624 double val4 ;
4625 0 int ecode4 = 0 ;
4626 0 int argvi = 0;
4627 int result;
4628 0 dXSARGS;
4629
4630 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
4631 0 SWIG_croak("Usage: gsl_root_test_interval(x_lower,x_upper,epsabs,epsrel);");
4632 }
4633 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4634 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4635 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_root_test_interval" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_root_test_interval" "', argument " "1"" of type '" "double""'"); 0 0 0
4636 }
4637 0 arg1 = (double)(val1);
4638 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4639 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4640 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_test_interval" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_test_interval" "', argument " "2"" of type '" "double""'"); 0 0 0
4641 }
4642 0 arg2 = (double)(val2);
4643 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4644 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4645 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_root_test_interval" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_root_test_interval" "', argument " "3"" of type '" "double""'"); 0 0 0
4646 }
4647 0 arg3 = (double)(val3);
4648 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4649 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4650 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_root_test_interval" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_root_test_interval" "', argument " "4"" of type '" "double""'"); 0 0 0
4651 }
4652 0 arg4 = (double)(val4);
4653 0 result = (int)gsl_root_test_interval(arg1,arg2,arg3,arg4);
4654 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4655
4656
4657
4658
4659 0 XSRETURN(argvi);
4660 0 fail:
4661
4662
4663
4664
4665 0 SWIG_croak_null();
4666 }
4667 }
4668  
4669  
4670 0 XS(_wrap_gsl_root_test_residual) {
4671 {
4672 double arg1 ;
4673 double arg2 ;
4674 double val1 ;
4675 0 int ecode1 = 0 ;
4676 double val2 ;
4677 0 int ecode2 = 0 ;
4678 0 int argvi = 0;
4679 int result;
4680 0 dXSARGS;
4681
4682 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
4683 0 SWIG_croak("Usage: gsl_root_test_residual(f,epsabs);");
4684 }
4685 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4686 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4687 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_root_test_residual" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_root_test_residual" "', argument " "1"" of type '" "double""'"); 0 0 0
4688 }
4689 0 arg1 = (double)(val1);
4690 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4691 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4692 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_test_residual" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_test_residual" "', argument " "2"" of type '" "double""'"); 0 0 0
4693 }
4694 0 arg2 = (double)(val2);
4695 0 result = (int)gsl_root_test_residual(arg1,arg2);
4696 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4697
4698
4699 0 XSRETURN(argvi);
4700 0 fail:
4701
4702
4703 0 SWIG_croak_null();
4704 }
4705 }
4706  
4707  
4708 0 XS(_wrap_gsl_root_test_delta) {
4709 {
4710 double arg1 ;
4711 double arg2 ;
4712 double arg3 ;
4713 double arg4 ;
4714 double val1 ;
4715 0 int ecode1 = 0 ;
4716 double val2 ;
4717 0 int ecode2 = 0 ;
4718 double val3 ;
4719 0 int ecode3 = 0 ;
4720 double val4 ;
4721 0 int ecode4 = 0 ;
4722 0 int argvi = 0;
4723 int result;
4724 0 dXSARGS;
4725
4726 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
4727 0 SWIG_croak("Usage: gsl_root_test_delta(x1,x0,epsabs,epsrel);");
4728 }
4729 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4730 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4731 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_root_test_delta" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_root_test_delta" "', argument " "1"" of type '" "double""'"); 0 0 0
4732 }
4733 0 arg1 = (double)(val1);
4734 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4735 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4736 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_test_delta" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_root_test_delta" "', argument " "2"" of type '" "double""'"); 0 0 0
4737 }
4738 0 arg2 = (double)(val2);
4739 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4740 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4741 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_root_test_delta" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_root_test_delta" "', argument " "3"" of type '" "double""'"); 0 0 0
4742 }
4743 0 arg3 = (double)(val3);
4744 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4745 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4746 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_root_test_delta" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_root_test_delta" "', argument " "4"" of type '" "double""'"); 0 0 0
4747 }
4748 0 arg4 = (double)(val4);
4749 0 result = (int)gsl_root_test_delta(arg1,arg2,arg3,arg4);
4750 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4751
4752
4753
4754
4755 0 XSRETURN(argvi);
4756 0 fail:
4757
4758
4759
4760
4761 0 SWIG_croak_null();
4762 }
4763 }
4764  
4765  
4766  
4767 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4768  
4769 static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
4770 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
4771 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};
4772 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};
4773 static swig_type_info _swigt__p_f_p_void_p_gsl_function_fdf_p_double__int = {"_p_f_p_void_p_gsl_function_fdf_p_double__int", "int (*)(void *,gsl_function_fdf *,double *)", 0, 0, (void*)0, 0};
4774 static swig_type_info _swigt__p_f_p_void_p_gsl_function_p_double_double_double__int = {"_p_f_p_void_p_gsl_function_p_double_double_double__int", "int (*)(void *,gsl_function *,double *,double,double)", 0, 0, (void*)0, 0};
4775 static swig_type_info _swigt__p_f_p_void_p_gsl_function_p_double_p_double_p_double__int = {"_p_f_p_void_p_gsl_function_p_double_p_double_p_double__int", "int (*)(void *,gsl_function *,double *,double *,double *)", 0, 0, (void*)0, 0};
4776 static swig_type_info _swigt__p_gsl_function = {"_p_gsl_function", "gsl_function *", 0, 0, (void*)0, 0};
4777 static swig_type_info _swigt__p_gsl_function_fdf = {"_p_gsl_function_fdf", "gsl_function_fdf *", 0, 0, (void*)0, 0};
4778 static swig_type_info _swigt__p_gsl_root_fdfsolver = {"_p_gsl_root_fdfsolver", "gsl_root_fdfsolver *", 0, 0, (void*)"Math::GSL::Roots::gsl_root_fdfsolver", 0};
4779 static swig_type_info _swigt__p_gsl_root_fdfsolver_type = {"_p_gsl_root_fdfsolver_type", "gsl_root_fdfsolver_type *", 0, 0, (void*)"Math::GSL::Roots::gsl_root_fdfsolver_type", 0};
4780 static swig_type_info _swigt__p_gsl_root_fsolver = {"_p_gsl_root_fsolver", "gsl_root_fsolver *", 0, 0, (void*)"Math::GSL::Roots::gsl_root_fsolver", 0};
4781 static swig_type_info _swigt__p_gsl_root_fsolver_type = {"_p_gsl_root_fsolver_type", "gsl_root_fsolver_type *", 0, 0, (void*)"Math::GSL::Roots::gsl_root_fsolver_type", 0};
4782 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
4783  
4784 static swig_type_info *swig_type_initial[] = {
4785 &_swigt__p_FILE,
4786 &_swigt__p_char,
4787 &_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void,
4788 &_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
4789 &_swigt__p_f_p_void_p_gsl_function_fdf_p_double__int,
4790 &_swigt__p_f_p_void_p_gsl_function_p_double_double_double__int,
4791 &_swigt__p_f_p_void_p_gsl_function_p_double_p_double_p_double__int,
4792 &_swigt__p_gsl_function,
4793 &_swigt__p_gsl_function_fdf,
4794 &_swigt__p_gsl_root_fdfsolver,
4795 &_swigt__p_gsl_root_fdfsolver_type,
4796 &_swigt__p_gsl_root_fsolver,
4797 &_swigt__p_gsl_root_fsolver_type,
4798 &_swigt__p_void,
4799 };
4800  
4801 static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
4802 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
4803 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}};
4804 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}};
4805 static swig_cast_info _swigc__p_f_p_void_p_gsl_function_fdf_p_double__int[] = { {&_swigt__p_f_p_void_p_gsl_function_fdf_p_double__int, 0, 0, 0},{0, 0, 0, 0}};
4806 static swig_cast_info _swigc__p_f_p_void_p_gsl_function_p_double_double_double__int[] = { {&_swigt__p_f_p_void_p_gsl_function_p_double_double_double__int, 0, 0, 0},{0, 0, 0, 0}};
4807 static swig_cast_info _swigc__p_f_p_void_p_gsl_function_p_double_p_double_p_double__int[] = { {&_swigt__p_f_p_void_p_gsl_function_p_double_p_double_p_double__int, 0, 0, 0},{0, 0, 0, 0}};
4808 static swig_cast_info _swigc__p_gsl_function[] = { {&_swigt__p_gsl_function, 0, 0, 0},{0, 0, 0, 0}};
4809 static swig_cast_info _swigc__p_gsl_function_fdf[] = { {&_swigt__p_gsl_function_fdf, 0, 0, 0},{0, 0, 0, 0}};
4810 static swig_cast_info _swigc__p_gsl_root_fdfsolver[] = { {&_swigt__p_gsl_root_fdfsolver, 0, 0, 0},{0, 0, 0, 0}};
4811 static swig_cast_info _swigc__p_gsl_root_fdfsolver_type[] = { {&_swigt__p_gsl_root_fdfsolver_type, 0, 0, 0},{0, 0, 0, 0}};
4812 static swig_cast_info _swigc__p_gsl_root_fsolver[] = { {&_swigt__p_gsl_root_fsolver, 0, 0, 0},{0, 0, 0, 0}};
4813 static swig_cast_info _swigc__p_gsl_root_fsolver_type[] = { {&_swigt__p_gsl_root_fsolver_type, 0, 0, 0},{0, 0, 0, 0}};
4814 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
4815  
4816 static swig_cast_info *swig_cast_initial[] = {
4817 _swigc__p_FILE,
4818 _swigc__p_char,
4819 _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void,
4820 _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
4821 _swigc__p_f_p_void_p_gsl_function_fdf_p_double__int,
4822 _swigc__p_f_p_void_p_gsl_function_p_double_double_double__int,
4823 _swigc__p_f_p_void_p_gsl_function_p_double_p_double_p_double__int,
4824 _swigc__p_gsl_function,
4825 _swigc__p_gsl_function_fdf,
4826 _swigc__p_gsl_root_fdfsolver,
4827 _swigc__p_gsl_root_fdfsolver_type,
4828 _swigc__p_gsl_root_fsolver,
4829 _swigc__p_gsl_root_fsolver_type,
4830 _swigc__p_void,
4831 };
4832  
4833  
4834 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
4835  
4836 static swig_constant_info swig_constants[] = {
4837 {0,0,0,0,0,0}
4838 };
4839 #ifdef __cplusplus
4840 }
4841 #endif
4842 static swig_variable_info swig_variables[] = {
4843 { "Math::GSL::Rootsc::gsl_root_fsolver_bisection", MAGIC_CLASS _wrap_gsl_root_fsolver_bisection_set, MAGIC_CLASS _wrap_gsl_root_fsolver_bisection_get,&SWIGTYPE_p_gsl_root_fsolver_type },
4844 { "Math::GSL::Rootsc::gsl_root_fsolver_brent", MAGIC_CLASS _wrap_gsl_root_fsolver_brent_set, MAGIC_CLASS _wrap_gsl_root_fsolver_brent_get,&SWIGTYPE_p_gsl_root_fsolver_type },
4845 { "Math::GSL::Rootsc::gsl_root_fsolver_falsepos", MAGIC_CLASS _wrap_gsl_root_fsolver_falsepos_set, MAGIC_CLASS _wrap_gsl_root_fsolver_falsepos_get,&SWIGTYPE_p_gsl_root_fsolver_type },
4846 { "Math::GSL::Rootsc::gsl_root_fdfsolver_newton", MAGIC_CLASS _wrap_gsl_root_fdfsolver_newton_set, MAGIC_CLASS _wrap_gsl_root_fdfsolver_newton_get,&SWIGTYPE_p_gsl_root_fdfsolver_type },
4847 { "Math::GSL::Rootsc::gsl_root_fdfsolver_secant", MAGIC_CLASS _wrap_gsl_root_fdfsolver_secant_set, MAGIC_CLASS _wrap_gsl_root_fdfsolver_secant_get,&SWIGTYPE_p_gsl_root_fdfsolver_type },
4848 { "Math::GSL::Rootsc::gsl_root_fdfsolver_steffenson", MAGIC_CLASS _wrap_gsl_root_fdfsolver_steffenson_set, MAGIC_CLASS _wrap_gsl_root_fdfsolver_steffenson_get,&SWIGTYPE_p_gsl_root_fdfsolver_type },
4849 {0,0,0,0}
4850 };
4851 static swig_command_info swig_commands[] = {
4852 {"Math::GSL::Rootsc::gsl_error", _wrap_gsl_error},
4853 {"Math::GSL::Rootsc::gsl_stream_printf", _wrap_gsl_stream_printf},
4854 {"Math::GSL::Rootsc::gsl_strerror", _wrap_gsl_strerror},
4855 {"Math::GSL::Rootsc::gsl_set_error_handler", _wrap_gsl_set_error_handler},
4856 {"Math::GSL::Rootsc::gsl_set_error_handler_off", _wrap_gsl_set_error_handler_off},
4857 {"Math::GSL::Rootsc::gsl_set_stream_handler", _wrap_gsl_set_stream_handler},
4858 {"Math::GSL::Rootsc::gsl_set_stream", _wrap_gsl_set_stream},
4859 {"Math::GSL::Rootsc::gsl_root_fsolver_type_name_set", _wrap_gsl_root_fsolver_type_name_set},
4860 {"Math::GSL::Rootsc::gsl_root_fsolver_type_name_get", _wrap_gsl_root_fsolver_type_name_get},
4861 {"Math::GSL::Rootsc::gsl_root_fsolver_type_size_set", _wrap_gsl_root_fsolver_type_size_set},
4862 {"Math::GSL::Rootsc::gsl_root_fsolver_type_size_get", _wrap_gsl_root_fsolver_type_size_get},
4863 {"Math::GSL::Rootsc::gsl_root_fsolver_type_set_set", _wrap_gsl_root_fsolver_type_set_set},
4864 {"Math::GSL::Rootsc::gsl_root_fsolver_type_set_get", _wrap_gsl_root_fsolver_type_set_get},
4865 {"Math::GSL::Rootsc::gsl_root_fsolver_type_iterate_set", _wrap_gsl_root_fsolver_type_iterate_set},
4866 {"Math::GSL::Rootsc::gsl_root_fsolver_type_iterate_get", _wrap_gsl_root_fsolver_type_iterate_get},
4867 {"Math::GSL::Rootsc::new_gsl_root_fsolver_type", _wrap_new_gsl_root_fsolver_type},
4868 {"Math::GSL::Rootsc::delete_gsl_root_fsolver_type", _wrap_delete_gsl_root_fsolver_type},
4869 {"Math::GSL::Rootsc::delete_gsl_root_fsolver", _wrap_delete_gsl_root_fsolver},
4870 {"Math::GSL::Rootsc::gsl_root_fsolver_type_set", _wrap_gsl_root_fsolver_type_set},
4871 {"Math::GSL::Rootsc::gsl_root_fsolver_type_get", _wrap_gsl_root_fsolver_type_get},
4872 {"Math::GSL::Rootsc::gsl_root_fsolver_function_set", _wrap_gsl_root_fsolver_function_set},
4873 {"Math::GSL::Rootsc::gsl_root_fsolver_function_get", _wrap_gsl_root_fsolver_function_get},
4874 {"Math::GSL::Rootsc::gsl_root_fsolver_root_set", _wrap_gsl_root_fsolver_root_set},
4875 {"Math::GSL::Rootsc::gsl_root_fsolver_root_get", _wrap_gsl_root_fsolver_root_get},
4876 {"Math::GSL::Rootsc::gsl_root_fsolver_x_lower_set", _wrap_gsl_root_fsolver_x_lower_set},
4877 {"Math::GSL::Rootsc::gsl_root_fsolver_x_lower_get", _wrap_gsl_root_fsolver_x_lower_get},
4878 {"Math::GSL::Rootsc::gsl_root_fsolver_x_upper_set", _wrap_gsl_root_fsolver_x_upper_set},
4879 {"Math::GSL::Rootsc::gsl_root_fsolver_x_upper_get", _wrap_gsl_root_fsolver_x_upper_get},
4880 {"Math::GSL::Rootsc::gsl_root_fsolver_state_set", _wrap_gsl_root_fsolver_state_set},
4881 {"Math::GSL::Rootsc::gsl_root_fsolver_state_get", _wrap_gsl_root_fsolver_state_get},
4882 {"Math::GSL::Rootsc::new_gsl_root_fsolver", _wrap_new_gsl_root_fsolver},
4883 {"Math::GSL::Rootsc::gsl_root_fdfsolver_type_name_set", _wrap_gsl_root_fdfsolver_type_name_set},
4884 {"Math::GSL::Rootsc::gsl_root_fdfsolver_type_name_get", _wrap_gsl_root_fdfsolver_type_name_get},
4885 {"Math::GSL::Rootsc::gsl_root_fdfsolver_type_size_set", _wrap_gsl_root_fdfsolver_type_size_set},
4886 {"Math::GSL::Rootsc::gsl_root_fdfsolver_type_size_get", _wrap_gsl_root_fdfsolver_type_size_get},
4887 {"Math::GSL::Rootsc::gsl_root_fdfsolver_type_set_set", _wrap_gsl_root_fdfsolver_type_set_set},
4888 {"Math::GSL::Rootsc::gsl_root_fdfsolver_type_set_get", _wrap_gsl_root_fdfsolver_type_set_get},
4889 {"Math::GSL::Rootsc::gsl_root_fdfsolver_type_iterate_set", _wrap_gsl_root_fdfsolver_type_iterate_set},
4890 {"Math::GSL::Rootsc::gsl_root_fdfsolver_type_iterate_get", _wrap_gsl_root_fdfsolver_type_iterate_get},
4891 {"Math::GSL::Rootsc::new_gsl_root_fdfsolver_type", _wrap_new_gsl_root_fdfsolver_type},
4892 {"Math::GSL::Rootsc::delete_gsl_root_fdfsolver_type", _wrap_delete_gsl_root_fdfsolver_type},
4893 {"Math::GSL::Rootsc::delete_gsl_root_fdfsolver", _wrap_delete_gsl_root_fdfsolver},
4894 {"Math::GSL::Rootsc::gsl_root_fdfsolver_type_set", _wrap_gsl_root_fdfsolver_type_set},
4895 {"Math::GSL::Rootsc::gsl_root_fdfsolver_type_get", _wrap_gsl_root_fdfsolver_type_get},
4896 {"Math::GSL::Rootsc::gsl_root_fdfsolver_fdf_set", _wrap_gsl_root_fdfsolver_fdf_set},
4897 {"Math::GSL::Rootsc::gsl_root_fdfsolver_fdf_get", _wrap_gsl_root_fdfsolver_fdf_get},
4898 {"Math::GSL::Rootsc::gsl_root_fdfsolver_root_set", _wrap_gsl_root_fdfsolver_root_set},
4899 {"Math::GSL::Rootsc::gsl_root_fdfsolver_root_get", _wrap_gsl_root_fdfsolver_root_get},
4900 {"Math::GSL::Rootsc::gsl_root_fdfsolver_state_set", _wrap_gsl_root_fdfsolver_state_set},
4901 {"Math::GSL::Rootsc::gsl_root_fdfsolver_state_get", _wrap_gsl_root_fdfsolver_state_get},
4902 {"Math::GSL::Rootsc::new_gsl_root_fdfsolver", _wrap_new_gsl_root_fdfsolver},
4903 {"Math::GSL::Rootsc::gsl_root_fsolver_alloc", _wrap_gsl_root_fsolver_alloc},
4904 {"Math::GSL::Rootsc::gsl_root_fsolver_free", _wrap_gsl_root_fsolver_free},
4905 {"Math::GSL::Rootsc::gsl_root_fsolver_set", _wrap_gsl_root_fsolver_set},
4906 {"Math::GSL::Rootsc::gsl_root_fsolver_iterate", _wrap_gsl_root_fsolver_iterate},
4907 {"Math::GSL::Rootsc::gsl_root_fsolver_name", _wrap_gsl_root_fsolver_name},
4908 {"Math::GSL::Rootsc::gsl_root_fsolver_root", _wrap_gsl_root_fsolver_root},
4909 {"Math::GSL::Rootsc::gsl_root_fsolver_x_lower", _wrap_gsl_root_fsolver_x_lower},
4910 {"Math::GSL::Rootsc::gsl_root_fsolver_x_upper", _wrap_gsl_root_fsolver_x_upper},
4911 {"Math::GSL::Rootsc::gsl_root_fdfsolver_alloc", _wrap_gsl_root_fdfsolver_alloc},
4912 {"Math::GSL::Rootsc::gsl_root_fdfsolver_set", _wrap_gsl_root_fdfsolver_set},
4913 {"Math::GSL::Rootsc::gsl_root_fdfsolver_iterate", _wrap_gsl_root_fdfsolver_iterate},
4914 {"Math::GSL::Rootsc::gsl_root_fdfsolver_free", _wrap_gsl_root_fdfsolver_free},
4915 {"Math::GSL::Rootsc::gsl_root_fdfsolver_name", _wrap_gsl_root_fdfsolver_name},
4916 {"Math::GSL::Rootsc::gsl_root_fdfsolver_root", _wrap_gsl_root_fdfsolver_root},
4917 {"Math::GSL::Rootsc::gsl_root_test_interval", _wrap_gsl_root_test_interval},
4918 {"Math::GSL::Rootsc::gsl_root_test_residual", _wrap_gsl_root_test_residual},
4919 {"Math::GSL::Rootsc::gsl_root_test_delta", _wrap_gsl_root_test_delta},
4920 {0,0}
4921 };
4922 /* -----------------------------------------------------------------------------
4923 * Type initialization:
4924 * This problem is tough by the requirement that no dynamic
4925 * memory is used. Also, since swig_type_info structures store pointers to
4926 * swig_cast_info structures and swig_cast_info structures store pointers back
4927 * to swig_type_info structures, we need some lookup code at initialization.
4928 * The idea is that swig generates all the structures that are needed.
4929 * The runtime then collects these partially filled structures.
4930 * The SWIG_InitializeModule function takes these initial arrays out of
4931 * swig_module, and does all the lookup, filling in the swig_module.types
4932 * array with the correct data and linking the correct swig_cast_info
4933 * structures together.
4934 *
4935 * The generated swig_type_info structures are assigned statically to an initial
4936 * array. We just loop through that array, and handle each type individually.
4937 * First we lookup if this type has been already loaded, and if so, use the
4938 * loaded structure instead of the generated one. Then we have to fill in the
4939 * cast linked list. The cast data is initially stored in something like a
4940 * two-dimensional array. Each row corresponds to a type (there are the same
4941 * number of rows as there are in the swig_type_initial array). Each entry in
4942 * a column is one of the swig_cast_info structures for that type.
4943 * The cast_initial array is actually an array of arrays, because each row has
4944 * a variable number of columns. So to actually build the cast linked list,
4945 * we find the array of casts associated with the type, and loop through it
4946 * adding the casts to the list. The one last trick we need to do is making
4947 * sure the type pointer in the swig_cast_info struct is correct.
4948 *
4949 * First off, we lookup the cast->type name to see if it is already loaded.
4950 * There are three cases to handle:
4951 * 1) If the cast->type has already been loaded AND the type we are adding
4952 * casting info to has not been loaded (it is in this module), THEN we
4953 * replace the cast->type pointer with the type pointer that has already
4954 * been loaded.
4955 * 2) If BOTH types (the one we are adding casting info to, and the
4956 * cast->type) are loaded, THEN the cast info has already been loaded by
4957 * the previous module so we just ignore it.
4958 * 3) Finally, if cast->type has not already been loaded, then we add that
4959 * swig_cast_info to the linked list (because the cast->type) pointer will
4960 * be correct.
4961 * ----------------------------------------------------------------------------- */
4962  
4963 #ifdef __cplusplus
4964 extern "C" {
4965 #if 0
4966 } /* c-mode */
4967 #endif
4968 #endif
4969  
4970 #if 0
4971 #define SWIGRUNTIME_DEBUG
4972 #endif
4973  
4974 #ifndef SWIG_INIT_CLIENT_DATA_TYPE
4975 #define SWIG_INIT_CLIENT_DATA_TYPE void *
4976 #endif
4977  
4978 SWIGRUNTIME void
4979 0 SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
4980 size_t i;
4981 swig_module_info *module_head, *iter;
4982 int init;
4983
4984 /* check to see if the circular list has been setup, if not, set it up */
4985 0 ▶ if (swig_module.next==0) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next==0) { 0 0 0
4986 /* Initialize the swig_module */
4987 0 swig_module.type_initial = swig_type_initial;
4988 0 swig_module.cast_initial = swig_cast_initial;
4989 0 swig_module.next = &swig_module;
4990 0 init = 1;
4991 } else {
4992 0 init = 0;
4993 }
4994
4995 /* Try and load any already created modules */
4996 0 module_head = SWIG_GetModule(clientdata);
4997 0 ▶ if (!module_head) {
Branch: 1 branch
BranchTrueFalseTotal
if (!module_head) { 0 0 0
4998 /* This is the first module loaded for this interpreter */
4999 /* so set the swig module into the interpreter */
5000 0 SWIG_SetModule(clientdata, &swig_module);
5001 } else {
5002 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
5003 0 iter=module_head;
5004 do {
5005 0 ▶ if (iter==&swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter==&swig_module) { 0 0 0
5006 /* Our module is already in the list, so there's nothing more to do. */
5007 0 return;
5008 }
5009 0 iter=iter->next;
5010 0 ▶ } while (iter!= module_head);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter!= module_head); 0 0 0
5011
5012 /* otherwise we must add our module into the list */
5013 0 swig_module.next = module_head->next;
5014 0 module_head->next = &swig_module;
5015 }
5016
5017 /* When multiple interpreters are used, a module could have already been initialized in
5018 a different interpreter, but not yet have a pointer in this interpreter.
5019 In this case, we do not want to continue adding types... everything should be
5020 set up already */
5021 0 ▶ if (init == 0) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init == 0) return; 0 0 0
5022
5023 /* Now work on filling in swig_module.types */
5024 #ifdef SWIGRUNTIME_DEBUG
5025 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
5026 #endif
5027 0 ▶ for (i = 0; i < swig_module.size; ++i) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; ++i) { 0 0 0
5028 0 swig_type_info *type = 0;
5029 swig_type_info *ret;
5030 swig_cast_info *cast;
5031
5032 #ifdef SWIGRUNTIME_DEBUG
5033 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5034 #endif
5035
5036 /* if there is another module already loaded */
5037 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
5038 0 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
5039 }
5040 0 ▶ if (type) {
Branch: 1 branch
BranchTrueFalseTotal
if (type) { 0 0 0
5041 /* Overwrite clientdata field */
5042 #ifdef SWIGRUNTIME_DEBUG
5043 printf("SWIG_InitializeModule: found type %s\n", type->name);
5044 #endif
5045 0 ▶ if (swig_module.type_initial[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.type_initial[i]->clientdata) { 0 0 0
5046 0 type->clientdata = swig_module.type_initial[i]->clientdata;
5047 #ifdef SWIGRUNTIME_DEBUG
5048 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
5049 #endif
5050 }
5051 } else {
5052 0 type = swig_module.type_initial[i];
5053 }
5054
5055 /* Insert casting types */
5056 0 cast = swig_module.cast_initial[i];
5057 0 ▶ while (cast->type) {
Branch: 1 branch
BranchTrueFalseTotal
while (cast->type) { 0 0 0
5058 /* Don't need to add information already in the list */
5059 0 ret = 0;
5060 #ifdef SWIGRUNTIME_DEBUG
5061 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
5062 #endif
5063 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
5064 0 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
5065 #ifdef SWIGRUNTIME_DEBUG
5066 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
5067 #endif
5068 }
5069 0 ▶ if (ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (ret) { 0 0 0
5070 0 ▶ if (type == swig_module.type_initial[i]) {
Branch: 1 branch
BranchTrueFalseTotal
if (type == swig_module.type_initial[i]) { 0 0 0
5071 #ifdef SWIGRUNTIME_DEBUG
5072 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
5073 #endif
5074 0 cast->type = ret;
5075 0 ret = 0;
5076 } else {
5077 /* Check for casting already in the list */
5078 0 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
5079 #ifdef SWIGRUNTIME_DEBUG
5080 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
5081 #endif
5082 0 ▶ if (!ocast) ret = 0;
Branch: 1 branch
BranchTrueFalseTotal
if (!ocast) ret = 0; 0 0 0
5083 }
5084 }
5085
5086 0 ▶ if (!ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (!ret) { 0 0 0
5087 #ifdef SWIGRUNTIME_DEBUG
5088 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
5089 #endif
5090 0 ▶ if (type->cast) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->cast) { 0 0 0
5091 0 type->cast->prev = cast;
5092 0 cast->next = type->cast;
5093 }
5094 0 type->cast = cast;
5095 }
5096 0 cast++;
5097 }
5098 /* Set entry in modules->types array equal to the type */
5099 0 swig_module.types[i] = type;
5100 }
5101 0 swig_module.types[i] = 0;
5102
5103 #ifdef SWIGRUNTIME_DEBUG
5104 printf("**** SWIG_InitializeModule: Cast List ******\n");
5105 for (i = 0; i < swig_module.size; ++i) {
5106 int j = 0;
5107 swig_cast_info *cast = swig_module.cast_initial[i];
5108 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5109 while (cast->type) {
5110 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
5111 cast++;
5112 ++j;
5113 }
5114 printf("---- Total casts: %d\n",j);
5115 }
5116 printf("**** SWIG_InitializeModule: Cast List ******\n");
5117 #endif
5118 }
5119  
5120 /* This function will propagate the clientdata field of type to
5121 * any new swig_type_info structures that have been added into the list
5122 * of equivalent types. It is like calling
5123 * SWIG_TypeClientData(type, clientdata) a second time.
5124 */
5125 SWIGRUNTIME void
5126 0 SWIG_PropagateClientData(void) {
5127 size_t i;
5128 swig_cast_info *equiv;
5129 static int init_run = 0;
5130
5131 0 ▶ if (init_run) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init_run) return; 0 0 0
5132 0 init_run = 1;
5133
5134 0 ▶ for (i = 0; i < swig_module.size; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; i++) { 0 0 0
5135 0 ▶ if (swig_module.types[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.types[i]->clientdata) { 0 0 0
5136 0 equiv = swig_module.types[i]->cast;
5137 0 ▶ while (equiv) {
Branch: 1 branch
BranchTrueFalseTotal
while (equiv) { 0 0 0
5138 0 ▶ if (!equiv->converter) {
Branch: 1 branch
BranchTrueFalseTotal
if (!equiv->converter) { 0 0 0
5139 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
5140 0 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
5141 }
5142 0 equiv = equiv->next;
5143 }
5144 }
5145 }
5146 }
5147  
5148 #ifdef __cplusplus
5149 #if 0
5150 {
5151 /* c-mode */
5152 #endif
5153 }
5154 #endif
5155  
5156  
5157  
5158 #if defined(__cplusplus) && ! defined(XSPROTO)
5159 extern "C"
5160 #endif
5161  
5162 0 XS(SWIG_init) {
5163 0 dXSARGS;
5164 int i;
5165 (void)items;
5166
5167 0 SWIG_InitializeModule(0);
5168
5169 /* Install commands */
5170 0 ▶ for (i = 0; swig_commands[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_commands[i].name; i++) { 0 0 0
5171 /* Casts only needed for Perl < 5.10. */
5172 #ifdef __cplusplus
5173 newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
5174 #else
5175 0 newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
5176 #endif
5177 }
5178
5179 /* Install variables */
5180 0 ▶ for (i = 0; swig_variables[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_variables[i].name; i++) { 0 0 0
5181 SV *sv;
5182 0 sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
5183 0 ▶ if (swig_variables[i].type) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_variables[i].type) { 0 0 0
5184 0 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
5185 } else {
5186 0 sv_setiv(sv,(IV) 0);
5187 }
5188 0 swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
5189 }
5190
5191 /* Install constant */
5192 0 ▶ for (i = 0; swig_constants[i].type; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_constants[i].type; i++) { 0 0 0
5193 SV *sv;
5194 0 sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
5195 0 switch(swig_constants[i].type) {
5196 0 case SWIG_INT:
5197 0 sv_setiv(sv, (IV) swig_constants[i].lvalue);
5198 0 break;
5199 0 case SWIG_FLOAT:
5200 0 sv_setnv(sv, (double) swig_constants[i].dvalue);
5201 0 break;
5202 0 case SWIG_STRING:
5203 0 sv_setpv(sv, (const char *) swig_constants[i].pvalue);
5204 0 break;
5205 0 case SWIG_POINTER:
5206 0 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
5207 0 break;
5208 0 case SWIG_BINARY:
5209 0 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
5210 0 break;
5211 0 default:
5212 0 break;
5213 }
5214 0 SvREADONLY_on(sv);
5215 }
5216
5217 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5218 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_VERSION", TRUE | 0x2 | GV_ADDMULTI);
5219 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(2.8)));
5220 0 SvREADONLY_on(sv);
5221 } while(0) /*@SWIG@*/;
5222 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5223 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MAJOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
5224 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(2)));
5225 0 SvREADONLY_on(sv);
5226 } while(0) /*@SWIG@*/;
5227 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5228 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MINOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
5229 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(8)));
5230 0 SvREADONLY_on(sv);
5231 } while(0) /*@SWIG@*/;
5232 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5233 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_POSZERO", TRUE | 0x2 | GV_ADDMULTI);
5234 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((+0.0))));
5235 0 SvREADONLY_on(sv);
5236 } while(0) /*@SWIG@*/;
5237 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5238 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_NEGZERO", TRUE | 0x2 | GV_ADDMULTI);
5239 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((-0.0))));
5240 0 SvREADONLY_on(sv);
5241 } while(0) /*@SWIG@*/;
5242 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5243 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_SUCCESS", TRUE | 0x2 | GV_ADDMULTI);
5244 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_SUCCESS)));
5245 0 SvREADONLY_on(sv);
5246 } while(0) /*@SWIG@*/;
5247 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5248 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_FAILURE", TRUE | 0x2 | GV_ADDMULTI);
5249 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_FAILURE)));
5250 0 SvREADONLY_on(sv);
5251 } while(0) /*@SWIG@*/;
5252 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5253 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_CONTINUE", TRUE | 0x2 | GV_ADDMULTI);
5254 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_CONTINUE)));
5255 0 SvREADONLY_on(sv);
5256 } while(0) /*@SWIG@*/;
5257 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5258 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDOM", TRUE | 0x2 | GV_ADDMULTI);
5259 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDOM)));
5260 0 SvREADONLY_on(sv);
5261 } while(0) /*@SWIG@*/;
5262 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5263 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERANGE", TRUE | 0x2 | GV_ADDMULTI);
5264 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERANGE)));
5265 0 SvREADONLY_on(sv);
5266 } while(0) /*@SWIG@*/;
5267 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5268 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAULT", TRUE | 0x2 | GV_ADDMULTI);
5269 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAULT)));
5270 0 SvREADONLY_on(sv);
5271 } while(0) /*@SWIG@*/;
5272 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5273 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EINVAL", TRUE | 0x2 | GV_ADDMULTI);
5274 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EINVAL)));
5275 0 SvREADONLY_on(sv);
5276 } while(0) /*@SWIG@*/;
5277 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5278 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAILED", TRUE | 0x2 | GV_ADDMULTI);
5279 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAILED)));
5280 0 SvREADONLY_on(sv);
5281 } while(0) /*@SWIG@*/;
5282 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5283 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFACTOR", TRUE | 0x2 | GV_ADDMULTI);
5284 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFACTOR)));
5285 0 SvREADONLY_on(sv);
5286 } while(0) /*@SWIG@*/;
5287 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5288 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESANITY", TRUE | 0x2 | GV_ADDMULTI);
5289 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESANITY)));
5290 0 SvREADONLY_on(sv);
5291 } while(0) /*@SWIG@*/;
5292 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5293 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOMEM", TRUE | 0x2 | GV_ADDMULTI);
5294 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOMEM)));
5295 0 SvREADONLY_on(sv);
5296 } while(0) /*@SWIG@*/;
5297 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5298 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADFUNC", TRUE | 0x2 | GV_ADDMULTI);
5299 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADFUNC)));
5300 0 SvREADONLY_on(sv);
5301 } while(0) /*@SWIG@*/;
5302 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5303 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERUNAWAY", TRUE | 0x2 | GV_ADDMULTI);
5304 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERUNAWAY)));
5305 0 SvREADONLY_on(sv);
5306 } while(0) /*@SWIG@*/;
5307 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5308 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EMAXITER", TRUE | 0x2 | GV_ADDMULTI);
5309 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EMAXITER)));
5310 0 SvREADONLY_on(sv);
5311 } while(0) /*@SWIG@*/;
5312 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5313 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EZERODIV", TRUE | 0x2 | GV_ADDMULTI);
5314 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EZERODIV)));
5315 0 SvREADONLY_on(sv);
5316 } while(0) /*@SWIG@*/;
5317 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5318 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADTOL", TRUE | 0x2 | GV_ADDMULTI);
5319 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADTOL)));
5320 0 SvREADONLY_on(sv);
5321 } while(0) /*@SWIG@*/;
5322 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5323 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOL", TRUE | 0x2 | GV_ADDMULTI);
5324 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOL)));
5325 0 SvREADONLY_on(sv);
5326 } while(0) /*@SWIG@*/;
5327 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5328 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNDRFLW", TRUE | 0x2 | GV_ADDMULTI);
5329 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNDRFLW)));
5330 0 SvREADONLY_on(sv);
5331 } while(0) /*@SWIG@*/;
5332 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5333 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOVRFLW", TRUE | 0x2 | GV_ADDMULTI);
5334 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOVRFLW)));
5335 0 SvREADONLY_on(sv);
5336 } while(0) /*@SWIG@*/;
5337 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5338 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ELOSS", TRUE | 0x2 | GV_ADDMULTI);
5339 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ELOSS)));
5340 0 SvREADONLY_on(sv);
5341 } while(0) /*@SWIG@*/;
5342 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5343 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EROUND", TRUE | 0x2 | GV_ADDMULTI);
5344 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EROUND)));
5345 0 SvREADONLY_on(sv);
5346 } while(0) /*@SWIG@*/;
5347 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5348 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADLEN", TRUE | 0x2 | GV_ADDMULTI);
5349 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADLEN)));
5350 0 SvREADONLY_on(sv);
5351 } while(0) /*@SWIG@*/;
5352 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5353 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOTSQR", TRUE | 0x2 | GV_ADDMULTI);
5354 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOTSQR)));
5355 0 SvREADONLY_on(sv);
5356 } while(0) /*@SWIG@*/;
5357 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5358 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESING", TRUE | 0x2 | GV_ADDMULTI);
5359 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESING)));
5360 0 SvREADONLY_on(sv);
5361 } while(0) /*@SWIG@*/;
5362 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5363 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDIVERGE", TRUE | 0x2 | GV_ADDMULTI);
5364 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDIVERGE)));
5365 0 SvREADONLY_on(sv);
5366 } while(0) /*@SWIG@*/;
5367 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5368 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNSUP", TRUE | 0x2 | GV_ADDMULTI);
5369 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNSUP)));
5370 0 SvREADONLY_on(sv);
5371 } while(0) /*@SWIG@*/;
5372 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5373 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNIMPL", TRUE | 0x2 | GV_ADDMULTI);
5374 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNIMPL)));
5375 0 SvREADONLY_on(sv);
5376 } while(0) /*@SWIG@*/;
5377 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5378 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ECACHE", TRUE | 0x2 | GV_ADDMULTI);
5379 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ECACHE)));
5380 0 SvREADONLY_on(sv);
5381 } while(0) /*@SWIG@*/;
5382 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5383 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETABLE", TRUE | 0x2 | GV_ADDMULTI);
5384 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETABLE)));
5385 0 SvREADONLY_on(sv);
5386 } while(0) /*@SWIG@*/;
5387 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5388 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROG", TRUE | 0x2 | GV_ADDMULTI);
5389 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROG)));
5390 0 SvREADONLY_on(sv);
5391 } while(0) /*@SWIG@*/;
5392 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5393 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROGJ", TRUE | 0x2 | GV_ADDMULTI);
5394 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROGJ)));
5395 0 SvREADONLY_on(sv);
5396 } while(0) /*@SWIG@*/;
5397 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5398 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLF", TRUE | 0x2 | GV_ADDMULTI);
5399 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLF)));
5400 0 SvREADONLY_on(sv);
5401 } while(0) /*@SWIG@*/;
5402 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5403 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLX", TRUE | 0x2 | GV_ADDMULTI);
5404 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLX)));
5405 0 SvREADONLY_on(sv);
5406 } while(0) /*@SWIG@*/;
5407 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5408 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLG", TRUE | 0x2 | GV_ADDMULTI);
5409 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLG)));
5410 0 SvREADONLY_on(sv);
5411 } while(0) /*@SWIG@*/;
5412 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5413 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOF", TRUE | 0x2 | GV_ADDMULTI);
5414 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOF)));
5415 0 SvREADONLY_on(sv);
5416 } while(0) /*@SWIG@*/;
5417 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_root_fsolver_type, (void*) "Math::GSL::Roots::gsl_root_fsolver_type");
5418 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_root_fsolver, (void*) "Math::GSL::Roots::gsl_root_fsolver");
5419 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_root_fdfsolver_type, (void*) "Math::GSL::Roots::gsl_root_fdfsolver_type");
5420 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_root_fdfsolver, (void*) "Math::GSL::Roots::gsl_root_fdfsolver");
5421 0 ST(0) = &PL_sv_yes;
5422 0 XSRETURN(1);
5423 }
5424  
« xs/Randist_wrap.2.8.c ↑ Summary xs/Rstat_wrap.2.8.c »