xs/RNG_wrap.2.8.c

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