| 1 |
|
| /* ---------------------------------------------------------------------------- |
| 2 |
|
| * This file was automatically generated by SWIG (https://www.swig.org). |
| 3 |
|
| * Version 4.2.0 |
| 4 |
|
| * |
| 5 |
|
| * Do not make changes to this file unless you know what you are doing - modify |
| 6 |
|
| * the SWIG interface file instead. |
| 7 |
|
| * ----------------------------------------------------------------------------- */ |
| 8 |
|
| |
| 9 |
|
| |
| 10 |
|
| #define SWIG_VERSION 0x040200 |
| 11 |
|
| #define SWIGPERL |
| 12 |
|
| #define SWIG_CASTRANK_MODE |
| 13 |
|
| |
| 14 |
|
| /* ----------------------------------------------------------------------------- |
| 15 |
|
| * This section contains generic SWIG labels for method/variable |
| 16 |
|
| * declarations/attributes, and other compiler dependent labels. |
| 17 |
|
| * ----------------------------------------------------------------------------- */ |
| 18 |
|
| |
| 19 |
|
| /* template workaround for compilers that cannot correctly implement the C++ standard */ |
| 20 |
|
| #ifndef SWIGTEMPLATEDISAMBIGUATOR |
| 21 |
|
| # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) |
| 22 |
|
| # define SWIGTEMPLATEDISAMBIGUATOR template |
| 23 |
|
| # elif defined(__HP_aCC) |
| 24 |
|
| /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ |
| 25 |
|
| /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ |
| 26 |
|
| # define SWIGTEMPLATEDISAMBIGUATOR template |
| 27 |
|
| # else |
| 28 |
|
| # define SWIGTEMPLATEDISAMBIGUATOR |
| 29 |
|
| # endif |
| 30 |
|
| #endif |
| 31 |
|
| |
| 32 |
|
| /* inline attribute */ |
| 33 |
|
| #ifndef SWIGINLINE |
| 34 |
|
| # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) |
| 35 |
|
| # define SWIGINLINE inline |
| 36 |
|
| # else |
| 37 |
|
| # define SWIGINLINE |
| 38 |
|
| # endif |
| 39 |
|
| #endif |
| 40 |
|
| |
| 41 |
|
| /* attribute recognised by some compilers to avoid 'unused' warnings */ |
| 42 |
|
| #ifndef SWIGUNUSED |
| 43 |
|
| # if defined(__GNUC__) |
| 44 |
|
| # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) |
| 45 |
|
| # define SWIGUNUSED __attribute__ ((__unused__)) |
| 46 |
|
| # else |
| 47 |
|
| # define SWIGUNUSED |
| 48 |
|
| # endif |
| 49 |
|
| # elif defined(__ICC) |
| 50 |
|
| # define SWIGUNUSED __attribute__ ((__unused__)) |
| 51 |
|
| # else |
| 52 |
|
| # define SWIGUNUSED |
| 53 |
|
| # endif |
| 54 |
|
| #endif |
| 55 |
|
| |
| 56 |
|
| #ifndef SWIG_MSC_UNSUPPRESS_4505 |
| 57 |
|
| # if defined(_MSC_VER) |
| 58 |
|
| # pragma warning(disable : 4505) /* unreferenced local function has been removed */ |
| 59 |
|
| # endif |
| 60 |
|
| #endif |
| 61 |
|
| |
| 62 |
|
| #ifndef SWIGUNUSEDPARM |
| 63 |
|
| # ifdef __cplusplus |
| 64 |
|
| # define SWIGUNUSEDPARM(p) |
| 65 |
|
| # else |
| 66 |
|
| # define SWIGUNUSEDPARM(p) p SWIGUNUSED |
| 67 |
|
| # endif |
| 68 |
|
| #endif |
| 69 |
|
| |
| 70 |
|
| /* internal SWIG method */ |
| 71 |
|
| #ifndef SWIGINTERN |
| 72 |
|
| # define SWIGINTERN static SWIGUNUSED |
| 73 |
|
| #endif |
| 74 |
|
| |
| 75 |
|
| /* internal inline SWIG method */ |
| 76 |
|
| #ifndef SWIGINTERNINLINE |
| 77 |
|
| # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE |
| 78 |
|
| #endif |
| 79 |
|
| |
| 80 |
|
| /* exporting methods */ |
| 81 |
|
| #if defined(__GNUC__) |
| 82 |
|
| # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) |
| 83 |
|
| # ifndef GCC_HASCLASSVISIBILITY |
| 84 |
|
| # define GCC_HASCLASSVISIBILITY |
| 85 |
|
| # endif |
| 86 |
|
| # endif |
| 87 |
|
| #endif |
| 88 |
|
| |
| 89 |
|
| #ifndef SWIGEXPORT |
| 90 |
|
| # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
| 91 |
|
| # if defined(STATIC_LINKED) |
| 92 |
|
| # define SWIGEXPORT |
| 93 |
|
| # else |
| 94 |
|
| # define SWIGEXPORT __declspec(dllexport) |
| 95 |
|
| # endif |
| 96 |
|
| # else |
| 97 |
|
| # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
| 98 |
|
| # define SWIGEXPORT __attribute__ ((visibility("default"))) |
| 99 |
|
| # else |
| 100 |
|
| # define SWIGEXPORT |
| 101 |
|
| # endif |
| 102 |
|
| # endif |
| 103 |
|
| #endif |
| 104 |
|
| |
| 105 |
|
| /* calling conventions for Windows */ |
| 106 |
|
| #ifndef SWIGSTDCALL |
| 107 |
|
| # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
| 108 |
|
| # define SWIGSTDCALL __stdcall |
| 109 |
|
| # else |
| 110 |
|
| # define SWIGSTDCALL |
| 111 |
|
| # endif |
| 112 |
|
| #endif |
| 113 |
|
| |
| 114 |
|
| /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
| 115 |
|
| #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) |
| 116 |
|
| # define _CRT_SECURE_NO_DEPRECATE |
| 117 |
|
| #endif |
| 118 |
|
| |
| 119 |
|
| /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ |
| 120 |
|
| #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) |
| 121 |
|
| # define _SCL_SECURE_NO_DEPRECATE |
| 122 |
|
| #endif |
| 123 |
|
| |
| 124 |
|
| /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ |
| 125 |
|
| #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) |
| 126 |
|
| # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 |
| 127 |
|
| #endif |
| 128 |
|
| |
| 129 |
|
| /* Intel's compiler complains if a variable which was never initialised is |
| 130 |
|
| * cast to void, which is a common idiom which we use to indicate that we |
| 131 |
|
| * are aware a variable isn't used. So we just silence that warning. |
| 132 |
|
| * See: https://github.com/swig/swig/issues/192 for more discussion. |
| 133 |
|
| */ |
| 134 |
|
| #ifdef __INTEL_COMPILER |
| 135 |
|
| # pragma warning disable 592 |
| 136 |
|
| #endif |
| 137 |
|
| |
| 138 |
|
| #if __cplusplus >=201103L |
| 139 |
|
| # define SWIG_NULLPTR nullptr |
| 140 |
|
| #else |
| 141 |
|
| # define SWIG_NULLPTR NULL |
| 142 |
|
| #endif |
| 143 |
|
| |
| 144 |
|
| /* ----------------------------------------------------------------------------- |
| 145 |
|
| * swigrun.swg |
| 146 |
|
| * |
| 147 |
|
| * This file contains generic C API SWIG runtime support for pointer |
| 148 |
|
| * type checking. |
| 149 |
|
| * ----------------------------------------------------------------------------- */ |
| 150 |
|
| |
| 151 |
|
| /* This should only be incremented when either the layout of swig_type_info changes, |
| 152 |
|
| or for whatever reason, the runtime changes incompatibly */ |
| 153 |
|
| #define SWIG_RUNTIME_VERSION "4" |
| 154 |
|
| |
| 155 |
|
| /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
| 156 |
|
| #ifdef SWIG_TYPE_TABLE |
| 157 |
|
| # define SWIG_QUOTE_STRING(x) #x |
| 158 |
|
| # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) |
| 159 |
|
| # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) |
| 160 |
|
| #else |
| 161 |
|
| # define SWIG_TYPE_TABLE_NAME |
| 162 |
|
| #endif |
| 163 |
|
| |
| 164 |
|
| /* |
| 165 |
|
| You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for |
| 166 |
|
| creating a static or dynamic library from the SWIG runtime code. |
| 167 |
|
| In 99.9% of the cases, SWIG just needs to declare them as 'static'. |
| 168 |
|
| |
| 169 |
|
| But only do this if strictly necessary, ie, if you have problems |
| 170 |
|
| with your compiler or suchlike. |
| 171 |
|
| */ |
| 172 |
|
| |
| 173 |
|
| #ifndef SWIGRUNTIME |
| 174 |
|
| # define SWIGRUNTIME SWIGINTERN |
| 175 |
|
| #endif |
| 176 |
|
| |
| 177 |
|
| #ifndef SWIGRUNTIMEINLINE |
| 178 |
|
| # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
| 179 |
|
| #endif |
| 180 |
|
| |
| 181 |
|
| /* Generic buffer size */ |
| 182 |
|
| #ifndef SWIG_BUFFER_SIZE |
| 183 |
|
| # define SWIG_BUFFER_SIZE 1024 |
| 184 |
|
| #endif |
| 185 |
|
| |
| 186 |
|
| /* Flags for pointer conversions */ |
| 187 |
|
| #define SWIG_POINTER_DISOWN 0x1 |
| 188 |
|
| #define SWIG_CAST_NEW_MEMORY 0x2 |
| 189 |
|
| #define SWIG_POINTER_NO_NULL 0x4 |
| 190 |
|
| #define SWIG_POINTER_CLEAR 0x8 |
| 191 |
|
| #define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN) |
| 192 |
|
| |
| 193 |
|
| /* Flags for new pointer objects */ |
| 194 |
|
| #define SWIG_POINTER_OWN 0x1 |
| 195 |
|
| |
| 196 |
|
| |
| 197 |
|
| /* |
| 198 |
|
| Flags/methods for returning states. |
| 199 |
|
| |
| 200 |
|
| The SWIG conversion methods, as ConvertPtr, return an integer |
| 201 |
|
| that tells if the conversion was successful or not. And if not, |
| 202 |
|
| an error code can be returned (see swigerrors.swg for the codes). |
| 203 |
|
| |
| 204 |
|
| Use the following macros/flags to set or process the returning |
| 205 |
|
| states. |
| 206 |
|
| |
| 207 |
|
| In old versions of SWIG, code such as the following was usually written: |
| 208 |
|
| |
| 209 |
|
| if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { |
| 210 |
|
| // success code |
| 211 |
|
| } else { |
| 212 |
|
| //fail code |
| 213 |
|
| } |
| 214 |
|
| |
| 215 |
|
| Now you can be more explicit: |
| 216 |
|
| |
| 217 |
|
| int res = SWIG_ConvertPtr(obj,vptr,ty.flags); |
| 218 |
|
| if (SWIG_IsOK(res)) { |
| 219 |
|
| // success code |
| 220 |
|
| } else { |
| 221 |
|
| // fail code |
| 222 |
|
| } |
| 223 |
|
| |
| 224 |
|
| which is the same really, but now you can also do |
| 225 |
|
| |
| 226 |
|
| Type *ptr; |
| 227 |
|
| int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); |
| 228 |
|
| if (SWIG_IsOK(res)) { |
| 229 |
|
| // success code |
| 230 |
|
| if (SWIG_IsNewObj(res) { |
| 231 |
|
| ... |
| 232 |
|
| delete *ptr; |
| 233 |
|
| } else { |
| 234 |
|
| ... |
| 235 |
|
| } |
| 236 |
|
| } else { |
| 237 |
|
| // fail code |
| 238 |
|
| } |
| 239 |
|
| |
| 240 |
|
| I.e., now SWIG_ConvertPtr can return new objects and you can |
| 241 |
|
| identify the case and take care of the deallocation. Of course that |
| 242 |
|
| also requires SWIG_ConvertPtr to return new result values, such as |
| 243 |
|
| |
| 244 |
|
| int SWIG_ConvertPtr(obj, ptr,...) { |
| 245 |
|
| if (<obj is ok>) { |
| 246 |
|
| if (<need new object>) { |
| 247 |
|
| *ptr = <ptr to new allocated object>; |
| 248 |
|
| return SWIG_NEWOBJ; |
| 249 |
|
| } else { |
| 250 |
|
| *ptr = <ptr to old object>; |
| 251 |
|
| return SWIG_OLDOBJ; |
| 252 |
|
| } |
| 253 |
|
| } else { |
| 254 |
|
| return SWIG_BADOBJ; |
| 255 |
|
| } |
| 256 |
|
| } |
| 257 |
|
| |
| 258 |
|
| Of course, returning the plain '0(success)/-1(fail)' still works, but you can be |
| 259 |
|
| more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the |
| 260 |
|
| SWIG errors code. |
| 261 |
|
| |
| 262 |
|
| Finally, if the SWIG_CASTRANK_MODE is enabled, the result code |
| 263 |
|
| allows returning the 'cast rank', for example, if you have this |
| 264 |
|
| |
| 265 |
|
| int food(double) |
| 266 |
|
| int fooi(int); |
| 267 |
|
| |
| 268 |
|
| and you call |
| 269 |
|
| |
| 270 |
|
| food(1) // cast rank '1' (1 -> 1.0) |
| 271 |
|
| fooi(1) // cast rank '0' |
| 272 |
|
| |
| 273 |
|
| just use the SWIG_AddCast()/SWIG_CheckState() |
| 274 |
|
| */ |
| 275 |
|
| |
| 276 |
|
| #define SWIG_OK (0) |
| 277 |
|
| /* Runtime errors are < 0 */ |
| 278 |
|
| #define SWIG_ERROR (-1) |
| 279 |
|
| /* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */ |
| 280 |
|
| /* Errors in range -100 to -199 are language specific errors defined in *errors.swg */ |
| 281 |
|
| /* Errors < -200 are generic runtime specific errors */ |
| 282 |
|
| #define SWIG_ERROR_RELEASE_NOT_OWNED (-200) |
| 283 |
|
| |
| 284 |
|
| #define SWIG_IsOK(r) (r >= 0) |
| 285 |
|
| #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) |
| 286 |
|
| |
| 287 |
|
| /* The CastRankLimit says how many bits are used for the cast rank */ |
| 288 |
|
| #define SWIG_CASTRANKLIMIT (1 << 8) |
| 289 |
|
| /* The NewMask denotes the object was created (using new/malloc) */ |
| 290 |
|
| #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) |
| 291 |
|
| /* The TmpMask is for in/out typemaps that use temporary objects */ |
| 292 |
|
| #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) |
| 293 |
|
| /* Simple returning values */ |
| 294 |
|
| #define SWIG_BADOBJ (SWIG_ERROR) |
| 295 |
|
| #define SWIG_OLDOBJ (SWIG_OK) |
| 296 |
|
| #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) |
| 297 |
|
| #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) |
| 298 |
|
| /* Check, add and del object mask methods */ |
| 299 |
|
| #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) |
| 300 |
|
| #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) |
| 301 |
|
| #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) |
| 302 |
|
| #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) |
| 303 |
|
| #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) |
| 304 |
|
| #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) |
| 305 |
|
| |
| 306 |
|
| /* Cast-Rank Mode */ |
| 307 |
|
| #if defined(SWIG_CASTRANK_MODE) |
| 308 |
|
| # ifndef SWIG_TypeRank |
| 309 |
|
| # define SWIG_TypeRank unsigned long |
| 310 |
|
| # endif |
| 311 |
|
| # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ |
| 312 |
|
| # define SWIG_MAXCASTRANK (2) |
| 313 |
|
| # endif |
| 314 |
|
| # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) |
| 315 |
|
| # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) |
| 316 |
0 |
| SWIGINTERNINLINE int SWIG_AddCast(int r) { |
| 317 |
0 |
▶ | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; |
Branch: 2 branches
| Branch | True | False | Total |
| return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; |
0 |
0 |
0 |
| return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; |
0 |
0 |
0 |
|
| 318 |
|
| } |
| 319 |
|
| SWIGINTERNINLINE int SWIG_CheckState(int r) { |
| 320 |
|
| return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; |
| 321 |
|
| } |
| 322 |
|
| #else /* no cast-rank mode */ |
| 323 |
|
| # define SWIG_AddCast(r) (r) |
| 324 |
|
| # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) |
| 325 |
|
| #endif |
| 326 |
|
| |
| 327 |
|
| /* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF |
| 328 |
|
| * if you're missing it. |
| 329 |
|
| */ |
| 330 |
|
| #if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \ |
| 331 |
|
| (defined __cplusplus && __cplusplus >= 201103L) || \ |
| 332 |
|
| defined SWIG_HAVE_SNPRINTF) && \ |
| 333 |
|
| !defined SWIG_NO_SNPRINTF |
| 334 |
|
| # define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A) |
| 335 |
|
| # define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B) |
| 336 |
|
| #else |
| 337 |
|
| /* Fallback versions ignore the buffer size, but most of our uses either have a |
| 338 |
|
| * fixed maximum possible size or dynamically allocate a buffer that's large |
| 339 |
|
| * enough. |
| 340 |
|
| */ |
| 341 |
|
| # define SWIG_snprintf(O,S,F,A) sprintf(O,F,A) |
| 342 |
|
| # define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B) |
| 343 |
|
| #endif |
| 344 |
|
| |
| 345 |
|
| #include <string.h> |
| 346 |
|
| |
| 347 |
|
| #ifdef __cplusplus |
| 348 |
|
| extern "C" { |
| 349 |
|
| #endif |
| 350 |
|
| |
| 351 |
|
| typedef void *(*swig_converter_func)(void *, int *); |
| 352 |
|
| typedef struct swig_type_info *(*swig_dycast_func)(void **); |
| 353 |
|
| |
| 354 |
|
| /* Structure to store information on one type */ |
| 355 |
|
| typedef struct swig_type_info { |
| 356 |
|
| const char *name; /* mangled name of this type */ |
| 357 |
|
| const char *str; /* human readable name of this type */ |
| 358 |
|
| swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ |
| 359 |
|
| struct swig_cast_info *cast; /* linked list of types that can cast into this type */ |
| 360 |
|
| void *clientdata; /* language specific type data */ |
| 361 |
|
| int owndata; /* flag if the structure owns the clientdata */ |
| 362 |
|
| } swig_type_info; |
| 363 |
|
| |
| 364 |
|
| /* Structure to store a type and conversion function used for casting */ |
| 365 |
|
| typedef struct swig_cast_info { |
| 366 |
|
| swig_type_info *type; /* pointer to type that is equivalent to this type */ |
| 367 |
|
| swig_converter_func converter; /* function to cast the void pointers */ |
| 368 |
|
| struct swig_cast_info *next; /* pointer to next cast in linked list */ |
| 369 |
|
| struct swig_cast_info *prev; /* pointer to the previous cast */ |
| 370 |
|
| } swig_cast_info; |
| 371 |
|
| |
| 372 |
|
| /* Structure used to store module information |
| 373 |
|
| * Each module generates one structure like this, and the runtime collects |
| 374 |
|
| * all of these structures and stores them in a circularly linked list.*/ |
| 375 |
|
| typedef struct swig_module_info { |
| 376 |
|
| swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ |
| 377 |
|
| size_t size; /* Number of types in this module */ |
| 378 |
|
| struct swig_module_info *next; /* Pointer to next element in circularly linked list */ |
| 379 |
|
| swig_type_info **type_initial; /* Array of initially generated type structures */ |
| 380 |
|
| swig_cast_info **cast_initial; /* Array of initially generated casting structures */ |
| 381 |
|
| void *clientdata; /* Language specific module data */ |
| 382 |
|
| } swig_module_info; |
| 383 |
|
| |
| 384 |
|
| /* |
| 385 |
|
| Compare two type names skipping the space characters, therefore |
| 386 |
|
| "char*" == "char *" and "Class<int>" == "Class<int >", etc. |
| 387 |
|
| |
| 388 |
|
| Return 0 when the two name types are equivalent, as in |
| 389 |
|
| strncmp, but skipping ' '. |
| 390 |
|
| */ |
| 391 |
|
| SWIGRUNTIME int |
| 392 |
0 |
| SWIG_TypeNameComp(const char *f1, const char *l1, |
| 393 |
|
| const char *f2, const char *l2) { |
| 394 |
0 |
▶ | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
Branch: 2 branches
| Branch | True | False | Total |
| for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
0 |
0 |
0 |
| for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
0 |
0 |
0 |
|
| 395 |
0 |
▶ | while ((*f1 == ' ') && (f1 != l1)) ++f1; |
Branch: 2 branches
| Branch | True | False | Total |
| while ((*f1 == ' ') && (f1 != l1)) ++f1; |
0 |
0 |
0 |
| while ((*f1 == ' ') && (f1 != l1)) ++f1; |
0 |
0 |
0 |
|
| 396 |
0 |
▶ | while ((*f2 == ' ') && (f2 != l2)) ++f2; |
Branch: 2 branches
| Branch | True | False | Total |
| while ((*f2 == ' ') && (f2 != l2)) ++f2; |
0 |
0 |
0 |
| while ((*f2 == ' ') && (f2 != l2)) ++f2; |
0 |
0 |
0 |
|
| 397 |
0 |
▶ | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
Branch: 2 branches
| Branch | True | False | Total |
| if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
0 |
0 |
0 |
| if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
0 |
0 |
0 |
|
| 398 |
|
| } |
| 399 |
0 |
| return (int)((l1 - f1) - (l2 - f2)); |
| 400 |
|
| } |
| 401 |
|
| |
| 402 |
|
| /* |
| 403 |
|
| Check type equivalence in a name list like <name1>|<name2>|... |
| 404 |
|
| Return 0 if equal, -1 if nb < tb, 1 if nb > tb |
| 405 |
|
| */ |
| 406 |
|
| SWIGRUNTIME int |
| 407 |
0 |
| SWIG_TypeCmp(const char *nb, const char *tb) { |
| 408 |
0 |
| int equiv = 1; |
| 409 |
0 |
| const char* te = tb + strlen(tb); |
| 410 |
0 |
| const char* ne = nb; |
| 411 |
0 |
▶ | while (equiv != 0 && *ne) { |
Branch: 2 branches
| Branch | True | False | Total |
| while (equiv != 0 && *ne) { |
0 |
0 |
0 |
| while (equiv != 0 && *ne) { |
0 |
0 |
0 |
|
| 412 |
0 |
▶ | for (nb = ne; *ne; ++ne) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (nb = ne; *ne; ++ne) { |
0 |
0 |
0 |
|
| 413 |
0 |
▶ | if (*ne == '|') break; |
Branch: 1 branch
| Branch | True | False | Total |
| if (*ne == '|') break; |
0 |
0 |
0 |
|
| 414 |
|
| } |
| 415 |
0 |
| equiv = SWIG_TypeNameComp(nb, ne, tb, te); |
| 416 |
0 |
▶ | if (*ne) ++ne; |
Branch: 1 branch
| Branch | True | False | Total |
| if (*ne) ++ne; |
0 |
0 |
0 |
|
| 417 |
|
| } |
| 418 |
0 |
| return equiv; |
| 419 |
|
| } |
| 420 |
|
| |
| 421 |
|
| /* |
| 422 |
|
| Check type equivalence in a name list like <name1>|<name2>|... |
| 423 |
|
| Return 0 if not equal, 1 if equal |
| 424 |
|
| */ |
| 425 |
|
| SWIGRUNTIME int |
| 426 |
0 |
| SWIG_TypeEquiv(const char *nb, const char *tb) { |
| 427 |
0 |
| return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; |
| 428 |
|
| } |
| 429 |
|
| |
| 430 |
|
| /* |
| 431 |
|
| Check the typename |
| 432 |
|
| */ |
| 433 |
|
| SWIGRUNTIME swig_cast_info * |
| 434 |
0 |
| SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
| 435 |
0 |
▶ | if (ty) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty) { |
0 |
0 |
0 |
|
| 436 |
0 |
| swig_cast_info *iter = ty->cast; |
| 437 |
0 |
▶ | while (iter) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (iter) { |
0 |
0 |
0 |
|
| 438 |
0 |
▶ | if (strcmp(iter->type->name, c) == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (strcmp(iter->type->name, c) == 0) { |
0 |
0 |
0 |
|
| 439 |
0 |
▶ | if (iter == ty->cast) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter == ty->cast) |
0 |
0 |
0 |
|
| 440 |
0 |
| return iter; |
| 441 |
|
| /* Move iter to the top of the linked list */ |
| 442 |
0 |
| iter->prev->next = iter->next; |
| 443 |
0 |
▶ | if (iter->next) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter->next) |
0 |
0 |
0 |
|
| 444 |
0 |
| iter->next->prev = iter->prev; |
| 445 |
0 |
| iter->next = ty->cast; |
| 446 |
0 |
| iter->prev = 0; |
| 447 |
0 |
▶ | if (ty->cast) ty->cast->prev = iter; |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty->cast) ty->cast->prev = iter; |
0 |
0 |
0 |
|
| 448 |
0 |
| ty->cast = iter; |
| 449 |
0 |
| return iter; |
| 450 |
|
| } |
| 451 |
0 |
| iter = iter->next; |
| 452 |
|
| } |
| 453 |
|
| } |
| 454 |
0 |
| return 0; |
| 455 |
|
| } |
| 456 |
|
| |
| 457 |
|
| /* |
| 458 |
|
| Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison |
| 459 |
|
| */ |
| 460 |
|
| SWIGRUNTIME swig_cast_info * |
| 461 |
0 |
| SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) { |
| 462 |
0 |
▶ | if (ty) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty) { |
0 |
0 |
0 |
|
| 463 |
0 |
| swig_cast_info *iter = ty->cast; |
| 464 |
0 |
▶ | while (iter) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (iter) { |
0 |
0 |
0 |
|
| 465 |
0 |
▶ | if (iter->type == from) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter->type == from) { |
0 |
0 |
0 |
|
| 466 |
0 |
▶ | if (iter == ty->cast) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter == ty->cast) |
0 |
0 |
0 |
|
| 467 |
0 |
| return iter; |
| 468 |
|
| /* Move iter to the top of the linked list */ |
| 469 |
0 |
| iter->prev->next = iter->next; |
| 470 |
0 |
▶ | if (iter->next) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter->next) |
0 |
0 |
0 |
|
| 471 |
0 |
| iter->next->prev = iter->prev; |
| 472 |
0 |
| iter->next = ty->cast; |
| 473 |
0 |
| iter->prev = 0; |
| 474 |
0 |
▶ | if (ty->cast) ty->cast->prev = iter; |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty->cast) ty->cast->prev = iter; |
0 |
0 |
0 |
|
| 475 |
0 |
| ty->cast = iter; |
| 476 |
0 |
| return iter; |
| 477 |
|
| } |
| 478 |
0 |
| iter = iter->next; |
| 479 |
|
| } |
| 480 |
|
| } |
| 481 |
0 |
| return 0; |
| 482 |
|
| } |
| 483 |
|
| |
| 484 |
|
| /* |
| 485 |
|
| Cast a pointer up an inheritance hierarchy |
| 486 |
|
| */ |
| 487 |
|
| SWIGRUNTIMEINLINE void * |
| 488 |
0 |
| SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { |
| 489 |
0 |
▶ | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
Branch: 2 branches
| Branch | True | False | Total |
| return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
0 |
0 |
0 |
| return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
0 |
0 |
0 |
|
| 490 |
|
| } |
| 491 |
|
| |
| 492 |
|
| /* |
| 493 |
|
| Dynamic pointer casting. Down an inheritance hierarchy |
| 494 |
|
| */ |
| 495 |
|
| SWIGRUNTIME swig_type_info * |
| 496 |
0 |
| SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { |
| 497 |
0 |
| swig_type_info *lastty = ty; |
| 498 |
0 |
▶ | if (!ty || !ty->dcast) return ty; |
Branch: 2 branches
| Branch | True | False | Total |
| if (!ty || !ty->dcast) return ty; |
0 |
0 |
0 |
| if (!ty || !ty->dcast) return ty; |
0 |
0 |
0 |
|
| 499 |
0 |
▶ | while (ty && (ty->dcast)) { |
Branch: 2 branches
| Branch | True | False | Total |
| while (ty && (ty->dcast)) { |
0 |
0 |
0 |
| while (ty && (ty->dcast)) { |
0 |
0 |
0 |
|
| 500 |
0 |
| ty = (*ty->dcast)(ptr); |
| 501 |
0 |
▶ | if (ty) lastty = ty; |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty) lastty = ty; |
0 |
0 |
0 |
|
| 502 |
|
| } |
| 503 |
0 |
| return lastty; |
| 504 |
|
| } |
| 505 |
|
| |
| 506 |
|
| /* |
| 507 |
|
| Return the name associated with this type |
| 508 |
|
| */ |
| 509 |
|
| SWIGRUNTIMEINLINE const char * |
| 510 |
|
| SWIG_TypeName(const swig_type_info *ty) { |
| 511 |
|
| return ty->name; |
| 512 |
|
| } |
| 513 |
|
| |
| 514 |
|
| /* |
| 515 |
|
| Return the pretty name associated with this type, |
| 516 |
|
| that is an unmangled type name in a form presentable to the user. |
| 517 |
|
| */ |
| 518 |
|
| SWIGRUNTIME const char * |
| 519 |
0 |
| SWIG_TypePrettyName(const swig_type_info *type) { |
| 520 |
|
| /* The "str" field contains the equivalent pretty names of the |
| 521 |
|
| type, separated by vertical-bar characters. Choose the last |
| 522 |
|
| name. It should be the most specific; a fully resolved name |
| 523 |
|
| but not necessarily with default template parameters expanded. */ |
| 524 |
0 |
▶ | if (!type) return NULL; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!type) return NULL; |
0 |
0 |
0 |
|
| 525 |
0 |
▶ | if (type->str != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type->str != NULL) { |
0 |
0 |
0 |
|
| 526 |
0 |
| const char *last_name = type->str; |
| 527 |
|
| const char *s; |
| 528 |
0 |
▶ | for (s = type->str; *s; s++) |
Branch: 1 branch
| Branch | True | False | Total |
| for (s = type->str; *s; s++) |
0 |
0 |
0 |
|
| 529 |
0 |
▶ | if (*s == '|') last_name = s+1; |
Branch: 1 branch
| Branch | True | False | Total |
| if (*s == '|') last_name = s+1; |
0 |
0 |
0 |
|
| 530 |
0 |
| return last_name; |
| 531 |
|
| } |
| 532 |
|
| else |
| 533 |
0 |
| return type->name; |
| 534 |
|
| } |
| 535 |
|
| |
| 536 |
|
| /* |
| 537 |
|
| Set the clientdata field for a type |
| 538 |
|
| */ |
| 539 |
|
| SWIGRUNTIME void |
| 540 |
0 |
| SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
| 541 |
0 |
| swig_cast_info *cast = ti->cast; |
| 542 |
|
| /* if (ti->clientdata == clientdata) return; */ |
| 543 |
0 |
| ti->clientdata = clientdata; |
| 544 |
|
| |
| 545 |
0 |
▶ | while (cast) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (cast) { |
0 |
0 |
0 |
|
| 546 |
0 |
▶ | if (!cast->converter) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!cast->converter) { |
0 |
0 |
0 |
|
| 547 |
0 |
| swig_type_info *tc = cast->type; |
| 548 |
0 |
▶ | if (!tc->clientdata) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!tc->clientdata) { |
0 |
0 |
0 |
|
| 549 |
0 |
| SWIG_TypeClientData(tc, clientdata); |
| 550 |
|
| } |
| 551 |
|
| } |
| 552 |
0 |
| cast = cast->next; |
| 553 |
|
| } |
| 554 |
0 |
| } |
| 555 |
|
| SWIGRUNTIME void |
| 556 |
0 |
| SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { |
| 557 |
0 |
| SWIG_TypeClientData(ti, clientdata); |
| 558 |
0 |
| ti->owndata = 1; |
| 559 |
0 |
| } |
| 560 |
|
| |
| 561 |
|
| /* |
| 562 |
|
| Search for a swig_type_info structure only by mangled name |
| 563 |
|
| Search is a O(log #types) |
| 564 |
|
| |
| 565 |
|
| We start searching at module start, and finish searching when start == end. |
| 566 |
|
| Note: if start == end at the beginning of the function, we go all the way around |
| 567 |
|
| the circular list. |
| 568 |
|
| */ |
| 569 |
|
| SWIGRUNTIME swig_type_info * |
| 570 |
0 |
| SWIG_MangledTypeQueryModule(swig_module_info *start, |
| 571 |
|
| swig_module_info *end, |
| 572 |
|
| const char *name) { |
| 573 |
0 |
| swig_module_info *iter = start; |
| 574 |
|
| do { |
| 575 |
0 |
▶ | if (iter->size) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter->size) { |
0 |
0 |
0 |
|
| 576 |
0 |
| size_t l = 0; |
| 577 |
0 |
| size_t r = iter->size - 1; |
| 578 |
|
| do { |
| 579 |
|
| /* since l+r >= 0, we can (>> 1) instead (/ 2) */ |
| 580 |
0 |
| size_t i = (l + r) >> 1; |
| 581 |
0 |
| const char *iname = iter->types[i]->name; |
| 582 |
0 |
▶ | if (iname) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (iname) { |
0 |
0 |
0 |
|
| 583 |
0 |
| int compare = strcmp(name, iname); |
| 584 |
0 |
▶ | if (compare == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (compare == 0) { |
0 |
0 |
0 |
|
| 585 |
0 |
| return iter->types[i]; |
| 586 |
0 |
▶ | } else if (compare < 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (compare < 0) { |
0 |
0 |
0 |
|
| 587 |
0 |
▶ | if (i) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (i) { |
0 |
0 |
0 |
|
| 588 |
0 |
| r = i - 1; |
| 589 |
|
| } else { |
| 590 |
0 |
| break; |
| 591 |
|
| } |
| 592 |
0 |
▶ | } else if (compare > 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (compare > 0) { |
0 |
0 |
0 |
|
| 593 |
0 |
| l = i + 1; |
| 594 |
|
| } |
| 595 |
|
| } else { |
| 596 |
0 |
| break; /* should never happen */ |
| 597 |
|
| } |
| 598 |
0 |
▶ | } while (l <= r); |
Branch: 1 branch
| Branch | True | False | Total |
| } while (l <= r); |
0 |
0 |
0 |
|
| 599 |
|
| } |
| 600 |
0 |
| iter = iter->next; |
| 601 |
0 |
▶ | } while (iter != end); |
Branch: 1 branch
| Branch | True | False | Total |
| } while (iter != end); |
0 |
0 |
0 |
|
| 602 |
0 |
| return 0; |
| 603 |
|
| } |
| 604 |
|
| |
| 605 |
|
| /* |
| 606 |
|
| Search for a swig_type_info structure for either a mangled name or a human readable name. |
| 607 |
|
| It first searches the mangled names of the types, which is a O(log #types) |
| 608 |
|
| If a type is not found it then searches the human readable names, which is O(#types). |
| 609 |
|
| |
| 610 |
|
| We start searching at module start, and finish searching when start == end. |
| 611 |
|
| Note: if start == end at the beginning of the function, we go all the way around |
| 612 |
|
| the circular list. |
| 613 |
|
| */ |
| 614 |
|
| SWIGRUNTIME swig_type_info * |
| 615 |
0 |
| SWIG_TypeQueryModule(swig_module_info *start, |
| 616 |
|
| swig_module_info *end, |
| 617 |
|
| const char *name) { |
| 618 |
|
| /* STEP 1: Search the name field using binary search */ |
| 619 |
0 |
| swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); |
| 620 |
0 |
▶ | if (ret) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ret) { |
0 |
0 |
0 |
|
| 621 |
0 |
| return ret; |
| 622 |
|
| } else { |
| 623 |
|
| /* STEP 2: If the type hasn't been found, do a complete search |
| 624 |
|
| of the str field (the human readable name) */ |
| 625 |
0 |
| swig_module_info *iter = start; |
| 626 |
|
| do { |
| 627 |
0 |
| size_t i = 0; |
| 628 |
0 |
▶ | for (; i < iter->size; ++i) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (; i < iter->size; ++i) { |
0 |
0 |
0 |
|
| 629 |
0 |
▶ | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
0 |
0 |
0 |
| if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
0 |
0 |
0 |
|
| 630 |
0 |
| return iter->types[i]; |
| 631 |
|
| } |
| 632 |
0 |
| iter = iter->next; |
| 633 |
0 |
▶ | } while (iter != end); |
Branch: 1 branch
| Branch | True | False | Total |
| } while (iter != end); |
0 |
0 |
0 |
|
| 634 |
|
| } |
| 635 |
|
| |
| 636 |
|
| /* neither found a match */ |
| 637 |
0 |
| return 0; |
| 638 |
|
| } |
| 639 |
|
| |
| 640 |
|
| /* |
| 641 |
|
| Pack binary data into a string |
| 642 |
|
| */ |
| 643 |
|
| SWIGRUNTIME char * |
| 644 |
0 |
| SWIG_PackData(char *c, void *ptr, size_t sz) { |
| 645 |
|
| static const char hex[17] = "0123456789abcdef"; |
| 646 |
0 |
| const unsigned char *u = (unsigned char *) ptr; |
| 647 |
0 |
| const unsigned char *eu = u + sz; |
| 648 |
0 |
▶ | for (; u != eu; ++u) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (; u != eu; ++u) { |
0 |
0 |
0 |
|
| 649 |
0 |
| unsigned char uu = *u; |
| 650 |
0 |
| *(c++) = hex[(uu & 0xf0) >> 4]; |
| 651 |
0 |
| *(c++) = hex[uu & 0xf]; |
| 652 |
|
| } |
| 653 |
0 |
| return c; |
| 654 |
|
| } |
| 655 |
|
| |
| 656 |
|
| /* |
| 657 |
|
| Unpack binary data from a string |
| 658 |
|
| */ |
| 659 |
|
| SWIGRUNTIME const char * |
| 660 |
0 |
| SWIG_UnpackData(const char *c, void *ptr, size_t sz) { |
| 661 |
0 |
| unsigned char *u = (unsigned char *) ptr; |
| 662 |
0 |
| const unsigned char *eu = u + sz; |
| 663 |
0 |
▶ | for (; u != eu; ++u) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (; u != eu; ++u) { |
0 |
0 |
0 |
|
| 664 |
0 |
| char d = *(c++); |
| 665 |
|
| unsigned char uu; |
| 666 |
0 |
▶ | if ((d >= '0') && (d <= '9')) |
Branch: 2 branches
| Branch | True | False | Total |
| if ((d >= '0') && (d <= '9')) |
0 |
0 |
0 |
| if ((d >= '0') && (d <= '9')) |
0 |
0 |
0 |
|
| 667 |
0 |
| uu = (unsigned char)((d - '0') << 4); |
| 668 |
0 |
▶ | else if ((d >= 'a') && (d <= 'f')) |
Branch: 2 branches
| Branch | True | False | Total |
| else if ((d >= 'a') && (d <= 'f')) |
0 |
0 |
0 |
| else if ((d >= 'a') && (d <= 'f')) |
0 |
0 |
0 |
|
| 669 |
0 |
| uu = (unsigned char)((d - ('a'-10)) << 4); |
| 670 |
|
| else |
| 671 |
0 |
| return (char *) 0; |
| 672 |
0 |
| d = *(c++); |
| 673 |
0 |
▶ | if ((d >= '0') && (d <= '9')) |
Branch: 2 branches
| Branch | True | False | Total |
| if ((d >= '0') && (d <= '9')) |
0 |
0 |
0 |
| if ((d >= '0') && (d <= '9')) |
0 |
0 |
0 |
|
| 674 |
0 |
| uu |= (unsigned char)(d - '0'); |
| 675 |
0 |
▶ | else if ((d >= 'a') && (d <= 'f')) |
Branch: 2 branches
| Branch | True | False | Total |
| else if ((d >= 'a') && (d <= 'f')) |
0 |
0 |
0 |
| else if ((d >= 'a') && (d <= 'f')) |
0 |
0 |
0 |
|
| 676 |
0 |
| uu |= (unsigned char)(d - ('a'-10)); |
| 677 |
|
| else |
| 678 |
0 |
| return (char *) 0; |
| 679 |
0 |
| *u = uu; |
| 680 |
|
| } |
| 681 |
0 |
| return c; |
| 682 |
|
| } |
| 683 |
|
| |
| 684 |
|
| /* |
| 685 |
|
| Pack 'void *' into a string buffer. |
| 686 |
|
| */ |
| 687 |
|
| SWIGRUNTIME char * |
| 688 |
0 |
| SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { |
| 689 |
0 |
| char *r = buff; |
| 690 |
0 |
▶ | if ((2*sizeof(void *) + 2) > bsz) return 0; |
Branch: 1 branch
| Branch | True | False | Total |
| if ((2*sizeof(void *) + 2) > bsz) return 0; |
0 |
0 |
0 |
|
| 691 |
0 |
| *(r++) = '_'; |
| 692 |
0 |
| r = SWIG_PackData(r,&ptr,sizeof(void *)); |
| 693 |
0 |
▶ | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; |
Branch: 1 branch
| Branch | True | False | Total |
| if (strlen(name) + 1 > (bsz - (r - buff))) return 0; |
0 |
0 |
0 |
|
| 694 |
0 |
| strcpy(r,name); |
| 695 |
0 |
| return buff; |
| 696 |
|
| } |
| 697 |
|
| |
| 698 |
|
| SWIGRUNTIME const char * |
| 699 |
0 |
| SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { |
| 700 |
0 |
▶ | if (*c != '_') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*c != '_') { |
0 |
0 |
0 |
|
| 701 |
0 |
▶ | if (strcmp(c,"NULL") == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (strcmp(c,"NULL") == 0) { |
0 |
0 |
0 |
|
| 702 |
0 |
| *ptr = (void *) 0; |
| 703 |
0 |
| return name; |
| 704 |
|
| } else { |
| 705 |
0 |
| return 0; |
| 706 |
|
| } |
| 707 |
|
| } |
| 708 |
0 |
| return SWIG_UnpackData(++c,ptr,sizeof(void *)); |
| 709 |
|
| } |
| 710 |
|
| |
| 711 |
|
| SWIGRUNTIME char * |
| 712 |
0 |
| SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { |
| 713 |
0 |
| char *r = buff; |
| 714 |
0 |
▶ | size_t lname = (name ? strlen(name) : 0); |
Branch: 1 branch
| Branch | True | False | Total |
| size_t lname = (name ? strlen(name) : 0); |
0 |
0 |
0 |
|
| 715 |
0 |
▶ | if ((2*sz + 2 + lname) > bsz) return 0; |
Branch: 1 branch
| Branch | True | False | Total |
| if ((2*sz + 2 + lname) > bsz) return 0; |
0 |
0 |
0 |
|
| 716 |
0 |
| *(r++) = '_'; |
| 717 |
0 |
| r = SWIG_PackData(r,ptr,sz); |
| 718 |
0 |
▶ | if (lname) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (lname) { |
0 |
0 |
0 |
|
| 719 |
0 |
| strncpy(r,name,lname+1); |
| 720 |
|
| } else { |
| 721 |
0 |
| *r = 0; |
| 722 |
|
| } |
| 723 |
0 |
| return buff; |
| 724 |
|
| } |
| 725 |
|
| |
| 726 |
|
| SWIGRUNTIME const char * |
| 727 |
0 |
| SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { |
| 728 |
0 |
▶ | if (*c != '_') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*c != '_') { |
0 |
0 |
0 |
|
| 729 |
0 |
▶ | if (strcmp(c,"NULL") == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (strcmp(c,"NULL") == 0) { |
0 |
0 |
0 |
|
| 730 |
0 |
| memset(ptr,0,sz); |
| 731 |
0 |
| return name; |
| 732 |
|
| } else { |
| 733 |
0 |
| return 0; |
| 734 |
|
| } |
| 735 |
|
| } |
| 736 |
0 |
| return SWIG_UnpackData(++c,ptr,sz); |
| 737 |
|
| } |
| 738 |
|
| |
| 739 |
|
| #ifdef __cplusplus |
| 740 |
|
| } |
| 741 |
|
| #endif |
| 742 |
|
| |
| 743 |
|
| /* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */ |
| 744 |
|
| #define SWIG_UnknownError -1 |
| 745 |
|
| #define SWIG_IOError -2 |
| 746 |
|
| #define SWIG_RuntimeError -3 |
| 747 |
|
| #define SWIG_IndexError -4 |
| 748 |
|
| #define SWIG_TypeError -5 |
| 749 |
|
| #define SWIG_DivisionByZero -6 |
| 750 |
|
| #define SWIG_OverflowError -7 |
| 751 |
|
| #define SWIG_SyntaxError -8 |
| 752 |
|
| #define SWIG_ValueError -9 |
| 753 |
|
| #define SWIG_SystemError -10 |
| 754 |
|
| #define SWIG_AttributeError -11 |
| 755 |
|
| #define SWIG_MemoryError -12 |
| 756 |
|
| #define SWIG_NullReferenceError -13 |
| 757 |
|
| |
| 758 |
|
| |
| 759 |
|
| #ifdef __cplusplus |
| 760 |
|
| /* Needed on some windows machines---since MS plays funny games with the header files under C++ */ |
| 761 |
|
| #include <math.h> |
| 762 |
|
| #include <stdlib.h> |
| 763 |
|
| extern "C" { |
| 764 |
|
| #endif |
| 765 |
|
| |
| 766 |
|
| #if __GNUC__ >= 10 |
| 767 |
|
| #if defined(__cplusplus) |
| 768 |
|
| #pragma GCC diagnostic push |
| 769 |
|
| #pragma GCC diagnostic ignored "-Wvolatile" |
| 770 |
|
| #endif |
| 771 |
|
| #endif |
| 772 |
|
| |
| 773 |
|
| #include "EXTERN.h" |
| 774 |
|
| #include "perl.h" |
| 775 |
|
| #include "XSUB.h" |
| 776 |
|
| |
| 777 |
|
| #if __GNUC__ >= 10 |
| 778 |
|
| #if defined(__cplusplus) |
| 779 |
|
| #pragma GCC diagnostic pop |
| 780 |
|
| #endif |
| 781 |
|
| #endif |
| 782 |
|
| |
| 783 |
|
| /* PERL_REVISION was added in Perl 5.6. */ |
| 784 |
|
| #if !defined PERL_REVISION || (PERL_REVISION-0 == 5 && PERL_VERSION-0 < 8) |
| 785 |
|
| # error SWIG requires Perl >= 5.8.0 |
| 786 |
|
| #endif |
| 787 |
|
| |
| 788 |
|
| #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE) |
| 789 |
|
| #define PerlIO_exportFILE(fh,fl) (FILE*)(fh) |
| 790 |
|
| #endif |
| 791 |
|
| |
| 792 |
|
| #ifndef SvIOK_UV |
| 793 |
|
| # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv))) |
| 794 |
|
| #endif |
| 795 |
|
| |
| 796 |
|
| #ifndef SvUOK |
| 797 |
|
| # define SvUOK(sv) SvIOK_UV(sv) |
| 798 |
|
| #endif |
| 799 |
|
| |
| 800 |
|
| #ifndef IVSIZE |
| 801 |
|
| # ifdef LONGSIZE |
| 802 |
|
| # define IVSIZE LONGSIZE |
| 803 |
|
| # else |
| 804 |
|
| # define IVSIZE 4 /* A bold guess, but the best we can make. */ |
| 805 |
|
| # endif |
| 806 |
|
| #endif |
| 807 |
|
| |
| 808 |
|
| #ifndef INT2PTR |
| 809 |
|
| # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) |
| 810 |
|
| # define PTRV UV |
| 811 |
|
| # define INT2PTR(any,d) (any)(d) |
| 812 |
|
| # else |
| 813 |
|
| # if PTRSIZE == LONGSIZE |
| 814 |
|
| # define PTRV unsigned long |
| 815 |
|
| # else |
| 816 |
|
| # define PTRV unsigned |
| 817 |
|
| # endif |
| 818 |
|
| # define INT2PTR(any,d) (any)(PTRV)(d) |
| 819 |
|
| # endif |
| 820 |
|
| |
| 821 |
|
| # define NUM2PTR(any,d) (any)(PTRV)(d) |
| 822 |
|
| # define PTR2IV(p) INT2PTR(IV,p) |
| 823 |
|
| # define PTR2UV(p) INT2PTR(UV,p) |
| 824 |
|
| # define PTR2NV(p) NUM2PTR(NV,p) |
| 825 |
|
| |
| 826 |
|
| # if PTRSIZE == LONGSIZE |
| 827 |
|
| # define PTR2ul(p) (unsigned long)(p) |
| 828 |
|
| # else |
| 829 |
|
| # define PTR2ul(p) INT2PTR(unsigned long,p) |
| 830 |
|
| # endif |
| 831 |
|
| #endif /* !INT2PTR */ |
| 832 |
|
| |
| 833 |
|
| #ifndef SvPV_nolen |
| 834 |
|
| # define SvPV_nolen(x) SvPV(x,PL_na) |
| 835 |
|
| #endif |
| 836 |
|
| |
| 837 |
|
| #ifndef get_sv |
| 838 |
|
| # define get_sv perl_get_sv |
| 839 |
|
| #endif |
| 840 |
|
| |
| 841 |
|
| #ifndef ERRSV |
| 842 |
|
| # define ERRSV get_sv("@",FALSE) |
| 843 |
|
| #endif |
| 844 |
|
| |
| 845 |
|
| #ifndef pTHX_ |
| 846 |
|
| #define pTHX_ |
| 847 |
|
| #endif |
| 848 |
|
| |
| 849 |
|
| #include <string.h> |
| 850 |
|
| #ifdef __cplusplus |
| 851 |
|
| } |
| 852 |
|
| #endif |
| 853 |
|
| |
| 854 |
|
| /* ----------------------------------------------------------------------------- |
| 855 |
|
| * error manipulation |
| 856 |
|
| * ----------------------------------------------------------------------------- */ |
| 857 |
|
| |
| 858 |
|
| SWIGINTERN const char* |
| 859 |
0 |
| SWIG_Perl_ErrorType(int code) { |
| 860 |
0 |
| switch(code) { |
| 861 |
0 |
| case SWIG_MemoryError: |
| 862 |
0 |
| return "MemoryError"; |
| 863 |
0 |
| case SWIG_IOError: |
| 864 |
0 |
| return "IOError"; |
| 865 |
0 |
| case SWIG_RuntimeError: |
| 866 |
0 |
| return "RuntimeError"; |
| 867 |
0 |
| case SWIG_IndexError: |
| 868 |
0 |
| return "IndexError"; |
| 869 |
0 |
| case SWIG_TypeError: |
| 870 |
0 |
| return "TypeError"; |
| 871 |
0 |
| case SWIG_DivisionByZero: |
| 872 |
0 |
| return "ZeroDivisionError"; |
| 873 |
0 |
| case SWIG_OverflowError: |
| 874 |
0 |
| return "OverflowError"; |
| 875 |
0 |
| case SWIG_SyntaxError: |
| 876 |
0 |
| return "SyntaxError"; |
| 877 |
0 |
| case SWIG_ValueError: |
| 878 |
0 |
| return "ValueError"; |
| 879 |
0 |
| case SWIG_SystemError: |
| 880 |
0 |
| return "SystemError"; |
| 881 |
0 |
| case SWIG_AttributeError: |
| 882 |
0 |
| return "AttributeError"; |
| 883 |
0 |
| default: |
| 884 |
0 |
| return "RuntimeError"; |
| 885 |
|
| } |
| 886 |
|
| } |
| 887 |
|
| |
| 888 |
|
| |
| 889 |
|
| /* ----------------------------------------------------------------------------- |
| 890 |
|
| * perlrun.swg |
| 891 |
|
| * |
| 892 |
|
| * This file contains the runtime support for Perl modules |
| 893 |
|
| * and includes code for managing global variables and pointer |
| 894 |
|
| * type checking. |
| 895 |
|
| * ----------------------------------------------------------------------------- */ |
| 896 |
|
| |
| 897 |
|
| #define SWIG_PERL_OBJECT_DECL |
| 898 |
|
| #define SWIG_PERL_OBJECT_CALL |
| 899 |
|
| |
| 900 |
|
| /* Common SWIG API */ |
| 901 |
|
| |
| 902 |
|
| /* for raw pointers */ |
| 903 |
|
| #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags) |
| 904 |
|
| #define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own) |
| 905 |
|
| #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags) |
| 906 |
|
| #define SWIG_AcquirePtr(ptr, src) SWIG_Perl_AcquirePtr(ptr, src) |
| 907 |
|
| #define swig_owntype int |
| 908 |
|
| |
| 909 |
|
| /* for raw packed data */ |
| 910 |
|
| #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type) |
| 911 |
|
| #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type) |
| 912 |
|
| |
| 913 |
|
| /* for class or struct pointers */ |
| 914 |
|
| #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) |
| 915 |
|
| #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) |
| 916 |
|
| |
| 917 |
|
| /* for C or C++ function pointers */ |
| 918 |
|
| #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) |
| 919 |
|
| #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) |
| 920 |
|
| |
| 921 |
|
| /* for C++ member pointers, ie, member methods */ |
| 922 |
|
| #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty) |
| 923 |
|
| #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type) |
| 924 |
|
| |
| 925 |
|
| |
| 926 |
|
| /* Runtime API */ |
| 927 |
|
| |
| 928 |
|
| #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule(clientdata) |
| 929 |
|
| #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer) |
| 930 |
|
| |
| 931 |
|
| |
| 932 |
|
| /* Error manipulation */ |
| 933 |
|
| |
| 934 |
|
| #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code) |
| 935 |
|
| #define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg) |
| 936 |
|
| #define SWIG_fail goto fail |
| 937 |
|
| |
| 938 |
|
| /* Perl-specific SWIG API */ |
| 939 |
|
| |
| 940 |
|
| #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags) |
| 941 |
|
| #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type) |
| 942 |
|
| #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str) |
| 943 |
|
| |
| 944 |
|
| |
| 945 |
|
| #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1) |
| 946 |
|
| #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1) |
| 947 |
|
| #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2) |
| 948 |
|
| #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2) |
| 949 |
|
| |
| 950 |
|
| /* ----------------------------------------------------------------------------- |
| 951 |
|
| * pointers/data manipulation |
| 952 |
|
| * ----------------------------------------------------------------------------- */ |
| 953 |
|
| |
| 954 |
|
| /* For backward compatibility only */ |
| 955 |
|
| #define SWIG_POINTER_EXCEPTION 0 |
| 956 |
|
| |
| 957 |
|
| #ifdef __cplusplus |
| 958 |
|
| extern "C" { |
| 959 |
|
| #endif |
| 960 |
|
| |
| 961 |
|
| #define SWIG_OWNER SWIG_POINTER_OWN |
| 962 |
|
| #define SWIG_SHADOW SWIG_OWNER << 1 |
| 963 |
|
| |
| 964 |
|
| #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL |
| 965 |
|
| |
| 966 |
|
| /* SWIG Perl macros */ |
| 967 |
|
| |
| 968 |
|
| /* Macro to declare an XS function */ |
| 969 |
|
| #ifndef XSPROTO |
| 970 |
|
| # define XSPROTO(name) void name(pTHX_ CV* cv) |
| 971 |
|
| #endif |
| 972 |
|
| |
| 973 |
|
| /* Macro to call an XS function */ |
| 974 |
|
| #ifndef MULTIPLICITY |
| 975 |
|
| # define SWIG_CALLXS(_name) _name(cv) |
| 976 |
|
| #else |
| 977 |
|
| # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) |
| 978 |
|
| #endif |
| 979 |
|
| |
| 980 |
|
| #define MAGIC_PPERL |
| 981 |
|
| #define SWIGCLASS_STATIC static SWIGUNUSED |
| 982 |
|
| |
| 983 |
|
| #ifndef MULTIPLICITY |
| 984 |
|
| #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) |
| 985 |
|
| |
| 986 |
|
| #ifdef __cplusplus |
| 987 |
|
| extern "C" { |
| 988 |
|
| #endif |
| 989 |
|
| typedef int (*SwigMagicFunc)(SV *, MAGIC *); |
| 990 |
|
| #ifdef __cplusplus |
| 991 |
|
| } |
| 992 |
|
| #endif |
| 993 |
|
| |
| 994 |
|
| #else /* MULTIPLICITY */ |
| 995 |
|
| |
| 996 |
|
| #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) |
| 997 |
|
| |
| 998 |
|
| #ifdef __cplusplus |
| 999 |
|
| extern "C" { |
| 1000 |
|
| #endif |
| 1001 |
|
| typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); |
| 1002 |
|
| #ifdef __cplusplus |
| 1003 |
|
| } |
| 1004 |
|
| #endif |
| 1005 |
|
| |
| 1006 |
|
| #endif /* MULTIPLICITY */ |
| 1007 |
|
| |
| 1008 |
0 |
| static void SWIGUNUSED SWIG_croak_null() |
| 1009 |
|
| { |
| 1010 |
0 |
| SV *err = get_sv("@", GV_ADD); |
| 1011 |
0 |
▶ | if (sv_isobject(err)) |
Branch: 1 branch
| Branch | True | False | Total |
| if (sv_isobject(err)) |
0 |
0 |
0 |
|
| 1012 |
0 |
| croak(0); |
| 1013 |
|
| else |
| 1014 |
0 |
| croak("%s", SvPV_nolen(err)); |
| 1015 |
|
| } |
| 1016 |
|
| |
| 1017 |
|
| |
| 1018 |
|
| /* |
| 1019 |
|
| Define how strict is the cast between strings and integers/doubles |
| 1020 |
|
| when overloading between these types occurs. |
| 1021 |
|
| |
| 1022 |
|
| The default is making it as strict as possible by using SWIG_AddCast |
| 1023 |
|
| when needed. |
| 1024 |
|
| |
| 1025 |
|
| You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to |
| 1026 |
|
| disable the SWIG_AddCast, making the casting between string and |
| 1027 |
|
| numbers less strict. |
| 1028 |
|
| |
| 1029 |
|
| In the end, we try to solve the overloading between strings and |
| 1030 |
|
| numerical types in the more natural way, but if you can avoid it, |
| 1031 |
|
| well, avoid it using %rename, for example. |
| 1032 |
|
| */ |
| 1033 |
|
| #ifndef SWIG_PERL_NO_STRICT_STR2NUM |
| 1034 |
|
| # ifndef SWIG_PERL_STRICT_STR2NUM |
| 1035 |
|
| # define SWIG_PERL_STRICT_STR2NUM |
| 1036 |
|
| # endif |
| 1037 |
|
| #endif |
| 1038 |
|
| #ifdef SWIG_PERL_STRICT_STR2NUM |
| 1039 |
|
| /* string takes precedence */ |
| 1040 |
|
| #define SWIG_Str2NumCast(x) SWIG_AddCast(x) |
| 1041 |
|
| #else |
| 1042 |
|
| /* number takes precedence */ |
| 1043 |
|
| #define SWIG_Str2NumCast(x) x |
| 1044 |
|
| #endif |
| 1045 |
|
| |
| 1046 |
|
| |
| 1047 |
|
| |
| 1048 |
|
| #include <stdlib.h> |
| 1049 |
|
| |
| 1050 |
|
| SWIGRUNTIME const char * |
| 1051 |
0 |
| SWIG_Perl_TypeProxyName(const swig_type_info *type) { |
| 1052 |
0 |
▶ | if (!type) return NULL; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!type) return NULL; |
0 |
0 |
0 |
|
| 1053 |
0 |
▶ | if (type->clientdata != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type->clientdata != NULL) { |
0 |
0 |
0 |
|
| 1054 |
0 |
| return (const char*) type->clientdata; |
| 1055 |
|
| } |
| 1056 |
|
| else { |
| 1057 |
0 |
| return type->name; |
| 1058 |
|
| } |
| 1059 |
|
| } |
| 1060 |
|
| |
| 1061 |
|
| /* Identical to SWIG_TypeCheck, except for strcmp comparison */ |
| 1062 |
|
| SWIGRUNTIME swig_cast_info * |
| 1063 |
0 |
| SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { |
| 1064 |
0 |
▶ | if (ty) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty) { |
0 |
0 |
0 |
|
| 1065 |
0 |
| swig_cast_info *iter = ty->cast; |
| 1066 |
0 |
▶ | while (iter) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (iter) { |
0 |
0 |
0 |
|
| 1067 |
0 |
▶ | if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { |
0 |
0 |
0 |
|
| 1068 |
0 |
▶ | if (iter == ty->cast) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter == ty->cast) |
0 |
0 |
0 |
|
| 1069 |
0 |
| return iter; |
| 1070 |
|
| /* Move iter to the top of the linked list */ |
| 1071 |
0 |
| iter->prev->next = iter->next; |
| 1072 |
0 |
▶ | if (iter->next) |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter->next) |
0 |
0 |
0 |
|
| 1073 |
0 |
| iter->next->prev = iter->prev; |
| 1074 |
0 |
| iter->next = ty->cast; |
| 1075 |
0 |
| iter->prev = 0; |
| 1076 |
0 |
▶ | if (ty->cast) ty->cast->prev = iter; |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty->cast) ty->cast->prev = iter; |
0 |
0 |
0 |
|
| 1077 |
0 |
| ty->cast = iter; |
| 1078 |
0 |
| return iter; |
| 1079 |
|
| } |
| 1080 |
0 |
| iter = iter->next; |
| 1081 |
|
| } |
| 1082 |
|
| } |
| 1083 |
0 |
| return 0; |
| 1084 |
|
| } |
| 1085 |
|
| |
| 1086 |
|
| /* Acquire a pointer value */ |
| 1087 |
|
| |
| 1088 |
|
| SWIGRUNTIME int |
| 1089 |
0 |
| SWIG_Perl_AcquirePtr(SWIG_MAYBE_PERL_OBJECT SV *SWIGUNUSEDPARM(sv), int SWIGUNUSEDPARM(own)) { |
| 1090 |
|
| /* TODO */ |
| 1091 |
0 |
| return 0; |
| 1092 |
|
| } |
| 1093 |
|
| |
| 1094 |
|
| /* Function for getting a pointer value */ |
| 1095 |
|
| |
| 1096 |
|
| SWIGRUNTIME int |
| 1097 |
0 |
| SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) { |
| 1098 |
|
| swig_cast_info *tc; |
| 1099 |
0 |
| void *voidptr = (void *)0; |
| 1100 |
0 |
| SV *tsv = 0; |
| 1101 |
0 |
| int check_owned_pointer_release = (flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE; |
| 1102 |
|
| |
| 1103 |
0 |
▶ | if (own) |
Branch: 1 branch
| Branch | True | False | Total |
| if (own) |
0 |
0 |
0 |
|
| 1104 |
0 |
| *own = 0; |
| 1105 |
|
| |
| 1106 |
|
| /* If magical, apply more magic */ |
| 1107 |
0 |
▶ | if (SvGMAGICAL(sv)) |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvGMAGICAL(sv)) |
0 |
0 |
0 |
|
| 1108 |
0 |
| mg_get(sv); |
| 1109 |
|
| |
| 1110 |
|
| /* Check to see if this is an object */ |
| 1111 |
0 |
▶ | if (sv_isobject(sv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (sv_isobject(sv)) { |
0 |
0 |
0 |
|
| 1112 |
0 |
| IV tmp = 0; |
| 1113 |
0 |
| tsv = (SV*) SvRV(sv); |
| 1114 |
0 |
▶ | if ((SvTYPE(tsv) == SVt_PVHV)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ((SvTYPE(tsv) == SVt_PVHV)) { |
0 |
0 |
0 |
|
| 1115 |
|
| MAGIC *mg; |
| 1116 |
0 |
▶ | if (SvMAGICAL(tsv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvMAGICAL(tsv)) { |
0 |
0 |
0 |
|
| 1117 |
0 |
| mg = mg_find(tsv,'P'); |
| 1118 |
0 |
▶ | if (mg) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (mg) { |
0 |
0 |
0 |
|
| 1119 |
0 |
| sv = mg->mg_obj; |
| 1120 |
0 |
▶ | if (sv_isobject(sv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (sv_isobject(sv)) { |
0 |
0 |
0 |
|
| 1121 |
0 |
| tsv = (SV*)SvRV(sv); |
| 1122 |
0 |
| tmp = SvIV(tsv); |
| 1123 |
|
| } |
| 1124 |
|
| } |
| 1125 |
|
| } else { |
| 1126 |
0 |
| return SWIG_ERROR; |
| 1127 |
|
| } |
| 1128 |
|
| } else { |
| 1129 |
0 |
| tmp = SvIV(tsv); |
| 1130 |
|
| } |
| 1131 |
0 |
| voidptr = INT2PTR(void *,tmp); |
| 1132 |
0 |
▶ | } else if (! SvOK(sv)) { /* Check for undef */ |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (! SvOK(sv)) { /* Check for undef */ |
0 |
0 |
0 |
|
| 1133 |
0 |
| *(ptr) = (void *) 0; |
| 1134 |
0 |
▶ | return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK; |
Branch: 1 branch
| Branch | True | False | Total |
| return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK; |
0 |
0 |
0 |
|
| 1135 |
0 |
▶ | } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ |
0 |
0 |
0 |
|
| 1136 |
0 |
▶ | if (!SvROK(sv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SvROK(sv)) { |
0 |
0 |
0 |
|
| 1137 |
|
| /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */ |
| 1138 |
0 |
▶ | if (SvIOK(sv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvIOK(sv)) { |
0 |
0 |
0 |
|
| 1139 |
0 |
| return SWIG_ERROR; |
| 1140 |
|
| } else { |
| 1141 |
|
| /* NULL pointer (reference to undef). */ |
| 1142 |
0 |
| *(ptr) = (void *) 0; |
| 1143 |
0 |
| return SWIG_OK; |
| 1144 |
|
| } |
| 1145 |
|
| } else { |
| 1146 |
0 |
| return SWIG_ERROR; |
| 1147 |
|
| } |
| 1148 |
|
| } else { /* Don't know what it is */ |
| 1149 |
0 |
| return SWIG_ERROR; |
| 1150 |
|
| } |
| 1151 |
0 |
▶ | if (_t) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (_t) { |
0 |
0 |
0 |
|
| 1152 |
|
| /* Now see if the types match */ |
| 1153 |
0 |
▶ | char *_c = HvNAME(SvSTASH(SvRV(sv))); |
Branch: 6 branches
| Branch | True | False | Total |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
| char *_c = HvNAME(SvSTASH(SvRV(sv))); |
0 |
0 |
0 |
|
| 1154 |
0 |
| tc = SWIG_TypeProxyCheck(_c,_t); |
| 1155 |
|
| #ifdef SWIG_DIRECTORS |
| 1156 |
|
| if (!tc && !sv_derived_from(sv,SWIG_Perl_TypeProxyName(_t))) { |
| 1157 |
|
| #else |
| 1158 |
0 |
▶ | if (!tc) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!tc) { |
0 |
0 |
0 |
|
| 1159 |
|
| #endif |
| 1160 |
0 |
| return SWIG_ERROR; |
| 1161 |
|
| } |
| 1162 |
|
| { |
| 1163 |
0 |
| int newmemory = 0; |
| 1164 |
0 |
| *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); |
| 1165 |
0 |
▶ | if (newmemory == SWIG_CAST_NEW_MEMORY) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (newmemory == SWIG_CAST_NEW_MEMORY) { |
0 |
0 |
0 |
|
| 1166 |
|
| assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ |
| 1167 |
0 |
▶ | if (own) |
Branch: 1 branch
| Branch | True | False | Total |
| if (own) |
0 |
0 |
0 |
|
| 1168 |
0 |
| *own = *own | SWIG_CAST_NEW_MEMORY; |
| 1169 |
|
| } |
| 1170 |
|
| } |
| 1171 |
|
| } else { |
| 1172 |
0 |
| *ptr = voidptr; |
| 1173 |
|
| } |
| 1174 |
|
| |
| 1175 |
|
| /* |
| 1176 |
|
| * DISOWN implementation: we need a perl guru to check this one. |
| 1177 |
|
| */ |
| 1178 |
0 |
▶ | if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { |
Branch: 3 branches
| Branch | True | False | Total |
| if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { |
0 |
0 |
0 |
| if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { |
0 |
0 |
0 |
| if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { |
0 |
0 |
0 |
|
| 1179 |
|
| /* |
| 1180 |
|
| * almost copy paste code from below SWIG_POINTER_OWN setting |
| 1181 |
|
| */ |
| 1182 |
0 |
| SV *obj = sv; |
| 1183 |
0 |
| HV *stash = SvSTASH(SvRV(obj)); |
| 1184 |
0 |
| GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); |
| 1185 |
0 |
| int owned = 0; |
| 1186 |
0 |
▶ | if (isGV(gv)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (isGV(gv)) { |
0 |
0 |
0 |
|
| 1187 |
0 |
▶ | HV *hv = GvHVn(gv); |
Branch: 1 branch
| Branch | True | False | Total |
| HV *hv = GvHVn(gv); |
0 |
0 |
0 |
|
| 1188 |
|
| /* |
| 1189 |
|
| * To set ownership (see below), a newSViv(1) entry is added. |
| 1190 |
|
| * Hence, to remove ownership, we delete the entry. |
| 1191 |
|
| */ |
| 1192 |
0 |
▶ | if (hv_exists_ent(hv, obj, 0)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (hv_exists_ent(hv, obj, 0)) { |
0 |
0 |
0 |
|
| 1193 |
0 |
| owned = 1; |
| 1194 |
0 |
▶ | if (flags & SWIG_POINTER_DISOWN) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (flags & SWIG_POINTER_DISOWN) { |
0 |
0 |
0 |
|
| 1195 |
0 |
| hv_delete_ent(hv, obj, 0, 0); |
| 1196 |
|
| } |
| 1197 |
|
| } |
| 1198 |
|
| } |
| 1199 |
0 |
▶ | if (check_owned_pointer_release && !owned) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (check_owned_pointer_release && !owned) { |
0 |
0 |
0 |
| if (check_owned_pointer_release && !owned) { |
0 |
0 |
0 |
|
| 1200 |
0 |
| return SWIG_ERROR_RELEASE_NOT_OWNED; |
| 1201 |
|
| } |
| 1202 |
|
| } |
| 1203 |
|
| |
| 1204 |
0 |
▶ | if (tsv && (flags & SWIG_POINTER_CLEAR)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (tsv && (flags & SWIG_POINTER_CLEAR)) { |
0 |
0 |
0 |
| if (tsv && (flags & SWIG_POINTER_CLEAR)) { |
0 |
0 |
0 |
|
| 1205 |
0 |
| SvIV_set(tsv, 0); |
| 1206 |
|
| } |
| 1207 |
|
| |
| 1208 |
0 |
| return SWIG_OK; |
| 1209 |
|
| } |
| 1210 |
|
| |
| 1211 |
|
| SWIGRUNTIME int |
| 1212 |
0 |
| SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) { |
| 1213 |
0 |
| return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0); |
| 1214 |
|
| } |
| 1215 |
|
| |
| 1216 |
|
| SWIGRUNTIME void |
| 1217 |
0 |
| SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) { |
| 1218 |
0 |
▶ | if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { |
0 |
0 |
0 |
| if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { |
0 |
0 |
0 |
|
| 1219 |
|
| SV *self; |
| 1220 |
0 |
| SV *obj=newSV(0); |
| 1221 |
0 |
| HV *hash=newHV(); |
| 1222 |
|
| HV *stash; |
| 1223 |
0 |
| sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr); |
| 1224 |
0 |
| stash=SvSTASH(SvRV(obj)); |
| 1225 |
0 |
▶ | if (flags & SWIG_POINTER_OWN) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (flags & SWIG_POINTER_OWN) { |
0 |
0 |
0 |
|
| 1226 |
|
| HV *hv; |
| 1227 |
0 |
| GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); |
| 1228 |
0 |
▶ | if (!isGV(gv)) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!isGV(gv)) |
0 |
0 |
0 |
|
| 1229 |
0 |
| gv_init(gv, stash, "OWNER", 5, FALSE); |
| 1230 |
0 |
▶ | hv=GvHVn(gv); |
Branch: 1 branch
| Branch | True | False | Total |
| hv=GvHVn(gv); |
0 |
0 |
0 |
|
| 1231 |
0 |
| hv_store_ent(hv, obj, newSViv(1), 0); |
| 1232 |
|
| } |
| 1233 |
0 |
| sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0); |
| 1234 |
0 |
| SvREFCNT_dec(obj); |
| 1235 |
0 |
| self=newRV_noinc((SV *)hash); |
| 1236 |
0 |
| sv_setsv(sv, self); |
| 1237 |
0 |
| SvREFCNT_dec((SV *)self); |
| 1238 |
0 |
| sv_bless(sv, stash); |
| 1239 |
|
| } |
| 1240 |
|
| else { |
| 1241 |
0 |
| sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr); |
| 1242 |
|
| } |
| 1243 |
0 |
| } |
| 1244 |
|
| |
| 1245 |
|
| SWIGRUNTIMEINLINE SV * |
| 1246 |
0 |
| SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) { |
| 1247 |
0 |
| SV *result = sv_newmortal(); |
| 1248 |
0 |
| SWIG_MakePtr(result, ptr, t, flags); |
| 1249 |
0 |
| return result; |
| 1250 |
|
| } |
| 1251 |
|
| |
| 1252 |
|
| SWIGRUNTIME void |
| 1253 |
0 |
| SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) { |
| 1254 |
|
| char result[1024]; |
| 1255 |
0 |
| char *r = result; |
| 1256 |
0 |
▶ | if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; |
Branch: 1 branch
| Branch | True | False | Total |
| if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; |
0 |
0 |
0 |
|
| 1257 |
0 |
| *(r++) = '_'; |
| 1258 |
0 |
| r = SWIG_PackData(r,ptr,sz); |
| 1259 |
0 |
| strcpy(r,SWIG_Perl_TypeProxyName(type)); |
| 1260 |
0 |
| sv_setpv(sv, result); |
| 1261 |
|
| } |
| 1262 |
|
| |
| 1263 |
|
| SWIGRUNTIME SV * |
| 1264 |
0 |
| SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) { |
| 1265 |
0 |
| SV *result = sv_newmortal(); |
| 1266 |
0 |
| SWIG_Perl_MakePackedObj(result, ptr, sz, type); |
| 1267 |
0 |
| return result; |
| 1268 |
|
| } |
| 1269 |
|
| |
| 1270 |
|
| /* Convert a packed pointer value */ |
| 1271 |
|
| SWIGRUNTIME int |
| 1272 |
0 |
| SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) { |
| 1273 |
|
| swig_cast_info *tc; |
| 1274 |
0 |
| const char *c = 0; |
| 1275 |
|
| |
| 1276 |
0 |
▶ | if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
Branch: 2 branches
| Branch | True | False | Total |
| if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
0 |
0 |
0 |
| if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
0 |
0 |
0 |
|
| 1277 |
0 |
| c = SvPV_nolen(obj); |
| 1278 |
|
| /* Pointer values must start with leading underscore */ |
| 1279 |
0 |
▶ | if (*c != '_') return SWIG_ERROR; |
Branch: 1 branch
| Branch | True | False | Total |
| if (*c != '_') return SWIG_ERROR; |
0 |
0 |
0 |
|
| 1280 |
0 |
| c++; |
| 1281 |
0 |
| c = SWIG_UnpackData(c,ptr,sz); |
| 1282 |
0 |
▶ | if (ty) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ty) { |
0 |
0 |
0 |
|
| 1283 |
0 |
| tc = SWIG_TypeCheck(c,ty); |
| 1284 |
0 |
▶ | if (!tc) return SWIG_ERROR; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!tc) return SWIG_ERROR; |
0 |
0 |
0 |
|
| 1285 |
|
| } |
| 1286 |
0 |
| return SWIG_OK; |
| 1287 |
|
| } |
| 1288 |
|
| |
| 1289 |
|
| |
| 1290 |
|
| /* Macros for low-level exception handling */ |
| 1291 |
|
| #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } |
| 1292 |
|
| |
| 1293 |
|
| |
| 1294 |
|
| typedef XSPROTO(SwigPerlWrapper); |
| 1295 |
|
| typedef SwigPerlWrapper *SwigPerlWrapperPtr; |
| 1296 |
|
| |
| 1297 |
|
| /* Structure for command table */ |
| 1298 |
|
| typedef struct { |
| 1299 |
|
| const char *name; |
| 1300 |
|
| SwigPerlWrapperPtr wrapper; |
| 1301 |
|
| } swig_command_info; |
| 1302 |
|
| |
| 1303 |
|
| /* Information for constant table */ |
| 1304 |
|
| |
| 1305 |
|
| #define SWIG_INT 1 |
| 1306 |
|
| #define SWIG_FLOAT 2 |
| 1307 |
|
| #define SWIG_STRING 3 |
| 1308 |
|
| #define SWIG_POINTER 4 |
| 1309 |
|
| #define SWIG_BINARY 5 |
| 1310 |
|
| |
| 1311 |
|
| /* Constant information structure */ |
| 1312 |
|
| typedef struct swig_constant_info { |
| 1313 |
|
| int type; |
| 1314 |
|
| const char *name; |
| 1315 |
|
| long lvalue; |
| 1316 |
|
| double dvalue; |
| 1317 |
|
| void *pvalue; |
| 1318 |
|
| swig_type_info **ptype; |
| 1319 |
|
| } swig_constant_info; |
| 1320 |
|
| |
| 1321 |
|
| |
| 1322 |
|
| /* Structure for variable table */ |
| 1323 |
|
| typedef struct { |
| 1324 |
|
| const char *name; |
| 1325 |
|
| SwigMagicFunc set; |
| 1326 |
|
| SwigMagicFunc get; |
| 1327 |
|
| swig_type_info **type; |
| 1328 |
|
| } swig_variable_info; |
| 1329 |
|
| |
| 1330 |
|
| /* Magic variable code */ |
| 1331 |
|
| #ifdef __cplusplus |
| 1332 |
|
| # define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast<char*>(a),b,c) |
| 1333 |
|
| #else |
| 1334 |
|
| # define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c) |
| 1335 |
|
| #endif |
| 1336 |
|
| #ifndef MULTIPLICITY |
| 1337 |
0 |
| SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) |
| 1338 |
|
| #else |
| 1339 |
|
| SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) |
| 1340 |
|
| #endif |
| 1341 |
|
| { |
| 1342 |
|
| MAGIC *mg; |
| 1343 |
0 |
| sv_magic(sv,sv,'U',name,(I32)strlen(name)); |
| 1344 |
0 |
| mg = mg_find(sv,'U'); |
| 1345 |
0 |
| mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); |
| 1346 |
0 |
| mg->mg_virtual->svt_get = (SwigMagicFunc) get; |
| 1347 |
0 |
| mg->mg_virtual->svt_set = (SwigMagicFunc) set; |
| 1348 |
0 |
| mg->mg_virtual->svt_len = 0; |
| 1349 |
0 |
| mg->mg_virtual->svt_clear = 0; |
| 1350 |
0 |
| mg->mg_virtual->svt_free = 0; |
| 1351 |
0 |
| } |
| 1352 |
|
| |
| 1353 |
|
| |
| 1354 |
|
| SWIGRUNTIME swig_module_info * |
| 1355 |
0 |
| SWIG_Perl_GetModule(void *SWIGUNUSEDPARM(clientdata)) { |
| 1356 |
|
| static void *type_pointer = (void *)0; |
| 1357 |
|
| SV *pointer; |
| 1358 |
|
| |
| 1359 |
|
| /* first check if pointer already created */ |
| 1360 |
0 |
▶ | if (!type_pointer) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!type_pointer) { |
0 |
0 |
0 |
|
| 1361 |
0 |
| pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); |
| 1362 |
0 |
▶ | if (pointer && SvOK(pointer)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (pointer && SvOK(pointer)) { |
0 |
0 |
0 |
| if (pointer && SvOK(pointer)) { |
0 |
0 |
0 |
|
| 1363 |
0 |
| type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); |
| 1364 |
|
| } |
| 1365 |
|
| } |
| 1366 |
|
| |
| 1367 |
0 |
| return (swig_module_info *) type_pointer; |
| 1368 |
|
| } |
| 1369 |
|
| |
| 1370 |
|
| SWIGRUNTIME void |
| 1371 |
0 |
| SWIG_Perl_SetModule(swig_module_info *module) { |
| 1372 |
|
| SV *pointer; |
| 1373 |
|
| |
| 1374 |
|
| /* create a new pointer */ |
| 1375 |
0 |
| pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); |
| 1376 |
0 |
| sv_setiv(pointer, PTR2IV(module)); |
| 1377 |
0 |
| } |
| 1378 |
|
| |
| 1379 |
|
| #ifdef __cplusplus |
| 1380 |
|
| } |
| 1381 |
|
| #endif |
| 1382 |
|
| |
| 1383 |
|
| /* Workaround perl5 global namespace pollution. Note that undefining library |
| 1384 |
|
| * functions like fopen will not solve the problem on all platforms as fopen |
| 1385 |
|
| * might be a macro on Windows but not necessarily on other operating systems. */ |
| 1386 |
|
| #ifdef do_open |
| 1387 |
|
| #undef do_open |
| 1388 |
|
| #endif |
| 1389 |
|
| #ifdef do_close |
| 1390 |
|
| #undef do_close |
| 1391 |
|
| #endif |
| 1392 |
|
| #ifdef do_exec |
| 1393 |
|
| #undef do_exec |
| 1394 |
|
| #endif |
| 1395 |
|
| #ifdef scalar |
| 1396 |
|
| #undef scalar |
| 1397 |
|
| #endif |
| 1398 |
|
| #ifdef list |
| 1399 |
|
| #undef list |
| 1400 |
|
| #endif |
| 1401 |
|
| #ifdef apply |
| 1402 |
|
| #undef apply |
| 1403 |
|
| #endif |
| 1404 |
|
| #ifdef convert |
| 1405 |
|
| #undef convert |
| 1406 |
|
| #endif |
| 1407 |
|
| #ifdef Error |
| 1408 |
|
| #undef Error |
| 1409 |
|
| #endif |
| 1410 |
|
| #ifdef form |
| 1411 |
|
| #undef form |
| 1412 |
|
| #endif |
| 1413 |
|
| #ifdef vform |
| 1414 |
|
| #undef vform |
| 1415 |
|
| #endif |
| 1416 |
|
| #ifdef LABEL |
| 1417 |
|
| #undef LABEL |
| 1418 |
|
| #endif |
| 1419 |
|
| #ifdef METHOD |
| 1420 |
|
| #undef METHOD |
| 1421 |
|
| #endif |
| 1422 |
|
| #ifdef Move |
| 1423 |
|
| #undef Move |
| 1424 |
|
| #endif |
| 1425 |
|
| #ifdef yylex |
| 1426 |
|
| #undef yylex |
| 1427 |
|
| #endif |
| 1428 |
|
| #ifdef yyparse |
| 1429 |
|
| #undef yyparse |
| 1430 |
|
| #endif |
| 1431 |
|
| #ifdef yyerror |
| 1432 |
|
| #undef yyerror |
| 1433 |
|
| #endif |
| 1434 |
|
| #ifdef invert |
| 1435 |
|
| #undef invert |
| 1436 |
|
| #endif |
| 1437 |
|
| #ifdef ref |
| 1438 |
|
| #undef ref |
| 1439 |
|
| #endif |
| 1440 |
|
| #ifdef read |
| 1441 |
|
| #undef read |
| 1442 |
|
| #endif |
| 1443 |
|
| #ifdef write |
| 1444 |
|
| #undef write |
| 1445 |
|
| #endif |
| 1446 |
|
| #ifdef eof |
| 1447 |
|
| #undef eof |
| 1448 |
|
| #endif |
| 1449 |
|
| #ifdef close |
| 1450 |
|
| #undef close |
| 1451 |
|
| #endif |
| 1452 |
|
| #ifdef rewind |
| 1453 |
|
| #undef rewind |
| 1454 |
|
| #endif |
| 1455 |
|
| #ifdef free |
| 1456 |
|
| #undef free |
| 1457 |
|
| #endif |
| 1458 |
|
| #ifdef malloc |
| 1459 |
|
| #undef malloc |
| 1460 |
|
| #endif |
| 1461 |
|
| #ifdef calloc |
| 1462 |
|
| #undef calloc |
| 1463 |
|
| #endif |
| 1464 |
|
| #ifdef Stat |
| 1465 |
|
| #undef Stat |
| 1466 |
|
| #endif |
| 1467 |
|
| #ifdef check |
| 1468 |
|
| #undef check |
| 1469 |
|
| #endif |
| 1470 |
|
| #ifdef seekdir |
| 1471 |
|
| #undef seekdir |
| 1472 |
|
| #endif |
| 1473 |
|
| #ifdef open |
| 1474 |
|
| #undef open |
| 1475 |
|
| #endif |
| 1476 |
|
| #ifdef readdir |
| 1477 |
|
| #undef readdir |
| 1478 |
|
| #endif |
| 1479 |
|
| #ifdef bind |
| 1480 |
|
| #undef bind |
| 1481 |
|
| #endif |
| 1482 |
|
| #ifdef access |
| 1483 |
|
| #undef access |
| 1484 |
|
| #endif |
| 1485 |
|
| #ifdef stat |
| 1486 |
|
| #undef stat |
| 1487 |
|
| #endif |
| 1488 |
|
| #ifdef seed |
| 1489 |
|
| #undef seed |
| 1490 |
|
| #endif |
| 1491 |
|
| |
| 1492 |
|
| #ifdef bool |
| 1493 |
|
| /* Leave if macro is from C99 stdbool.h */ |
| 1494 |
|
| #ifndef __bool_true_false_are_defined |
| 1495 |
|
| #undef bool |
| 1496 |
|
| #endif |
| 1497 |
|
| #endif |
| 1498 |
|
| |
| 1499 |
|
| |
| 1500 |
|
| |
| 1501 |
|
| |
| 1502 |
|
| #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) |
| 1503 |
|
| |
| 1504 |
|
| #define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0) |
| 1505 |
|
| |
| 1506 |
|
| |
| 1507 |
|
| |
| 1508 |
|
| /* -------- TYPES TABLE (BEGIN) -------- */ |
| 1509 |
|
| |
| 1510 |
|
| #define SWIGTYPE_p_FILE swig_types[0] |
| 1511 |
|
| #define SWIGTYPE_p_char swig_types[1] |
| 1512 |
|
| #define SWIGTYPE_p_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_q_const__gsl_vector_p_void_p_gsl_matrix__int swig_types[4] |
| 1515 |
|
| #define SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int swig_types[5] |
| 1516 |
|
| #define SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector_p_gsl_matrix__int swig_types[6] |
| 1517 |
|
| #define SWIGTYPE_p_f_p_void__void swig_types[7] |
| 1518 |
|
| #define SWIGTYPE_p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int swig_types[8] |
| 1519 |
|
| #define SWIGTYPE_p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int swig_types[9] |
| 1520 |
|
| #define SWIGTYPE_p_f_p_void_size_t__int swig_types[10] |
| 1521 |
|
| #define SWIGTYPE_p_gsl_matrix swig_types[11] |
| 1522 |
|
| #define SWIGTYPE_p_gsl_multiroot_fdfsolver swig_types[12] |
| 1523 |
|
| #define SWIGTYPE_p_gsl_multiroot_fdfsolver_type swig_types[13] |
| 1524 |
|
| #define SWIGTYPE_p_gsl_multiroot_fsolver swig_types[14] |
| 1525 |
|
| #define SWIGTYPE_p_gsl_multiroot_fsolver_type swig_types[15] |
| 1526 |
|
| #define SWIGTYPE_p_gsl_multiroot_function_fdf_struct swig_types[16] |
| 1527 |
|
| #define SWIGTYPE_p_gsl_multiroot_function_struct swig_types[17] |
| 1528 |
|
| #define SWIGTYPE_p_gsl_vector swig_types[18] |
| 1529 |
|
| #define SWIGTYPE_p_void swig_types[19] |
| 1530 |
|
| static swig_type_info *swig_types[21]; |
| 1531 |
|
| static swig_module_info swig_module = {swig_types, 20, 0, 0, 0, 0}; |
| 1532 |
|
| #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
| 1533 |
|
| #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
| 1534 |
|
| |
| 1535 |
|
| /* -------- TYPES TABLE (END) -------- */ |
| 1536 |
|
| |
| 1537 |
|
| #define SWIG_init boot_Math__GSL__Multiroots |
| 1538 |
|
| |
| 1539 |
|
| #define SWIG_name "Math::GSL::Multirootsc::boot_Math__GSL__Multiroots" |
| 1540 |
|
| #define SWIG_prefix "Math::GSL::Multirootsc::" |
| 1541 |
|
| |
| 1542 |
|
| #define SWIG_as_voidptr(a) (void *)((const void *)(a)) |
| 1543 |
|
| #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) |
| 1544 |
|
| |
| 1545 |
|
| |
| 1546 |
|
| #ifdef __cplusplus |
| 1547 |
|
| extern "C" |
| 1548 |
|
| #endif |
| 1549 |
|
| #ifndef MULTIPLICITY |
| 1550 |
|
| SWIGEXPORT void SWIG_init (CV* cv); |
| 1551 |
|
| #else |
| 1552 |
|
| SWIGEXPORT void SWIG_init (pTHXo_ CV* cv); |
| 1553 |
|
| #endif |
| 1554 |
|
| |
| 1555 |
|
| |
| 1556 |
|
| SWIGINTERNINLINE SV * |
| 1557 |
0 |
| SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value) |
| 1558 |
|
| { |
| 1559 |
0 |
| return sv_2mortal(newSVnv(value)); |
| 1560 |
|
| } |
| 1561 |
|
| |
| 1562 |
|
| |
| 1563 |
|
| SWIGINTERNINLINE SV * |
| 1564 |
0 |
| SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value) |
| 1565 |
|
| { |
| 1566 |
|
| SV *sv; |
| 1567 |
|
| if (IVSIZE >= sizeof(value) || (value >= IV_MIN && value <= IV_MAX)) |
| 1568 |
0 |
| sv = newSViv(value); |
| 1569 |
|
| else |
| 1570 |
|
| sv = newSVpvf("%ld", value); |
| 1571 |
0 |
| return sv_2mortal(sv); |
| 1572 |
|
| } |
| 1573 |
|
| |
| 1574 |
|
| |
| 1575 |
|
| SWIGINTERNINLINE SV * |
| 1576 |
0 |
| SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value) |
| 1577 |
|
| { |
| 1578 |
0 |
| return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); |
| 1579 |
|
| } |
| 1580 |
|
| |
| 1581 |
|
| |
| 1582 |
|
| SWIGINTERN swig_type_info* |
| 1583 |
0 |
| SWIG_pchar_descriptor(void) |
| 1584 |
|
| { |
| 1585 |
|
| static int init = 0; |
| 1586 |
|
| static swig_type_info* info = 0; |
| 1587 |
0 |
▶ | if (!init) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!init) { |
0 |
0 |
0 |
|
| 1588 |
0 |
| info = SWIG_TypeQuery("_p_char"); |
| 1589 |
0 |
| init = 1; |
| 1590 |
|
| } |
| 1591 |
0 |
| return info; |
| 1592 |
|
| } |
| 1593 |
|
| |
| 1594 |
|
| |
| 1595 |
|
| SWIGINTERN int |
| 1596 |
0 |
| SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc) |
| 1597 |
|
| { |
| 1598 |
0 |
▶ | if (SvMAGICAL(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvMAGICAL(obj)) { |
0 |
0 |
0 |
|
| 1599 |
0 |
| SV *tmp = sv_newmortal(); |
| 1600 |
0 |
▶ | SvSetSV(tmp, obj); |
Branch: 1 branch
| Branch | True | False | Total |
| SvSetSV(tmp, obj); |
0 |
0 |
0 |
|
| 1601 |
0 |
| obj = tmp; |
| 1602 |
|
| } |
| 1603 |
0 |
▶ | if (SvPOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvPOK(obj)) { |
0 |
0 |
0 |
|
| 1604 |
0 |
| STRLEN len = 0; |
| 1605 |
0 |
| char *cstr = SvPV(obj, len); |
| 1606 |
0 |
| size_t size = len + 1; |
| 1607 |
0 |
▶ | if (cptr) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (cptr) { |
0 |
0 |
0 |
|
| 1608 |
0 |
▶ | if (alloc) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc) { |
0 |
0 |
0 |
|
| 1609 |
0 |
▶ | if (*alloc == SWIG_NEWOBJ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*alloc == SWIG_NEWOBJ) { |
0 |
0 |
0 |
|
| 1610 |
0 |
| *cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size)); |
| 1611 |
|
| } else { |
| 1612 |
0 |
| *cptr = cstr; |
| 1613 |
0 |
| *alloc = SWIG_OLDOBJ; |
| 1614 |
|
| } |
| 1615 |
|
| } |
| 1616 |
|
| } |
| 1617 |
0 |
▶ | if (psize) *psize = size; |
Branch: 1 branch
| Branch | True | False | Total |
| if (psize) *psize = size; |
0 |
0 |
0 |
|
| 1618 |
0 |
| return SWIG_OK; |
| 1619 |
|
| } else { |
| 1620 |
0 |
| swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
| 1621 |
0 |
▶ | if (pchar_descriptor) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (pchar_descriptor) { |
0 |
0 |
0 |
|
| 1622 |
0 |
| char* vptr = 0; |
| 1623 |
0 |
▶ | if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { |
0 |
0 |
0 |
|
| 1624 |
0 |
▶ | if (cptr) *cptr = vptr; |
Branch: 1 branch
| Branch | True | False | Total |
| if (cptr) *cptr = vptr; |
0 |
0 |
0 |
|
| 1625 |
0 |
▶ | if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; |
Branch: 2 branches
| Branch | True | False | Total |
| if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; |
0 |
0 |
0 |
| if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; |
0 |
0 |
0 |
|
| 1626 |
0 |
▶ | if (alloc) *alloc = SWIG_OLDOBJ; |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc) *alloc = SWIG_OLDOBJ; |
0 |
0 |
0 |
|
| 1627 |
0 |
| return SWIG_OK; |
| 1628 |
|
| } |
| 1629 |
|
| } |
| 1630 |
|
| } |
| 1631 |
0 |
| return SWIG_TypeError; |
| 1632 |
|
| } |
| 1633 |
|
| |
| 1634 |
|
| |
| 1635 |
|
| |
| 1636 |
|
| |
| 1637 |
|
| |
| 1638 |
|
| #include <limits.h> |
| 1639 |
|
| #if !defined(SWIG_NO_LLONG_MAX) |
| 1640 |
|
| # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) |
| 1641 |
|
| # define LLONG_MAX __LONG_LONG_MAX__ |
| 1642 |
|
| # define LLONG_MIN (-LLONG_MAX - 1LL) |
| 1643 |
|
| # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) |
| 1644 |
|
| # endif |
| 1645 |
|
| #endif |
| 1646 |
|
| |
| 1647 |
|
| |
| 1648 |
|
| #include <stdlib.h> |
| 1649 |
|
| #ifdef _MSC_VER |
| 1650 |
|
| # ifndef strtoull |
| 1651 |
|
| # define strtoull _strtoui64 |
| 1652 |
|
| # endif |
| 1653 |
|
| # ifndef strtoll |
| 1654 |
|
| # define strtoll _strtoi64 |
| 1655 |
|
| # endif |
| 1656 |
|
| #endif |
| 1657 |
|
| |
| 1658 |
|
| |
| 1659 |
|
| SWIGINTERN int |
| 1660 |
0 |
| SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) |
| 1661 |
|
| { |
| 1662 |
0 |
▶ | if (SvNIOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvNIOK(obj)) { |
0 |
0 |
0 |
|
| 1663 |
0 |
▶ | if (val) *val = SvNV(obj); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = SvNV(obj); |
0 |
0 |
0 |
|
| 1664 |
0 |
| return SWIG_OK; |
| 1665 |
0 |
▶ | } else if (SvIOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (SvIOK(obj)) { |
0 |
0 |
0 |
|
| 1666 |
0 |
▶ | if (val) *val = (double) SvIV(obj); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = (double) SvIV(obj); |
0 |
0 |
0 |
|
| 1667 |
0 |
| return SWIG_AddCast(SWIG_OK); |
| 1668 |
|
| } else { |
| 1669 |
0 |
| const char *nptr = SvPV_nolen(obj); |
| 1670 |
0 |
▶ | if (nptr) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (nptr) { |
0 |
0 |
0 |
|
| 1671 |
|
| char *endptr; |
| 1672 |
|
| double v; |
| 1673 |
0 |
| errno = 0; |
| 1674 |
0 |
| v = strtod(nptr, &endptr); |
| 1675 |
0 |
▶ | if (errno == ERANGE) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (errno == ERANGE) { |
0 |
0 |
0 |
|
| 1676 |
0 |
| errno = 0; |
| 1677 |
0 |
| return SWIG_OverflowError; |
| 1678 |
|
| } else { |
| 1679 |
0 |
▶ | if (*endptr == '\0') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*endptr == '\0') { |
0 |
0 |
0 |
|
| 1680 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 1681 |
0 |
| return SWIG_Str2NumCast(SWIG_OK); |
| 1682 |
|
| } |
| 1683 |
|
| } |
| 1684 |
|
| } |
| 1685 |
|
| } |
| 1686 |
0 |
| return SWIG_TypeError; |
| 1687 |
|
| } |
| 1688 |
|
| |
| 1689 |
|
| |
| 1690 |
|
| #include <float.h> |
| 1691 |
|
| |
| 1692 |
|
| |
| 1693 |
|
| #include <math.h> |
| 1694 |
|
| |
| 1695 |
|
| |
| 1696 |
|
| SWIGINTERNINLINE int |
| 1697 |
0 |
| SWIG_CanCastAsInteger(double *d, double min, double max) { |
| 1698 |
0 |
| double x = *d; |
| 1699 |
0 |
▶ | if ((min <= x && x <= max)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((min <= x && x <= max)) { |
0 |
0 |
0 |
| if ((min <= x && x <= max)) { |
0 |
0 |
0 |
|
| 1700 |
|
| double fx, cx, rd; |
| 1701 |
0 |
| errno = 0; |
| 1702 |
0 |
| fx = floor(x); |
| 1703 |
0 |
| cx = ceil(x); |
| 1704 |
0 |
▶ | rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
Branch: 1 branch
| Branch | True | False | Total |
| rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
0 |
0 |
0 |
|
| 1705 |
0 |
▶ | if ((errno == EDOM) || (errno == ERANGE)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((errno == EDOM) || (errno == ERANGE)) { |
0 |
0 |
0 |
| if ((errno == EDOM) || (errno == ERANGE)) { |
0 |
0 |
0 |
|
| 1706 |
0 |
| errno = 0; |
| 1707 |
|
| } else { |
| 1708 |
|
| double summ, reps, diff; |
| 1709 |
0 |
▶ | if (rd < x) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (rd < x) { |
0 |
0 |
0 |
|
| 1710 |
0 |
| diff = x - rd; |
| 1711 |
0 |
▶ | } else if (rd > x) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (rd > x) { |
0 |
0 |
0 |
|
| 1712 |
0 |
| diff = rd - x; |
| 1713 |
|
| } else { |
| 1714 |
0 |
| return 1; |
| 1715 |
|
| } |
| 1716 |
0 |
| summ = rd + x; |
| 1717 |
0 |
| reps = diff/summ; |
| 1718 |
0 |
▶ | if (reps < 8*DBL_EPSILON) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (reps < 8*DBL_EPSILON) { |
0 |
0 |
0 |
|
| 1719 |
0 |
| *d = rd; |
| 1720 |
0 |
| return 1; |
| 1721 |
|
| } |
| 1722 |
|
| } |
| 1723 |
|
| } |
| 1724 |
0 |
| return 0; |
| 1725 |
|
| } |
| 1726 |
|
| |
| 1727 |
|
| |
| 1728 |
|
| SWIGINTERN int |
| 1729 |
0 |
| SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val) |
| 1730 |
|
| { |
| 1731 |
0 |
▶ | if (SvUOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvUOK(obj)) { |
0 |
0 |
0 |
|
| 1732 |
0 |
| UV v = SvUV(obj); |
| 1733 |
0 |
▶ | if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { |
0 |
0 |
0 |
|
| 1734 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 1735 |
0 |
| return SWIG_OK; |
| 1736 |
|
| } |
| 1737 |
0 |
| return SWIG_OverflowError; |
| 1738 |
0 |
▶ | } else if (SvIOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (SvIOK(obj)) { |
0 |
0 |
0 |
|
| 1739 |
0 |
| IV v = SvIV(obj); |
| 1740 |
|
| if (IVSIZE <= sizeof(*val) || (v >= LONG_MIN && v <= LONG_MAX)) { |
| 1741 |
0 |
▶ | if(val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if(val) *val = v; |
0 |
0 |
0 |
|
| 1742 |
0 |
| return SWIG_OK; |
| 1743 |
|
| } |
| 1744 |
|
| return SWIG_OverflowError; |
| 1745 |
|
| } else { |
| 1746 |
0 |
| int dispatch = 0; |
| 1747 |
0 |
| const char *nptr = SvPV_nolen(obj); |
| 1748 |
0 |
▶ | if (nptr) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (nptr) { |
0 |
0 |
0 |
|
| 1749 |
|
| char *endptr; |
| 1750 |
|
| long v; |
| 1751 |
0 |
| errno = 0; |
| 1752 |
0 |
| v = strtol(nptr, &endptr,0); |
| 1753 |
0 |
▶ | if (errno == ERANGE) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (errno == ERANGE) { |
0 |
0 |
0 |
|
| 1754 |
0 |
| errno = 0; |
| 1755 |
0 |
| return SWIG_OverflowError; |
| 1756 |
|
| } else { |
| 1757 |
0 |
▶ | if (*endptr == '\0') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*endptr == '\0') { |
0 |
0 |
0 |
|
| 1758 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 1759 |
0 |
| return SWIG_Str2NumCast(SWIG_OK); |
| 1760 |
|
| } |
| 1761 |
|
| } |
| 1762 |
|
| } |
| 1763 |
0 |
▶ | if (!dispatch) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!dispatch) { |
0 |
0 |
0 |
|
| 1764 |
|
| double d; |
| 1765 |
0 |
| int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); |
| 1766 |
0 |
▶ | if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { |
0 |
0 |
0 |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { |
0 |
0 |
0 |
|
| 1767 |
0 |
▶ | if (val) *val = (long)(d); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = (long)(d); |
0 |
0 |
0 |
|
| 1768 |
0 |
| return res; |
| 1769 |
|
| } |
| 1770 |
|
| } |
| 1771 |
|
| } |
| 1772 |
0 |
| return SWIG_TypeError; |
| 1773 |
|
| } |
| 1774 |
|
| |
| 1775 |
|
| |
| 1776 |
|
| SWIGINTERN int |
| 1777 |
0 |
| SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val) |
| 1778 |
|
| { |
| 1779 |
|
| long v; |
| 1780 |
0 |
| int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v); |
| 1781 |
0 |
▶ | if (SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 1782 |
0 |
▶ | if ((v < INT_MIN || v > INT_MAX)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((v < INT_MIN || v > INT_MAX)) { |
0 |
0 |
0 |
| if ((v < INT_MIN || v > INT_MAX)) { |
0 |
0 |
0 |
|
| 1783 |
0 |
| return SWIG_OverflowError; |
| 1784 |
|
| } else { |
| 1785 |
0 |
▶ | if (val) *val = (int)(v); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = (int)(v); |
0 |
0 |
0 |
|
| 1786 |
|
| } |
| 1787 |
|
| } |
| 1788 |
0 |
| return res; |
| 1789 |
|
| } |
| 1790 |
|
| |
| 1791 |
|
| |
| 1792 |
|
| SWIGINTERNINLINE SV * |
| 1793 |
0 |
| SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
| 1794 |
|
| { |
| 1795 |
0 |
| SV *obj = sv_newmortal(); |
| 1796 |
0 |
▶ | if (carray) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (carray) { |
0 |
0 |
0 |
|
| 1797 |
0 |
| sv_setpvn(obj, carray, size); |
| 1798 |
|
| } else { |
| 1799 |
0 |
| sv_setsv(obj, &PL_sv_undef); |
| 1800 |
|
| } |
| 1801 |
0 |
| return obj; |
| 1802 |
|
| } |
| 1803 |
|
| |
| 1804 |
|
| |
| 1805 |
|
| SWIGINTERNINLINE SV * |
| 1806 |
0 |
| SWIG_FromCharPtr(const char *cptr) |
| 1807 |
|
| { |
| 1808 |
0 |
▶ | return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); |
Branch: 1 branch
| Branch | True | False | Total |
| return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); |
0 |
0 |
0 |
|
| 1809 |
|
| } |
| 1810 |
|
| |
| 1811 |
|
| |
| 1812 |
|
| #include "gsl/gsl_nan.h" |
| 1813 |
|
| #include "gsl/gsl_errno.h" |
| 1814 |
|
| #include "gsl/gsl_math.h" |
| 1815 |
|
| #include "gsl/gsl_monte.h" |
| 1816 |
|
| |
| 1817 |
|
| |
| 1818 |
|
| struct perl_array { |
| 1819 |
|
| I32 len; |
| 1820 |
|
| AV *array; |
| 1821 |
|
| }; |
| 1822 |
|
| |
| 1823 |
|
| |
| 1824 |
|
| |
| 1825 |
|
| enum awType { awDouble, awFloat, awInt, awUnsigned }; |
| 1826 |
|
| |
| 1827 |
|
| typedef struct { |
| 1828 |
|
| I32 size; |
| 1829 |
|
| enum awType type; |
| 1830 |
|
| void * data; |
| 1831 |
|
| } array_wrapper; |
| 1832 |
|
| |
| 1833 |
0 |
| array_wrapper * array_wrapper_alloc(int numelem, enum awType type){ |
| 1834 |
0 |
| array_wrapper * rv = malloc(sizeof(array_wrapper)); |
| 1835 |
|
| |
| 1836 |
0 |
▶ | if (rv == NULL) |
Branch: 1 branch
| Branch | True | False | Total |
| if (rv == NULL) |
0 |
0 |
0 |
|
| 1837 |
0 |
| croak("array_wrapper_alloc: can't malloc wrapper\n"); |
| 1838 |
|
| |
| 1839 |
0 |
| switch (type){ |
| 1840 |
0 |
| case awDouble: |
| 1841 |
0 |
| rv->data = malloc(sizeof(double) * numelem); |
| 1842 |
0 |
| break; |
| 1843 |
0 |
| case awFloat: |
| 1844 |
0 |
| rv->data = malloc(sizeof(float) * numelem); |
| 1845 |
0 |
| break; |
| 1846 |
0 |
| case awInt: |
| 1847 |
0 |
| rv->data = malloc(sizeof(int) * numelem); |
| 1848 |
0 |
| break; |
| 1849 |
0 |
| case awUnsigned: |
| 1850 |
0 |
| rv->data = malloc(sizeof(unsigned int) * numelem); |
| 1851 |
0 |
| break; |
| 1852 |
0 |
| default: |
| 1853 |
0 |
| croak("array_wrapper_alloc: type should be awDouble, awFloat, awInt, or awUnsigned"); |
| 1854 |
|
| } |
| 1855 |
|
| |
| 1856 |
0 |
▶ | if (rv->data == NULL) |
Branch: 1 branch
| Branch | True | False | Total |
| if (rv->data == NULL) |
0 |
0 |
0 |
|
| 1857 |
0 |
| croak("array_wrapper_alloc: can't malloc data"); |
| 1858 |
|
| |
| 1859 |
0 |
| rv->size = numelem; |
| 1860 |
0 |
| rv->type = type; |
| 1861 |
0 |
| return rv; |
| 1862 |
|
| } |
| 1863 |
|
| |
| 1864 |
0 |
| void array_wrapper_free(array_wrapper * daw){ |
| 1865 |
0 |
| free(daw->data); |
| 1866 |
0 |
| free(daw); |
| 1867 |
0 |
| } |
| 1868 |
|
| |
| 1869 |
|
| |
| 1870 |
|
| /* structure to hold required information while the gsl function call |
| 1871 |
|
| for each callback |
| 1872 |
|
| */ |
| 1873 |
|
| struct gsl_function_perl { |
| 1874 |
|
| gsl_function C_gsl_function; |
| 1875 |
|
| SV * function; |
| 1876 |
|
| SV * params; |
| 1877 |
|
| }; |
| 1878 |
|
| |
| 1879 |
|
| struct gsl_function_fdf_perl { |
| 1880 |
|
| gsl_function_fdf C_gsl_function_fdf; |
| 1881 |
|
| SV * f; |
| 1882 |
|
| SV * df; |
| 1883 |
|
| SV * fdf; |
| 1884 |
|
| SV * params; |
| 1885 |
|
| }; |
| 1886 |
|
| |
| 1887 |
|
| struct gsl_monte_function_perl { |
| 1888 |
|
| gsl_monte_function C_gsl_monte_function; |
| 1889 |
|
| SV * f; |
| 1890 |
|
| SV * dim; |
| 1891 |
|
| SV * params; |
| 1892 |
|
| }; |
| 1893 |
|
| |
| 1894 |
0 |
| void gsl_function_perl_free(struct gsl_function_perl * perl_f){ |
| 1895 |
0 |
▶ | if (perl_f != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (perl_f != NULL) { |
0 |
0 |
0 |
|
| 1896 |
0 |
| SvREFCNT_dec(perl_f->function); |
| 1897 |
0 |
| SvREFCNT_dec(perl_f->params); |
| 1898 |
0 |
| Safefree(perl_f); |
| 1899 |
|
| } |
| 1900 |
0 |
| } |
| 1901 |
|
| |
| 1902 |
0 |
| void gsl_function_fdf_perl_free(struct gsl_function_fdf_perl * perl_fdf){ |
| 1903 |
0 |
▶ | if (perl_fdf != NULL) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (perl_fdf != NULL) { |
0 |
0 |
0 |
|
| 1904 |
0 |
| SvREFCNT_dec(perl_fdf->f); |
| 1905 |
0 |
| SvREFCNT_dec(perl_fdf->df); |
| 1906 |
0 |
| SvREFCNT_dec(perl_fdf->fdf); |
| 1907 |
0 |
| SvREFCNT_dec(perl_fdf->params); |
| 1908 |
0 |
| Safefree(perl_fdf); |
| 1909 |
|
| } |
| 1910 |
0 |
| } |
| 1911 |
|
| |
| 1912 |
|
| /* These functions (C callbacks) calls the perl callbacks. |
| 1913 |
|
| Info for perl callback can be found using the 'void*params' parameter |
| 1914 |
|
| */ |
| 1915 |
0 |
| double call_gsl_function_x_params(SV* function, double x, SV *params){ |
| 1916 |
|
| unsigned int count; |
| 1917 |
|
| double y; |
| 1918 |
0 |
| dSP; |
| 1919 |
|
| |
| 1920 |
|
| //fprintf(stderr, "LOOKUP CALLBACK\n"); |
| 1921 |
0 |
| ENTER; |
| 1922 |
0 |
| SAVETMPS; |
| 1923 |
|
| |
| 1924 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 1925 |
0 |
▶ | XPUSHs(sv_2mortal(newSVnv((double)x))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVnv((double)x))); |
0 |
0 |
0 |
|
| 1926 |
0 |
▶ | XPUSHs(params); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(params); |
0 |
0 |
0 |
|
| 1927 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 1928 |
|
| |
| 1929 |
0 |
| count = call_sv(function, G_SCALAR); |
| 1930 |
0 |
| SPAGAIN; |
| 1931 |
|
| |
| 1932 |
0 |
▶ | if (count != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (count != 1) |
0 |
0 |
0 |
|
| 1933 |
0 |
| croak("Expected to call subroutine in scalar context!"); |
| 1934 |
|
| |
| 1935 |
0 |
| y = POPn; |
| 1936 |
|
| |
| 1937 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 1938 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 1939 |
0 |
| LEAVE; |
| 1940 |
|
| |
| 1941 |
0 |
| return y; |
| 1942 |
|
| } |
| 1943 |
|
| |
| 1944 |
0 |
| double call_gsl_function(double x , void *params){ |
| 1945 |
0 |
| struct gsl_function_perl *F=(struct gsl_function_perl*)params; |
| 1946 |
0 |
| return call_gsl_function_x_params( F->function, x, F->params ); |
| 1947 |
|
| } |
| 1948 |
|
| |
| 1949 |
0 |
| double call_gsl_function_fdf_f(double x , void *params){ |
| 1950 |
0 |
| struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params; |
| 1951 |
0 |
| return call_gsl_function_x_params( F->f, x, F->params ); |
| 1952 |
|
| } |
| 1953 |
|
| |
| 1954 |
0 |
| double call_gsl_function_fdf_df(double x , void *params){ |
| 1955 |
0 |
| struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params; |
| 1956 |
0 |
| return call_gsl_function_x_params( F->df, x, F->params ); |
| 1957 |
|
| } |
| 1958 |
|
| |
| 1959 |
0 |
| void call_gsl_function_fdf_fdf(double x , void *params, double *f, double *df ){ |
| 1960 |
0 |
| struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params; |
| 1961 |
|
| |
| 1962 |
0 |
| dSP; |
| 1963 |
|
| |
| 1964 |
0 |
| ENTER; |
| 1965 |
0 |
| SAVETMPS; |
| 1966 |
|
| |
| 1967 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 1968 |
0 |
▶ | EXTEND(SP, 2); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP, 2); |
0 |
0 |
0 |
|
| 1969 |
0 |
| PUSHs(sv_2mortal(newSVnv((double)x))); |
| 1970 |
0 |
| PUSHs(F->params); |
| 1971 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 1972 |
|
| |
| 1973 |
|
| { |
| 1974 |
0 |
| unsigned int count = call_sv(F->fdf, G_ARRAY); |
| 1975 |
0 |
| SPAGAIN; |
| 1976 |
|
| |
| 1977 |
0 |
▶ | if (count != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (count != 2) |
0 |
0 |
0 |
|
| 1978 |
0 |
| croak( "Expected two return values, got %d", count ); |
| 1979 |
|
| } |
| 1980 |
|
| |
| 1981 |
0 |
| *df = POPn; |
| 1982 |
0 |
| *f = POPn; |
| 1983 |
|
| |
| 1984 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 1985 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 1986 |
0 |
| LEAVE; |
| 1987 |
0 |
| } |
| 1988 |
|
| |
| 1989 |
0 |
| double call_gsl_monte_function(double *x_array , size_t dim, void *params){ |
| 1990 |
0 |
| struct gsl_monte_function_perl *F=(struct gsl_monte_function_perl*)params; |
| 1991 |
|
| unsigned int count; |
| 1992 |
|
| unsigned int i; |
| 1993 |
|
| AV* perl_array; |
| 1994 |
|
| double y; |
| 1995 |
0 |
| dSP; |
| 1996 |
|
| |
| 1997 |
|
| //fprintf(stderr, "LOOKUP CALLBACK\n"); |
| 1998 |
0 |
| ENTER; |
| 1999 |
0 |
| SAVETMPS; |
| 2000 |
|
| |
| 2001 |
0 |
▶ | PUSHMARK(SP); |
Branch: 1 branch
| Branch | True | False | Total |
| PUSHMARK(SP); |
0 |
0 |
0 |
|
| 2002 |
0 |
| perl_array=newAV(); |
| 2003 |
0 |
| sv_2mortal((SV*)perl_array); |
| 2004 |
0 |
▶ | XPUSHs(sv_2mortal(newRV((SV *)perl_array))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newRV((SV *)perl_array))); |
0 |
0 |
0 |
|
| 2005 |
0 |
▶ | for(i=0; i<dim; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for(i=0; i<dim; i++) { |
0 |
0 |
0 |
|
| 2006 |
|
| /* no mortal : it is referenced by the array */ |
| 2007 |
0 |
| av_push(perl_array, newSVnv(x_array[i])); |
| 2008 |
|
| } |
| 2009 |
0 |
▶ | XPUSHs(sv_2mortal(newSViv(dim))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSViv(dim))); |
0 |
0 |
0 |
|
| 2010 |
0 |
▶ | XPUSHs(F->params); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(F->params); |
0 |
0 |
0 |
|
| 2011 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 2012 |
|
| |
| 2013 |
0 |
| count = call_sv(F->f, G_SCALAR); |
| 2014 |
0 |
| SPAGAIN; |
| 2015 |
|
| |
| 2016 |
0 |
▶ | if (count != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (count != 1) |
0 |
0 |
0 |
|
| 2017 |
0 |
| croak("Expected to call subroutine in scalar context!"); |
| 2018 |
|
| |
| 2019 |
0 |
| y = POPn; |
| 2020 |
|
| |
| 2021 |
0 |
| PUTBACK; /* make local stack pointer global */ |
| 2022 |
0 |
▶ | FREETMPS; |
Branch: 1 branch
| Branch | True | False | Total |
| FREETMPS; |
0 |
0 |
0 |
|
| 2023 |
0 |
| LEAVE; |
| 2024 |
|
| |
| 2025 |
0 |
| return y; |
| 2026 |
|
| } |
| 2027 |
|
| |
| 2028 |
|
| |
| 2029 |
0 |
| void gsl_function_fdf_extract( char* param_name, HV* hash, SV* func[] ) { |
| 2030 |
|
| static const char *keys[3] = { "f", "df", "fdf" }; |
| 2031 |
|
| |
| 2032 |
|
| int ikey; |
| 2033 |
|
| |
| 2034 |
0 |
▶ | for ( ikey = 0 ; ikey < 3 ; ++ikey ) { |
Branch: 1 branch
| Branch | True | False | Total |
| for ( ikey = 0 ; ikey < 3 ; ++ikey ) { |
0 |
0 |
0 |
|
| 2035 |
0 |
| func[ikey] = 0; |
| 2036 |
0 |
| const char* key = keys[ikey]; |
| 2037 |
|
| /* it just so happens that strlen(keys[ikey]) == ikey + 1 */ |
| 2038 |
0 |
| SV** pp_sv = hv_fetch( hash, key, ikey+1, 0 ); |
| 2039 |
|
| SV* function; |
| 2040 |
|
| |
| 2041 |
0 |
▶ | if ( !pp_sv ) |
Branch: 1 branch
| Branch | True | False | Total |
| if ( !pp_sv ) |
0 |
0 |
0 |
|
| 2042 |
0 |
| croak("Math::GSL : %s: missing key %s!", param_name, key); |
| 2043 |
|
| |
| 2044 |
0 |
| function = *pp_sv; |
| 2045 |
|
| |
| 2046 |
0 |
▶ | if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { |
Branch: 3 branches
| Branch | True | False | Total |
| if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { |
0 |
0 |
0 |
| if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { |
0 |
0 |
0 |
| if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { |
0 |
0 |
0 |
|
| 2047 |
|
| /* hold on to SV after the enclosing hash goes away */ |
| 2048 |
0 |
| SvREFCNT_inc( function ); |
| 2049 |
0 |
| func[ikey] = function; |
| 2050 |
|
| } |
| 2051 |
|
| else { |
| 2052 |
0 |
| croak( "Math::GSL : %s: key %s is not a reference to code!", param_name, key); |
| 2053 |
|
| } |
| 2054 |
|
| } |
| 2055 |
0 |
| } |
| 2056 |
|
| |
| 2057 |
|
| |
| 2058 |
|
| |
| 2059 |
|
| #include "gsl/gsl_types.h" |
| 2060 |
|
| #include "gsl/gsl_multiroots.h" |
| 2061 |
|
| |
| 2062 |
|
| |
| 2063 |
|
| SWIGINTERN int |
| 2064 |
0 |
| SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) |
| 2065 |
|
| { |
| 2066 |
0 |
▶ | if (SvUOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvUOK(obj)) { |
0 |
0 |
0 |
|
| 2067 |
0 |
| UV v = SvUV(obj); |
| 2068 |
|
| if (UVSIZE <= sizeof(*val) || v <= ULONG_MAX) { |
| 2069 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 2070 |
0 |
| return SWIG_OK; |
| 2071 |
|
| } |
| 2072 |
|
| return SWIG_OverflowError; |
| 2073 |
0 |
▶ | } else if (SvIOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (SvIOK(obj)) { |
0 |
0 |
0 |
|
| 2074 |
0 |
| IV v = SvIV(obj); |
| 2075 |
0 |
▶ | if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULONG_MAX)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULONG_MAX)) { |
0 |
0 |
0 |
|
| 2076 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 2077 |
0 |
| return SWIG_OK; |
| 2078 |
|
| } |
| 2079 |
0 |
| return SWIG_OverflowError; |
| 2080 |
|
| } else { |
| 2081 |
0 |
| int dispatch = 0; |
| 2082 |
0 |
| const char *nptr = SvPV_nolen(obj); |
| 2083 |
0 |
▶ | if (nptr) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (nptr) { |
0 |
0 |
0 |
|
| 2084 |
|
| char *endptr; |
| 2085 |
|
| unsigned long v; |
| 2086 |
0 |
| errno = 0; |
| 2087 |
0 |
| v = strtoul(nptr, &endptr,0); |
| 2088 |
0 |
▶ | if (errno == ERANGE) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (errno == ERANGE) { |
0 |
0 |
0 |
|
| 2089 |
0 |
| errno = 0; |
| 2090 |
0 |
| return SWIG_OverflowError; |
| 2091 |
|
| } else { |
| 2092 |
0 |
▶ | if (*endptr == '\0') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*endptr == '\0') { |
0 |
0 |
0 |
|
| 2093 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 2094 |
0 |
| return SWIG_Str2NumCast(SWIG_OK); |
| 2095 |
|
| } |
| 2096 |
|
| } |
| 2097 |
|
| } |
| 2098 |
0 |
▶ | if (!dispatch) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!dispatch) { |
0 |
0 |
0 |
|
| 2099 |
|
| double d; |
| 2100 |
0 |
| int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); |
| 2101 |
0 |
▶ | if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { |
0 |
0 |
0 |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { |
0 |
0 |
0 |
|
| 2102 |
0 |
▶ | if (val) *val = (unsigned long)(d); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = (unsigned long)(d); |
0 |
0 |
0 |
|
| 2103 |
0 |
| return res; |
| 2104 |
|
| } |
| 2105 |
|
| } |
| 2106 |
|
| } |
| 2107 |
0 |
| return SWIG_TypeError; |
| 2108 |
|
| } |
| 2109 |
|
| |
| 2110 |
|
| |
| 2111 |
|
| #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE) |
| 2112 |
|
| # define SWIG_LONG_LONG_AVAILABLE |
| 2113 |
|
| #endif |
| 2114 |
|
| |
| 2115 |
|
| |
| 2116 |
|
| #ifdef SWIG_LONG_LONG_AVAILABLE |
| 2117 |
|
| SWIGINTERN int |
| 2118 |
0 |
| SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long long *val) |
| 2119 |
|
| { |
| 2120 |
0 |
▶ | if (SvUOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (SvUOK(obj)) { |
0 |
0 |
0 |
|
| 2121 |
|
| /* pretty sure this should be conditional on |
| 2122 |
|
| * (UVSIZE <= sizeof(*val) || v <= ULLONG_MAX) */ |
| 2123 |
0 |
▶ | if (val) *val = SvUV(obj); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = SvUV(obj); |
0 |
0 |
0 |
|
| 2124 |
0 |
| return SWIG_OK; |
| 2125 |
0 |
▶ | } else if (SvIOK(obj)) { |
Branch: 1 branch
| Branch | True | False | Total |
| } else if (SvIOK(obj)) { |
0 |
0 |
0 |
|
| 2126 |
0 |
| IV v = SvIV(obj); |
| 2127 |
0 |
▶ | if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULLONG_MAX)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULLONG_MAX)) { |
0 |
0 |
0 |
|
| 2128 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 2129 |
0 |
| return SWIG_OK; |
| 2130 |
|
| } else { |
| 2131 |
0 |
| return SWIG_OverflowError; |
| 2132 |
|
| } |
| 2133 |
|
| } else { |
| 2134 |
0 |
| int dispatch = 0; |
| 2135 |
0 |
| const char *nptr = SvPV_nolen(obj); |
| 2136 |
0 |
▶ | if (nptr) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (nptr) { |
0 |
0 |
0 |
|
| 2137 |
|
| char *endptr; |
| 2138 |
|
| unsigned long long v; |
| 2139 |
0 |
| errno = 0; |
| 2140 |
0 |
| v = strtoull(nptr, &endptr,0); |
| 2141 |
0 |
▶ | if (errno == ERANGE) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (errno == ERANGE) { |
0 |
0 |
0 |
|
| 2142 |
0 |
| errno = 0; |
| 2143 |
0 |
| return SWIG_OverflowError; |
| 2144 |
|
| } else { |
| 2145 |
0 |
▶ | if (*endptr == '\0') { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*endptr == '\0') { |
0 |
0 |
0 |
|
| 2146 |
0 |
▶ | if (val) *val = v; |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = v; |
0 |
0 |
0 |
|
| 2147 |
0 |
| return SWIG_Str2NumCast(SWIG_OK); |
| 2148 |
|
| } |
| 2149 |
|
| } |
| 2150 |
|
| } |
| 2151 |
0 |
▶ | if (!dispatch) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!dispatch) { |
0 |
0 |
0 |
|
| 2152 |
0 |
| const double mant_max = 1LL << DBL_MANT_DIG; |
| 2153 |
|
| double d; |
| 2154 |
0 |
| int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); |
| 2155 |
0 |
▶ | if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { |
0 |
0 |
0 |
| if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { |
0 |
0 |
0 |
|
| 2156 |
0 |
▶ | if (val) *val = (unsigned long long)(d); |
Branch: 1 branch
| Branch | True | False | Total |
| if (val) *val = (unsigned long long)(d); |
0 |
0 |
0 |
|
| 2157 |
0 |
| return res; |
| 2158 |
|
| } |
| 2159 |
|
| } |
| 2160 |
|
| } |
| 2161 |
0 |
| return SWIG_TypeError; |
| 2162 |
|
| } |
| 2163 |
|
| #endif |
| 2164 |
|
| |
| 2165 |
|
| |
| 2166 |
|
| SWIGINTERNINLINE int |
| 2167 |
0 |
| SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val) |
| 2168 |
|
| { |
| 2169 |
0 |
| int res = SWIG_TypeError; |
| 2170 |
|
| #ifdef SWIG_LONG_LONG_AVAILABLE |
| 2171 |
|
| if (sizeof(size_t) <= sizeof(unsigned long)) { |
| 2172 |
|
| #endif |
| 2173 |
|
| unsigned long v; |
| 2174 |
0 |
▶ | res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); |
Branch: 1 branch
| Branch | True | False | Total |
| res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); |
0 |
0 |
0 |
|
| 2175 |
0 |
▶ | if (SWIG_IsOK(res) && val) *val = (size_t)(v); |
Branch: 2 branches
| Branch | True | False | Total |
| if (SWIG_IsOK(res) && val) *val = (size_t)(v); |
0 |
0 |
0 |
| if (SWIG_IsOK(res) && val) *val = (size_t)(v); |
0 |
0 |
0 |
|
| 2176 |
|
| #ifdef SWIG_LONG_LONG_AVAILABLE |
| 2177 |
|
| } else if (sizeof(size_t) <= sizeof(unsigned long long)) { |
| 2178 |
|
| unsigned long long v; |
| 2179 |
|
| res = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); |
| 2180 |
|
| if (SWIG_IsOK(res) && val) *val = (size_t)(v); |
| 2181 |
|
| } |
| 2182 |
|
| #endif |
| 2183 |
0 |
| return res; |
| 2184 |
|
| } |
| 2185 |
|
| |
| 2186 |
|
| |
| 2187 |
|
| SWIGINTERNINLINE SV * |
| 2188 |
0 |
| SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value) |
| 2189 |
|
| { |
| 2190 |
|
| SV *sv; |
| 2191 |
|
| if (UVSIZE >= sizeof(value) || value <= UV_MAX) |
| 2192 |
0 |
| sv = newSVuv(value); |
| 2193 |
|
| else |
| 2194 |
|
| sv = newSVpvf("%lu", value); |
| 2195 |
0 |
| return sv_2mortal(sv); |
| 2196 |
|
| } |
| 2197 |
|
| |
| 2198 |
|
| |
| 2199 |
|
| #include <stdio.h> |
| 2200 |
|
| #if (defined(_MSC_VER) && (_MSC_VER < 1900)) || defined(__BORLANDC__) || defined(_WATCOM) |
| 2201 |
|
| # ifndef snprintf |
| 2202 |
|
| # define snprintf _snprintf |
| 2203 |
|
| # endif |
| 2204 |
|
| #endif |
| 2205 |
|
| |
| 2206 |
|
| |
| 2207 |
|
| #ifdef SWIG_LONG_LONG_AVAILABLE |
| 2208 |
|
| SWIGINTERNINLINE SV * |
| 2209 |
|
| SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long long value) |
| 2210 |
|
| { |
| 2211 |
|
| SV *sv; |
| 2212 |
|
| if (UVSIZE >= sizeof(value) || value <= UV_MAX) |
| 2213 |
|
| sv = newSVuv((UV)(value)); |
| 2214 |
|
| else { |
| 2215 |
|
| //sv = newSVpvf("%llu", value); doesn't work in non 64bit Perl |
| 2216 |
|
| char temp[256]; |
| 2217 |
|
| SWIG_snprintf(temp, sizeof(temp), "%llu", value); |
| 2218 |
|
| sv = newSVpv(temp, 0); |
| 2219 |
|
| } |
| 2220 |
|
| return sv_2mortal(sv); |
| 2221 |
|
| } |
| 2222 |
|
| #endif |
| 2223 |
|
| |
| 2224 |
|
| |
| 2225 |
|
| SWIGINTERNINLINE SV * |
| 2226 |
0 |
| SWIG_From_size_t SWIG_PERL_DECL_ARGS_1(size_t value) |
| 2227 |
|
| { |
| 2228 |
|
| #ifdef SWIG_LONG_LONG_AVAILABLE |
| 2229 |
|
| if (sizeof(size_t) <= sizeof(unsigned long)) { |
| 2230 |
|
| #endif |
| 2231 |
0 |
| return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long)(value)); |
| 2232 |
|
| #ifdef SWIG_LONG_LONG_AVAILABLE |
| 2233 |
|
| } else { |
| 2234 |
|
| /* assume sizeof(size_t) <= sizeof(unsigned long long) */ |
| 2235 |
|
| return SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long long)(value)); |
| 2236 |
|
| } |
| 2237 |
|
| #endif |
| 2238 |
|
| } |
| 2239 |
|
| |
| 2240 |
|
| #ifdef __cplusplus |
| 2241 |
|
| extern "C" { |
| 2242 |
|
| #endif |
| 2243 |
|
| |
| 2244 |
|
| #define MAGIC_CLASS |
| 2245 |
0 |
| SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) { |
| 2246 |
|
| MAGIC_PPERL |
| 2247 |
0 |
| croak("Value is read-only."); |
| 2248 |
|
| return 0; |
| 2249 |
|
| } |
| 2250 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fsolver_dnewton_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { |
| 2251 |
|
| MAGIC_PPERL |
| 2252 |
|
| { |
| 2253 |
0 |
| void *argp = 0; |
| 2254 |
0 |
| int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 ); |
| 2255 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2256 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fsolver_dnewton""' of type '""gsl_multiroot_fsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fsolver_dnewton""' of type '""gsl_multiroot_fsolver_type const *""'"); |
0 |
0 |
0 |
|
| 2257 |
|
| } |
| 2258 |
0 |
| gsl_multiroot_fsolver_dnewton = (gsl_multiroot_fsolver_type *)(argp); |
| 2259 |
|
| } |
| 2260 |
0 |
| fail: |
| 2261 |
0 |
| return 1; |
| 2262 |
|
| } |
| 2263 |
|
| |
| 2264 |
|
| |
| 2265 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fsolver_dnewton_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { |
| 2266 |
|
| MAGIC_PPERL |
| 2267 |
0 |
| sv_setiv(SvRV(sv),PTR2IV(gsl_multiroot_fsolver_dnewton)); |
| 2268 |
0 |
| return 1; |
| 2269 |
|
| } |
| 2270 |
|
| |
| 2271 |
|
| |
| 2272 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fsolver_broyden_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { |
| 2273 |
|
| MAGIC_PPERL |
| 2274 |
|
| { |
| 2275 |
0 |
| void *argp = 0; |
| 2276 |
0 |
| int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 ); |
| 2277 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2278 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fsolver_broyden""' of type '""gsl_multiroot_fsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fsolver_broyden""' of type '""gsl_multiroot_fsolver_type const *""'"); |
0 |
0 |
0 |
|
| 2279 |
|
| } |
| 2280 |
0 |
| gsl_multiroot_fsolver_broyden = (gsl_multiroot_fsolver_type *)(argp); |
| 2281 |
|
| } |
| 2282 |
0 |
| fail: |
| 2283 |
0 |
| return 1; |
| 2284 |
|
| } |
| 2285 |
|
| |
| 2286 |
|
| |
| 2287 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fsolver_broyden_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { |
| 2288 |
|
| MAGIC_PPERL |
| 2289 |
0 |
| sv_setiv(SvRV(sv),PTR2IV(gsl_multiroot_fsolver_broyden)); |
| 2290 |
0 |
| return 1; |
| 2291 |
|
| } |
| 2292 |
|
| |
| 2293 |
|
| |
| 2294 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fsolver_hybrid_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { |
| 2295 |
|
| MAGIC_PPERL |
| 2296 |
|
| { |
| 2297 |
0 |
| void *argp = 0; |
| 2298 |
0 |
| int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 ); |
| 2299 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2300 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fsolver_hybrid""' of type '""gsl_multiroot_fsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fsolver_hybrid""' of type '""gsl_multiroot_fsolver_type const *""'"); |
0 |
0 |
0 |
|
| 2301 |
|
| } |
| 2302 |
0 |
| gsl_multiroot_fsolver_hybrid = (gsl_multiroot_fsolver_type *)(argp); |
| 2303 |
|
| } |
| 2304 |
0 |
| fail: |
| 2305 |
0 |
| return 1; |
| 2306 |
|
| } |
| 2307 |
|
| |
| 2308 |
|
| |
| 2309 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fsolver_hybrid_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { |
| 2310 |
|
| MAGIC_PPERL |
| 2311 |
0 |
| sv_setiv(SvRV(sv),PTR2IV(gsl_multiroot_fsolver_hybrid)); |
| 2312 |
0 |
| return 1; |
| 2313 |
|
| } |
| 2314 |
|
| |
| 2315 |
|
| |
| 2316 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fsolver_hybrids_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { |
| 2317 |
|
| MAGIC_PPERL |
| 2318 |
|
| { |
| 2319 |
0 |
| void *argp = 0; |
| 2320 |
0 |
| int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 ); |
| 2321 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2322 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fsolver_hybrids""' of type '""gsl_multiroot_fsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fsolver_hybrids""' of type '""gsl_multiroot_fsolver_type const *""'"); |
0 |
0 |
0 |
|
| 2323 |
|
| } |
| 2324 |
0 |
| gsl_multiroot_fsolver_hybrids = (gsl_multiroot_fsolver_type *)(argp); |
| 2325 |
|
| } |
| 2326 |
0 |
| fail: |
| 2327 |
0 |
| return 1; |
| 2328 |
|
| } |
| 2329 |
|
| |
| 2330 |
|
| |
| 2331 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fsolver_hybrids_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { |
| 2332 |
|
| MAGIC_PPERL |
| 2333 |
0 |
| sv_setiv(SvRV(sv),PTR2IV(gsl_multiroot_fsolver_hybrids)); |
| 2334 |
0 |
| return 1; |
| 2335 |
|
| } |
| 2336 |
|
| |
| 2337 |
|
| |
| 2338 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fdfsolver_newton_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { |
| 2339 |
|
| MAGIC_PPERL |
| 2340 |
|
| { |
| 2341 |
0 |
| void *argp = 0; |
| 2342 |
0 |
| int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 ); |
| 2343 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2344 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fdfsolver_newton""' of type '""gsl_multiroot_fdfsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fdfsolver_newton""' of type '""gsl_multiroot_fdfsolver_type const *""'"); |
0 |
0 |
0 |
|
| 2345 |
|
| } |
| 2346 |
0 |
| gsl_multiroot_fdfsolver_newton = (gsl_multiroot_fdfsolver_type *)(argp); |
| 2347 |
|
| } |
| 2348 |
0 |
| fail: |
| 2349 |
0 |
| return 1; |
| 2350 |
|
| } |
| 2351 |
|
| |
| 2352 |
|
| |
| 2353 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fdfsolver_newton_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { |
| 2354 |
|
| MAGIC_PPERL |
| 2355 |
0 |
| sv_setiv(SvRV(sv),PTR2IV(gsl_multiroot_fdfsolver_newton)); |
| 2356 |
0 |
| return 1; |
| 2357 |
|
| } |
| 2358 |
|
| |
| 2359 |
|
| |
| 2360 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fdfsolver_gnewton_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { |
| 2361 |
|
| MAGIC_PPERL |
| 2362 |
|
| { |
| 2363 |
0 |
| void *argp = 0; |
| 2364 |
0 |
| int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 ); |
| 2365 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2366 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fdfsolver_gnewton""' of type '""gsl_multiroot_fdfsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fdfsolver_gnewton""' of type '""gsl_multiroot_fdfsolver_type const *""'"); |
0 |
0 |
0 |
|
| 2367 |
|
| } |
| 2368 |
0 |
| gsl_multiroot_fdfsolver_gnewton = (gsl_multiroot_fdfsolver_type *)(argp); |
| 2369 |
|
| } |
| 2370 |
0 |
| fail: |
| 2371 |
0 |
| return 1; |
| 2372 |
|
| } |
| 2373 |
|
| |
| 2374 |
|
| |
| 2375 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fdfsolver_gnewton_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { |
| 2376 |
|
| MAGIC_PPERL |
| 2377 |
0 |
| sv_setiv(SvRV(sv),PTR2IV(gsl_multiroot_fdfsolver_gnewton)); |
| 2378 |
0 |
| return 1; |
| 2379 |
|
| } |
| 2380 |
|
| |
| 2381 |
|
| |
| 2382 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fdfsolver_hybridj_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { |
| 2383 |
|
| MAGIC_PPERL |
| 2384 |
|
| { |
| 2385 |
0 |
| void *argp = 0; |
| 2386 |
0 |
| int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 ); |
| 2387 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2388 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fdfsolver_hybridj""' of type '""gsl_multiroot_fdfsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fdfsolver_hybridj""' of type '""gsl_multiroot_fdfsolver_type const *""'"); |
0 |
0 |
0 |
|
| 2389 |
|
| } |
| 2390 |
0 |
| gsl_multiroot_fdfsolver_hybridj = (gsl_multiroot_fdfsolver_type *)(argp); |
| 2391 |
|
| } |
| 2392 |
0 |
| fail: |
| 2393 |
0 |
| return 1; |
| 2394 |
|
| } |
| 2395 |
|
| |
| 2396 |
|
| |
| 2397 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fdfsolver_hybridj_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { |
| 2398 |
|
| MAGIC_PPERL |
| 2399 |
0 |
| sv_setiv(SvRV(sv),PTR2IV(gsl_multiroot_fdfsolver_hybridj)); |
| 2400 |
0 |
| return 1; |
| 2401 |
|
| } |
| 2402 |
|
| |
| 2403 |
|
| |
| 2404 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fdfsolver_hybridsj_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { |
| 2405 |
|
| MAGIC_PPERL |
| 2406 |
|
| { |
| 2407 |
0 |
| void *argp = 0; |
| 2408 |
0 |
| int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 ); |
| 2409 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2410 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fdfsolver_hybridsj""' of type '""gsl_multiroot_fdfsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multiroot_fdfsolver_hybridsj""' of type '""gsl_multiroot_fdfsolver_type const *""'"); |
0 |
0 |
0 |
|
| 2411 |
|
| } |
| 2412 |
0 |
| gsl_multiroot_fdfsolver_hybridsj = (gsl_multiroot_fdfsolver_type *)(argp); |
| 2413 |
|
| } |
| 2414 |
0 |
| fail: |
| 2415 |
0 |
| return 1; |
| 2416 |
|
| } |
| 2417 |
|
| |
| 2418 |
|
| |
| 2419 |
0 |
| SWIGCLASS_STATIC int _wrap_gsl_multiroot_fdfsolver_hybridsj_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { |
| 2420 |
|
| MAGIC_PPERL |
| 2421 |
0 |
| sv_setiv(SvRV(sv),PTR2IV(gsl_multiroot_fdfsolver_hybridsj)); |
| 2422 |
0 |
| return 1; |
| 2423 |
|
| } |
| 2424 |
|
| |
| 2425 |
|
| |
| 2426 |
|
| |
| 2427 |
|
| #ifdef __cplusplus |
| 2428 |
|
| } |
| 2429 |
|
| #endif |
| 2430 |
|
| |
| 2431 |
|
| #ifdef __cplusplus |
| 2432 |
|
| extern "C" { |
| 2433 |
|
| #endif |
| 2434 |
0 |
| XS(_wrap_gsl_error) { |
| 2435 |
|
| { |
| 2436 |
0 |
| char *arg1 = (char *) 0 ; |
| 2437 |
0 |
| char *arg2 = (char *) 0 ; |
| 2438 |
|
| int arg3 ; |
| 2439 |
|
| int arg4 ; |
| 2440 |
|
| int res1 ; |
| 2441 |
0 |
| char *buf1 = 0 ; |
| 2442 |
0 |
| int alloc1 = 0 ; |
| 2443 |
|
| int res2 ; |
| 2444 |
0 |
| char *buf2 = 0 ; |
| 2445 |
0 |
| int alloc2 = 0 ; |
| 2446 |
|
| int val3 ; |
| 2447 |
0 |
| int ecode3 = 0 ; |
| 2448 |
|
| int val4 ; |
| 2449 |
0 |
| int ecode4 = 0 ; |
| 2450 |
0 |
| int argvi = 0; |
| 2451 |
0 |
| dXSARGS; |
| 2452 |
|
| |
| 2453 |
0 |
▶ | if ((items < 4) || (items > 4)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
|
| 2454 |
0 |
| SWIG_croak("Usage: gsl_error(reason,file,line,gsl_errno);"); |
| 2455 |
|
| } |
| 2456 |
0 |
| res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); |
| 2457 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2458 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_error" "', argument " "1"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_error" "', argument " "1"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 2459 |
|
| } |
| 2460 |
0 |
| arg1 = (char *)(buf1); |
| 2461 |
0 |
| res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
| 2462 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 2463 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_error" "', argument " "2"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_error" "', argument " "2"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 2464 |
|
| } |
| 2465 |
0 |
| arg2 = (char *)(buf2); |
| 2466 |
0 |
| ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 2467 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 2468 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_error" "', argument " "3"" of type '" "int""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_error" "', argument " "3"" of type '" "int""'"); |
0 |
0 |
0 |
|
| 2469 |
|
| } |
| 2470 |
0 |
| arg3 = (int)(val3); |
| 2471 |
0 |
| ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
| 2472 |
0 |
▶ | if (!SWIG_IsOK(ecode4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode4)) { |
0 |
0 |
0 |
|
| 2473 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_error" "', argument " "4"" of type '" "int""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_error" "', argument " "4"" of type '" "int""'"); |
0 |
0 |
0 |
|
| 2474 |
|
| } |
| 2475 |
0 |
| arg4 = (int)(val4); |
| 2476 |
0 |
| gsl_error((char const *)arg1,(char const *)arg2,arg3,arg4); |
| 2477 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 2478 |
0 |
▶ | if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
0 |
0 |
0 |
|
| 2479 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 2480 |
|
| |
| 2481 |
|
| |
| 2482 |
0 |
| XSRETURN(argvi); |
| 2483 |
0 |
| fail: |
| 2484 |
0 |
▶ | if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
0 |
0 |
0 |
|
| 2485 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 2486 |
|
| |
| 2487 |
|
| |
| 2488 |
0 |
| SWIG_croak_null(); |
| 2489 |
|
| } |
| 2490 |
|
| } |
| 2491 |
|
| |
| 2492 |
|
| |
| 2493 |
0 |
| XS(_wrap_gsl_stream_printf) { |
| 2494 |
|
| { |
| 2495 |
0 |
| char *arg1 = (char *) 0 ; |
| 2496 |
0 |
| char *arg2 = (char *) 0 ; |
| 2497 |
|
| int arg3 ; |
| 2498 |
0 |
| char *arg4 = (char *) 0 ; |
| 2499 |
|
| int res1 ; |
| 2500 |
0 |
| char *buf1 = 0 ; |
| 2501 |
0 |
| int alloc1 = 0 ; |
| 2502 |
|
| int res2 ; |
| 2503 |
0 |
| char *buf2 = 0 ; |
| 2504 |
0 |
| int alloc2 = 0 ; |
| 2505 |
|
| int val3 ; |
| 2506 |
0 |
| int ecode3 = 0 ; |
| 2507 |
|
| int res4 ; |
| 2508 |
0 |
| char *buf4 = 0 ; |
| 2509 |
0 |
| int alloc4 = 0 ; |
| 2510 |
0 |
| int argvi = 0; |
| 2511 |
0 |
| dXSARGS; |
| 2512 |
|
| |
| 2513 |
0 |
▶ | if ((items < 4) || (items > 4)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
|
| 2514 |
0 |
| SWIG_croak("Usage: gsl_stream_printf(label,file,line,reason);"); |
| 2515 |
|
| } |
| 2516 |
0 |
| res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); |
| 2517 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2518 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stream_printf" "', argument " "1"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stream_printf" "', argument " "1"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 2519 |
|
| } |
| 2520 |
0 |
| arg1 = (char *)(buf1); |
| 2521 |
0 |
| res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
| 2522 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 2523 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stream_printf" "', argument " "2"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stream_printf" "', argument " "2"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 2524 |
|
| } |
| 2525 |
0 |
| arg2 = (char *)(buf2); |
| 2526 |
0 |
| ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 2527 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 2528 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stream_printf" "', argument " "3"" of type '" "int""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stream_printf" "', argument " "3"" of type '" "int""'"); |
0 |
0 |
0 |
|
| 2529 |
|
| } |
| 2530 |
0 |
| arg3 = (int)(val3); |
| 2531 |
0 |
| res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); |
| 2532 |
0 |
▶ | if (!SWIG_IsOK(res4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res4)) { |
0 |
0 |
0 |
|
| 2533 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stream_printf" "', argument " "4"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stream_printf" "', argument " "4"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 2534 |
|
| } |
| 2535 |
0 |
| arg4 = (char *)(buf4); |
| 2536 |
0 |
| gsl_stream_printf((char const *)arg1,(char const *)arg2,arg3,(char const *)arg4); |
| 2537 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 2538 |
0 |
▶ | if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
0 |
0 |
0 |
|
| 2539 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 2540 |
|
| |
| 2541 |
0 |
▶ | if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); |
0 |
0 |
0 |
|
| 2542 |
0 |
| XSRETURN(argvi); |
| 2543 |
0 |
| fail: |
| 2544 |
0 |
▶ | if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
0 |
0 |
0 |
|
| 2545 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 2546 |
|
| |
| 2547 |
0 |
▶ | if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); |
0 |
0 |
0 |
|
| 2548 |
0 |
| SWIG_croak_null(); |
| 2549 |
|
| } |
| 2550 |
|
| } |
| 2551 |
|
| |
| 2552 |
|
| |
| 2553 |
0 |
| XS(_wrap_gsl_strerror) { |
| 2554 |
|
| { |
| 2555 |
|
| int arg1 ; |
| 2556 |
|
| int val1 ; |
| 2557 |
0 |
| int ecode1 = 0 ; |
| 2558 |
0 |
| int argvi = 0; |
| 2559 |
0 |
| char *result = 0 ; |
| 2560 |
0 |
| dXSARGS; |
| 2561 |
|
| |
| 2562 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2563 |
0 |
| SWIG_croak("Usage: gsl_strerror(gsl_errno);"); |
| 2564 |
|
| } |
| 2565 |
0 |
| ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
| 2566 |
0 |
▶ | if (!SWIG_IsOK(ecode1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode1)) { |
0 |
0 |
0 |
|
| 2567 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_strerror" "', argument " "1"" of type '" "int""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_strerror" "', argument " "1"" of type '" "int""'"); |
0 |
0 |
0 |
|
| 2568 |
|
| } |
| 2569 |
0 |
| arg1 = (int)(val1); |
| 2570 |
0 |
| result = (char *)gsl_strerror(arg1); |
| 2571 |
0 |
| ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
| 2572 |
|
| |
| 2573 |
0 |
| XSRETURN(argvi); |
| 2574 |
0 |
| fail: |
| 2575 |
|
| |
| 2576 |
0 |
| SWIG_croak_null(); |
| 2577 |
|
| } |
| 2578 |
|
| } |
| 2579 |
|
| |
| 2580 |
|
| |
| 2581 |
0 |
| XS(_wrap_gsl_set_error_handler) { |
| 2582 |
|
| { |
| 2583 |
0 |
| gsl_error_handler_t *arg1 = (gsl_error_handler_t *) 0 ; |
| 2584 |
0 |
| int argvi = 0; |
| 2585 |
0 |
| gsl_error_handler_t *result = 0 ; |
| 2586 |
0 |
| dXSARGS; |
| 2587 |
|
| |
| 2588 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2589 |
0 |
| SWIG_croak("Usage: gsl_set_error_handler(new_handler);"); |
| 2590 |
|
| } |
| 2591 |
|
| { |
| 2592 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(0), (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); |
| 2593 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2594 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_error_handler" "', argument " "1"" of type '" "gsl_error_handler_t *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_error_handler" "', argument " "1"" of type '" "gsl_error_handler_t *""'"); |
0 |
0 |
0 |
|
| 2595 |
|
| } |
| 2596 |
|
| } |
| 2597 |
0 |
| result = (gsl_error_handler_t *)gsl_set_error_handler(arg1); |
| 2598 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ; |
| 2599 |
|
| |
| 2600 |
0 |
| XSRETURN(argvi); |
| 2601 |
0 |
| fail: |
| 2602 |
|
| |
| 2603 |
0 |
| SWIG_croak_null(); |
| 2604 |
|
| } |
| 2605 |
|
| } |
| 2606 |
|
| |
| 2607 |
|
| |
| 2608 |
0 |
| XS(_wrap_gsl_set_error_handler_off) { |
| 2609 |
|
| { |
| 2610 |
0 |
| int argvi = 0; |
| 2611 |
0 |
| gsl_error_handler_t *result = 0 ; |
| 2612 |
0 |
| dXSARGS; |
| 2613 |
|
| |
| 2614 |
0 |
▶ | if ((items < 0) || (items > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
|
| 2615 |
0 |
| SWIG_croak("Usage: gsl_set_error_handler_off();"); |
| 2616 |
|
| } |
| 2617 |
0 |
| result = (gsl_error_handler_t *)gsl_set_error_handler_off(); |
| 2618 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ; |
| 2619 |
0 |
| XSRETURN(argvi); |
| 2620 |
0 |
| fail: |
| 2621 |
0 |
| SWIG_croak_null(); |
| 2622 |
|
| } |
| 2623 |
|
| } |
| 2624 |
|
| |
| 2625 |
|
| |
| 2626 |
0 |
| XS(_wrap_gsl_set_stream_handler) { |
| 2627 |
|
| { |
| 2628 |
0 |
| gsl_stream_handler_t *arg1 = (gsl_stream_handler_t *) 0 ; |
| 2629 |
0 |
| int argvi = 0; |
| 2630 |
0 |
| gsl_stream_handler_t *result = 0 ; |
| 2631 |
0 |
| dXSARGS; |
| 2632 |
|
| |
| 2633 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2634 |
0 |
| SWIG_croak("Usage: gsl_set_stream_handler(new_handler);"); |
| 2635 |
|
| } |
| 2636 |
|
| { |
| 2637 |
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); |
| 2638 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2639 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_stream_handler" "', argument " "1"" of type '" "gsl_stream_handler_t *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_stream_handler" "', argument " "1"" of type '" "gsl_stream_handler_t *""'"); |
0 |
0 |
0 |
|
| 2640 |
|
| } |
| 2641 |
|
| } |
| 2642 |
0 |
| result = (gsl_stream_handler_t *)gsl_set_stream_handler(arg1); |
| 2643 |
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++ ; |
| 2644 |
|
| |
| 2645 |
0 |
| XSRETURN(argvi); |
| 2646 |
0 |
| fail: |
| 2647 |
|
| |
| 2648 |
0 |
| SWIG_croak_null(); |
| 2649 |
|
| } |
| 2650 |
|
| } |
| 2651 |
|
| |
| 2652 |
|
| |
| 2653 |
0 |
| XS(_wrap_gsl_set_stream) { |
| 2654 |
|
| { |
| 2655 |
0 |
| FILE *arg1 = (FILE *) 0 ; |
| 2656 |
0 |
| void *argp1 = 0 ; |
| 2657 |
0 |
| int res1 = 0 ; |
| 2658 |
0 |
| int argvi = 0; |
| 2659 |
0 |
| FILE *result = 0 ; |
| 2660 |
0 |
| dXSARGS; |
| 2661 |
|
| |
| 2662 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2663 |
0 |
| SWIG_croak("Usage: gsl_set_stream(new_stream);"); |
| 2664 |
|
| } |
| 2665 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 ); |
| 2666 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2667 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_set_stream" "', argument " "1"" of type '" "FILE *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_set_stream" "', argument " "1"" of type '" "FILE *""'"); |
0 |
0 |
0 |
|
| 2668 |
|
| } |
| 2669 |
0 |
| arg1 = (FILE *)(argp1); |
| 2670 |
0 |
| result = (FILE *)gsl_set_stream(arg1); |
| 2671 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0); argvi++ ; |
| 2672 |
|
| |
| 2673 |
0 |
| XSRETURN(argvi); |
| 2674 |
0 |
| fail: |
| 2675 |
|
| |
| 2676 |
0 |
| SWIG_croak_null(); |
| 2677 |
|
| } |
| 2678 |
|
| } |
| 2679 |
|
| |
| 2680 |
|
| |
| 2681 |
0 |
| XS(_wrap_gsl_multiroot_function_struct_f_set) { |
| 2682 |
|
| { |
| 2683 |
0 |
| struct gsl_multiroot_function_struct *arg1 = (struct gsl_multiroot_function_struct *) 0 ; |
| 2684 |
0 |
| int (*arg2)(gsl_vector const *,void *,gsl_vector *) = (int (*)(gsl_vector const *,void *,gsl_vector *)) 0 ; |
| 2685 |
0 |
| void *argp1 = 0 ; |
| 2686 |
0 |
| int res1 = 0 ; |
| 2687 |
0 |
| int argvi = 0; |
| 2688 |
0 |
| dXSARGS; |
| 2689 |
|
| |
| 2690 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 2691 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_struct_f_set(self,f);"); |
| 2692 |
|
| } |
| 2693 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_struct, 0 | 0 ); |
| 2694 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2695 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_f_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_f_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
0 |
0 |
0 |
|
| 2696 |
|
| } |
| 2697 |
0 |
| arg1 = (struct gsl_multiroot_function_struct *)(argp1); |
| 2698 |
|
| { |
| 2699 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int); |
| 2700 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 2701 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_function_struct_f_set" "', argument " "2"" of type '" "int (*)(gsl_vector const *,void *,gsl_vector *)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_function_struct_f_set" "', argument " "2"" of type '" "int (*)(gsl_vector const *,void *,gsl_vector *)""'"); |
0 |
0 |
0 |
|
| 2702 |
|
| } |
| 2703 |
|
| } |
| 2704 |
0 |
▶ | if (arg1) (arg1)->f = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->f = arg2; |
0 |
0 |
0 |
|
| 2705 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 2706 |
|
| |
| 2707 |
|
| |
| 2708 |
0 |
| XSRETURN(argvi); |
| 2709 |
0 |
| fail: |
| 2710 |
|
| |
| 2711 |
|
| |
| 2712 |
0 |
| SWIG_croak_null(); |
| 2713 |
|
| } |
| 2714 |
|
| } |
| 2715 |
|
| |
| 2716 |
|
| |
| 2717 |
0 |
| XS(_wrap_gsl_multiroot_function_struct_f_get) { |
| 2718 |
|
| { |
| 2719 |
0 |
| struct gsl_multiroot_function_struct *arg1 = (struct gsl_multiroot_function_struct *) 0 ; |
| 2720 |
0 |
| void *argp1 = 0 ; |
| 2721 |
0 |
| int res1 = 0 ; |
| 2722 |
0 |
| int argvi = 0; |
| 2723 |
0 |
| int (*result)(gsl_vector const *,void *,gsl_vector *) = 0 ; |
| 2724 |
0 |
| dXSARGS; |
| 2725 |
|
| |
| 2726 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2727 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_struct_f_get(self);"); |
| 2728 |
|
| } |
| 2729 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_struct, 0 | 0 ); |
| 2730 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2731 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_f_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_f_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
0 |
0 |
0 |
|
| 2732 |
|
| } |
| 2733 |
0 |
| arg1 = (struct gsl_multiroot_function_struct *)(argp1); |
| 2734 |
0 |
| result = (int (*)(gsl_vector const *,void *,gsl_vector *)) ((arg1)->f); |
| 2735 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int); argvi++ ; |
| 2736 |
|
| |
| 2737 |
0 |
| XSRETURN(argvi); |
| 2738 |
0 |
| fail: |
| 2739 |
|
| |
| 2740 |
0 |
| SWIG_croak_null(); |
| 2741 |
|
| } |
| 2742 |
|
| } |
| 2743 |
|
| |
| 2744 |
|
| |
| 2745 |
0 |
| XS(_wrap_gsl_multiroot_function_struct_n_set) { |
| 2746 |
|
| { |
| 2747 |
0 |
| struct gsl_multiroot_function_struct *arg1 = (struct gsl_multiroot_function_struct *) 0 ; |
| 2748 |
|
| size_t arg2 ; |
| 2749 |
0 |
| void *argp1 = 0 ; |
| 2750 |
0 |
| int res1 = 0 ; |
| 2751 |
|
| size_t val2 ; |
| 2752 |
0 |
| int ecode2 = 0 ; |
| 2753 |
0 |
| int argvi = 0; |
| 2754 |
0 |
| dXSARGS; |
| 2755 |
|
| |
| 2756 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 2757 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_struct_n_set(self,n);"); |
| 2758 |
|
| } |
| 2759 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_struct, 0 | 0 ); |
| 2760 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2761 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_n_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_n_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
0 |
0 |
0 |
|
| 2762 |
|
| } |
| 2763 |
0 |
| arg1 = (struct gsl_multiroot_function_struct *)(argp1); |
| 2764 |
0 |
| ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
| 2765 |
0 |
▶ | if (!SWIG_IsOK(ecode2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode2)) { |
0 |
0 |
0 |
|
| 2766 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_function_struct_n_set" "', argument " "2"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_function_struct_n_set" "', argument " "2"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 2767 |
|
| } |
| 2768 |
0 |
| arg2 = (size_t)(val2); |
| 2769 |
0 |
▶ | if (arg1) (arg1)->n = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->n = arg2; |
0 |
0 |
0 |
|
| 2770 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 2771 |
|
| |
| 2772 |
|
| |
| 2773 |
0 |
| XSRETURN(argvi); |
| 2774 |
0 |
| fail: |
| 2775 |
|
| |
| 2776 |
|
| |
| 2777 |
0 |
| SWIG_croak_null(); |
| 2778 |
|
| } |
| 2779 |
|
| } |
| 2780 |
|
| |
| 2781 |
|
| |
| 2782 |
0 |
| XS(_wrap_gsl_multiroot_function_struct_n_get) { |
| 2783 |
|
| { |
| 2784 |
0 |
| struct gsl_multiroot_function_struct *arg1 = (struct gsl_multiroot_function_struct *) 0 ; |
| 2785 |
0 |
| void *argp1 = 0 ; |
| 2786 |
0 |
| int res1 = 0 ; |
| 2787 |
0 |
| int argvi = 0; |
| 2788 |
|
| size_t result; |
| 2789 |
0 |
| dXSARGS; |
| 2790 |
|
| |
| 2791 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2792 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_struct_n_get(self);"); |
| 2793 |
|
| } |
| 2794 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_struct, 0 | 0 ); |
| 2795 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2796 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_n_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_n_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
0 |
0 |
0 |
|
| 2797 |
|
| } |
| 2798 |
0 |
| arg1 = (struct gsl_multiroot_function_struct *)(argp1); |
| 2799 |
0 |
| result = ((arg1)->n); |
| 2800 |
0 |
| ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ; |
| 2801 |
|
| |
| 2802 |
0 |
| XSRETURN(argvi); |
| 2803 |
0 |
| fail: |
| 2804 |
|
| |
| 2805 |
0 |
| SWIG_croak_null(); |
| 2806 |
|
| } |
| 2807 |
|
| } |
| 2808 |
|
| |
| 2809 |
|
| |
| 2810 |
0 |
| XS(_wrap_gsl_multiroot_function_struct_params_set) { |
| 2811 |
|
| { |
| 2812 |
0 |
| struct gsl_multiroot_function_struct *arg1 = (struct gsl_multiroot_function_struct *) 0 ; |
| 2813 |
0 |
| void *arg2 = (void *) 0 ; |
| 2814 |
0 |
| void *argp1 = 0 ; |
| 2815 |
0 |
| int res1 = 0 ; |
| 2816 |
|
| int res2 ; |
| 2817 |
0 |
| int argvi = 0; |
| 2818 |
0 |
| dXSARGS; |
| 2819 |
|
| |
| 2820 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 2821 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_struct_params_set(self,params);"); |
| 2822 |
|
| } |
| 2823 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_struct, 0 | 0 ); |
| 2824 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2825 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_params_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_params_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
0 |
0 |
0 |
|
| 2826 |
|
| } |
| 2827 |
0 |
| arg1 = (struct gsl_multiroot_function_struct *)(argp1); |
| 2828 |
0 |
| res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); |
| 2829 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 2830 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_function_struct_params_set" "', argument " "2"" of type '" "void *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_function_struct_params_set" "', argument " "2"" of type '" "void *""'"); |
0 |
0 |
0 |
|
| 2831 |
|
| } |
| 2832 |
0 |
▶ | if (arg1) (arg1)->params = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->params = arg2; |
0 |
0 |
0 |
|
| 2833 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 2834 |
|
| |
| 2835 |
|
| |
| 2836 |
0 |
| XSRETURN(argvi); |
| 2837 |
0 |
| fail: |
| 2838 |
|
| |
| 2839 |
|
| |
| 2840 |
0 |
| SWIG_croak_null(); |
| 2841 |
|
| } |
| 2842 |
|
| } |
| 2843 |
|
| |
| 2844 |
|
| |
| 2845 |
0 |
| XS(_wrap_gsl_multiroot_function_struct_params_get) { |
| 2846 |
|
| { |
| 2847 |
0 |
| struct gsl_multiroot_function_struct *arg1 = (struct gsl_multiroot_function_struct *) 0 ; |
| 2848 |
0 |
| void *argp1 = 0 ; |
| 2849 |
0 |
| int res1 = 0 ; |
| 2850 |
0 |
| int argvi = 0; |
| 2851 |
0 |
| void *result = 0 ; |
| 2852 |
0 |
| dXSARGS; |
| 2853 |
|
| |
| 2854 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2855 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_struct_params_get(self);"); |
| 2856 |
|
| } |
| 2857 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_struct, 0 | 0 ); |
| 2858 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2859 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_params_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_struct_params_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
0 |
0 |
0 |
|
| 2860 |
|
| } |
| 2861 |
0 |
| arg1 = (struct gsl_multiroot_function_struct *)(argp1); |
| 2862 |
0 |
| result = (void *) ((arg1)->params); |
| 2863 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ; |
| 2864 |
|
| |
| 2865 |
0 |
| XSRETURN(argvi); |
| 2866 |
0 |
| fail: |
| 2867 |
|
| |
| 2868 |
0 |
| SWIG_croak_null(); |
| 2869 |
|
| } |
| 2870 |
|
| } |
| 2871 |
|
| |
| 2872 |
|
| |
| 2873 |
0 |
| XS(_wrap_new_gsl_multiroot_function_struct) { |
| 2874 |
|
| { |
| 2875 |
0 |
| int argvi = 0; |
| 2876 |
0 |
| struct gsl_multiroot_function_struct *result = 0 ; |
| 2877 |
0 |
| dXSARGS; |
| 2878 |
|
| |
| 2879 |
0 |
▶ | if ((items < 0) || (items > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
|
| 2880 |
0 |
| SWIG_croak("Usage: new_gsl_multiroot_function_struct();"); |
| 2881 |
|
| } |
| 2882 |
0 |
| result = (struct gsl_multiroot_function_struct *)calloc(1, sizeof(struct gsl_multiroot_function_struct)); |
| 2883 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_function_struct, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
| 2884 |
0 |
| XSRETURN(argvi); |
| 2885 |
0 |
| fail: |
| 2886 |
0 |
| SWIG_croak_null(); |
| 2887 |
|
| } |
| 2888 |
|
| } |
| 2889 |
|
| |
| 2890 |
|
| |
| 2891 |
0 |
| XS(_wrap_delete_gsl_multiroot_function_struct) { |
| 2892 |
|
| { |
| 2893 |
0 |
| struct gsl_multiroot_function_struct *arg1 = (struct gsl_multiroot_function_struct *) 0 ; |
| 2894 |
0 |
| void *argp1 = 0 ; |
| 2895 |
0 |
| int res1 = 0 ; |
| 2896 |
0 |
| int argvi = 0; |
| 2897 |
0 |
| dXSARGS; |
| 2898 |
|
| |
| 2899 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 2900 |
0 |
| SWIG_croak("Usage: delete_gsl_multiroot_function_struct(self);"); |
| 2901 |
|
| } |
| 2902 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_struct, SWIG_POINTER_DISOWN | 0 ); |
| 2903 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 2904 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_function_struct" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_function_struct" "', argument " "1"" of type '" "struct gsl_multiroot_function_struct *""'"); |
0 |
0 |
0 |
|
| 2905 |
|
| } |
| 2906 |
0 |
| arg1 = (struct gsl_multiroot_function_struct *)(argp1); |
| 2907 |
0 |
| free((char *) arg1); |
| 2908 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 2909 |
|
| |
| 2910 |
0 |
| XSRETURN(argvi); |
| 2911 |
0 |
| fail: |
| 2912 |
|
| |
| 2913 |
0 |
| SWIG_croak_null(); |
| 2914 |
|
| } |
| 2915 |
|
| } |
| 2916 |
|
| |
| 2917 |
|
| |
| 2918 |
0 |
| XS(_wrap_gsl_multiroot_fdjacobian) { |
| 2919 |
|
| { |
| 2920 |
0 |
| gsl_multiroot_function *arg1 = (gsl_multiroot_function *) 0 ; |
| 2921 |
0 |
| gsl_vector *arg2 = (gsl_vector *) 0 ; |
| 2922 |
0 |
| gsl_vector *arg3 = (gsl_vector *) 0 ; |
| 2923 |
|
| double arg4 ; |
| 2924 |
0 |
| gsl_matrix *arg5 = (gsl_matrix *) 0 ; |
| 2925 |
0 |
| void *argp2 = 0 ; |
| 2926 |
0 |
| int res2 = 0 ; |
| 2927 |
0 |
| void *argp3 = 0 ; |
| 2928 |
0 |
| int res3 = 0 ; |
| 2929 |
|
| double val4 ; |
| 2930 |
0 |
| int ecode4 = 0 ; |
| 2931 |
0 |
| void *argp5 = 0 ; |
| 2932 |
0 |
| int res5 = 0 ; |
| 2933 |
0 |
| int argvi = 0; |
| 2934 |
|
| int result; |
| 2935 |
0 |
| dXSARGS; |
| 2936 |
|
| |
| 2937 |
0 |
▶ | if ((items < 5) || (items > 5)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 5) || (items > 5)) { |
0 |
0 |
0 |
| if ((items < 5) || (items > 5)) { |
0 |
0 |
0 |
|
| 2938 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdjacobian(F,x,f,epsrel,jacobian);"); |
| 2939 |
|
| } |
| 2940 |
|
| { |
| 2941 |
|
| gsl_multiroot_function *f; |
| 2942 |
|
| /* stub */ |
| 2943 |
0 |
| arg1 = (gsl_multiroot_function *)&f; |
| 2944 |
|
| } |
| 2945 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, 0 | 0 ); |
| 2946 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 2947 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdjacobian" "', argument " "2"" of type '" "gsl_vector const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdjacobian" "', argument " "2"" of type '" "gsl_vector const *""'"); |
0 |
0 |
0 |
|
| 2948 |
|
| } |
| 2949 |
0 |
| arg2 = (gsl_vector *)(argp2); |
| 2950 |
0 |
| res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector, 0 | 0 ); |
| 2951 |
0 |
▶ | if (!SWIG_IsOK(res3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res3)) { |
0 |
0 |
0 |
|
| 2952 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multiroot_fdjacobian" "', argument " "3"" of type '" "gsl_vector const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multiroot_fdjacobian" "', argument " "3"" of type '" "gsl_vector const *""'"); |
0 |
0 |
0 |
|
| 2953 |
|
| } |
| 2954 |
0 |
| arg3 = (gsl_vector *)(argp3); |
| 2955 |
0 |
| ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
| 2956 |
0 |
▶ | if (!SWIG_IsOK(ecode4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode4)) { |
0 |
0 |
0 |
|
| 2957 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_multiroot_fdjacobian" "', argument " "4"" of type '" "double""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_multiroot_fdjacobian" "', argument " "4"" of type '" "double""'"); |
0 |
0 |
0 |
|
| 2958 |
|
| } |
| 2959 |
0 |
| arg4 = (double)(val4); |
| 2960 |
0 |
| res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_gsl_matrix, 0 | 0 ); |
| 2961 |
0 |
▶ | if (!SWIG_IsOK(res5)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res5)) { |
0 |
0 |
0 |
|
| 2962 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_multiroot_fdjacobian" "', argument " "5"" of type '" "gsl_matrix *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_multiroot_fdjacobian" "', argument " "5"" of type '" "gsl_matrix *""'"); |
0 |
0 |
0 |
|
| 2963 |
|
| } |
| 2964 |
0 |
| arg5 = (gsl_matrix *)(argp5); |
| 2965 |
0 |
| result = (int)gsl_multiroot_fdjacobian(arg1,(gsl_vector const *)arg2,(gsl_vector const *)arg3,arg4,arg5); |
| 2966 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 2967 |
|
| |
| 2968 |
|
| |
| 2969 |
|
| |
| 2970 |
|
| |
| 2971 |
|
| |
| 2972 |
0 |
| XSRETURN(argvi); |
| 2973 |
0 |
| fail: |
| 2974 |
|
| |
| 2975 |
|
| |
| 2976 |
|
| |
| 2977 |
|
| |
| 2978 |
|
| |
| 2979 |
0 |
| SWIG_croak_null(); |
| 2980 |
|
| } |
| 2981 |
|
| } |
| 2982 |
|
| |
| 2983 |
|
| |
| 2984 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_name_set) { |
| 2985 |
|
| { |
| 2986 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 2987 |
0 |
| char *arg2 = (char *) 0 ; |
| 2988 |
0 |
| void *argp1 = 0 ; |
| 2989 |
0 |
| int res1 = 0 ; |
| 2990 |
|
| int res2 ; |
| 2991 |
0 |
| char *buf2 = 0 ; |
| 2992 |
0 |
| int alloc2 = 0 ; |
| 2993 |
0 |
| int argvi = 0; |
| 2994 |
0 |
| dXSARGS; |
| 2995 |
|
| |
| 2996 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 2997 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_name_set(self,name);"); |
| 2998 |
|
| } |
| 2999 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3000 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3001 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_name_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_name_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3002 |
|
| } |
| 3003 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3004 |
0 |
| res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
| 3005 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3006 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_type_name_set" "', argument " "2"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_type_name_set" "', argument " "2"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 3007 |
|
| } |
| 3008 |
0 |
| arg2 = (char *)(buf2); |
| 3009 |
0 |
▶ | if (arg2) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) { |
0 |
0 |
0 |
|
| 3010 |
0 |
| size_t size = strlen((const char *)((const char *)(arg2))) + 1; |
| 3011 |
0 |
| arg1->name = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size)); |
| 3012 |
|
| } else { |
| 3013 |
0 |
| arg1->name = 0; |
| 3014 |
|
| } |
| 3015 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3016 |
|
| |
| 3017 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 3018 |
0 |
| XSRETURN(argvi); |
| 3019 |
0 |
| fail: |
| 3020 |
|
| |
| 3021 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 3022 |
0 |
| SWIG_croak_null(); |
| 3023 |
|
| } |
| 3024 |
|
| } |
| 3025 |
|
| |
| 3026 |
|
| |
| 3027 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_name_get) { |
| 3028 |
|
| { |
| 3029 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3030 |
0 |
| void *argp1 = 0 ; |
| 3031 |
0 |
| int res1 = 0 ; |
| 3032 |
0 |
| int argvi = 0; |
| 3033 |
0 |
| char *result = 0 ; |
| 3034 |
0 |
| dXSARGS; |
| 3035 |
|
| |
| 3036 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3037 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_name_get(self);"); |
| 3038 |
|
| } |
| 3039 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3040 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3041 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_name_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_name_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3042 |
|
| } |
| 3043 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3044 |
0 |
| result = (char *) ((arg1)->name); |
| 3045 |
0 |
| ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
| 3046 |
|
| |
| 3047 |
0 |
| XSRETURN(argvi); |
| 3048 |
0 |
| fail: |
| 3049 |
|
| |
| 3050 |
0 |
| SWIG_croak_null(); |
| 3051 |
|
| } |
| 3052 |
|
| } |
| 3053 |
|
| |
| 3054 |
|
| |
| 3055 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_size_set) { |
| 3056 |
|
| { |
| 3057 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3058 |
|
| size_t arg2 ; |
| 3059 |
0 |
| void *argp1 = 0 ; |
| 3060 |
0 |
| int res1 = 0 ; |
| 3061 |
|
| size_t val2 ; |
| 3062 |
0 |
| int ecode2 = 0 ; |
| 3063 |
0 |
| int argvi = 0; |
| 3064 |
0 |
| dXSARGS; |
| 3065 |
|
| |
| 3066 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3067 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_size_set(self,size);"); |
| 3068 |
|
| } |
| 3069 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3070 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3071 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_size_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_size_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3072 |
|
| } |
| 3073 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3074 |
0 |
| ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
| 3075 |
0 |
▶ | if (!SWIG_IsOK(ecode2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode2)) { |
0 |
0 |
0 |
|
| 3076 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_fsolver_type_size_set" "', argument " "2"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_fsolver_type_size_set" "', argument " "2"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 3077 |
|
| } |
| 3078 |
0 |
| arg2 = (size_t)(val2); |
| 3079 |
0 |
▶ | if (arg1) (arg1)->size = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->size = arg2; |
0 |
0 |
0 |
|
| 3080 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3081 |
|
| |
| 3082 |
|
| |
| 3083 |
0 |
| XSRETURN(argvi); |
| 3084 |
0 |
| fail: |
| 3085 |
|
| |
| 3086 |
|
| |
| 3087 |
0 |
| SWIG_croak_null(); |
| 3088 |
|
| } |
| 3089 |
|
| } |
| 3090 |
|
| |
| 3091 |
|
| |
| 3092 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_size_get) { |
| 3093 |
|
| { |
| 3094 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3095 |
0 |
| void *argp1 = 0 ; |
| 3096 |
0 |
| int res1 = 0 ; |
| 3097 |
0 |
| int argvi = 0; |
| 3098 |
|
| size_t result; |
| 3099 |
0 |
| dXSARGS; |
| 3100 |
|
| |
| 3101 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3102 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_size_get(self);"); |
| 3103 |
|
| } |
| 3104 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3105 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3106 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_size_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_size_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3107 |
|
| } |
| 3108 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3109 |
0 |
| result = ((arg1)->size); |
| 3110 |
0 |
| ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ; |
| 3111 |
|
| |
| 3112 |
0 |
| XSRETURN(argvi); |
| 3113 |
0 |
| fail: |
| 3114 |
|
| |
| 3115 |
0 |
| SWIG_croak_null(); |
| 3116 |
|
| } |
| 3117 |
|
| } |
| 3118 |
|
| |
| 3119 |
|
| |
| 3120 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_alloc_set) { |
| 3121 |
|
| { |
| 3122 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3123 |
0 |
| int (*arg2)(void *,size_t) = (int (*)(void *,size_t)) 0 ; |
| 3124 |
0 |
| void *argp1 = 0 ; |
| 3125 |
0 |
| int res1 = 0 ; |
| 3126 |
0 |
| int argvi = 0; |
| 3127 |
0 |
| dXSARGS; |
| 3128 |
|
| |
| 3129 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3130 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_alloc_set(self,alloc);"); |
| 3131 |
|
| } |
| 3132 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3133 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3134 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_alloc_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_alloc_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3135 |
|
| } |
| 3136 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3137 |
|
| { |
| 3138 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_size_t__int); |
| 3139 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 3140 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fsolver_type_alloc_set" "', argument " "2"" of type '" "int (*)(void *,size_t)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fsolver_type_alloc_set" "', argument " "2"" of type '" "int (*)(void *,size_t)""'"); |
0 |
0 |
0 |
|
| 3141 |
|
| } |
| 3142 |
|
| } |
| 3143 |
0 |
▶ | if (arg1) (arg1)->alloc = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->alloc = arg2; |
0 |
0 |
0 |
|
| 3144 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3145 |
|
| |
| 3146 |
|
| |
| 3147 |
0 |
| XSRETURN(argvi); |
| 3148 |
0 |
| fail: |
| 3149 |
|
| |
| 3150 |
|
| |
| 3151 |
0 |
| SWIG_croak_null(); |
| 3152 |
|
| } |
| 3153 |
|
| } |
| 3154 |
|
| |
| 3155 |
|
| |
| 3156 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_alloc_get) { |
| 3157 |
|
| { |
| 3158 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3159 |
0 |
| void *argp1 = 0 ; |
| 3160 |
0 |
| int res1 = 0 ; |
| 3161 |
0 |
| int argvi = 0; |
| 3162 |
0 |
| int (*result)(void *,size_t) = 0 ; |
| 3163 |
0 |
| dXSARGS; |
| 3164 |
|
| |
| 3165 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3166 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_alloc_get(self);"); |
| 3167 |
|
| } |
| 3168 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3169 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3170 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_alloc_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_alloc_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3171 |
|
| } |
| 3172 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3173 |
0 |
| result = (int (*)(void *,size_t)) ((arg1)->alloc); |
| 3174 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_size_t__int); argvi++ ; |
| 3175 |
|
| |
| 3176 |
0 |
| XSRETURN(argvi); |
| 3177 |
0 |
| fail: |
| 3178 |
|
| |
| 3179 |
0 |
| SWIG_croak_null(); |
| 3180 |
|
| } |
| 3181 |
|
| } |
| 3182 |
|
| |
| 3183 |
|
| |
| 3184 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_set_set) { |
| 3185 |
|
| { |
| 3186 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3187 |
0 |
| int (*arg2)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *) = (int (*)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *)) 0 ; |
| 3188 |
0 |
| void *argp1 = 0 ; |
| 3189 |
0 |
| int res1 = 0 ; |
| 3190 |
0 |
| int argvi = 0; |
| 3191 |
0 |
| dXSARGS; |
| 3192 |
|
| |
| 3193 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3194 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_set_set(self,set);"); |
| 3195 |
|
| } |
| 3196 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3197 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3198 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_set_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_set_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3199 |
|
| } |
| 3200 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3201 |
|
| { |
| 3202 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int); |
| 3203 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 3204 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fsolver_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fsolver_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *)""'"); |
0 |
0 |
0 |
|
| 3205 |
|
| } |
| 3206 |
|
| } |
| 3207 |
0 |
▶ | if (arg1) (arg1)->set = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->set = arg2; |
0 |
0 |
0 |
|
| 3208 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3209 |
|
| |
| 3210 |
|
| |
| 3211 |
0 |
| XSRETURN(argvi); |
| 3212 |
0 |
| fail: |
| 3213 |
|
| |
| 3214 |
|
| |
| 3215 |
0 |
| SWIG_croak_null(); |
| 3216 |
|
| } |
| 3217 |
|
| } |
| 3218 |
|
| |
| 3219 |
|
| |
| 3220 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_set_get) { |
| 3221 |
|
| { |
| 3222 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3223 |
0 |
| void *argp1 = 0 ; |
| 3224 |
0 |
| int res1 = 0 ; |
| 3225 |
0 |
| int argvi = 0; |
| 3226 |
0 |
| int (*result)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *) = 0 ; |
| 3227 |
0 |
| dXSARGS; |
| 3228 |
|
| |
| 3229 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3230 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_set_get(self);"); |
| 3231 |
|
| } |
| 3232 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3233 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3234 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_set_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_set_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3235 |
|
| } |
| 3236 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3237 |
0 |
| result = (int (*)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *)) ((arg1)->set); |
| 3238 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int); argvi++ ; |
| 3239 |
|
| |
| 3240 |
0 |
| XSRETURN(argvi); |
| 3241 |
0 |
| fail: |
| 3242 |
|
| |
| 3243 |
0 |
| SWIG_croak_null(); |
| 3244 |
|
| } |
| 3245 |
|
| } |
| 3246 |
|
| |
| 3247 |
|
| |
| 3248 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_iterate_set) { |
| 3249 |
|
| { |
| 3250 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3251 |
0 |
| int (*arg2)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *) = (int (*)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *)) 0 ; |
| 3252 |
0 |
| void *argp1 = 0 ; |
| 3253 |
0 |
| int res1 = 0 ; |
| 3254 |
0 |
| int argvi = 0; |
| 3255 |
0 |
| dXSARGS; |
| 3256 |
|
| |
| 3257 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3258 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_iterate_set(self,iterate);"); |
| 3259 |
|
| } |
| 3260 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3261 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3262 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_iterate_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_iterate_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3263 |
|
| } |
| 3264 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3265 |
|
| { |
| 3266 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int); |
| 3267 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 3268 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fsolver_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fsolver_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *)""'"); |
0 |
0 |
0 |
|
| 3269 |
|
| } |
| 3270 |
|
| } |
| 3271 |
0 |
▶ | if (arg1) (arg1)->iterate = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->iterate = arg2; |
0 |
0 |
0 |
|
| 3272 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3273 |
|
| |
| 3274 |
|
| |
| 3275 |
0 |
| XSRETURN(argvi); |
| 3276 |
0 |
| fail: |
| 3277 |
|
| |
| 3278 |
|
| |
| 3279 |
0 |
| SWIG_croak_null(); |
| 3280 |
|
| } |
| 3281 |
|
| } |
| 3282 |
|
| |
| 3283 |
|
| |
| 3284 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_iterate_get) { |
| 3285 |
|
| { |
| 3286 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3287 |
0 |
| void *argp1 = 0 ; |
| 3288 |
0 |
| int res1 = 0 ; |
| 3289 |
0 |
| int argvi = 0; |
| 3290 |
0 |
| int (*result)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *) = 0 ; |
| 3291 |
0 |
| dXSARGS; |
| 3292 |
|
| |
| 3293 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3294 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_iterate_get(self);"); |
| 3295 |
|
| } |
| 3296 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3297 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3298 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_iterate_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_iterate_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3299 |
|
| } |
| 3300 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3301 |
0 |
| result = (int (*)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *)) ((arg1)->iterate); |
| 3302 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int); argvi++ ; |
| 3303 |
|
| |
| 3304 |
0 |
| XSRETURN(argvi); |
| 3305 |
0 |
| fail: |
| 3306 |
|
| |
| 3307 |
0 |
| SWIG_croak_null(); |
| 3308 |
|
| } |
| 3309 |
|
| } |
| 3310 |
|
| |
| 3311 |
|
| |
| 3312 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_free_set) { |
| 3313 |
|
| { |
| 3314 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3315 |
0 |
| void (*arg2)(void *) = (void (*)(void *)) 0 ; |
| 3316 |
0 |
| void *argp1 = 0 ; |
| 3317 |
0 |
| int res1 = 0 ; |
| 3318 |
0 |
| int argvi = 0; |
| 3319 |
0 |
| dXSARGS; |
| 3320 |
|
| |
| 3321 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3322 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_free_set(self,free);"); |
| 3323 |
|
| } |
| 3324 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3325 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3326 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_free_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_free_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3327 |
|
| } |
| 3328 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3329 |
|
| { |
| 3330 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void__void); |
| 3331 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 3332 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fsolver_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fsolver_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'"); |
0 |
0 |
0 |
|
| 3333 |
|
| } |
| 3334 |
|
| } |
| 3335 |
0 |
▶ | if (arg1) (arg1)->free = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->free = arg2; |
0 |
0 |
0 |
|
| 3336 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3337 |
|
| |
| 3338 |
|
| |
| 3339 |
0 |
| XSRETURN(argvi); |
| 3340 |
0 |
| fail: |
| 3341 |
|
| |
| 3342 |
|
| |
| 3343 |
0 |
| SWIG_croak_null(); |
| 3344 |
|
| } |
| 3345 |
|
| } |
| 3346 |
|
| |
| 3347 |
|
| |
| 3348 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_free_get) { |
| 3349 |
|
| { |
| 3350 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3351 |
0 |
| void *argp1 = 0 ; |
| 3352 |
0 |
| int res1 = 0 ; |
| 3353 |
0 |
| int argvi = 0; |
| 3354 |
0 |
| void (*result)(void *) = 0 ; |
| 3355 |
0 |
| dXSARGS; |
| 3356 |
|
| |
| 3357 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3358 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_free_get(self);"); |
| 3359 |
|
| } |
| 3360 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3361 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3362 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_free_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_free_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3363 |
|
| } |
| 3364 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3365 |
0 |
| result = (void (*)(void *)) ((arg1)->free); |
| 3366 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void); argvi++ ; |
| 3367 |
|
| |
| 3368 |
0 |
| XSRETURN(argvi); |
| 3369 |
0 |
| fail: |
| 3370 |
|
| |
| 3371 |
0 |
| SWIG_croak_null(); |
| 3372 |
|
| } |
| 3373 |
|
| } |
| 3374 |
|
| |
| 3375 |
|
| |
| 3376 |
0 |
| XS(_wrap_new_gsl_multiroot_fsolver_type) { |
| 3377 |
|
| { |
| 3378 |
0 |
| int argvi = 0; |
| 3379 |
0 |
| gsl_multiroot_fsolver_type *result = 0 ; |
| 3380 |
0 |
| dXSARGS; |
| 3381 |
|
| |
| 3382 |
0 |
▶ | if ((items < 0) || (items > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
|
| 3383 |
0 |
| SWIG_croak("Usage: new_gsl_multiroot_fsolver_type();"); |
| 3384 |
|
| } |
| 3385 |
0 |
| result = (gsl_multiroot_fsolver_type *)calloc(1, sizeof(gsl_multiroot_fsolver_type)); |
| 3386 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_fsolver_type, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
| 3387 |
0 |
| XSRETURN(argvi); |
| 3388 |
0 |
| fail: |
| 3389 |
0 |
| SWIG_croak_null(); |
| 3390 |
|
| } |
| 3391 |
|
| } |
| 3392 |
|
| |
| 3393 |
|
| |
| 3394 |
0 |
| XS(_wrap_delete_gsl_multiroot_fsolver_type) { |
| 3395 |
|
| { |
| 3396 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3397 |
0 |
| void *argp1 = 0 ; |
| 3398 |
0 |
| int res1 = 0 ; |
| 3399 |
0 |
| int argvi = 0; |
| 3400 |
0 |
| dXSARGS; |
| 3401 |
|
| |
| 3402 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3403 |
0 |
| SWIG_croak("Usage: delete_gsl_multiroot_fsolver_type(self);"); |
| 3404 |
|
| } |
| 3405 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, SWIG_POINTER_DISOWN | 0 ); |
| 3406 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3407 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_fsolver_type" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_fsolver_type" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type *""'"); |
0 |
0 |
0 |
|
| 3408 |
|
| } |
| 3409 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3410 |
0 |
| free((char *) arg1); |
| 3411 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3412 |
|
| |
| 3413 |
0 |
| XSRETURN(argvi); |
| 3414 |
0 |
| fail: |
| 3415 |
|
| |
| 3416 |
0 |
| SWIG_croak_null(); |
| 3417 |
|
| } |
| 3418 |
|
| } |
| 3419 |
|
| |
| 3420 |
|
| |
| 3421 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_set) { |
| 3422 |
|
| { |
| 3423 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3424 |
0 |
| gsl_multiroot_fsolver_type *arg2 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3425 |
0 |
| void *argp1 = 0 ; |
| 3426 |
0 |
| int res1 = 0 ; |
| 3427 |
0 |
| void *argp2 = 0 ; |
| 3428 |
0 |
| int res2 = 0 ; |
| 3429 |
0 |
| int argvi = 0; |
| 3430 |
0 |
| dXSARGS; |
| 3431 |
|
| |
| 3432 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3433 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_set(self,type);"); |
| 3434 |
|
| } |
| 3435 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3436 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3437 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3438 |
|
| } |
| 3439 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3440 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_multiroot_fsolver_type, SWIG_POINTER_DISOWN | 0 ); |
| 3441 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3442 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_type_set" "', argument " "2"" of type '" "gsl_multiroot_fsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_type_set" "', argument " "2"" of type '" "gsl_multiroot_fsolver_type const *""'"); |
0 |
0 |
0 |
|
| 3443 |
|
| } |
| 3444 |
0 |
| arg2 = (gsl_multiroot_fsolver_type *)(argp2); |
| 3445 |
0 |
▶ | if (arg1) (arg1)->type = (gsl_multiroot_fsolver_type const *)arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->type = (gsl_multiroot_fsolver_type const *)arg2; |
0 |
0 |
0 |
|
| 3446 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3447 |
|
| |
| 3448 |
|
| |
| 3449 |
0 |
| XSRETURN(argvi); |
| 3450 |
0 |
| fail: |
| 3451 |
|
| |
| 3452 |
|
| |
| 3453 |
0 |
| SWIG_croak_null(); |
| 3454 |
|
| } |
| 3455 |
|
| } |
| 3456 |
|
| |
| 3457 |
|
| |
| 3458 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_type_get) { |
| 3459 |
|
| { |
| 3460 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3461 |
0 |
| void *argp1 = 0 ; |
| 3462 |
0 |
| int res1 = 0 ; |
| 3463 |
0 |
| int argvi = 0; |
| 3464 |
0 |
| gsl_multiroot_fsolver_type *result = 0 ; |
| 3465 |
0 |
| dXSARGS; |
| 3466 |
|
| |
| 3467 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3468 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_type_get(self);"); |
| 3469 |
|
| } |
| 3470 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3471 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3472 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_type_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3473 |
|
| } |
| 3474 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3475 |
0 |
| result = (gsl_multiroot_fsolver_type *) ((arg1)->type); |
| 3476 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | SWIG_SHADOW); argvi++ ; |
| 3477 |
|
| |
| 3478 |
0 |
| XSRETURN(argvi); |
| 3479 |
0 |
| fail: |
| 3480 |
|
| |
| 3481 |
0 |
| SWIG_croak_null(); |
| 3482 |
|
| } |
| 3483 |
|
| } |
| 3484 |
|
| |
| 3485 |
|
| |
| 3486 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_function_set) { |
| 3487 |
|
| { |
| 3488 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3489 |
0 |
| gsl_multiroot_function *arg2 = (gsl_multiroot_function *) 0 ; |
| 3490 |
0 |
| void *argp1 = 0 ; |
| 3491 |
0 |
| int res1 = 0 ; |
| 3492 |
0 |
| int argvi = 0; |
| 3493 |
0 |
| dXSARGS; |
| 3494 |
|
| |
| 3495 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3496 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_function_set(self,function);"); |
| 3497 |
|
| } |
| 3498 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3499 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3500 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_function_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_function_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3501 |
|
| } |
| 3502 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3503 |
|
| { |
| 3504 |
|
| gsl_multiroot_function *f; |
| 3505 |
|
| /* stub */ |
| 3506 |
0 |
| arg2 = (gsl_multiroot_function *)&f; |
| 3507 |
|
| } |
| 3508 |
0 |
▶ | if (arg1) (arg1)->function = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->function = arg2; |
0 |
0 |
0 |
|
| 3509 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3510 |
|
| |
| 3511 |
|
| |
| 3512 |
0 |
| XSRETURN(argvi); |
| 3513 |
0 |
| fail: |
| 3514 |
|
| |
| 3515 |
|
| |
| 3516 |
0 |
| SWIG_croak_null(); |
| 3517 |
|
| } |
| 3518 |
|
| } |
| 3519 |
|
| |
| 3520 |
|
| |
| 3521 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_function_get) { |
| 3522 |
|
| { |
| 3523 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3524 |
0 |
| void *argp1 = 0 ; |
| 3525 |
0 |
| int res1 = 0 ; |
| 3526 |
0 |
| int argvi = 0; |
| 3527 |
0 |
| gsl_multiroot_function *result = 0 ; |
| 3528 |
0 |
| dXSARGS; |
| 3529 |
|
| |
| 3530 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3531 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_function_get(self);"); |
| 3532 |
|
| } |
| 3533 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3534 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3535 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_function_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_function_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3536 |
|
| } |
| 3537 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3538 |
0 |
| result = (gsl_multiroot_function *) ((arg1)->function); |
| 3539 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_function_struct, 0 | SWIG_SHADOW); argvi++ ; |
| 3540 |
|
| |
| 3541 |
0 |
| XSRETURN(argvi); |
| 3542 |
0 |
| fail: |
| 3543 |
|
| |
| 3544 |
0 |
| SWIG_croak_null(); |
| 3545 |
|
| } |
| 3546 |
|
| } |
| 3547 |
|
| |
| 3548 |
|
| |
| 3549 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_x_set) { |
| 3550 |
|
| { |
| 3551 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3552 |
0 |
| gsl_vector *arg2 = (gsl_vector *) 0 ; |
| 3553 |
0 |
| void *argp1 = 0 ; |
| 3554 |
0 |
| int res1 = 0 ; |
| 3555 |
0 |
| void *argp2 = 0 ; |
| 3556 |
0 |
| int res2 = 0 ; |
| 3557 |
0 |
| int argvi = 0; |
| 3558 |
0 |
| dXSARGS; |
| 3559 |
|
| |
| 3560 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3561 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_x_set(self,x);"); |
| 3562 |
|
| } |
| 3563 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3564 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3565 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_x_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_x_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3566 |
|
| } |
| 3567 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3568 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, SWIG_POINTER_DISOWN | 0 ); |
| 3569 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3570 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_x_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_x_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
0 |
0 |
0 |
|
| 3571 |
|
| } |
| 3572 |
0 |
| arg2 = (gsl_vector *)(argp2); |
| 3573 |
0 |
▶ | if (arg1) (arg1)->x = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->x = arg2; |
0 |
0 |
0 |
|
| 3574 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3575 |
|
| |
| 3576 |
|
| |
| 3577 |
0 |
| XSRETURN(argvi); |
| 3578 |
0 |
| fail: |
| 3579 |
|
| |
| 3580 |
|
| |
| 3581 |
0 |
| SWIG_croak_null(); |
| 3582 |
|
| } |
| 3583 |
|
| } |
| 3584 |
|
| |
| 3585 |
|
| |
| 3586 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_x_get) { |
| 3587 |
|
| { |
| 3588 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3589 |
0 |
| void *argp1 = 0 ; |
| 3590 |
0 |
| int res1 = 0 ; |
| 3591 |
0 |
| int argvi = 0; |
| 3592 |
0 |
| gsl_vector *result = 0 ; |
| 3593 |
0 |
| dXSARGS; |
| 3594 |
|
| |
| 3595 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3596 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_x_get(self);"); |
| 3597 |
|
| } |
| 3598 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3599 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3600 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_x_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_x_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3601 |
|
| } |
| 3602 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3603 |
0 |
| result = (gsl_vector *) ((arg1)->x); |
| 3604 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 3605 |
|
| |
| 3606 |
0 |
| XSRETURN(argvi); |
| 3607 |
0 |
| fail: |
| 3608 |
|
| |
| 3609 |
0 |
| SWIG_croak_null(); |
| 3610 |
|
| } |
| 3611 |
|
| } |
| 3612 |
|
| |
| 3613 |
|
| |
| 3614 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_f_set) { |
| 3615 |
|
| { |
| 3616 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3617 |
0 |
| gsl_vector *arg2 = (gsl_vector *) 0 ; |
| 3618 |
0 |
| void *argp1 = 0 ; |
| 3619 |
0 |
| int res1 = 0 ; |
| 3620 |
0 |
| void *argp2 = 0 ; |
| 3621 |
0 |
| int res2 = 0 ; |
| 3622 |
0 |
| int argvi = 0; |
| 3623 |
0 |
| dXSARGS; |
| 3624 |
|
| |
| 3625 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3626 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_f_set(self,f);"); |
| 3627 |
|
| } |
| 3628 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3629 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3630 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_f_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_f_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3631 |
|
| } |
| 3632 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3633 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, SWIG_POINTER_DISOWN | 0 ); |
| 3634 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3635 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_f_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_f_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
0 |
0 |
0 |
|
| 3636 |
|
| } |
| 3637 |
0 |
| arg2 = (gsl_vector *)(argp2); |
| 3638 |
0 |
▶ | if (arg1) (arg1)->f = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->f = arg2; |
0 |
0 |
0 |
|
| 3639 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3640 |
|
| |
| 3641 |
|
| |
| 3642 |
0 |
| XSRETURN(argvi); |
| 3643 |
0 |
| fail: |
| 3644 |
|
| |
| 3645 |
|
| |
| 3646 |
0 |
| SWIG_croak_null(); |
| 3647 |
|
| } |
| 3648 |
|
| } |
| 3649 |
|
| |
| 3650 |
|
| |
| 3651 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_f_get) { |
| 3652 |
|
| { |
| 3653 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3654 |
0 |
| void *argp1 = 0 ; |
| 3655 |
0 |
| int res1 = 0 ; |
| 3656 |
0 |
| int argvi = 0; |
| 3657 |
0 |
| gsl_vector *result = 0 ; |
| 3658 |
0 |
| dXSARGS; |
| 3659 |
|
| |
| 3660 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3661 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_f_get(self);"); |
| 3662 |
|
| } |
| 3663 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3664 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3665 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_f_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_f_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3666 |
|
| } |
| 3667 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3668 |
0 |
| result = (gsl_vector *) ((arg1)->f); |
| 3669 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 3670 |
|
| |
| 3671 |
0 |
| XSRETURN(argvi); |
| 3672 |
0 |
| fail: |
| 3673 |
|
| |
| 3674 |
0 |
| SWIG_croak_null(); |
| 3675 |
|
| } |
| 3676 |
|
| } |
| 3677 |
|
| |
| 3678 |
|
| |
| 3679 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_dx_set) { |
| 3680 |
|
| { |
| 3681 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3682 |
0 |
| gsl_vector *arg2 = (gsl_vector *) 0 ; |
| 3683 |
0 |
| void *argp1 = 0 ; |
| 3684 |
0 |
| int res1 = 0 ; |
| 3685 |
0 |
| void *argp2 = 0 ; |
| 3686 |
0 |
| int res2 = 0 ; |
| 3687 |
0 |
| int argvi = 0; |
| 3688 |
0 |
| dXSARGS; |
| 3689 |
|
| |
| 3690 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3691 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_dx_set(self,dx);"); |
| 3692 |
|
| } |
| 3693 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3694 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3695 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_dx_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_dx_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3696 |
|
| } |
| 3697 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3698 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, SWIG_POINTER_DISOWN | 0 ); |
| 3699 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3700 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_dx_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_dx_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
0 |
0 |
0 |
|
| 3701 |
|
| } |
| 3702 |
0 |
| arg2 = (gsl_vector *)(argp2); |
| 3703 |
0 |
▶ | if (arg1) (arg1)->dx = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->dx = arg2; |
0 |
0 |
0 |
|
| 3704 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3705 |
|
| |
| 3706 |
|
| |
| 3707 |
0 |
| XSRETURN(argvi); |
| 3708 |
0 |
| fail: |
| 3709 |
|
| |
| 3710 |
|
| |
| 3711 |
0 |
| SWIG_croak_null(); |
| 3712 |
|
| } |
| 3713 |
|
| } |
| 3714 |
|
| |
| 3715 |
|
| |
| 3716 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_dx_get) { |
| 3717 |
|
| { |
| 3718 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3719 |
0 |
| void *argp1 = 0 ; |
| 3720 |
0 |
| int res1 = 0 ; |
| 3721 |
0 |
| int argvi = 0; |
| 3722 |
0 |
| gsl_vector *result = 0 ; |
| 3723 |
0 |
| dXSARGS; |
| 3724 |
|
| |
| 3725 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3726 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_dx_get(self);"); |
| 3727 |
|
| } |
| 3728 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3729 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3730 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_dx_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_dx_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3731 |
|
| } |
| 3732 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3733 |
0 |
| result = (gsl_vector *) ((arg1)->dx); |
| 3734 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 3735 |
|
| |
| 3736 |
0 |
| XSRETURN(argvi); |
| 3737 |
0 |
| fail: |
| 3738 |
|
| |
| 3739 |
0 |
| SWIG_croak_null(); |
| 3740 |
|
| } |
| 3741 |
|
| } |
| 3742 |
|
| |
| 3743 |
|
| |
| 3744 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_state_set) { |
| 3745 |
|
| { |
| 3746 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3747 |
0 |
| void *arg2 = (void *) 0 ; |
| 3748 |
0 |
| void *argp1 = 0 ; |
| 3749 |
0 |
| int res1 = 0 ; |
| 3750 |
|
| int res2 ; |
| 3751 |
0 |
| int argvi = 0; |
| 3752 |
0 |
| dXSARGS; |
| 3753 |
|
| |
| 3754 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3755 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_state_set(self,state);"); |
| 3756 |
|
| } |
| 3757 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3758 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3759 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_state_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_state_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3760 |
|
| } |
| 3761 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3762 |
0 |
| res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); |
| 3763 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 3764 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_state_set" "', argument " "2"" of type '" "void *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fsolver_state_set" "', argument " "2"" of type '" "void *""'"); |
0 |
0 |
0 |
|
| 3765 |
|
| } |
| 3766 |
0 |
▶ | if (arg1) (arg1)->state = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->state = arg2; |
0 |
0 |
0 |
|
| 3767 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3768 |
|
| |
| 3769 |
|
| |
| 3770 |
0 |
| XSRETURN(argvi); |
| 3771 |
0 |
| fail: |
| 3772 |
|
| |
| 3773 |
|
| |
| 3774 |
0 |
| SWIG_croak_null(); |
| 3775 |
|
| } |
| 3776 |
|
| } |
| 3777 |
|
| |
| 3778 |
|
| |
| 3779 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_state_get) { |
| 3780 |
|
| { |
| 3781 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3782 |
0 |
| void *argp1 = 0 ; |
| 3783 |
0 |
| int res1 = 0 ; |
| 3784 |
0 |
| int argvi = 0; |
| 3785 |
0 |
| void *result = 0 ; |
| 3786 |
0 |
| dXSARGS; |
| 3787 |
|
| |
| 3788 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3789 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_state_get(self);"); |
| 3790 |
|
| } |
| 3791 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3792 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3793 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_state_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_state_get" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3794 |
|
| } |
| 3795 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3796 |
0 |
| result = (void *) ((arg1)->state); |
| 3797 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ; |
| 3798 |
|
| |
| 3799 |
0 |
| XSRETURN(argvi); |
| 3800 |
0 |
| fail: |
| 3801 |
|
| |
| 3802 |
0 |
| SWIG_croak_null(); |
| 3803 |
|
| } |
| 3804 |
|
| } |
| 3805 |
|
| |
| 3806 |
|
| |
| 3807 |
0 |
| XS(_wrap_new_gsl_multiroot_fsolver) { |
| 3808 |
|
| { |
| 3809 |
0 |
| int argvi = 0; |
| 3810 |
0 |
| gsl_multiroot_fsolver *result = 0 ; |
| 3811 |
0 |
| dXSARGS; |
| 3812 |
|
| |
| 3813 |
0 |
▶ | if ((items < 0) || (items > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
|
| 3814 |
0 |
| SWIG_croak("Usage: new_gsl_multiroot_fsolver();"); |
| 3815 |
|
| } |
| 3816 |
0 |
| result = (gsl_multiroot_fsolver *)calloc(1, sizeof(gsl_multiroot_fsolver)); |
| 3817 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_fsolver, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
| 3818 |
0 |
| XSRETURN(argvi); |
| 3819 |
0 |
| fail: |
| 3820 |
0 |
| SWIG_croak_null(); |
| 3821 |
|
| } |
| 3822 |
|
| } |
| 3823 |
|
| |
| 3824 |
|
| |
| 3825 |
0 |
| XS(_wrap_delete_gsl_multiroot_fsolver) { |
| 3826 |
|
| { |
| 3827 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3828 |
0 |
| void *argp1 = 0 ; |
| 3829 |
0 |
| int res1 = 0 ; |
| 3830 |
0 |
| int argvi = 0; |
| 3831 |
0 |
| dXSARGS; |
| 3832 |
|
| |
| 3833 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3834 |
0 |
| SWIG_croak("Usage: delete_gsl_multiroot_fsolver(self);"); |
| 3835 |
|
| } |
| 3836 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, SWIG_POINTER_DISOWN | 0 ); |
| 3837 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3838 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_fsolver" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_fsolver" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3839 |
|
| } |
| 3840 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3841 |
0 |
| free((char *) arg1); |
| 3842 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3843 |
|
| |
| 3844 |
0 |
| XSRETURN(argvi); |
| 3845 |
0 |
| fail: |
| 3846 |
|
| |
| 3847 |
0 |
| SWIG_croak_null(); |
| 3848 |
|
| } |
| 3849 |
|
| } |
| 3850 |
|
| |
| 3851 |
|
| |
| 3852 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_alloc) { |
| 3853 |
|
| { |
| 3854 |
0 |
| gsl_multiroot_fsolver_type *arg1 = (gsl_multiroot_fsolver_type *) 0 ; |
| 3855 |
|
| size_t arg2 ; |
| 3856 |
0 |
| void *argp1 = 0 ; |
| 3857 |
0 |
| int res1 = 0 ; |
| 3858 |
|
| size_t val2 ; |
| 3859 |
0 |
| int ecode2 = 0 ; |
| 3860 |
0 |
| int argvi = 0; |
| 3861 |
0 |
| gsl_multiroot_fsolver *result = 0 ; |
| 3862 |
0 |
| dXSARGS; |
| 3863 |
|
| |
| 3864 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 3865 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_alloc(T,n);"); |
| 3866 |
|
| } |
| 3867 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver_type, 0 | 0 ); |
| 3868 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3869 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_alloc" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_alloc" "', argument " "1"" of type '" "gsl_multiroot_fsolver_type const *""'"); |
0 |
0 |
0 |
|
| 3870 |
|
| } |
| 3871 |
0 |
| arg1 = (gsl_multiroot_fsolver_type *)(argp1); |
| 3872 |
0 |
| ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
| 3873 |
0 |
▶ | if (!SWIG_IsOK(ecode2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode2)) { |
0 |
0 |
0 |
|
| 3874 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_fsolver_alloc" "', argument " "2"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_fsolver_alloc" "', argument " "2"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 3875 |
|
| } |
| 3876 |
0 |
| arg2 = (size_t)(val2); |
| 3877 |
0 |
| result = (gsl_multiroot_fsolver *)gsl_multiroot_fsolver_alloc((gsl_multiroot_fsolver_type const *)arg1,arg2); |
| 3878 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_fsolver, 0 | SWIG_SHADOW); argvi++ ; |
| 3879 |
|
| |
| 3880 |
|
| |
| 3881 |
0 |
| XSRETURN(argvi); |
| 3882 |
0 |
| fail: |
| 3883 |
|
| |
| 3884 |
|
| |
| 3885 |
0 |
| SWIG_croak_null(); |
| 3886 |
|
| } |
| 3887 |
|
| } |
| 3888 |
|
| |
| 3889 |
|
| |
| 3890 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_free) { |
| 3891 |
|
| { |
| 3892 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3893 |
0 |
| void *argp1 = 0 ; |
| 3894 |
0 |
| int res1 = 0 ; |
| 3895 |
0 |
| int argvi = 0; |
| 3896 |
0 |
| dXSARGS; |
| 3897 |
|
| |
| 3898 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3899 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_free(s);"); |
| 3900 |
|
| } |
| 3901 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3902 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3903 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_free" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_free" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3904 |
|
| } |
| 3905 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3906 |
0 |
| gsl_multiroot_fsolver_free(arg1); |
| 3907 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 3908 |
|
| |
| 3909 |
0 |
| XSRETURN(argvi); |
| 3910 |
0 |
| fail: |
| 3911 |
|
| |
| 3912 |
0 |
| SWIG_croak_null(); |
| 3913 |
|
| } |
| 3914 |
|
| } |
| 3915 |
|
| |
| 3916 |
|
| |
| 3917 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_set) { |
| 3918 |
|
| { |
| 3919 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3920 |
0 |
| gsl_multiroot_function *arg2 = (gsl_multiroot_function *) 0 ; |
| 3921 |
0 |
| gsl_vector *arg3 = (gsl_vector *) 0 ; |
| 3922 |
0 |
| void *argp1 = 0 ; |
| 3923 |
0 |
| int res1 = 0 ; |
| 3924 |
0 |
| void *argp3 = 0 ; |
| 3925 |
0 |
| int res3 = 0 ; |
| 3926 |
0 |
| int argvi = 0; |
| 3927 |
|
| int result; |
| 3928 |
0 |
| dXSARGS; |
| 3929 |
|
| |
| 3930 |
0 |
▶ | if ((items < 3) || (items > 3)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
|
| 3931 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_set(s,f,x);"); |
| 3932 |
|
| } |
| 3933 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3934 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3935 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_set" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3936 |
|
| } |
| 3937 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3938 |
|
| { |
| 3939 |
|
| gsl_multiroot_function *f; |
| 3940 |
|
| /* stub */ |
| 3941 |
0 |
| arg2 = (gsl_multiroot_function *)&f; |
| 3942 |
|
| } |
| 3943 |
0 |
| res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector, 0 | 0 ); |
| 3944 |
0 |
▶ | if (!SWIG_IsOK(res3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res3)) { |
0 |
0 |
0 |
|
| 3945 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multiroot_fsolver_set" "', argument " "3"" of type '" "gsl_vector const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multiroot_fsolver_set" "', argument " "3"" of type '" "gsl_vector const *""'"); |
0 |
0 |
0 |
|
| 3946 |
|
| } |
| 3947 |
0 |
| arg3 = (gsl_vector *)(argp3); |
| 3948 |
0 |
| result = (int)gsl_multiroot_fsolver_set(arg1,arg2,(gsl_vector const *)arg3); |
| 3949 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 3950 |
|
| |
| 3951 |
|
| |
| 3952 |
|
| |
| 3953 |
0 |
| XSRETURN(argvi); |
| 3954 |
0 |
| fail: |
| 3955 |
|
| |
| 3956 |
|
| |
| 3957 |
|
| |
| 3958 |
0 |
| SWIG_croak_null(); |
| 3959 |
|
| } |
| 3960 |
|
| } |
| 3961 |
|
| |
| 3962 |
|
| |
| 3963 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_iterate) { |
| 3964 |
|
| { |
| 3965 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3966 |
0 |
| void *argp1 = 0 ; |
| 3967 |
0 |
| int res1 = 0 ; |
| 3968 |
0 |
| int argvi = 0; |
| 3969 |
|
| int result; |
| 3970 |
0 |
| dXSARGS; |
| 3971 |
|
| |
| 3972 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 3973 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_iterate(s);"); |
| 3974 |
|
| } |
| 3975 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 3976 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 3977 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_iterate" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_iterate" "', argument " "1"" of type '" "gsl_multiroot_fsolver *""'"); |
0 |
0 |
0 |
|
| 3978 |
|
| } |
| 3979 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 3980 |
0 |
| result = (int)gsl_multiroot_fsolver_iterate(arg1); |
| 3981 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 3982 |
|
| |
| 3983 |
0 |
| XSRETURN(argvi); |
| 3984 |
0 |
| fail: |
| 3985 |
|
| |
| 3986 |
0 |
| SWIG_croak_null(); |
| 3987 |
|
| } |
| 3988 |
|
| } |
| 3989 |
|
| |
| 3990 |
|
| |
| 3991 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_name) { |
| 3992 |
|
| { |
| 3993 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 3994 |
0 |
| void *argp1 = 0 ; |
| 3995 |
0 |
| int res1 = 0 ; |
| 3996 |
0 |
| int argvi = 0; |
| 3997 |
0 |
| char *result = 0 ; |
| 3998 |
0 |
| dXSARGS; |
| 3999 |
|
| |
| 4000 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4001 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_name(s);"); |
| 4002 |
|
| } |
| 4003 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 4004 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4005 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_name" "', argument " "1"" of type '" "gsl_multiroot_fsolver const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_name" "', argument " "1"" of type '" "gsl_multiroot_fsolver const *""'"); |
0 |
0 |
0 |
|
| 4006 |
|
| } |
| 4007 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 4008 |
0 |
| result = (char *)gsl_multiroot_fsolver_name((gsl_multiroot_fsolver const *)arg1); |
| 4009 |
0 |
| ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
| 4010 |
|
| |
| 4011 |
0 |
| XSRETURN(argvi); |
| 4012 |
0 |
| fail: |
| 4013 |
|
| |
| 4014 |
0 |
| SWIG_croak_null(); |
| 4015 |
|
| } |
| 4016 |
|
| } |
| 4017 |
|
| |
| 4018 |
|
| |
| 4019 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_root) { |
| 4020 |
|
| { |
| 4021 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 4022 |
0 |
| void *argp1 = 0 ; |
| 4023 |
0 |
| int res1 = 0 ; |
| 4024 |
0 |
| int argvi = 0; |
| 4025 |
0 |
| gsl_vector *result = 0 ; |
| 4026 |
0 |
| dXSARGS; |
| 4027 |
|
| |
| 4028 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4029 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_root(s);"); |
| 4030 |
|
| } |
| 4031 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 4032 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4033 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_root" "', argument " "1"" of type '" "gsl_multiroot_fsolver const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_root" "', argument " "1"" of type '" "gsl_multiroot_fsolver const *""'"); |
0 |
0 |
0 |
|
| 4034 |
|
| } |
| 4035 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 4036 |
0 |
| result = (gsl_vector *)gsl_multiroot_fsolver_root((gsl_multiroot_fsolver const *)arg1); |
| 4037 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 4038 |
|
| |
| 4039 |
0 |
| XSRETURN(argvi); |
| 4040 |
0 |
| fail: |
| 4041 |
|
| |
| 4042 |
0 |
| SWIG_croak_null(); |
| 4043 |
|
| } |
| 4044 |
|
| } |
| 4045 |
|
| |
| 4046 |
|
| |
| 4047 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_dx) { |
| 4048 |
|
| { |
| 4049 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 4050 |
0 |
| void *argp1 = 0 ; |
| 4051 |
0 |
| int res1 = 0 ; |
| 4052 |
0 |
| int argvi = 0; |
| 4053 |
0 |
| gsl_vector *result = 0 ; |
| 4054 |
0 |
| dXSARGS; |
| 4055 |
|
| |
| 4056 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4057 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_dx(s);"); |
| 4058 |
|
| } |
| 4059 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 4060 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4061 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_dx" "', argument " "1"" of type '" "gsl_multiroot_fsolver const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_dx" "', argument " "1"" of type '" "gsl_multiroot_fsolver const *""'"); |
0 |
0 |
0 |
|
| 4062 |
|
| } |
| 4063 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 4064 |
0 |
| result = (gsl_vector *)gsl_multiroot_fsolver_dx((gsl_multiroot_fsolver const *)arg1); |
| 4065 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 4066 |
|
| |
| 4067 |
0 |
| XSRETURN(argvi); |
| 4068 |
0 |
| fail: |
| 4069 |
|
| |
| 4070 |
0 |
| SWIG_croak_null(); |
| 4071 |
|
| } |
| 4072 |
|
| } |
| 4073 |
|
| |
| 4074 |
|
| |
| 4075 |
0 |
| XS(_wrap_gsl_multiroot_fsolver_f) { |
| 4076 |
|
| { |
| 4077 |
0 |
| gsl_multiroot_fsolver *arg1 = (gsl_multiroot_fsolver *) 0 ; |
| 4078 |
0 |
| void *argp1 = 0 ; |
| 4079 |
0 |
| int res1 = 0 ; |
| 4080 |
0 |
| int argvi = 0; |
| 4081 |
0 |
| gsl_vector *result = 0 ; |
| 4082 |
0 |
| dXSARGS; |
| 4083 |
|
| |
| 4084 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4085 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fsolver_f(s);"); |
| 4086 |
|
| } |
| 4087 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fsolver, 0 | 0 ); |
| 4088 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4089 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_f" "', argument " "1"" of type '" "gsl_multiroot_fsolver const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fsolver_f" "', argument " "1"" of type '" "gsl_multiroot_fsolver const *""'"); |
0 |
0 |
0 |
|
| 4090 |
|
| } |
| 4091 |
0 |
| arg1 = (gsl_multiroot_fsolver *)(argp1); |
| 4092 |
0 |
| result = (gsl_vector *)gsl_multiroot_fsolver_f((gsl_multiroot_fsolver const *)arg1); |
| 4093 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 4094 |
|
| |
| 4095 |
0 |
| XSRETURN(argvi); |
| 4096 |
0 |
| fail: |
| 4097 |
|
| |
| 4098 |
0 |
| SWIG_croak_null(); |
| 4099 |
|
| } |
| 4100 |
|
| } |
| 4101 |
|
| |
| 4102 |
|
| |
| 4103 |
0 |
| XS(_wrap_gsl_multiroot_function_fdf_struct_f_set) { |
| 4104 |
|
| { |
| 4105 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4106 |
0 |
| int (*arg2)(gsl_vector const *,void *,gsl_vector *) = (int (*)(gsl_vector const *,void *,gsl_vector *)) 0 ; |
| 4107 |
0 |
| void *argp1 = 0 ; |
| 4108 |
0 |
| int res1 = 0 ; |
| 4109 |
0 |
| int argvi = 0; |
| 4110 |
0 |
| dXSARGS; |
| 4111 |
|
| |
| 4112 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4113 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_fdf_struct_f_set(self,f);"); |
| 4114 |
|
| } |
| 4115 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 4116 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4117 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_f_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_f_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4118 |
|
| } |
| 4119 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4120 |
|
| { |
| 4121 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int); |
| 4122 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 4123 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_function_fdf_struct_f_set" "', argument " "2"" of type '" "int (*)(gsl_vector const *,void *,gsl_vector *)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_function_fdf_struct_f_set" "', argument " "2"" of type '" "int (*)(gsl_vector const *,void *,gsl_vector *)""'"); |
0 |
0 |
0 |
|
| 4124 |
|
| } |
| 4125 |
|
| } |
| 4126 |
0 |
▶ | if (arg1) (arg1)->f = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->f = arg2; |
0 |
0 |
0 |
|
| 4127 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4128 |
|
| |
| 4129 |
|
| |
| 4130 |
0 |
| XSRETURN(argvi); |
| 4131 |
0 |
| fail: |
| 4132 |
|
| |
| 4133 |
|
| |
| 4134 |
0 |
| SWIG_croak_null(); |
| 4135 |
|
| } |
| 4136 |
|
| } |
| 4137 |
|
| |
| 4138 |
|
| |
| 4139 |
0 |
| XS(_wrap_gsl_multiroot_function_fdf_struct_f_get) { |
| 4140 |
|
| { |
| 4141 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4142 |
0 |
| void *argp1 = 0 ; |
| 4143 |
0 |
| int res1 = 0 ; |
| 4144 |
0 |
| int argvi = 0; |
| 4145 |
0 |
| int (*result)(gsl_vector const *,void *,gsl_vector *) = 0 ; |
| 4146 |
0 |
| dXSARGS; |
| 4147 |
|
| |
| 4148 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4149 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_fdf_struct_f_get(self);"); |
| 4150 |
|
| } |
| 4151 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 4152 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4153 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_f_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_f_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4154 |
|
| } |
| 4155 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4156 |
0 |
| result = (int (*)(gsl_vector const *,void *,gsl_vector *)) ((arg1)->f); |
| 4157 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int); argvi++ ; |
| 4158 |
|
| |
| 4159 |
0 |
| XSRETURN(argvi); |
| 4160 |
0 |
| fail: |
| 4161 |
|
| |
| 4162 |
0 |
| SWIG_croak_null(); |
| 4163 |
|
| } |
| 4164 |
|
| } |
| 4165 |
|
| |
| 4166 |
|
| |
| 4167 |
0 |
| XS(_wrap_gsl_multiroot_function_fdf_struct_df_set) { |
| 4168 |
|
| { |
| 4169 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4170 |
0 |
| int (*arg2)(gsl_vector const *,void *,gsl_matrix *) = (int (*)(gsl_vector const *,void *,gsl_matrix *)) 0 ; |
| 4171 |
0 |
| void *argp1 = 0 ; |
| 4172 |
0 |
| int res1 = 0 ; |
| 4173 |
0 |
| int argvi = 0; |
| 4174 |
0 |
| dXSARGS; |
| 4175 |
|
| |
| 4176 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4177 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_fdf_struct_df_set(self,df);"); |
| 4178 |
|
| } |
| 4179 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 4180 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4181 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_df_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_df_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4182 |
|
| } |
| 4183 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4184 |
|
| { |
| 4185 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_matrix__int); |
| 4186 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 4187 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_function_fdf_struct_df_set" "', argument " "2"" of type '" "int (*)(gsl_vector const *,void *,gsl_matrix *)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_function_fdf_struct_df_set" "', argument " "2"" of type '" "int (*)(gsl_vector const *,void *,gsl_matrix *)""'"); |
0 |
0 |
0 |
|
| 4188 |
|
| } |
| 4189 |
|
| } |
| 4190 |
0 |
▶ | if (arg1) (arg1)->df = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->df = arg2; |
0 |
0 |
0 |
|
| 4191 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4192 |
|
| |
| 4193 |
|
| |
| 4194 |
0 |
| XSRETURN(argvi); |
| 4195 |
0 |
| fail: |
| 4196 |
|
| |
| 4197 |
|
| |
| 4198 |
0 |
| SWIG_croak_null(); |
| 4199 |
|
| } |
| 4200 |
|
| } |
| 4201 |
|
| |
| 4202 |
|
| |
| 4203 |
0 |
| XS(_wrap_gsl_multiroot_function_fdf_struct_df_get) { |
| 4204 |
|
| { |
| 4205 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4206 |
0 |
| void *argp1 = 0 ; |
| 4207 |
0 |
| int res1 = 0 ; |
| 4208 |
0 |
| int argvi = 0; |
| 4209 |
0 |
| int (*result)(gsl_vector const *,void *,gsl_matrix *) = 0 ; |
| 4210 |
0 |
| dXSARGS; |
| 4211 |
|
| |
| 4212 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4213 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_fdf_struct_df_get(self);"); |
| 4214 |
|
| } |
| 4215 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 4216 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4217 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_df_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_df_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4218 |
|
| } |
| 4219 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4220 |
0 |
| result = (int (*)(gsl_vector const *,void *,gsl_matrix *)) ((arg1)->df); |
| 4221 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_matrix__int); argvi++ ; |
| 4222 |
|
| |
| 4223 |
0 |
| XSRETURN(argvi); |
| 4224 |
0 |
| fail: |
| 4225 |
|
| |
| 4226 |
0 |
| SWIG_croak_null(); |
| 4227 |
|
| } |
| 4228 |
|
| } |
| 4229 |
|
| |
| 4230 |
|
| |
| 4231 |
0 |
| XS(_wrap_gsl_multiroot_function_fdf_struct_fdf_set) { |
| 4232 |
|
| { |
| 4233 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4234 |
0 |
| int (*arg2)(gsl_vector const *,void *,gsl_vector *,gsl_matrix *) = (int (*)(gsl_vector const *,void *,gsl_vector *,gsl_matrix *)) 0 ; |
| 4235 |
0 |
| void *argp1 = 0 ; |
| 4236 |
0 |
| int res1 = 0 ; |
| 4237 |
0 |
| int argvi = 0; |
| 4238 |
0 |
| dXSARGS; |
| 4239 |
|
| |
| 4240 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4241 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_fdf_struct_fdf_set(self,fdf);"); |
| 4242 |
|
| } |
| 4243 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 4244 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4245 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_fdf_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_fdf_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4246 |
|
| } |
| 4247 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4248 |
|
| { |
| 4249 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector_p_gsl_matrix__int); |
| 4250 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 4251 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_function_fdf_struct_fdf_set" "', argument " "2"" of type '" "int (*)(gsl_vector const *,void *,gsl_vector *,gsl_matrix *)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_function_fdf_struct_fdf_set" "', argument " "2"" of type '" "int (*)(gsl_vector const *,void *,gsl_vector *,gsl_matrix *)""'"); |
0 |
0 |
0 |
|
| 4252 |
|
| } |
| 4253 |
|
| } |
| 4254 |
0 |
▶ | if (arg1) (arg1)->fdf = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->fdf = arg2; |
0 |
0 |
0 |
|
| 4255 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4256 |
|
| |
| 4257 |
|
| |
| 4258 |
0 |
| XSRETURN(argvi); |
| 4259 |
0 |
| fail: |
| 4260 |
|
| |
| 4261 |
|
| |
| 4262 |
0 |
| SWIG_croak_null(); |
| 4263 |
|
| } |
| 4264 |
|
| } |
| 4265 |
|
| |
| 4266 |
|
| |
| 4267 |
0 |
| XS(_wrap_gsl_multiroot_function_fdf_struct_fdf_get) { |
| 4268 |
|
| { |
| 4269 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4270 |
0 |
| void *argp1 = 0 ; |
| 4271 |
0 |
| int res1 = 0 ; |
| 4272 |
0 |
| int argvi = 0; |
| 4273 |
0 |
| int (*result)(gsl_vector const *,void *,gsl_vector *,gsl_matrix *) = 0 ; |
| 4274 |
0 |
| dXSARGS; |
| 4275 |
|
| |
| 4276 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4277 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_fdf_struct_fdf_get(self);"); |
| 4278 |
|
| } |
| 4279 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 4280 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4281 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_fdf_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_fdf_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4282 |
|
| } |
| 4283 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4284 |
0 |
| result = (int (*)(gsl_vector const *,void *,gsl_vector *,gsl_matrix *)) ((arg1)->fdf); |
| 4285 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector_p_gsl_matrix__int); argvi++ ; |
| 4286 |
|
| |
| 4287 |
0 |
| XSRETURN(argvi); |
| 4288 |
0 |
| fail: |
| 4289 |
|
| |
| 4290 |
0 |
| SWIG_croak_null(); |
| 4291 |
|
| } |
| 4292 |
|
| } |
| 4293 |
|
| |
| 4294 |
|
| |
| 4295 |
0 |
| XS(_wrap_gsl_multiroot_function_fdf_struct_n_set) { |
| 4296 |
|
| { |
| 4297 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4298 |
|
| size_t arg2 ; |
| 4299 |
0 |
| void *argp1 = 0 ; |
| 4300 |
0 |
| int res1 = 0 ; |
| 4301 |
|
| size_t val2 ; |
| 4302 |
0 |
| int ecode2 = 0 ; |
| 4303 |
0 |
| int argvi = 0; |
| 4304 |
0 |
| dXSARGS; |
| 4305 |
|
| |
| 4306 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4307 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_fdf_struct_n_set(self,n);"); |
| 4308 |
|
| } |
| 4309 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 4310 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4311 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_n_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_n_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4312 |
|
| } |
| 4313 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4314 |
0 |
| ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
| 4315 |
0 |
▶ | if (!SWIG_IsOK(ecode2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode2)) { |
0 |
0 |
0 |
|
| 4316 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_function_fdf_struct_n_set" "', argument " "2"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_function_fdf_struct_n_set" "', argument " "2"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 4317 |
|
| } |
| 4318 |
0 |
| arg2 = (size_t)(val2); |
| 4319 |
0 |
▶ | if (arg1) (arg1)->n = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->n = arg2; |
0 |
0 |
0 |
|
| 4320 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4321 |
|
| |
| 4322 |
|
| |
| 4323 |
0 |
| XSRETURN(argvi); |
| 4324 |
0 |
| fail: |
| 4325 |
|
| |
| 4326 |
|
| |
| 4327 |
0 |
| SWIG_croak_null(); |
| 4328 |
|
| } |
| 4329 |
|
| } |
| 4330 |
|
| |
| 4331 |
|
| |
| 4332 |
0 |
| XS(_wrap_gsl_multiroot_function_fdf_struct_n_get) { |
| 4333 |
|
| { |
| 4334 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4335 |
0 |
| void *argp1 = 0 ; |
| 4336 |
0 |
| int res1 = 0 ; |
| 4337 |
0 |
| int argvi = 0; |
| 4338 |
|
| size_t result; |
| 4339 |
0 |
| dXSARGS; |
| 4340 |
|
| |
| 4341 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4342 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_fdf_struct_n_get(self);"); |
| 4343 |
|
| } |
| 4344 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 4345 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4346 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_n_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_n_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4347 |
|
| } |
| 4348 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4349 |
0 |
| result = ((arg1)->n); |
| 4350 |
0 |
| ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ; |
| 4351 |
|
| |
| 4352 |
0 |
| XSRETURN(argvi); |
| 4353 |
0 |
| fail: |
| 4354 |
|
| |
| 4355 |
0 |
| SWIG_croak_null(); |
| 4356 |
|
| } |
| 4357 |
|
| } |
| 4358 |
|
| |
| 4359 |
|
| |
| 4360 |
0 |
| XS(_wrap_gsl_multiroot_function_fdf_struct_params_set) { |
| 4361 |
|
| { |
| 4362 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4363 |
0 |
| void *arg2 = (void *) 0 ; |
| 4364 |
0 |
| void *argp1 = 0 ; |
| 4365 |
0 |
| int res1 = 0 ; |
| 4366 |
|
| int res2 ; |
| 4367 |
0 |
| int argvi = 0; |
| 4368 |
0 |
| dXSARGS; |
| 4369 |
|
| |
| 4370 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4371 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_fdf_struct_params_set(self,params);"); |
| 4372 |
|
| } |
| 4373 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 4374 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4375 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_params_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_params_set" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4376 |
|
| } |
| 4377 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4378 |
0 |
| res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); |
| 4379 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 4380 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_function_fdf_struct_params_set" "', argument " "2"" of type '" "void *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_function_fdf_struct_params_set" "', argument " "2"" of type '" "void *""'"); |
0 |
0 |
0 |
|
| 4381 |
|
| } |
| 4382 |
0 |
▶ | if (arg1) (arg1)->params = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->params = arg2; |
0 |
0 |
0 |
|
| 4383 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4384 |
|
| |
| 4385 |
|
| |
| 4386 |
0 |
| XSRETURN(argvi); |
| 4387 |
0 |
| fail: |
| 4388 |
|
| |
| 4389 |
|
| |
| 4390 |
0 |
| SWIG_croak_null(); |
| 4391 |
|
| } |
| 4392 |
|
| } |
| 4393 |
|
| |
| 4394 |
|
| |
| 4395 |
0 |
| XS(_wrap_gsl_multiroot_function_fdf_struct_params_get) { |
| 4396 |
|
| { |
| 4397 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4398 |
0 |
| void *argp1 = 0 ; |
| 4399 |
0 |
| int res1 = 0 ; |
| 4400 |
0 |
| int argvi = 0; |
| 4401 |
0 |
| void *result = 0 ; |
| 4402 |
0 |
| dXSARGS; |
| 4403 |
|
| |
| 4404 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4405 |
0 |
| SWIG_croak("Usage: gsl_multiroot_function_fdf_struct_params_get(self);"); |
| 4406 |
|
| } |
| 4407 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 4408 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4409 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_params_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_function_fdf_struct_params_get" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4410 |
|
| } |
| 4411 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4412 |
0 |
| result = (void *) ((arg1)->params); |
| 4413 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ; |
| 4414 |
|
| |
| 4415 |
0 |
| XSRETURN(argvi); |
| 4416 |
0 |
| fail: |
| 4417 |
|
| |
| 4418 |
0 |
| SWIG_croak_null(); |
| 4419 |
|
| } |
| 4420 |
|
| } |
| 4421 |
|
| |
| 4422 |
|
| |
| 4423 |
0 |
| XS(_wrap_new_gsl_multiroot_function_fdf_struct) { |
| 4424 |
|
| { |
| 4425 |
0 |
| int argvi = 0; |
| 4426 |
0 |
| struct gsl_multiroot_function_fdf_struct *result = 0 ; |
| 4427 |
0 |
| dXSARGS; |
| 4428 |
|
| |
| 4429 |
0 |
▶ | if ((items < 0) || (items > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
|
| 4430 |
0 |
| SWIG_croak("Usage: new_gsl_multiroot_function_fdf_struct();"); |
| 4431 |
|
| } |
| 4432 |
0 |
| result = (struct gsl_multiroot_function_fdf_struct *)calloc(1, sizeof(struct gsl_multiroot_function_fdf_struct)); |
| 4433 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_function_fdf_struct, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
| 4434 |
0 |
| XSRETURN(argvi); |
| 4435 |
0 |
| fail: |
| 4436 |
0 |
| SWIG_croak_null(); |
| 4437 |
|
| } |
| 4438 |
|
| } |
| 4439 |
|
| |
| 4440 |
|
| |
| 4441 |
0 |
| XS(_wrap_delete_gsl_multiroot_function_fdf_struct) { |
| 4442 |
|
| { |
| 4443 |
0 |
| struct gsl_multiroot_function_fdf_struct *arg1 = (struct gsl_multiroot_function_fdf_struct *) 0 ; |
| 4444 |
0 |
| void *argp1 = 0 ; |
| 4445 |
0 |
| int res1 = 0 ; |
| 4446 |
0 |
| int argvi = 0; |
| 4447 |
0 |
| dXSARGS; |
| 4448 |
|
| |
| 4449 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4450 |
0 |
| SWIG_croak("Usage: delete_gsl_multiroot_function_fdf_struct(self);"); |
| 4451 |
|
| } |
| 4452 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, SWIG_POINTER_DISOWN | 0 ); |
| 4453 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4454 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_function_fdf_struct" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_function_fdf_struct" "', argument " "1"" of type '" "struct gsl_multiroot_function_fdf_struct *""'"); |
0 |
0 |
0 |
|
| 4455 |
|
| } |
| 4456 |
0 |
| arg1 = (struct gsl_multiroot_function_fdf_struct *)(argp1); |
| 4457 |
0 |
| free((char *) arg1); |
| 4458 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4459 |
|
| |
| 4460 |
0 |
| XSRETURN(argvi); |
| 4461 |
0 |
| fail: |
| 4462 |
|
| |
| 4463 |
0 |
| SWIG_croak_null(); |
| 4464 |
|
| } |
| 4465 |
|
| } |
| 4466 |
|
| |
| 4467 |
|
| |
| 4468 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_name_set) { |
| 4469 |
|
| { |
| 4470 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4471 |
0 |
| char *arg2 = (char *) 0 ; |
| 4472 |
0 |
| void *argp1 = 0 ; |
| 4473 |
0 |
| int res1 = 0 ; |
| 4474 |
|
| int res2 ; |
| 4475 |
0 |
| char *buf2 = 0 ; |
| 4476 |
0 |
| int alloc2 = 0 ; |
| 4477 |
0 |
| int argvi = 0; |
| 4478 |
0 |
| dXSARGS; |
| 4479 |
|
| |
| 4480 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4481 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_name_set(self,name);"); |
| 4482 |
|
| } |
| 4483 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4484 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4485 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_name_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_name_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4486 |
|
| } |
| 4487 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4488 |
0 |
| res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
| 4489 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 4490 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_type_name_set" "', argument " "2"" of type '" "char const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_type_name_set" "', argument " "2"" of type '" "char const *""'"); |
0 |
0 |
0 |
|
| 4491 |
|
| } |
| 4492 |
0 |
| arg2 = (char *)(buf2); |
| 4493 |
0 |
▶ | if (arg2) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg2) { |
0 |
0 |
0 |
|
| 4494 |
0 |
| size_t size = strlen((const char *)((const char *)(arg2))) + 1; |
| 4495 |
0 |
| arg1->name = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size)); |
| 4496 |
|
| } else { |
| 4497 |
0 |
| arg1->name = 0; |
| 4498 |
|
| } |
| 4499 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4500 |
|
| |
| 4501 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 4502 |
0 |
| XSRETURN(argvi); |
| 4503 |
0 |
| fail: |
| 4504 |
|
| |
| 4505 |
0 |
▶ | if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
Branch: 1 branch
| Branch | True | False | Total |
| if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); |
0 |
0 |
0 |
|
| 4506 |
0 |
| SWIG_croak_null(); |
| 4507 |
|
| } |
| 4508 |
|
| } |
| 4509 |
|
| |
| 4510 |
|
| |
| 4511 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_name_get) { |
| 4512 |
|
| { |
| 4513 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4514 |
0 |
| void *argp1 = 0 ; |
| 4515 |
0 |
| int res1 = 0 ; |
| 4516 |
0 |
| int argvi = 0; |
| 4517 |
0 |
| char *result = 0 ; |
| 4518 |
0 |
| dXSARGS; |
| 4519 |
|
| |
| 4520 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4521 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_name_get(self);"); |
| 4522 |
|
| } |
| 4523 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4524 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4525 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_name_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_name_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4526 |
|
| } |
| 4527 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4528 |
0 |
| result = (char *) ((arg1)->name); |
| 4529 |
0 |
| ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
| 4530 |
|
| |
| 4531 |
0 |
| XSRETURN(argvi); |
| 4532 |
0 |
| fail: |
| 4533 |
|
| |
| 4534 |
0 |
| SWIG_croak_null(); |
| 4535 |
|
| } |
| 4536 |
|
| } |
| 4537 |
|
| |
| 4538 |
|
| |
| 4539 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_size_set) { |
| 4540 |
|
| { |
| 4541 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4542 |
|
| size_t arg2 ; |
| 4543 |
0 |
| void *argp1 = 0 ; |
| 4544 |
0 |
| int res1 = 0 ; |
| 4545 |
|
| size_t val2 ; |
| 4546 |
0 |
| int ecode2 = 0 ; |
| 4547 |
0 |
| int argvi = 0; |
| 4548 |
0 |
| dXSARGS; |
| 4549 |
|
| |
| 4550 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4551 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_size_set(self,size);"); |
| 4552 |
|
| } |
| 4553 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4554 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4555 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_size_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_size_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4556 |
|
| } |
| 4557 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4558 |
0 |
| ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
| 4559 |
0 |
▶ | if (!SWIG_IsOK(ecode2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode2)) { |
0 |
0 |
0 |
|
| 4560 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_fdfsolver_type_size_set" "', argument " "2"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_fdfsolver_type_size_set" "', argument " "2"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 4561 |
|
| } |
| 4562 |
0 |
| arg2 = (size_t)(val2); |
| 4563 |
0 |
▶ | if (arg1) (arg1)->size = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->size = arg2; |
0 |
0 |
0 |
|
| 4564 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4565 |
|
| |
| 4566 |
|
| |
| 4567 |
0 |
| XSRETURN(argvi); |
| 4568 |
0 |
| fail: |
| 4569 |
|
| |
| 4570 |
|
| |
| 4571 |
0 |
| SWIG_croak_null(); |
| 4572 |
|
| } |
| 4573 |
|
| } |
| 4574 |
|
| |
| 4575 |
|
| |
| 4576 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_size_get) { |
| 4577 |
|
| { |
| 4578 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4579 |
0 |
| void *argp1 = 0 ; |
| 4580 |
0 |
| int res1 = 0 ; |
| 4581 |
0 |
| int argvi = 0; |
| 4582 |
|
| size_t result; |
| 4583 |
0 |
| dXSARGS; |
| 4584 |
|
| |
| 4585 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4586 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_size_get(self);"); |
| 4587 |
|
| } |
| 4588 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4589 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4590 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_size_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_size_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4591 |
|
| } |
| 4592 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4593 |
0 |
| result = ((arg1)->size); |
| 4594 |
0 |
| ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ; |
| 4595 |
|
| |
| 4596 |
0 |
| XSRETURN(argvi); |
| 4597 |
0 |
| fail: |
| 4598 |
|
| |
| 4599 |
0 |
| SWIG_croak_null(); |
| 4600 |
|
| } |
| 4601 |
|
| } |
| 4602 |
|
| |
| 4603 |
|
| |
| 4604 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_alloc_set) { |
| 4605 |
|
| { |
| 4606 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4607 |
0 |
| int (*arg2)(void *,size_t) = (int (*)(void *,size_t)) 0 ; |
| 4608 |
0 |
| void *argp1 = 0 ; |
| 4609 |
0 |
| int res1 = 0 ; |
| 4610 |
0 |
| int argvi = 0; |
| 4611 |
0 |
| dXSARGS; |
| 4612 |
|
| |
| 4613 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4614 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_alloc_set(self,alloc);"); |
| 4615 |
|
| } |
| 4616 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4617 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4618 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_alloc_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_alloc_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4619 |
|
| } |
| 4620 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4621 |
|
| { |
| 4622 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_size_t__int); |
| 4623 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 4624 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fdfsolver_type_alloc_set" "', argument " "2"" of type '" "int (*)(void *,size_t)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fdfsolver_type_alloc_set" "', argument " "2"" of type '" "int (*)(void *,size_t)""'"); |
0 |
0 |
0 |
|
| 4625 |
|
| } |
| 4626 |
|
| } |
| 4627 |
0 |
▶ | if (arg1) (arg1)->alloc = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->alloc = arg2; |
0 |
0 |
0 |
|
| 4628 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4629 |
|
| |
| 4630 |
|
| |
| 4631 |
0 |
| XSRETURN(argvi); |
| 4632 |
0 |
| fail: |
| 4633 |
|
| |
| 4634 |
|
| |
| 4635 |
0 |
| SWIG_croak_null(); |
| 4636 |
|
| } |
| 4637 |
|
| } |
| 4638 |
|
| |
| 4639 |
|
| |
| 4640 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_alloc_get) { |
| 4641 |
|
| { |
| 4642 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4643 |
0 |
| void *argp1 = 0 ; |
| 4644 |
0 |
| int res1 = 0 ; |
| 4645 |
0 |
| int argvi = 0; |
| 4646 |
0 |
| int (*result)(void *,size_t) = 0 ; |
| 4647 |
0 |
| dXSARGS; |
| 4648 |
|
| |
| 4649 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4650 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_alloc_get(self);"); |
| 4651 |
|
| } |
| 4652 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4653 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4654 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_alloc_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_alloc_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4655 |
|
| } |
| 4656 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4657 |
0 |
| result = (int (*)(void *,size_t)) ((arg1)->alloc); |
| 4658 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_size_t__int); argvi++ ; |
| 4659 |
|
| |
| 4660 |
0 |
| XSRETURN(argvi); |
| 4661 |
0 |
| fail: |
| 4662 |
|
| |
| 4663 |
0 |
| SWIG_croak_null(); |
| 4664 |
|
| } |
| 4665 |
|
| } |
| 4666 |
|
| |
| 4667 |
|
| |
| 4668 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_set_set) { |
| 4669 |
|
| { |
| 4670 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4671 |
0 |
| int (*arg2)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *) = (int (*)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *)) 0 ; |
| 4672 |
0 |
| void *argp1 = 0 ; |
| 4673 |
0 |
| int res1 = 0 ; |
| 4674 |
0 |
| int argvi = 0; |
| 4675 |
0 |
| dXSARGS; |
| 4676 |
|
| |
| 4677 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4678 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_set_set(self,set);"); |
| 4679 |
|
| } |
| 4680 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4681 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4682 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_set_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_set_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4683 |
|
| } |
| 4684 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4685 |
|
| { |
| 4686 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int); |
| 4687 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 4688 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fdfsolver_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fdfsolver_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *)""'"); |
0 |
0 |
0 |
|
| 4689 |
|
| } |
| 4690 |
|
| } |
| 4691 |
0 |
▶ | if (arg1) (arg1)->set = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->set = arg2; |
0 |
0 |
0 |
|
| 4692 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4693 |
|
| |
| 4694 |
|
| |
| 4695 |
0 |
| XSRETURN(argvi); |
| 4696 |
0 |
| fail: |
| 4697 |
|
| |
| 4698 |
|
| |
| 4699 |
0 |
| SWIG_croak_null(); |
| 4700 |
|
| } |
| 4701 |
|
| } |
| 4702 |
|
| |
| 4703 |
|
| |
| 4704 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_set_get) { |
| 4705 |
|
| { |
| 4706 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4707 |
0 |
| void *argp1 = 0 ; |
| 4708 |
0 |
| int res1 = 0 ; |
| 4709 |
0 |
| int argvi = 0; |
| 4710 |
0 |
| int (*result)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *) = 0 ; |
| 4711 |
0 |
| dXSARGS; |
| 4712 |
|
| |
| 4713 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4714 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_set_get(self);"); |
| 4715 |
|
| } |
| 4716 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4717 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4718 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_set_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_set_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4719 |
|
| } |
| 4720 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4721 |
0 |
| result = (int (*)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *)) ((arg1)->set); |
| 4722 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int); argvi++ ; |
| 4723 |
|
| |
| 4724 |
0 |
| XSRETURN(argvi); |
| 4725 |
0 |
| fail: |
| 4726 |
|
| |
| 4727 |
0 |
| SWIG_croak_null(); |
| 4728 |
|
| } |
| 4729 |
|
| } |
| 4730 |
|
| |
| 4731 |
|
| |
| 4732 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_iterate_set) { |
| 4733 |
|
| { |
| 4734 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4735 |
0 |
| int (*arg2)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *) = (int (*)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *)) 0 ; |
| 4736 |
0 |
| void *argp1 = 0 ; |
| 4737 |
0 |
| int res1 = 0 ; |
| 4738 |
0 |
| int argvi = 0; |
| 4739 |
0 |
| dXSARGS; |
| 4740 |
|
| |
| 4741 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4742 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_iterate_set(self,iterate);"); |
| 4743 |
|
| } |
| 4744 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4745 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4746 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_iterate_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_iterate_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4747 |
|
| } |
| 4748 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4749 |
|
| { |
| 4750 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int); |
| 4751 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 4752 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fdfsolver_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fdfsolver_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *)""'"); |
0 |
0 |
0 |
|
| 4753 |
|
| } |
| 4754 |
|
| } |
| 4755 |
0 |
▶ | if (arg1) (arg1)->iterate = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->iterate = arg2; |
0 |
0 |
0 |
|
| 4756 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4757 |
|
| |
| 4758 |
|
| |
| 4759 |
0 |
| XSRETURN(argvi); |
| 4760 |
0 |
| fail: |
| 4761 |
|
| |
| 4762 |
|
| |
| 4763 |
0 |
| SWIG_croak_null(); |
| 4764 |
|
| } |
| 4765 |
|
| } |
| 4766 |
|
| |
| 4767 |
|
| |
| 4768 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_iterate_get) { |
| 4769 |
|
| { |
| 4770 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4771 |
0 |
| void *argp1 = 0 ; |
| 4772 |
0 |
| int res1 = 0 ; |
| 4773 |
0 |
| int argvi = 0; |
| 4774 |
0 |
| int (*result)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *) = 0 ; |
| 4775 |
0 |
| dXSARGS; |
| 4776 |
|
| |
| 4777 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4778 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_iterate_get(self);"); |
| 4779 |
|
| } |
| 4780 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4781 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4782 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_iterate_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_iterate_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4783 |
|
| } |
| 4784 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4785 |
0 |
| result = (int (*)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *)) ((arg1)->iterate); |
| 4786 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int); argvi++ ; |
| 4787 |
|
| |
| 4788 |
0 |
| XSRETURN(argvi); |
| 4789 |
0 |
| fail: |
| 4790 |
|
| |
| 4791 |
0 |
| SWIG_croak_null(); |
| 4792 |
|
| } |
| 4793 |
|
| } |
| 4794 |
|
| |
| 4795 |
|
| |
| 4796 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_free_set) { |
| 4797 |
|
| { |
| 4798 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4799 |
0 |
| void (*arg2)(void *) = (void (*)(void *)) 0 ; |
| 4800 |
0 |
| void *argp1 = 0 ; |
| 4801 |
0 |
| int res1 = 0 ; |
| 4802 |
0 |
| int argvi = 0; |
| 4803 |
0 |
| dXSARGS; |
| 4804 |
|
| |
| 4805 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4806 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_free_set(self,free);"); |
| 4807 |
|
| } |
| 4808 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4809 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4810 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_free_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_free_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4811 |
|
| } |
| 4812 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4813 |
|
| { |
| 4814 |
0 |
| int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void__void); |
| 4815 |
0 |
▶ | if (!SWIG_IsOK(res)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res)) { |
0 |
0 |
0 |
|
| 4816 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fdfsolver_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multiroot_fdfsolver_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'"); |
0 |
0 |
0 |
|
| 4817 |
|
| } |
| 4818 |
|
| } |
| 4819 |
0 |
▶ | if (arg1) (arg1)->free = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->free = arg2; |
0 |
0 |
0 |
|
| 4820 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4821 |
|
| |
| 4822 |
|
| |
| 4823 |
0 |
| XSRETURN(argvi); |
| 4824 |
0 |
| fail: |
| 4825 |
|
| |
| 4826 |
|
| |
| 4827 |
0 |
| SWIG_croak_null(); |
| 4828 |
|
| } |
| 4829 |
|
| } |
| 4830 |
|
| |
| 4831 |
|
| |
| 4832 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_free_get) { |
| 4833 |
|
| { |
| 4834 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4835 |
0 |
| void *argp1 = 0 ; |
| 4836 |
0 |
| int res1 = 0 ; |
| 4837 |
0 |
| int argvi = 0; |
| 4838 |
0 |
| void (*result)(void *) = 0 ; |
| 4839 |
0 |
| dXSARGS; |
| 4840 |
|
| |
| 4841 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4842 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_free_get(self);"); |
| 4843 |
|
| } |
| 4844 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 4845 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4846 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_free_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_free_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4847 |
|
| } |
| 4848 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4849 |
0 |
| result = (void (*)(void *)) ((arg1)->free); |
| 4850 |
0 |
| ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void); argvi++ ; |
| 4851 |
|
| |
| 4852 |
0 |
| XSRETURN(argvi); |
| 4853 |
0 |
| fail: |
| 4854 |
|
| |
| 4855 |
0 |
| SWIG_croak_null(); |
| 4856 |
|
| } |
| 4857 |
|
| } |
| 4858 |
|
| |
| 4859 |
|
| |
| 4860 |
0 |
| XS(_wrap_new_gsl_multiroot_fdfsolver_type) { |
| 4861 |
|
| { |
| 4862 |
0 |
| int argvi = 0; |
| 4863 |
0 |
| gsl_multiroot_fdfsolver_type *result = 0 ; |
| 4864 |
0 |
| dXSARGS; |
| 4865 |
|
| |
| 4866 |
0 |
▶ | if ((items < 0) || (items > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
|
| 4867 |
0 |
| SWIG_croak("Usage: new_gsl_multiroot_fdfsolver_type();"); |
| 4868 |
|
| } |
| 4869 |
0 |
| result = (gsl_multiroot_fdfsolver_type *)calloc(1, sizeof(gsl_multiroot_fdfsolver_type)); |
| 4870 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_fdfsolver_type, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
| 4871 |
0 |
| XSRETURN(argvi); |
| 4872 |
0 |
| fail: |
| 4873 |
0 |
| SWIG_croak_null(); |
| 4874 |
|
| } |
| 4875 |
|
| } |
| 4876 |
|
| |
| 4877 |
|
| |
| 4878 |
0 |
| XS(_wrap_delete_gsl_multiroot_fdfsolver_type) { |
| 4879 |
|
| { |
| 4880 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4881 |
0 |
| void *argp1 = 0 ; |
| 4882 |
0 |
| int res1 = 0 ; |
| 4883 |
0 |
| int argvi = 0; |
| 4884 |
0 |
| dXSARGS; |
| 4885 |
|
| |
| 4886 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4887 |
0 |
| SWIG_croak("Usage: delete_gsl_multiroot_fdfsolver_type(self);"); |
| 4888 |
|
| } |
| 4889 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, SWIG_POINTER_DISOWN | 0 ); |
| 4890 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4891 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_fdfsolver_type" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_fdfsolver_type" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type *""'"); |
0 |
0 |
0 |
|
| 4892 |
|
| } |
| 4893 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 4894 |
0 |
| free((char *) arg1); |
| 4895 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4896 |
|
| |
| 4897 |
0 |
| XSRETURN(argvi); |
| 4898 |
0 |
| fail: |
| 4899 |
|
| |
| 4900 |
0 |
| SWIG_croak_null(); |
| 4901 |
|
| } |
| 4902 |
|
| } |
| 4903 |
|
| |
| 4904 |
|
| |
| 4905 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_set) { |
| 4906 |
|
| { |
| 4907 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 4908 |
0 |
| gsl_multiroot_fdfsolver_type *arg2 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 4909 |
0 |
| void *argp1 = 0 ; |
| 4910 |
0 |
| int res1 = 0 ; |
| 4911 |
0 |
| void *argp2 = 0 ; |
| 4912 |
0 |
| int res2 = 0 ; |
| 4913 |
0 |
| int argvi = 0; |
| 4914 |
0 |
| dXSARGS; |
| 4915 |
|
| |
| 4916 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4917 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_set(self,type);"); |
| 4918 |
|
| } |
| 4919 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 4920 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4921 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 4922 |
|
| } |
| 4923 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 4924 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, SWIG_POINTER_DISOWN | 0 ); |
| 4925 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 4926 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_type_set" "', argument " "2"" of type '" "gsl_multiroot_fdfsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_type_set" "', argument " "2"" of type '" "gsl_multiroot_fdfsolver_type const *""'"); |
0 |
0 |
0 |
|
| 4927 |
|
| } |
| 4928 |
0 |
| arg2 = (gsl_multiroot_fdfsolver_type *)(argp2); |
| 4929 |
0 |
▶ | if (arg1) (arg1)->type = (gsl_multiroot_fdfsolver_type const *)arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->type = (gsl_multiroot_fdfsolver_type const *)arg2; |
0 |
0 |
0 |
|
| 4930 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4931 |
|
| |
| 4932 |
|
| |
| 4933 |
0 |
| XSRETURN(argvi); |
| 4934 |
0 |
| fail: |
| 4935 |
|
| |
| 4936 |
|
| |
| 4937 |
0 |
| SWIG_croak_null(); |
| 4938 |
|
| } |
| 4939 |
|
| } |
| 4940 |
|
| |
| 4941 |
|
| |
| 4942 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_type_get) { |
| 4943 |
|
| { |
| 4944 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 4945 |
0 |
| void *argp1 = 0 ; |
| 4946 |
0 |
| int res1 = 0 ; |
| 4947 |
0 |
| int argvi = 0; |
| 4948 |
0 |
| gsl_multiroot_fdfsolver_type *result = 0 ; |
| 4949 |
0 |
| dXSARGS; |
| 4950 |
|
| |
| 4951 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 4952 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_type_get(self);"); |
| 4953 |
|
| } |
| 4954 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 4955 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4956 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_type_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 4957 |
|
| } |
| 4958 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 4959 |
0 |
| result = (gsl_multiroot_fdfsolver_type *) ((arg1)->type); |
| 4960 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | SWIG_SHADOW); argvi++ ; |
| 4961 |
|
| |
| 4962 |
0 |
| XSRETURN(argvi); |
| 4963 |
0 |
| fail: |
| 4964 |
|
| |
| 4965 |
0 |
| SWIG_croak_null(); |
| 4966 |
|
| } |
| 4967 |
|
| } |
| 4968 |
|
| |
| 4969 |
|
| |
| 4970 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_fdf_set) { |
| 4971 |
|
| { |
| 4972 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 4973 |
0 |
| gsl_multiroot_function_fdf *arg2 = (gsl_multiroot_function_fdf *) 0 ; |
| 4974 |
0 |
| void *argp1 = 0 ; |
| 4975 |
0 |
| int res1 = 0 ; |
| 4976 |
0 |
| void *argp2 = 0 ; |
| 4977 |
0 |
| int res2 = 0 ; |
| 4978 |
0 |
| int argvi = 0; |
| 4979 |
0 |
| dXSARGS; |
| 4980 |
|
| |
| 4981 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 4982 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_fdf_set(self,fdf);"); |
| 4983 |
|
| } |
| 4984 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 4985 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 4986 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_fdf_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_fdf_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 4987 |
|
| } |
| 4988 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 4989 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, SWIG_POINTER_DISOWN | 0 ); |
| 4990 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 4991 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_fdf_set" "', argument " "2"" of type '" "gsl_multiroot_function_fdf *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_fdf_set" "', argument " "2"" of type '" "gsl_multiroot_function_fdf *""'"); |
0 |
0 |
0 |
|
| 4992 |
|
| } |
| 4993 |
0 |
| arg2 = (gsl_multiroot_function_fdf *)(argp2); |
| 4994 |
0 |
▶ | if (arg1) (arg1)->fdf = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->fdf = arg2; |
0 |
0 |
0 |
|
| 4995 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 4996 |
|
| |
| 4997 |
|
| |
| 4998 |
0 |
| XSRETURN(argvi); |
| 4999 |
0 |
| fail: |
| 5000 |
|
| |
| 5001 |
|
| |
| 5002 |
0 |
| SWIG_croak_null(); |
| 5003 |
|
| } |
| 5004 |
|
| } |
| 5005 |
|
| |
| 5006 |
|
| |
| 5007 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_fdf_get) { |
| 5008 |
|
| { |
| 5009 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5010 |
0 |
| void *argp1 = 0 ; |
| 5011 |
0 |
| int res1 = 0 ; |
| 5012 |
0 |
| int argvi = 0; |
| 5013 |
0 |
| gsl_multiroot_function_fdf *result = 0 ; |
| 5014 |
0 |
| dXSARGS; |
| 5015 |
|
| |
| 5016 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5017 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_fdf_get(self);"); |
| 5018 |
|
| } |
| 5019 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5020 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5021 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_fdf_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_fdf_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5022 |
|
| } |
| 5023 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5024 |
0 |
| result = (gsl_multiroot_function_fdf *) ((arg1)->fdf); |
| 5025 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | SWIG_SHADOW); argvi++ ; |
| 5026 |
|
| |
| 5027 |
0 |
| XSRETURN(argvi); |
| 5028 |
0 |
| fail: |
| 5029 |
|
| |
| 5030 |
0 |
| SWIG_croak_null(); |
| 5031 |
|
| } |
| 5032 |
|
| } |
| 5033 |
|
| |
| 5034 |
|
| |
| 5035 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_x_set) { |
| 5036 |
|
| { |
| 5037 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5038 |
0 |
| gsl_vector *arg2 = (gsl_vector *) 0 ; |
| 5039 |
0 |
| void *argp1 = 0 ; |
| 5040 |
0 |
| int res1 = 0 ; |
| 5041 |
0 |
| void *argp2 = 0 ; |
| 5042 |
0 |
| int res2 = 0 ; |
| 5043 |
0 |
| int argvi = 0; |
| 5044 |
0 |
| dXSARGS; |
| 5045 |
|
| |
| 5046 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 5047 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_x_set(self,x);"); |
| 5048 |
|
| } |
| 5049 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5050 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5051 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_x_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_x_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5052 |
|
| } |
| 5053 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5054 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, SWIG_POINTER_DISOWN | 0 ); |
| 5055 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 5056 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_x_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_x_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
0 |
0 |
0 |
|
| 5057 |
|
| } |
| 5058 |
0 |
| arg2 = (gsl_vector *)(argp2); |
| 5059 |
0 |
▶ | if (arg1) (arg1)->x = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->x = arg2; |
0 |
0 |
0 |
|
| 5060 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 5061 |
|
| |
| 5062 |
|
| |
| 5063 |
0 |
| XSRETURN(argvi); |
| 5064 |
0 |
| fail: |
| 5065 |
|
| |
| 5066 |
|
| |
| 5067 |
0 |
| SWIG_croak_null(); |
| 5068 |
|
| } |
| 5069 |
|
| } |
| 5070 |
|
| |
| 5071 |
|
| |
| 5072 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_x_get) { |
| 5073 |
|
| { |
| 5074 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5075 |
0 |
| void *argp1 = 0 ; |
| 5076 |
0 |
| int res1 = 0 ; |
| 5077 |
0 |
| int argvi = 0; |
| 5078 |
0 |
| gsl_vector *result = 0 ; |
| 5079 |
0 |
| dXSARGS; |
| 5080 |
|
| |
| 5081 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5082 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_x_get(self);"); |
| 5083 |
|
| } |
| 5084 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5085 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5086 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_x_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_x_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5087 |
|
| } |
| 5088 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5089 |
0 |
| result = (gsl_vector *) ((arg1)->x); |
| 5090 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 5091 |
|
| |
| 5092 |
0 |
| XSRETURN(argvi); |
| 5093 |
0 |
| fail: |
| 5094 |
|
| |
| 5095 |
0 |
| SWIG_croak_null(); |
| 5096 |
|
| } |
| 5097 |
|
| } |
| 5098 |
|
| |
| 5099 |
|
| |
| 5100 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_f_set) { |
| 5101 |
|
| { |
| 5102 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5103 |
0 |
| gsl_vector *arg2 = (gsl_vector *) 0 ; |
| 5104 |
0 |
| void *argp1 = 0 ; |
| 5105 |
0 |
| int res1 = 0 ; |
| 5106 |
0 |
| void *argp2 = 0 ; |
| 5107 |
0 |
| int res2 = 0 ; |
| 5108 |
0 |
| int argvi = 0; |
| 5109 |
0 |
| dXSARGS; |
| 5110 |
|
| |
| 5111 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 5112 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_f_set(self,f);"); |
| 5113 |
|
| } |
| 5114 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5115 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5116 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_f_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_f_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5117 |
|
| } |
| 5118 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5119 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, SWIG_POINTER_DISOWN | 0 ); |
| 5120 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 5121 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_f_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_f_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
0 |
0 |
0 |
|
| 5122 |
|
| } |
| 5123 |
0 |
| arg2 = (gsl_vector *)(argp2); |
| 5124 |
0 |
▶ | if (arg1) (arg1)->f = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->f = arg2; |
0 |
0 |
0 |
|
| 5125 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 5126 |
|
| |
| 5127 |
|
| |
| 5128 |
0 |
| XSRETURN(argvi); |
| 5129 |
0 |
| fail: |
| 5130 |
|
| |
| 5131 |
|
| |
| 5132 |
0 |
| SWIG_croak_null(); |
| 5133 |
|
| } |
| 5134 |
|
| } |
| 5135 |
|
| |
| 5136 |
|
| |
| 5137 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_f_get) { |
| 5138 |
|
| { |
| 5139 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5140 |
0 |
| void *argp1 = 0 ; |
| 5141 |
0 |
| int res1 = 0 ; |
| 5142 |
0 |
| int argvi = 0; |
| 5143 |
0 |
| gsl_vector *result = 0 ; |
| 5144 |
0 |
| dXSARGS; |
| 5145 |
|
| |
| 5146 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5147 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_f_get(self);"); |
| 5148 |
|
| } |
| 5149 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5150 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5151 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_f_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_f_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5152 |
|
| } |
| 5153 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5154 |
0 |
| result = (gsl_vector *) ((arg1)->f); |
| 5155 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 5156 |
|
| |
| 5157 |
0 |
| XSRETURN(argvi); |
| 5158 |
0 |
| fail: |
| 5159 |
|
| |
| 5160 |
0 |
| SWIG_croak_null(); |
| 5161 |
|
| } |
| 5162 |
|
| } |
| 5163 |
|
| |
| 5164 |
|
| |
| 5165 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_J_set) { |
| 5166 |
|
| { |
| 5167 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5168 |
0 |
| gsl_matrix *arg2 = (gsl_matrix *) 0 ; |
| 5169 |
0 |
| void *argp1 = 0 ; |
| 5170 |
0 |
| int res1 = 0 ; |
| 5171 |
0 |
| void *argp2 = 0 ; |
| 5172 |
0 |
| int res2 = 0 ; |
| 5173 |
0 |
| int argvi = 0; |
| 5174 |
0 |
| dXSARGS; |
| 5175 |
|
| |
| 5176 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 5177 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_J_set(self,J);"); |
| 5178 |
|
| } |
| 5179 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5180 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5181 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_J_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_J_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5182 |
|
| } |
| 5183 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5184 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_matrix, SWIG_POINTER_DISOWN | 0 ); |
| 5185 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 5186 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_J_set" "', argument " "2"" of type '" "gsl_matrix *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_J_set" "', argument " "2"" of type '" "gsl_matrix *""'"); |
0 |
0 |
0 |
|
| 5187 |
|
| } |
| 5188 |
0 |
| arg2 = (gsl_matrix *)(argp2); |
| 5189 |
0 |
▶ | if (arg1) (arg1)->J = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->J = arg2; |
0 |
0 |
0 |
|
| 5190 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 5191 |
|
| |
| 5192 |
|
| |
| 5193 |
0 |
| XSRETURN(argvi); |
| 5194 |
0 |
| fail: |
| 5195 |
|
| |
| 5196 |
|
| |
| 5197 |
0 |
| SWIG_croak_null(); |
| 5198 |
|
| } |
| 5199 |
|
| } |
| 5200 |
|
| |
| 5201 |
|
| |
| 5202 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_J_get) { |
| 5203 |
|
| { |
| 5204 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5205 |
0 |
| void *argp1 = 0 ; |
| 5206 |
0 |
| int res1 = 0 ; |
| 5207 |
0 |
| int argvi = 0; |
| 5208 |
0 |
| gsl_matrix *result = 0 ; |
| 5209 |
0 |
| dXSARGS; |
| 5210 |
|
| |
| 5211 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5212 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_J_get(self);"); |
| 5213 |
|
| } |
| 5214 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5215 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5216 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_J_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_J_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5217 |
|
| } |
| 5218 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5219 |
0 |
| result = (gsl_matrix *) ((arg1)->J); |
| 5220 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_matrix, 0 | 0); argvi++ ; |
| 5221 |
|
| |
| 5222 |
0 |
| XSRETURN(argvi); |
| 5223 |
0 |
| fail: |
| 5224 |
|
| |
| 5225 |
0 |
| SWIG_croak_null(); |
| 5226 |
|
| } |
| 5227 |
|
| } |
| 5228 |
|
| |
| 5229 |
|
| |
| 5230 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_dx_set) { |
| 5231 |
|
| { |
| 5232 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5233 |
0 |
| gsl_vector *arg2 = (gsl_vector *) 0 ; |
| 5234 |
0 |
| void *argp1 = 0 ; |
| 5235 |
0 |
| int res1 = 0 ; |
| 5236 |
0 |
| void *argp2 = 0 ; |
| 5237 |
0 |
| int res2 = 0 ; |
| 5238 |
0 |
| int argvi = 0; |
| 5239 |
0 |
| dXSARGS; |
| 5240 |
|
| |
| 5241 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 5242 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_dx_set(self,dx);"); |
| 5243 |
|
| } |
| 5244 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5245 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5246 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_dx_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_dx_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5247 |
|
| } |
| 5248 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5249 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, SWIG_POINTER_DISOWN | 0 ); |
| 5250 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 5251 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_dx_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_dx_set" "', argument " "2"" of type '" "gsl_vector *""'"); |
0 |
0 |
0 |
|
| 5252 |
|
| } |
| 5253 |
0 |
| arg2 = (gsl_vector *)(argp2); |
| 5254 |
0 |
▶ | if (arg1) (arg1)->dx = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->dx = arg2; |
0 |
0 |
0 |
|
| 5255 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 5256 |
|
| |
| 5257 |
|
| |
| 5258 |
0 |
| XSRETURN(argvi); |
| 5259 |
0 |
| fail: |
| 5260 |
|
| |
| 5261 |
|
| |
| 5262 |
0 |
| SWIG_croak_null(); |
| 5263 |
|
| } |
| 5264 |
|
| } |
| 5265 |
|
| |
| 5266 |
|
| |
| 5267 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_dx_get) { |
| 5268 |
|
| { |
| 5269 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5270 |
0 |
| void *argp1 = 0 ; |
| 5271 |
0 |
| int res1 = 0 ; |
| 5272 |
0 |
| int argvi = 0; |
| 5273 |
0 |
| gsl_vector *result = 0 ; |
| 5274 |
0 |
| dXSARGS; |
| 5275 |
|
| |
| 5276 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5277 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_dx_get(self);"); |
| 5278 |
|
| } |
| 5279 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5280 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5281 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_dx_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_dx_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5282 |
|
| } |
| 5283 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5284 |
0 |
| result = (gsl_vector *) ((arg1)->dx); |
| 5285 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 5286 |
|
| |
| 5287 |
0 |
| XSRETURN(argvi); |
| 5288 |
0 |
| fail: |
| 5289 |
|
| |
| 5290 |
0 |
| SWIG_croak_null(); |
| 5291 |
|
| } |
| 5292 |
|
| } |
| 5293 |
|
| |
| 5294 |
|
| |
| 5295 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_state_set) { |
| 5296 |
|
| { |
| 5297 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5298 |
0 |
| void *arg2 = (void *) 0 ; |
| 5299 |
0 |
| void *argp1 = 0 ; |
| 5300 |
0 |
| int res1 = 0 ; |
| 5301 |
|
| int res2 ; |
| 5302 |
0 |
| int argvi = 0; |
| 5303 |
0 |
| dXSARGS; |
| 5304 |
|
| |
| 5305 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 5306 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_state_set(self,state);"); |
| 5307 |
|
| } |
| 5308 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5309 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5310 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_state_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_state_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5311 |
|
| } |
| 5312 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5313 |
0 |
| res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); |
| 5314 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 5315 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_state_set" "', argument " "2"" of type '" "void *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_state_set" "', argument " "2"" of type '" "void *""'"); |
0 |
0 |
0 |
|
| 5316 |
|
| } |
| 5317 |
0 |
▶ | if (arg1) (arg1)->state = arg2; |
Branch: 1 branch
| Branch | True | False | Total |
| if (arg1) (arg1)->state = arg2; |
0 |
0 |
0 |
|
| 5318 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 5319 |
|
| |
| 5320 |
|
| |
| 5321 |
0 |
| XSRETURN(argvi); |
| 5322 |
0 |
| fail: |
| 5323 |
|
| |
| 5324 |
|
| |
| 5325 |
0 |
| SWIG_croak_null(); |
| 5326 |
|
| } |
| 5327 |
|
| } |
| 5328 |
|
| |
| 5329 |
|
| |
| 5330 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_state_get) { |
| 5331 |
|
| { |
| 5332 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5333 |
0 |
| void *argp1 = 0 ; |
| 5334 |
0 |
| int res1 = 0 ; |
| 5335 |
0 |
| int argvi = 0; |
| 5336 |
0 |
| void *result = 0 ; |
| 5337 |
0 |
| dXSARGS; |
| 5338 |
|
| |
| 5339 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5340 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_state_get(self);"); |
| 5341 |
|
| } |
| 5342 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5343 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5344 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_state_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_state_get" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5345 |
|
| } |
| 5346 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5347 |
0 |
| result = (void *) ((arg1)->state); |
| 5348 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ; |
| 5349 |
|
| |
| 5350 |
0 |
| XSRETURN(argvi); |
| 5351 |
0 |
| fail: |
| 5352 |
|
| |
| 5353 |
0 |
| SWIG_croak_null(); |
| 5354 |
|
| } |
| 5355 |
|
| } |
| 5356 |
|
| |
| 5357 |
|
| |
| 5358 |
0 |
| XS(_wrap_new_gsl_multiroot_fdfsolver) { |
| 5359 |
|
| { |
| 5360 |
0 |
| int argvi = 0; |
| 5361 |
0 |
| gsl_multiroot_fdfsolver *result = 0 ; |
| 5362 |
0 |
| dXSARGS; |
| 5363 |
|
| |
| 5364 |
0 |
▶ | if ((items < 0) || (items > 0)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
| if ((items < 0) || (items > 0)) { |
0 |
0 |
0 |
|
| 5365 |
0 |
| SWIG_croak("Usage: new_gsl_multiroot_fdfsolver();"); |
| 5366 |
|
| } |
| 5367 |
0 |
| result = (gsl_multiroot_fdfsolver *)calloc(1, sizeof(gsl_multiroot_fdfsolver)); |
| 5368 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_fdfsolver, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
| 5369 |
0 |
| XSRETURN(argvi); |
| 5370 |
0 |
| fail: |
| 5371 |
0 |
| SWIG_croak_null(); |
| 5372 |
|
| } |
| 5373 |
|
| } |
| 5374 |
|
| |
| 5375 |
|
| |
| 5376 |
0 |
| XS(_wrap_delete_gsl_multiroot_fdfsolver) { |
| 5377 |
|
| { |
| 5378 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5379 |
0 |
| void *argp1 = 0 ; |
| 5380 |
0 |
| int res1 = 0 ; |
| 5381 |
0 |
| int argvi = 0; |
| 5382 |
0 |
| dXSARGS; |
| 5383 |
|
| |
| 5384 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5385 |
0 |
| SWIG_croak("Usage: delete_gsl_multiroot_fdfsolver(self);"); |
| 5386 |
|
| } |
| 5387 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, SWIG_POINTER_DISOWN | 0 ); |
| 5388 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5389 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_fdfsolver" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multiroot_fdfsolver" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5390 |
|
| } |
| 5391 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5392 |
0 |
| free((char *) arg1); |
| 5393 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 5394 |
|
| |
| 5395 |
0 |
| XSRETURN(argvi); |
| 5396 |
0 |
| fail: |
| 5397 |
|
| |
| 5398 |
0 |
| SWIG_croak_null(); |
| 5399 |
|
| } |
| 5400 |
|
| } |
| 5401 |
|
| |
| 5402 |
|
| |
| 5403 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_alloc) { |
| 5404 |
|
| { |
| 5405 |
0 |
| gsl_multiroot_fdfsolver_type *arg1 = (gsl_multiroot_fdfsolver_type *) 0 ; |
| 5406 |
|
| size_t arg2 ; |
| 5407 |
0 |
| void *argp1 = 0 ; |
| 5408 |
0 |
| int res1 = 0 ; |
| 5409 |
|
| size_t val2 ; |
| 5410 |
0 |
| int ecode2 = 0 ; |
| 5411 |
0 |
| int argvi = 0; |
| 5412 |
0 |
| gsl_multiroot_fdfsolver *result = 0 ; |
| 5413 |
0 |
| dXSARGS; |
| 5414 |
|
| |
| 5415 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 5416 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_alloc(T,n);"); |
| 5417 |
|
| } |
| 5418 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver_type, 0 | 0 ); |
| 5419 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5420 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_alloc" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_alloc" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver_type const *""'"); |
0 |
0 |
0 |
|
| 5421 |
|
| } |
| 5422 |
0 |
| arg1 = (gsl_multiroot_fdfsolver_type *)(argp1); |
| 5423 |
0 |
| ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
| 5424 |
0 |
▶ | if (!SWIG_IsOK(ecode2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode2)) { |
0 |
0 |
0 |
|
| 5425 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_fdfsolver_alloc" "', argument " "2"" of type '" "size_t""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_fdfsolver_alloc" "', argument " "2"" of type '" "size_t""'"); |
0 |
0 |
0 |
|
| 5426 |
|
| } |
| 5427 |
0 |
| arg2 = (size_t)(val2); |
| 5428 |
0 |
| result = (gsl_multiroot_fdfsolver *)gsl_multiroot_fdfsolver_alloc((gsl_multiroot_fdfsolver_type const *)arg1,arg2); |
| 5429 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | SWIG_SHADOW); argvi++ ; |
| 5430 |
|
| |
| 5431 |
|
| |
| 5432 |
0 |
| XSRETURN(argvi); |
| 5433 |
0 |
| fail: |
| 5434 |
|
| |
| 5435 |
|
| |
| 5436 |
0 |
| SWIG_croak_null(); |
| 5437 |
|
| } |
| 5438 |
|
| } |
| 5439 |
|
| |
| 5440 |
|
| |
| 5441 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_set) { |
| 5442 |
|
| { |
| 5443 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5444 |
0 |
| gsl_multiroot_function_fdf *arg2 = (gsl_multiroot_function_fdf *) 0 ; |
| 5445 |
0 |
| gsl_vector *arg3 = (gsl_vector *) 0 ; |
| 5446 |
0 |
| void *argp1 = 0 ; |
| 5447 |
0 |
| int res1 = 0 ; |
| 5448 |
0 |
| void *argp2 = 0 ; |
| 5449 |
0 |
| int res2 = 0 ; |
| 5450 |
0 |
| void *argp3 = 0 ; |
| 5451 |
0 |
| int res3 = 0 ; |
| 5452 |
0 |
| int argvi = 0; |
| 5453 |
|
| int result; |
| 5454 |
0 |
| dXSARGS; |
| 5455 |
|
| |
| 5456 |
0 |
▶ | if ((items < 3) || (items > 3)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
| if ((items < 3) || (items > 3)) { |
0 |
0 |
0 |
|
| 5457 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_set(s,fdf,x);"); |
| 5458 |
|
| } |
| 5459 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5460 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5461 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_set" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5462 |
|
| } |
| 5463 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5464 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_multiroot_function_fdf_struct, 0 | 0 ); |
| 5465 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 5466 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_set" "', argument " "2"" of type '" "gsl_multiroot_function_fdf *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_fdfsolver_set" "', argument " "2"" of type '" "gsl_multiroot_function_fdf *""'"); |
0 |
0 |
0 |
|
| 5467 |
|
| } |
| 5468 |
0 |
| arg2 = (gsl_multiroot_function_fdf *)(argp2); |
| 5469 |
0 |
| res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector, 0 | 0 ); |
| 5470 |
0 |
▶ | if (!SWIG_IsOK(res3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res3)) { |
0 |
0 |
0 |
|
| 5471 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multiroot_fdfsolver_set" "', argument " "3"" of type '" "gsl_vector const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multiroot_fdfsolver_set" "', argument " "3"" of type '" "gsl_vector const *""'"); |
0 |
0 |
0 |
|
| 5472 |
|
| } |
| 5473 |
0 |
| arg3 = (gsl_vector *)(argp3); |
| 5474 |
0 |
| result = (int)gsl_multiroot_fdfsolver_set(arg1,arg2,(gsl_vector const *)arg3); |
| 5475 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 5476 |
|
| |
| 5477 |
|
| |
| 5478 |
|
| |
| 5479 |
0 |
| XSRETURN(argvi); |
| 5480 |
0 |
| fail: |
| 5481 |
|
| |
| 5482 |
|
| |
| 5483 |
|
| |
| 5484 |
0 |
| SWIG_croak_null(); |
| 5485 |
|
| } |
| 5486 |
|
| } |
| 5487 |
|
| |
| 5488 |
|
| |
| 5489 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_iterate) { |
| 5490 |
|
| { |
| 5491 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5492 |
0 |
| void *argp1 = 0 ; |
| 5493 |
0 |
| int res1 = 0 ; |
| 5494 |
0 |
| int argvi = 0; |
| 5495 |
|
| int result; |
| 5496 |
0 |
| dXSARGS; |
| 5497 |
|
| |
| 5498 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5499 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_iterate(s);"); |
| 5500 |
|
| } |
| 5501 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5502 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5503 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_iterate" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_iterate" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5504 |
|
| } |
| 5505 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5506 |
0 |
| result = (int)gsl_multiroot_fdfsolver_iterate(arg1); |
| 5507 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 5508 |
|
| |
| 5509 |
0 |
| XSRETURN(argvi); |
| 5510 |
0 |
| fail: |
| 5511 |
|
| |
| 5512 |
0 |
| SWIG_croak_null(); |
| 5513 |
|
| } |
| 5514 |
|
| } |
| 5515 |
|
| |
| 5516 |
|
| |
| 5517 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_free) { |
| 5518 |
|
| { |
| 5519 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5520 |
0 |
| void *argp1 = 0 ; |
| 5521 |
0 |
| int res1 = 0 ; |
| 5522 |
0 |
| int argvi = 0; |
| 5523 |
0 |
| dXSARGS; |
| 5524 |
|
| |
| 5525 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5526 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_free(s);"); |
| 5527 |
|
| } |
| 5528 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5529 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5530 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_free" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_free" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver *""'"); |
0 |
0 |
0 |
|
| 5531 |
|
| } |
| 5532 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5533 |
0 |
| gsl_multiroot_fdfsolver_free(arg1); |
| 5534 |
0 |
| ST(argvi) = &PL_sv_undef; |
| 5535 |
|
| |
| 5536 |
0 |
| XSRETURN(argvi); |
| 5537 |
0 |
| fail: |
| 5538 |
|
| |
| 5539 |
0 |
| SWIG_croak_null(); |
| 5540 |
|
| } |
| 5541 |
|
| } |
| 5542 |
|
| |
| 5543 |
|
| |
| 5544 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_name) { |
| 5545 |
|
| { |
| 5546 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5547 |
0 |
| void *argp1 = 0 ; |
| 5548 |
0 |
| int res1 = 0 ; |
| 5549 |
0 |
| int argvi = 0; |
| 5550 |
0 |
| char *result = 0 ; |
| 5551 |
0 |
| dXSARGS; |
| 5552 |
|
| |
| 5553 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5554 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_name(s);"); |
| 5555 |
|
| } |
| 5556 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5557 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5558 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_name" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_name" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver const *""'"); |
0 |
0 |
0 |
|
| 5559 |
|
| } |
| 5560 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5561 |
0 |
| result = (char *)gsl_multiroot_fdfsolver_name((gsl_multiroot_fdfsolver const *)arg1); |
| 5562 |
0 |
| ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
| 5563 |
|
| |
| 5564 |
0 |
| XSRETURN(argvi); |
| 5565 |
0 |
| fail: |
| 5566 |
|
| |
| 5567 |
0 |
| SWIG_croak_null(); |
| 5568 |
|
| } |
| 5569 |
|
| } |
| 5570 |
|
| |
| 5571 |
|
| |
| 5572 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_root) { |
| 5573 |
|
| { |
| 5574 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5575 |
0 |
| void *argp1 = 0 ; |
| 5576 |
0 |
| int res1 = 0 ; |
| 5577 |
0 |
| int argvi = 0; |
| 5578 |
0 |
| gsl_vector *result = 0 ; |
| 5579 |
0 |
| dXSARGS; |
| 5580 |
|
| |
| 5581 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5582 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_root(s);"); |
| 5583 |
|
| } |
| 5584 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5585 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5586 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_root" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_root" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver const *""'"); |
0 |
0 |
0 |
|
| 5587 |
|
| } |
| 5588 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5589 |
0 |
| result = (gsl_vector *)gsl_multiroot_fdfsolver_root((gsl_multiroot_fdfsolver const *)arg1); |
| 5590 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 5591 |
|
| |
| 5592 |
0 |
| XSRETURN(argvi); |
| 5593 |
0 |
| fail: |
| 5594 |
|
| |
| 5595 |
0 |
| SWIG_croak_null(); |
| 5596 |
|
| } |
| 5597 |
|
| } |
| 5598 |
|
| |
| 5599 |
|
| |
| 5600 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_dx) { |
| 5601 |
|
| { |
| 5602 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5603 |
0 |
| void *argp1 = 0 ; |
| 5604 |
0 |
| int res1 = 0 ; |
| 5605 |
0 |
| int argvi = 0; |
| 5606 |
0 |
| gsl_vector *result = 0 ; |
| 5607 |
0 |
| dXSARGS; |
| 5608 |
|
| |
| 5609 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5610 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_dx(s);"); |
| 5611 |
|
| } |
| 5612 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5613 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5614 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_dx" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_dx" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver const *""'"); |
0 |
0 |
0 |
|
| 5615 |
|
| } |
| 5616 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5617 |
0 |
| result = (gsl_vector *)gsl_multiroot_fdfsolver_dx((gsl_multiroot_fdfsolver const *)arg1); |
| 5618 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 5619 |
|
| |
| 5620 |
0 |
| XSRETURN(argvi); |
| 5621 |
0 |
| fail: |
| 5622 |
|
| |
| 5623 |
0 |
| SWIG_croak_null(); |
| 5624 |
|
| } |
| 5625 |
|
| } |
| 5626 |
|
| |
| 5627 |
|
| |
| 5628 |
0 |
| XS(_wrap_gsl_multiroot_fdfsolver_f) { |
| 5629 |
|
| { |
| 5630 |
0 |
| gsl_multiroot_fdfsolver *arg1 = (gsl_multiroot_fdfsolver *) 0 ; |
| 5631 |
0 |
| void *argp1 = 0 ; |
| 5632 |
0 |
| int res1 = 0 ; |
| 5633 |
0 |
| int argvi = 0; |
| 5634 |
0 |
| gsl_vector *result = 0 ; |
| 5635 |
0 |
| dXSARGS; |
| 5636 |
|
| |
| 5637 |
0 |
▶ | if ((items < 1) || (items > 1)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
| if ((items < 1) || (items > 1)) { |
0 |
0 |
0 |
|
| 5638 |
0 |
| SWIG_croak("Usage: gsl_multiroot_fdfsolver_f(s);"); |
| 5639 |
|
| } |
| 5640 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multiroot_fdfsolver, 0 | 0 ); |
| 5641 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5642 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_f" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_fdfsolver_f" "', argument " "1"" of type '" "gsl_multiroot_fdfsolver const *""'"); |
0 |
0 |
0 |
|
| 5643 |
|
| } |
| 5644 |
0 |
| arg1 = (gsl_multiroot_fdfsolver *)(argp1); |
| 5645 |
0 |
| result = (gsl_vector *)gsl_multiroot_fdfsolver_f((gsl_multiroot_fdfsolver const *)arg1); |
| 5646 |
0 |
| ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ; |
| 5647 |
|
| |
| 5648 |
0 |
| XSRETURN(argvi); |
| 5649 |
0 |
| fail: |
| 5650 |
|
| |
| 5651 |
0 |
| SWIG_croak_null(); |
| 5652 |
|
| } |
| 5653 |
|
| } |
| 5654 |
|
| |
| 5655 |
|
| |
| 5656 |
0 |
| XS(_wrap_gsl_multiroot_test_delta) { |
| 5657 |
|
| { |
| 5658 |
0 |
| gsl_vector *arg1 = (gsl_vector *) 0 ; |
| 5659 |
0 |
| gsl_vector *arg2 = (gsl_vector *) 0 ; |
| 5660 |
|
| double arg3 ; |
| 5661 |
|
| double arg4 ; |
| 5662 |
0 |
| void *argp1 = 0 ; |
| 5663 |
0 |
| int res1 = 0 ; |
| 5664 |
0 |
| void *argp2 = 0 ; |
| 5665 |
0 |
| int res2 = 0 ; |
| 5666 |
|
| double val3 ; |
| 5667 |
0 |
| int ecode3 = 0 ; |
| 5668 |
|
| double val4 ; |
| 5669 |
0 |
| int ecode4 = 0 ; |
| 5670 |
0 |
| int argvi = 0; |
| 5671 |
|
| int result; |
| 5672 |
0 |
| dXSARGS; |
| 5673 |
|
| |
| 5674 |
0 |
▶ | if ((items < 4) || (items > 4)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
| if ((items < 4) || (items > 4)) { |
0 |
0 |
0 |
|
| 5675 |
0 |
| SWIG_croak("Usage: gsl_multiroot_test_delta(dx,x,epsabs,epsrel);"); |
| 5676 |
|
| } |
| 5677 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_vector, 0 | 0 ); |
| 5678 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5679 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_test_delta" "', argument " "1"" of type '" "gsl_vector const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_test_delta" "', argument " "1"" of type '" "gsl_vector const *""'"); |
0 |
0 |
0 |
|
| 5680 |
|
| } |
| 5681 |
0 |
| arg1 = (gsl_vector *)(argp1); |
| 5682 |
0 |
| res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, 0 | 0 ); |
| 5683 |
0 |
▶ | if (!SWIG_IsOK(res2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res2)) { |
0 |
0 |
0 |
|
| 5684 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_test_delta" "', argument " "2"" of type '" "gsl_vector const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multiroot_test_delta" "', argument " "2"" of type '" "gsl_vector const *""'"); |
0 |
0 |
0 |
|
| 5685 |
|
| } |
| 5686 |
0 |
| arg2 = (gsl_vector *)(argp2); |
| 5687 |
0 |
| ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
| 5688 |
0 |
▶ | if (!SWIG_IsOK(ecode3)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode3)) { |
0 |
0 |
0 |
|
| 5689 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_multiroot_test_delta" "', argument " "3"" of type '" "double""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_multiroot_test_delta" "', argument " "3"" of type '" "double""'"); |
0 |
0 |
0 |
|
| 5690 |
|
| } |
| 5691 |
0 |
| arg3 = (double)(val3); |
| 5692 |
0 |
| ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
| 5693 |
0 |
▶ | if (!SWIG_IsOK(ecode4)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode4)) { |
0 |
0 |
0 |
|
| 5694 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_multiroot_test_delta" "', argument " "4"" of type '" "double""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_multiroot_test_delta" "', argument " "4"" of type '" "double""'"); |
0 |
0 |
0 |
|
| 5695 |
|
| } |
| 5696 |
0 |
| arg4 = (double)(val4); |
| 5697 |
0 |
| result = (int)gsl_multiroot_test_delta((gsl_vector const *)arg1,(gsl_vector const *)arg2,arg3,arg4); |
| 5698 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 5699 |
|
| |
| 5700 |
|
| |
| 5701 |
|
| |
| 5702 |
|
| |
| 5703 |
0 |
| XSRETURN(argvi); |
| 5704 |
0 |
| fail: |
| 5705 |
|
| |
| 5706 |
|
| |
| 5707 |
|
| |
| 5708 |
|
| |
| 5709 |
0 |
| SWIG_croak_null(); |
| 5710 |
|
| } |
| 5711 |
|
| } |
| 5712 |
|
| |
| 5713 |
|
| |
| 5714 |
0 |
| XS(_wrap_gsl_multiroot_test_residual) { |
| 5715 |
|
| { |
| 5716 |
0 |
| gsl_vector *arg1 = (gsl_vector *) 0 ; |
| 5717 |
|
| double arg2 ; |
| 5718 |
0 |
| void *argp1 = 0 ; |
| 5719 |
0 |
| int res1 = 0 ; |
| 5720 |
|
| double val2 ; |
| 5721 |
0 |
| int ecode2 = 0 ; |
| 5722 |
0 |
| int argvi = 0; |
| 5723 |
|
| int result; |
| 5724 |
0 |
| dXSARGS; |
| 5725 |
|
| |
| 5726 |
0 |
▶ | if ((items < 2) || (items > 2)) { |
Branch: 2 branches
| Branch | True | False | Total |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
| if ((items < 2) || (items > 2)) { |
0 |
0 |
0 |
|
| 5727 |
0 |
| SWIG_croak("Usage: gsl_multiroot_test_residual(f,epsabs);"); |
| 5728 |
|
| } |
| 5729 |
0 |
| res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_vector, 0 | 0 ); |
| 5730 |
0 |
▶ | if (!SWIG_IsOK(res1)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(res1)) { |
0 |
0 |
0 |
|
| 5731 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_test_residual" "', argument " "1"" of type '" "gsl_vector const *""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multiroot_test_residual" "', argument " "1"" of type '" "gsl_vector const *""'"); |
0 |
0 |
0 |
|
| 5732 |
|
| } |
| 5733 |
0 |
| arg1 = (gsl_vector *)(argp1); |
| 5734 |
0 |
| ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
| 5735 |
0 |
▶ | if (!SWIG_IsOK(ecode2)) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!SWIG_IsOK(ecode2)) { |
0 |
0 |
0 |
|
| 5736 |
0 |
▶ | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_test_residual" "', argument " "2"" of type '" "double""'"); |
Branch: 1 branch
| Branch | True | False | Total |
| SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multiroot_test_residual" "', argument " "2"" of type '" "double""'"); |
0 |
0 |
0 |
|
| 5737 |
|
| } |
| 5738 |
0 |
| arg2 = (double)(val2); |
| 5739 |
0 |
| result = (int)gsl_multiroot_test_residual((gsl_vector const *)arg1,arg2); |
| 5740 |
0 |
| ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ; |
| 5741 |
|
| |
| 5742 |
|
| |
| 5743 |
0 |
| XSRETURN(argvi); |
| 5744 |
0 |
| fail: |
| 5745 |
|
| |
| 5746 |
|
| |
| 5747 |
0 |
| SWIG_croak_null(); |
| 5748 |
|
| } |
| 5749 |
|
| } |
| 5750 |
|
| |
| 5751 |
|
| |
| 5752 |
|
| |
| 5753 |
|
| /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
| 5754 |
|
| |
| 5755 |
|
| static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0}; |
| 5756 |
|
| static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
| 5757 |
|
| 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}; |
| 5758 |
|
| 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}; |
| 5759 |
|
| static swig_type_info _swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_matrix__int = {"_p_f_p_q_const__gsl_vector_p_void_p_gsl_matrix__int", "int (*)(gsl_vector const *,void *,gsl_matrix *)", 0, 0, (void*)0, 0}; |
| 5760 |
|
| static swig_type_info _swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int = {"_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int", "int (*)(gsl_vector const *,void *,gsl_vector *)", 0, 0, (void*)0, 0}; |
| 5761 |
|
| static swig_type_info _swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector_p_gsl_matrix__int = {"_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector_p_gsl_matrix__int", "int (*)(gsl_vector const *,void *,gsl_vector *,gsl_matrix *)", 0, 0, (void*)0, 0}; |
| 5762 |
|
| static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0}; |
| 5763 |
|
| static swig_type_info _swigt__p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int = {"_p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int", "int (*)(void *,gsl_multiroot_function_fdf *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *)|int (*)(void *,struct gsl_multiroot_function_fdf_struct *,gsl_vector *,gsl_vector *,gsl_matrix *,gsl_vector *)", 0, 0, (void*)0, 0}; |
| 5764 |
|
| static swig_type_info _swigt__p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int = {"_p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int", "int (*)(void *,gsl_multiroot_function *,gsl_vector *,gsl_vector *,gsl_vector *)|int (*)(void *,struct gsl_multiroot_function_struct *,gsl_vector *,gsl_vector *,gsl_vector *)", 0, 0, (void*)0, 0}; |
| 5765 |
|
| static swig_type_info _swigt__p_f_p_void_size_t__int = {"_p_f_p_void_size_t__int", "int (*)(void *,size_t)", 0, 0, (void*)0, 0}; |
| 5766 |
|
| static swig_type_info _swigt__p_gsl_matrix = {"_p_gsl_matrix", "gsl_matrix *", 0, 0, (void*)0, 0}; |
| 5767 |
|
| static swig_type_info _swigt__p_gsl_multiroot_fdfsolver = {"_p_gsl_multiroot_fdfsolver", "gsl_multiroot_fdfsolver *", 0, 0, (void*)"Math::GSL::Multiroots::gsl_multiroot_fdfsolver", 0}; |
| 5768 |
|
| static swig_type_info _swigt__p_gsl_multiroot_fdfsolver_type = {"_p_gsl_multiroot_fdfsolver_type", "gsl_multiroot_fdfsolver_type *", 0, 0, (void*)"Math::GSL::Multiroots::gsl_multiroot_fdfsolver_type", 0}; |
| 5769 |
|
| static swig_type_info _swigt__p_gsl_multiroot_fsolver = {"_p_gsl_multiroot_fsolver", "gsl_multiroot_fsolver *", 0, 0, (void*)"Math::GSL::Multiroots::gsl_multiroot_fsolver", 0}; |
| 5770 |
|
| static swig_type_info _swigt__p_gsl_multiroot_fsolver_type = {"_p_gsl_multiroot_fsolver_type", "gsl_multiroot_fsolver_type *", 0, 0, (void*)"Math::GSL::Multiroots::gsl_multiroot_fsolver_type", 0}; |
| 5771 |
|
| static swig_type_info _swigt__p_gsl_multiroot_function_fdf_struct = {"_p_gsl_multiroot_function_fdf_struct", "gsl_multiroot_function_fdf *|struct gsl_multiroot_function_fdf_struct *|gsl_multiroot_function_fdf_struct *", 0, 0, (void*)"Math::GSL::Multiroots::gsl_multiroot_function_fdf_struct", 0}; |
| 5772 |
|
| static swig_type_info _swigt__p_gsl_multiroot_function_struct = {"_p_gsl_multiroot_function_struct", "gsl_multiroot_function *|struct gsl_multiroot_function_struct *|gsl_multiroot_function_struct *", 0, 0, (void*)"Math::GSL::Multiroots::gsl_multiroot_function_struct", 0}; |
| 5773 |
|
| static swig_type_info _swigt__p_gsl_vector = {"_p_gsl_vector", "gsl_vector *", 0, 0, (void*)0, 0}; |
| 5774 |
|
| static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
| 5775 |
|
| |
| 5776 |
|
| static swig_type_info *swig_type_initial[] = { |
| 5777 |
|
| &_swigt__p_FILE, |
| 5778 |
|
| &_swigt__p_char, |
| 5779 |
|
| &_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void, |
| 5780 |
|
| &_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void, |
| 5781 |
|
| &_swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_matrix__int, |
| 5782 |
|
| &_swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int, |
| 5783 |
|
| &_swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector_p_gsl_matrix__int, |
| 5784 |
|
| &_swigt__p_f_p_void__void, |
| 5785 |
|
| &_swigt__p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int, |
| 5786 |
|
| &_swigt__p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int, |
| 5787 |
|
| &_swigt__p_f_p_void_size_t__int, |
| 5788 |
|
| &_swigt__p_gsl_matrix, |
| 5789 |
|
| &_swigt__p_gsl_multiroot_fdfsolver, |
| 5790 |
|
| &_swigt__p_gsl_multiroot_fdfsolver_type, |
| 5791 |
|
| &_swigt__p_gsl_multiroot_fsolver, |
| 5792 |
|
| &_swigt__p_gsl_multiroot_fsolver_type, |
| 5793 |
|
| &_swigt__p_gsl_multiroot_function_fdf_struct, |
| 5794 |
|
| &_swigt__p_gsl_multiroot_function_struct, |
| 5795 |
|
| &_swigt__p_gsl_vector, |
| 5796 |
|
| &_swigt__p_void, |
| 5797 |
|
| }; |
| 5798 |
|
| |
| 5799 |
|
| static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}}; |
| 5800 |
|
| static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
| 5801 |
|
| 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}}; |
| 5802 |
|
| 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}}; |
| 5803 |
|
| static swig_cast_info _swigc__p_f_p_q_const__gsl_vector_p_void_p_gsl_matrix__int[] = { {&_swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_matrix__int, 0, 0, 0},{0, 0, 0, 0}}; |
| 5804 |
|
| static swig_cast_info _swigc__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int[] = { {&_swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int, 0, 0, 0},{0, 0, 0, 0}}; |
| 5805 |
|
| static swig_cast_info _swigc__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector_p_gsl_matrix__int[] = { {&_swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector_p_gsl_matrix__int, 0, 0, 0},{0, 0, 0, 0}}; |
| 5806 |
|
| static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}}; |
| 5807 |
|
| static swig_cast_info _swigc__p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int[] = { {&_swigt__p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int, 0, 0, 0},{0, 0, 0, 0}}; |
| 5808 |
|
| static swig_cast_info _swigc__p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int[] = { {&_swigt__p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int, 0, 0, 0},{0, 0, 0, 0}}; |
| 5809 |
|
| static swig_cast_info _swigc__p_f_p_void_size_t__int[] = { {&_swigt__p_f_p_void_size_t__int, 0, 0, 0},{0, 0, 0, 0}}; |
| 5810 |
|
| static swig_cast_info _swigc__p_gsl_matrix[] = { {&_swigt__p_gsl_matrix, 0, 0, 0},{0, 0, 0, 0}}; |
| 5811 |
|
| static swig_cast_info _swigc__p_gsl_multiroot_fdfsolver[] = { {&_swigt__p_gsl_multiroot_fdfsolver, 0, 0, 0},{0, 0, 0, 0}}; |
| 5812 |
|
| static swig_cast_info _swigc__p_gsl_multiroot_fdfsolver_type[] = { {&_swigt__p_gsl_multiroot_fdfsolver_type, 0, 0, 0},{0, 0, 0, 0}}; |
| 5813 |
|
| static swig_cast_info _swigc__p_gsl_multiroot_fsolver[] = { {&_swigt__p_gsl_multiroot_fsolver, 0, 0, 0},{0, 0, 0, 0}}; |
| 5814 |
|
| static swig_cast_info _swigc__p_gsl_multiroot_fsolver_type[] = { {&_swigt__p_gsl_multiroot_fsolver_type, 0, 0, 0},{0, 0, 0, 0}}; |
| 5815 |
|
| static swig_cast_info _swigc__p_gsl_multiroot_function_fdf_struct[] = { {&_swigt__p_gsl_multiroot_function_fdf_struct, 0, 0, 0},{0, 0, 0, 0}}; |
| 5816 |
|
| static swig_cast_info _swigc__p_gsl_multiroot_function_struct[] = { {&_swigt__p_gsl_multiroot_function_struct, 0, 0, 0},{0, 0, 0, 0}}; |
| 5817 |
|
| static swig_cast_info _swigc__p_gsl_vector[] = { {&_swigt__p_gsl_vector, 0, 0, 0},{0, 0, 0, 0}}; |
| 5818 |
|
| static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
| 5819 |
|
| |
| 5820 |
|
| static swig_cast_info *swig_cast_initial[] = { |
| 5821 |
|
| _swigc__p_FILE, |
| 5822 |
|
| _swigc__p_char, |
| 5823 |
|
| _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void, |
| 5824 |
|
| _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void, |
| 5825 |
|
| _swigc__p_f_p_q_const__gsl_vector_p_void_p_gsl_matrix__int, |
| 5826 |
|
| _swigc__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__int, |
| 5827 |
|
| _swigc__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector_p_gsl_matrix__int, |
| 5828 |
|
| _swigc__p_f_p_void__void, |
| 5829 |
|
| _swigc__p_f_p_void_p_struct_gsl_multiroot_function_fdf_struct_p_gsl_vector_p_gsl_vector_p_gsl_matrix_p_gsl_vector__int, |
| 5830 |
|
| _swigc__p_f_p_void_p_struct_gsl_multiroot_function_struct_p_gsl_vector_p_gsl_vector_p_gsl_vector__int, |
| 5831 |
|
| _swigc__p_f_p_void_size_t__int, |
| 5832 |
|
| _swigc__p_gsl_matrix, |
| 5833 |
|
| _swigc__p_gsl_multiroot_fdfsolver, |
| 5834 |
|
| _swigc__p_gsl_multiroot_fdfsolver_type, |
| 5835 |
|
| _swigc__p_gsl_multiroot_fsolver, |
| 5836 |
|
| _swigc__p_gsl_multiroot_fsolver_type, |
| 5837 |
|
| _swigc__p_gsl_multiroot_function_fdf_struct, |
| 5838 |
|
| _swigc__p_gsl_multiroot_function_struct, |
| 5839 |
|
| _swigc__p_gsl_vector, |
| 5840 |
|
| _swigc__p_void, |
| 5841 |
|
| }; |
| 5842 |
|
| |
| 5843 |
|
| |
| 5844 |
|
| /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
| 5845 |
|
| |
| 5846 |
|
| static swig_constant_info swig_constants[] = { |
| 5847 |
|
| {0,0,0,0,0,0} |
| 5848 |
|
| }; |
| 5849 |
|
| #ifdef __cplusplus |
| 5850 |
|
| } |
| 5851 |
|
| #endif |
| 5852 |
|
| static swig_variable_info swig_variables[] = { |
| 5853 |
|
| { "Math::GSL::Multirootsc::gsl_multiroot_fsolver_dnewton", MAGIC_CLASS _wrap_gsl_multiroot_fsolver_dnewton_set, MAGIC_CLASS _wrap_gsl_multiroot_fsolver_dnewton_get,&SWIGTYPE_p_gsl_multiroot_fsolver_type }, |
| 5854 |
|
| { "Math::GSL::Multirootsc::gsl_multiroot_fsolver_broyden", MAGIC_CLASS _wrap_gsl_multiroot_fsolver_broyden_set, MAGIC_CLASS _wrap_gsl_multiroot_fsolver_broyden_get,&SWIGTYPE_p_gsl_multiroot_fsolver_type }, |
| 5855 |
|
| { "Math::GSL::Multirootsc::gsl_multiroot_fsolver_hybrid", MAGIC_CLASS _wrap_gsl_multiroot_fsolver_hybrid_set, MAGIC_CLASS _wrap_gsl_multiroot_fsolver_hybrid_get,&SWIGTYPE_p_gsl_multiroot_fsolver_type }, |
| 5856 |
|
| { "Math::GSL::Multirootsc::gsl_multiroot_fsolver_hybrids", MAGIC_CLASS _wrap_gsl_multiroot_fsolver_hybrids_set, MAGIC_CLASS _wrap_gsl_multiroot_fsolver_hybrids_get,&SWIGTYPE_p_gsl_multiroot_fsolver_type }, |
| 5857 |
|
| { "Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_newton", MAGIC_CLASS _wrap_gsl_multiroot_fdfsolver_newton_set, MAGIC_CLASS _wrap_gsl_multiroot_fdfsolver_newton_get,&SWIGTYPE_p_gsl_multiroot_fdfsolver_type }, |
| 5858 |
|
| { "Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_gnewton", MAGIC_CLASS _wrap_gsl_multiroot_fdfsolver_gnewton_set, MAGIC_CLASS _wrap_gsl_multiroot_fdfsolver_gnewton_get,&SWIGTYPE_p_gsl_multiroot_fdfsolver_type }, |
| 5859 |
|
| { "Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_hybridj", MAGIC_CLASS _wrap_gsl_multiroot_fdfsolver_hybridj_set, MAGIC_CLASS _wrap_gsl_multiroot_fdfsolver_hybridj_get,&SWIGTYPE_p_gsl_multiroot_fdfsolver_type }, |
| 5860 |
|
| { "Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_hybridsj", MAGIC_CLASS _wrap_gsl_multiroot_fdfsolver_hybridsj_set, MAGIC_CLASS _wrap_gsl_multiroot_fdfsolver_hybridsj_get,&SWIGTYPE_p_gsl_multiroot_fdfsolver_type }, |
| 5861 |
|
| {0,0,0,0} |
| 5862 |
|
| }; |
| 5863 |
|
| static swig_command_info swig_commands[] = { |
| 5864 |
|
| {"Math::GSL::Multirootsc::gsl_error", _wrap_gsl_error}, |
| 5865 |
|
| {"Math::GSL::Multirootsc::gsl_stream_printf", _wrap_gsl_stream_printf}, |
| 5866 |
|
| {"Math::GSL::Multirootsc::gsl_strerror", _wrap_gsl_strerror}, |
| 5867 |
|
| {"Math::GSL::Multirootsc::gsl_set_error_handler", _wrap_gsl_set_error_handler}, |
| 5868 |
|
| {"Math::GSL::Multirootsc::gsl_set_error_handler_off", _wrap_gsl_set_error_handler_off}, |
| 5869 |
|
| {"Math::GSL::Multirootsc::gsl_set_stream_handler", _wrap_gsl_set_stream_handler}, |
| 5870 |
|
| {"Math::GSL::Multirootsc::gsl_set_stream", _wrap_gsl_set_stream}, |
| 5871 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_struct_f_set", _wrap_gsl_multiroot_function_struct_f_set}, |
| 5872 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_struct_f_get", _wrap_gsl_multiroot_function_struct_f_get}, |
| 5873 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_struct_n_set", _wrap_gsl_multiroot_function_struct_n_set}, |
| 5874 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_struct_n_get", _wrap_gsl_multiroot_function_struct_n_get}, |
| 5875 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_struct_params_set", _wrap_gsl_multiroot_function_struct_params_set}, |
| 5876 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_struct_params_get", _wrap_gsl_multiroot_function_struct_params_get}, |
| 5877 |
|
| {"Math::GSL::Multirootsc::new_gsl_multiroot_function_struct", _wrap_new_gsl_multiroot_function_struct}, |
| 5878 |
|
| {"Math::GSL::Multirootsc::delete_gsl_multiroot_function_struct", _wrap_delete_gsl_multiroot_function_struct}, |
| 5879 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdjacobian", _wrap_gsl_multiroot_fdjacobian}, |
| 5880 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_name_set", _wrap_gsl_multiroot_fsolver_type_name_set}, |
| 5881 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_name_get", _wrap_gsl_multiroot_fsolver_type_name_get}, |
| 5882 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_size_set", _wrap_gsl_multiroot_fsolver_type_size_set}, |
| 5883 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_size_get", _wrap_gsl_multiroot_fsolver_type_size_get}, |
| 5884 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_alloc_set", _wrap_gsl_multiroot_fsolver_type_alloc_set}, |
| 5885 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_alloc_get", _wrap_gsl_multiroot_fsolver_type_alloc_get}, |
| 5886 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_set_set", _wrap_gsl_multiroot_fsolver_type_set_set}, |
| 5887 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_set_get", _wrap_gsl_multiroot_fsolver_type_set_get}, |
| 5888 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_iterate_set", _wrap_gsl_multiroot_fsolver_type_iterate_set}, |
| 5889 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_iterate_get", _wrap_gsl_multiroot_fsolver_type_iterate_get}, |
| 5890 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_free_set", _wrap_gsl_multiroot_fsolver_type_free_set}, |
| 5891 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_free_get", _wrap_gsl_multiroot_fsolver_type_free_get}, |
| 5892 |
|
| {"Math::GSL::Multirootsc::new_gsl_multiroot_fsolver_type", _wrap_new_gsl_multiroot_fsolver_type}, |
| 5893 |
|
| {"Math::GSL::Multirootsc::delete_gsl_multiroot_fsolver_type", _wrap_delete_gsl_multiroot_fsolver_type}, |
| 5894 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_set", _wrap_gsl_multiroot_fsolver_type_set}, |
| 5895 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_type_get", _wrap_gsl_multiroot_fsolver_type_get}, |
| 5896 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_function_set", _wrap_gsl_multiroot_fsolver_function_set}, |
| 5897 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_function_get", _wrap_gsl_multiroot_fsolver_function_get}, |
| 5898 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_x_set", _wrap_gsl_multiroot_fsolver_x_set}, |
| 5899 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_x_get", _wrap_gsl_multiroot_fsolver_x_get}, |
| 5900 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_f_set", _wrap_gsl_multiroot_fsolver_f_set}, |
| 5901 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_f_get", _wrap_gsl_multiroot_fsolver_f_get}, |
| 5902 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_dx_set", _wrap_gsl_multiroot_fsolver_dx_set}, |
| 5903 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_dx_get", _wrap_gsl_multiroot_fsolver_dx_get}, |
| 5904 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_state_set", _wrap_gsl_multiroot_fsolver_state_set}, |
| 5905 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_state_get", _wrap_gsl_multiroot_fsolver_state_get}, |
| 5906 |
|
| {"Math::GSL::Multirootsc::new_gsl_multiroot_fsolver", _wrap_new_gsl_multiroot_fsolver}, |
| 5907 |
|
| {"Math::GSL::Multirootsc::delete_gsl_multiroot_fsolver", _wrap_delete_gsl_multiroot_fsolver}, |
| 5908 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_alloc", _wrap_gsl_multiroot_fsolver_alloc}, |
| 5909 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_free", _wrap_gsl_multiroot_fsolver_free}, |
| 5910 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_set", _wrap_gsl_multiroot_fsolver_set}, |
| 5911 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_iterate", _wrap_gsl_multiroot_fsolver_iterate}, |
| 5912 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_name", _wrap_gsl_multiroot_fsolver_name}, |
| 5913 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_root", _wrap_gsl_multiroot_fsolver_root}, |
| 5914 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_dx", _wrap_gsl_multiroot_fsolver_dx}, |
| 5915 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fsolver_f", _wrap_gsl_multiroot_fsolver_f}, |
| 5916 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_fdf_struct_f_set", _wrap_gsl_multiroot_function_fdf_struct_f_set}, |
| 5917 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_fdf_struct_f_get", _wrap_gsl_multiroot_function_fdf_struct_f_get}, |
| 5918 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_fdf_struct_df_set", _wrap_gsl_multiroot_function_fdf_struct_df_set}, |
| 5919 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_fdf_struct_df_get", _wrap_gsl_multiroot_function_fdf_struct_df_get}, |
| 5920 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_fdf_struct_fdf_set", _wrap_gsl_multiroot_function_fdf_struct_fdf_set}, |
| 5921 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_fdf_struct_fdf_get", _wrap_gsl_multiroot_function_fdf_struct_fdf_get}, |
| 5922 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_fdf_struct_n_set", _wrap_gsl_multiroot_function_fdf_struct_n_set}, |
| 5923 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_fdf_struct_n_get", _wrap_gsl_multiroot_function_fdf_struct_n_get}, |
| 5924 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_fdf_struct_params_set", _wrap_gsl_multiroot_function_fdf_struct_params_set}, |
| 5925 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_function_fdf_struct_params_get", _wrap_gsl_multiroot_function_fdf_struct_params_get}, |
| 5926 |
|
| {"Math::GSL::Multirootsc::new_gsl_multiroot_function_fdf_struct", _wrap_new_gsl_multiroot_function_fdf_struct}, |
| 5927 |
|
| {"Math::GSL::Multirootsc::delete_gsl_multiroot_function_fdf_struct", _wrap_delete_gsl_multiroot_function_fdf_struct}, |
| 5928 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_name_set", _wrap_gsl_multiroot_fdfsolver_type_name_set}, |
| 5929 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_name_get", _wrap_gsl_multiroot_fdfsolver_type_name_get}, |
| 5930 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_size_set", _wrap_gsl_multiroot_fdfsolver_type_size_set}, |
| 5931 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_size_get", _wrap_gsl_multiroot_fdfsolver_type_size_get}, |
| 5932 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_alloc_set", _wrap_gsl_multiroot_fdfsolver_type_alloc_set}, |
| 5933 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_alloc_get", _wrap_gsl_multiroot_fdfsolver_type_alloc_get}, |
| 5934 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_set_set", _wrap_gsl_multiroot_fdfsolver_type_set_set}, |
| 5935 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_set_get", _wrap_gsl_multiroot_fdfsolver_type_set_get}, |
| 5936 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_iterate_set", _wrap_gsl_multiroot_fdfsolver_type_iterate_set}, |
| 5937 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_iterate_get", _wrap_gsl_multiroot_fdfsolver_type_iterate_get}, |
| 5938 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_free_set", _wrap_gsl_multiroot_fdfsolver_type_free_set}, |
| 5939 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_free_get", _wrap_gsl_multiroot_fdfsolver_type_free_get}, |
| 5940 |
|
| {"Math::GSL::Multirootsc::new_gsl_multiroot_fdfsolver_type", _wrap_new_gsl_multiroot_fdfsolver_type}, |
| 5941 |
|
| {"Math::GSL::Multirootsc::delete_gsl_multiroot_fdfsolver_type", _wrap_delete_gsl_multiroot_fdfsolver_type}, |
| 5942 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_set", _wrap_gsl_multiroot_fdfsolver_type_set}, |
| 5943 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_type_get", _wrap_gsl_multiroot_fdfsolver_type_get}, |
| 5944 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_fdf_set", _wrap_gsl_multiroot_fdfsolver_fdf_set}, |
| 5945 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_fdf_get", _wrap_gsl_multiroot_fdfsolver_fdf_get}, |
| 5946 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_x_set", _wrap_gsl_multiroot_fdfsolver_x_set}, |
| 5947 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_x_get", _wrap_gsl_multiroot_fdfsolver_x_get}, |
| 5948 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_f_set", _wrap_gsl_multiroot_fdfsolver_f_set}, |
| 5949 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_f_get", _wrap_gsl_multiroot_fdfsolver_f_get}, |
| 5950 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_J_set", _wrap_gsl_multiroot_fdfsolver_J_set}, |
| 5951 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_J_get", _wrap_gsl_multiroot_fdfsolver_J_get}, |
| 5952 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_dx_set", _wrap_gsl_multiroot_fdfsolver_dx_set}, |
| 5953 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_dx_get", _wrap_gsl_multiroot_fdfsolver_dx_get}, |
| 5954 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_state_set", _wrap_gsl_multiroot_fdfsolver_state_set}, |
| 5955 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_state_get", _wrap_gsl_multiroot_fdfsolver_state_get}, |
| 5956 |
|
| {"Math::GSL::Multirootsc::new_gsl_multiroot_fdfsolver", _wrap_new_gsl_multiroot_fdfsolver}, |
| 5957 |
|
| {"Math::GSL::Multirootsc::delete_gsl_multiroot_fdfsolver", _wrap_delete_gsl_multiroot_fdfsolver}, |
| 5958 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_alloc", _wrap_gsl_multiroot_fdfsolver_alloc}, |
| 5959 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_set", _wrap_gsl_multiroot_fdfsolver_set}, |
| 5960 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_iterate", _wrap_gsl_multiroot_fdfsolver_iterate}, |
| 5961 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_free", _wrap_gsl_multiroot_fdfsolver_free}, |
| 5962 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_name", _wrap_gsl_multiroot_fdfsolver_name}, |
| 5963 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_root", _wrap_gsl_multiroot_fdfsolver_root}, |
| 5964 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_dx", _wrap_gsl_multiroot_fdfsolver_dx}, |
| 5965 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_fdfsolver_f", _wrap_gsl_multiroot_fdfsolver_f}, |
| 5966 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_test_delta", _wrap_gsl_multiroot_test_delta}, |
| 5967 |
|
| {"Math::GSL::Multirootsc::gsl_multiroot_test_residual", _wrap_gsl_multiroot_test_residual}, |
| 5968 |
|
| {0,0} |
| 5969 |
|
| }; |
| 5970 |
|
| /* ----------------------------------------------------------------------------- |
| 5971 |
|
| * Type initialization: |
| 5972 |
|
| * This problem is tough by the requirement that no dynamic |
| 5973 |
|
| * memory is used. Also, since swig_type_info structures store pointers to |
| 5974 |
|
| * swig_cast_info structures and swig_cast_info structures store pointers back |
| 5975 |
|
| * to swig_type_info structures, we need some lookup code at initialization. |
| 5976 |
|
| * The idea is that swig generates all the structures that are needed. |
| 5977 |
|
| * The runtime then collects these partially filled structures. |
| 5978 |
|
| * The SWIG_InitializeModule function takes these initial arrays out of |
| 5979 |
|
| * swig_module, and does all the lookup, filling in the swig_module.types |
| 5980 |
|
| * array with the correct data and linking the correct swig_cast_info |
| 5981 |
|
| * structures together. |
| 5982 |
|
| * |
| 5983 |
|
| * The generated swig_type_info structures are assigned statically to an initial |
| 5984 |
|
| * array. We just loop through that array, and handle each type individually. |
| 5985 |
|
| * First we lookup if this type has been already loaded, and if so, use the |
| 5986 |
|
| * loaded structure instead of the generated one. Then we have to fill in the |
| 5987 |
|
| * cast linked list. The cast data is initially stored in something like a |
| 5988 |
|
| * two-dimensional array. Each row corresponds to a type (there are the same |
| 5989 |
|
| * number of rows as there are in the swig_type_initial array). Each entry in |
| 5990 |
|
| * a column is one of the swig_cast_info structures for that type. |
| 5991 |
|
| * The cast_initial array is actually an array of arrays, because each row has |
| 5992 |
|
| * a variable number of columns. So to actually build the cast linked list, |
| 5993 |
|
| * we find the array of casts associated with the type, and loop through it |
| 5994 |
|
| * adding the casts to the list. The one last trick we need to do is making |
| 5995 |
|
| * sure the type pointer in the swig_cast_info struct is correct. |
| 5996 |
|
| * |
| 5997 |
|
| * First off, we lookup the cast->type name to see if it is already loaded. |
| 5998 |
|
| * There are three cases to handle: |
| 5999 |
|
| * 1) If the cast->type has already been loaded AND the type we are adding |
| 6000 |
|
| * casting info to has not been loaded (it is in this module), THEN we |
| 6001 |
|
| * replace the cast->type pointer with the type pointer that has already |
| 6002 |
|
| * been loaded. |
| 6003 |
|
| * 2) If BOTH types (the one we are adding casting info to, and the |
| 6004 |
|
| * cast->type) are loaded, THEN the cast info has already been loaded by |
| 6005 |
|
| * the previous module so we just ignore it. |
| 6006 |
|
| * 3) Finally, if cast->type has not already been loaded, then we add that |
| 6007 |
|
| * swig_cast_info to the linked list (because the cast->type) pointer will |
| 6008 |
|
| * be correct. |
| 6009 |
|
| * ----------------------------------------------------------------------------- */ |
| 6010 |
|
| |
| 6011 |
|
| #ifdef __cplusplus |
| 6012 |
|
| extern "C" { |
| 6013 |
|
| #if 0 |
| 6014 |
|
| } /* c-mode */ |
| 6015 |
|
| #endif |
| 6016 |
|
| #endif |
| 6017 |
|
| |
| 6018 |
|
| #if 0 |
| 6019 |
|
| #define SWIGRUNTIME_DEBUG |
| 6020 |
|
| #endif |
| 6021 |
|
| |
| 6022 |
|
| #ifndef SWIG_INIT_CLIENT_DATA_TYPE |
| 6023 |
|
| #define SWIG_INIT_CLIENT_DATA_TYPE void * |
| 6024 |
|
| #endif |
| 6025 |
|
| |
| 6026 |
|
| SWIGRUNTIME void |
| 6027 |
0 |
| SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) { |
| 6028 |
|
| size_t i; |
| 6029 |
|
| swig_module_info *module_head, *iter; |
| 6030 |
|
| int init; |
| 6031 |
|
| |
| 6032 |
|
| /* check to see if the circular list has been setup, if not, set it up */ |
| 6033 |
0 |
▶ | if (swig_module.next==0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_module.next==0) { |
0 |
0 |
0 |
|
| 6034 |
|
| /* Initialize the swig_module */ |
| 6035 |
0 |
| swig_module.type_initial = swig_type_initial; |
| 6036 |
0 |
| swig_module.cast_initial = swig_cast_initial; |
| 6037 |
0 |
| swig_module.next = &swig_module; |
| 6038 |
0 |
| init = 1; |
| 6039 |
|
| } else { |
| 6040 |
0 |
| init = 0; |
| 6041 |
|
| } |
| 6042 |
|
| |
| 6043 |
|
| /* Try and load any already created modules */ |
| 6044 |
0 |
| module_head = SWIG_GetModule(clientdata); |
| 6045 |
0 |
▶ | if (!module_head) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!module_head) { |
0 |
0 |
0 |
|
| 6046 |
|
| /* This is the first module loaded for this interpreter */ |
| 6047 |
|
| /* so set the swig module into the interpreter */ |
| 6048 |
0 |
| SWIG_SetModule(clientdata, &swig_module); |
| 6049 |
|
| } else { |
| 6050 |
|
| /* the interpreter has loaded a SWIG module, but has it loaded this one? */ |
| 6051 |
0 |
| iter=module_head; |
| 6052 |
|
| do { |
| 6053 |
0 |
▶ | if (iter==&swig_module) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (iter==&swig_module) { |
0 |
0 |
0 |
|
| 6054 |
|
| /* Our module is already in the list, so there's nothing more to do. */ |
| 6055 |
0 |
| return; |
| 6056 |
|
| } |
| 6057 |
0 |
| iter=iter->next; |
| 6058 |
0 |
▶ | } while (iter!= module_head); |
Branch: 1 branch
| Branch | True | False | Total |
| } while (iter!= module_head); |
0 |
0 |
0 |
|
| 6059 |
|
| |
| 6060 |
|
| /* otherwise we must add our module into the list */ |
| 6061 |
0 |
| swig_module.next = module_head->next; |
| 6062 |
0 |
| module_head->next = &swig_module; |
| 6063 |
|
| } |
| 6064 |
|
| |
| 6065 |
|
| /* When multiple interpreters are used, a module could have already been initialized in |
| 6066 |
|
| a different interpreter, but not yet have a pointer in this interpreter. |
| 6067 |
|
| In this case, we do not want to continue adding types... everything should be |
| 6068 |
|
| set up already */ |
| 6069 |
0 |
▶ | if (init == 0) return; |
Branch: 1 branch
| Branch | True | False | Total |
| if (init == 0) return; |
0 |
0 |
0 |
|
| 6070 |
|
| |
| 6071 |
|
| /* Now work on filling in swig_module.types */ |
| 6072 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 6073 |
|
| printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size); |
| 6074 |
|
| #endif |
| 6075 |
0 |
▶ | for (i = 0; i < swig_module.size; ++i) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < swig_module.size; ++i) { |
0 |
0 |
0 |
|
| 6076 |
0 |
| swig_type_info *type = 0; |
| 6077 |
|
| swig_type_info *ret; |
| 6078 |
|
| swig_cast_info *cast; |
| 6079 |
|
| |
| 6080 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 6081 |
|
| printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name); |
| 6082 |
|
| #endif |
| 6083 |
|
| |
| 6084 |
|
| /* if there is another module already loaded */ |
| 6085 |
0 |
▶ | if (swig_module.next != &swig_module) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_module.next != &swig_module) { |
0 |
0 |
0 |
|
| 6086 |
0 |
| type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
| 6087 |
|
| } |
| 6088 |
0 |
▶ | if (type) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type) { |
0 |
0 |
0 |
|
| 6089 |
|
| /* Overwrite clientdata field */ |
| 6090 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 6091 |
|
| printf("SWIG_InitializeModule: found type %s\n", type->name); |
| 6092 |
|
| #endif |
| 6093 |
0 |
▶ | if (swig_module.type_initial[i]->clientdata) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_module.type_initial[i]->clientdata) { |
0 |
0 |
0 |
|
| 6094 |
0 |
| type->clientdata = swig_module.type_initial[i]->clientdata; |
| 6095 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 6096 |
|
| printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
| 6097 |
|
| #endif |
| 6098 |
|
| } |
| 6099 |
|
| } else { |
| 6100 |
0 |
| type = swig_module.type_initial[i]; |
| 6101 |
|
| } |
| 6102 |
|
| |
| 6103 |
|
| /* Insert casting types */ |
| 6104 |
0 |
| cast = swig_module.cast_initial[i]; |
| 6105 |
0 |
▶ | while (cast->type) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (cast->type) { |
0 |
0 |
0 |
|
| 6106 |
|
| /* Don't need to add information already in the list */ |
| 6107 |
0 |
| ret = 0; |
| 6108 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 6109 |
|
| printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
| 6110 |
|
| #endif |
| 6111 |
0 |
▶ | if (swig_module.next != &swig_module) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_module.next != &swig_module) { |
0 |
0 |
0 |
|
| 6112 |
0 |
| ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
| 6113 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 6114 |
|
| if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
| 6115 |
|
| #endif |
| 6116 |
|
| } |
| 6117 |
0 |
▶ | if (ret) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (ret) { |
0 |
0 |
0 |
|
| 6118 |
0 |
▶ | if (type == swig_module.type_initial[i]) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type == swig_module.type_initial[i]) { |
0 |
0 |
0 |
|
| 6119 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 6120 |
|
| printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
| 6121 |
|
| #endif |
| 6122 |
0 |
| cast->type = ret; |
| 6123 |
0 |
| ret = 0; |
| 6124 |
|
| } else { |
| 6125 |
|
| /* Check for casting already in the list */ |
| 6126 |
0 |
| swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
| 6127 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 6128 |
|
| if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
| 6129 |
|
| #endif |
| 6130 |
0 |
▶ | if (!ocast) ret = 0; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!ocast) ret = 0; |
0 |
0 |
0 |
|
| 6131 |
|
| } |
| 6132 |
|
| } |
| 6133 |
|
| |
| 6134 |
0 |
▶ | if (!ret) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!ret) { |
0 |
0 |
0 |
|
| 6135 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 6136 |
|
| printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
| 6137 |
|
| #endif |
| 6138 |
0 |
▶ | if (type->cast) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (type->cast) { |
0 |
0 |
0 |
|
| 6139 |
0 |
| type->cast->prev = cast; |
| 6140 |
0 |
| cast->next = type->cast; |
| 6141 |
|
| } |
| 6142 |
0 |
| type->cast = cast; |
| 6143 |
|
| } |
| 6144 |
0 |
| cast++; |
| 6145 |
|
| } |
| 6146 |
|
| /* Set entry in modules->types array equal to the type */ |
| 6147 |
0 |
| swig_module.types[i] = type; |
| 6148 |
|
| } |
| 6149 |
0 |
| swig_module.types[i] = 0; |
| 6150 |
|
| |
| 6151 |
|
| #ifdef SWIGRUNTIME_DEBUG |
| 6152 |
|
| printf("**** SWIG_InitializeModule: Cast List ******\n"); |
| 6153 |
|
| for (i = 0; i < swig_module.size; ++i) { |
| 6154 |
|
| int j = 0; |
| 6155 |
|
| swig_cast_info *cast = swig_module.cast_initial[i]; |
| 6156 |
|
| printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name); |
| 6157 |
|
| while (cast->type) { |
| 6158 |
|
| printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
| 6159 |
|
| cast++; |
| 6160 |
|
| ++j; |
| 6161 |
|
| } |
| 6162 |
|
| printf("---- Total casts: %d\n",j); |
| 6163 |
|
| } |
| 6164 |
|
| printf("**** SWIG_InitializeModule: Cast List ******\n"); |
| 6165 |
|
| #endif |
| 6166 |
|
| } |
| 6167 |
|
| |
| 6168 |
|
| /* This function will propagate the clientdata field of type to |
| 6169 |
|
| * any new swig_type_info structures that have been added into the list |
| 6170 |
|
| * of equivalent types. It is like calling |
| 6171 |
|
| * SWIG_TypeClientData(type, clientdata) a second time. |
| 6172 |
|
| */ |
| 6173 |
|
| SWIGRUNTIME void |
| 6174 |
0 |
| SWIG_PropagateClientData(void) { |
| 6175 |
|
| size_t i; |
| 6176 |
|
| swig_cast_info *equiv; |
| 6177 |
|
| static int init_run = 0; |
| 6178 |
|
| |
| 6179 |
0 |
▶ | if (init_run) return; |
Branch: 1 branch
| Branch | True | False | Total |
| if (init_run) return; |
0 |
0 |
0 |
|
| 6180 |
0 |
| init_run = 1; |
| 6181 |
|
| |
| 6182 |
0 |
▶ | for (i = 0; i < swig_module.size; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < swig_module.size; i++) { |
0 |
0 |
0 |
|
| 6183 |
0 |
▶ | if (swig_module.types[i]->clientdata) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_module.types[i]->clientdata) { |
0 |
0 |
0 |
|
| 6184 |
0 |
| equiv = swig_module.types[i]->cast; |
| 6185 |
0 |
▶ | while (equiv) { |
Branch: 1 branch
| Branch | True | False | Total |
| while (equiv) { |
0 |
0 |
0 |
|
| 6186 |
0 |
▶ | if (!equiv->converter) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!equiv->converter) { |
0 |
0 |
0 |
|
| 6187 |
0 |
▶ | if (equiv->type && !equiv->type->clientdata) |
Branch: 2 branches
| Branch | True | False | Total |
| if (equiv->type && !equiv->type->clientdata) |
0 |
0 |
0 |
| if (equiv->type && !equiv->type->clientdata) |
0 |
0 |
0 |
|
| 6188 |
0 |
| SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
| 6189 |
|
| } |
| 6190 |
0 |
| equiv = equiv->next; |
| 6191 |
|
| } |
| 6192 |
|
| } |
| 6193 |
|
| } |
| 6194 |
|
| } |
| 6195 |
|
| |
| 6196 |
|
| #ifdef __cplusplus |
| 6197 |
|
| #if 0 |
| 6198 |
|
| { |
| 6199 |
|
| /* c-mode */ |
| 6200 |
|
| #endif |
| 6201 |
|
| } |
| 6202 |
|
| #endif |
| 6203 |
|
| |
| 6204 |
|
| |
| 6205 |
|
| |
| 6206 |
|
| #if defined(__cplusplus) && ! defined(XSPROTO) |
| 6207 |
|
| extern "C" |
| 6208 |
|
| #endif |
| 6209 |
|
| |
| 6210 |
0 |
| XS(SWIG_init) { |
| 6211 |
0 |
| dXSARGS; |
| 6212 |
|
| int i; |
| 6213 |
|
| (void)items; |
| 6214 |
|
| |
| 6215 |
0 |
| SWIG_InitializeModule(0); |
| 6216 |
|
| |
| 6217 |
|
| /* Install commands */ |
| 6218 |
0 |
▶ | for (i = 0; swig_commands[i].name; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; swig_commands[i].name; i++) { |
0 |
0 |
0 |
|
| 6219 |
|
| /* Casts only needed for Perl < 5.10. */ |
| 6220 |
|
| #ifdef __cplusplus |
| 6221 |
|
| newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__)); |
| 6222 |
|
| #else |
| 6223 |
0 |
| newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__); |
| 6224 |
|
| #endif |
| 6225 |
|
| } |
| 6226 |
|
| |
| 6227 |
|
| /* Install variables */ |
| 6228 |
0 |
▶ | for (i = 0; swig_variables[i].name; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; swig_variables[i].name; i++) { |
0 |
0 |
0 |
|
| 6229 |
|
| SV *sv; |
| 6230 |
0 |
| sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); |
| 6231 |
0 |
▶ | if (swig_variables[i].type) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (swig_variables[i].type) { |
0 |
0 |
0 |
|
| 6232 |
0 |
| SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); |
| 6233 |
|
| } else { |
| 6234 |
0 |
| sv_setiv(sv,(IV) 0); |
| 6235 |
|
| } |
| 6236 |
0 |
| swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); |
| 6237 |
|
| } |
| 6238 |
|
| |
| 6239 |
|
| /* Install constant */ |
| 6240 |
0 |
▶ | for (i = 0; swig_constants[i].type; i++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; swig_constants[i].type; i++) { |
0 |
0 |
0 |
|
| 6241 |
|
| SV *sv; |
| 6242 |
0 |
| sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); |
| 6243 |
0 |
| switch(swig_constants[i].type) { |
| 6244 |
0 |
| case SWIG_INT: |
| 6245 |
0 |
| sv_setiv(sv, (IV) swig_constants[i].lvalue); |
| 6246 |
0 |
| break; |
| 6247 |
0 |
| case SWIG_FLOAT: |
| 6248 |
0 |
| sv_setnv(sv, (double) swig_constants[i].dvalue); |
| 6249 |
0 |
| break; |
| 6250 |
0 |
| case SWIG_STRING: |
| 6251 |
0 |
| sv_setpv(sv, (const char *) swig_constants[i].pvalue); |
| 6252 |
0 |
| break; |
| 6253 |
0 |
| case SWIG_POINTER: |
| 6254 |
0 |
| SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); |
| 6255 |
0 |
| break; |
| 6256 |
0 |
| case SWIG_BINARY: |
| 6257 |
0 |
| SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); |
| 6258 |
0 |
| break; |
| 6259 |
0 |
| default: |
| 6260 |
0 |
| break; |
| 6261 |
|
| } |
| 6262 |
0 |
| SvREADONLY_on(sv); |
| 6263 |
|
| } |
| 6264 |
|
| |
| 6265 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6266 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_VERSION", TRUE | 0x2 | GV_ADDMULTI); |
| 6267 |
0 |
| sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(2.8))); |
| 6268 |
0 |
| SvREADONLY_on(sv); |
| 6269 |
|
| } while(0) /*@SWIG@*/; |
| 6270 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6271 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_MAJOR_VERSION", TRUE | 0x2 | GV_ADDMULTI); |
| 6272 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(2))); |
| 6273 |
0 |
| SvREADONLY_on(sv); |
| 6274 |
|
| } while(0) /*@SWIG@*/; |
| 6275 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6276 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_MINOR_VERSION", TRUE | 0x2 | GV_ADDMULTI); |
| 6277 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(8))); |
| 6278 |
0 |
| SvREADONLY_on(sv); |
| 6279 |
|
| } while(0) /*@SWIG@*/; |
| 6280 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6281 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_POSZERO", TRUE | 0x2 | GV_ADDMULTI); |
| 6282 |
0 |
| sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((+0.0)))); |
| 6283 |
0 |
| SvREADONLY_on(sv); |
| 6284 |
|
| } while(0) /*@SWIG@*/; |
| 6285 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6286 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_NEGZERO", TRUE | 0x2 | GV_ADDMULTI); |
| 6287 |
0 |
| sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((-0.0)))); |
| 6288 |
0 |
| SvREADONLY_on(sv); |
| 6289 |
|
| } while(0) /*@SWIG@*/; |
| 6290 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6291 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_SUCCESS", TRUE | 0x2 | GV_ADDMULTI); |
| 6292 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_SUCCESS))); |
| 6293 |
0 |
| SvREADONLY_on(sv); |
| 6294 |
|
| } while(0) /*@SWIG@*/; |
| 6295 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6296 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_FAILURE", TRUE | 0x2 | GV_ADDMULTI); |
| 6297 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_FAILURE))); |
| 6298 |
0 |
| SvREADONLY_on(sv); |
| 6299 |
|
| } while(0) /*@SWIG@*/; |
| 6300 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6301 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_CONTINUE", TRUE | 0x2 | GV_ADDMULTI); |
| 6302 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_CONTINUE))); |
| 6303 |
0 |
| SvREADONLY_on(sv); |
| 6304 |
|
| } while(0) /*@SWIG@*/; |
| 6305 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6306 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EDOM", TRUE | 0x2 | GV_ADDMULTI); |
| 6307 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDOM))); |
| 6308 |
0 |
| SvREADONLY_on(sv); |
| 6309 |
|
| } while(0) /*@SWIG@*/; |
| 6310 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6311 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ERANGE", TRUE | 0x2 | GV_ADDMULTI); |
| 6312 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERANGE))); |
| 6313 |
0 |
| SvREADONLY_on(sv); |
| 6314 |
|
| } while(0) /*@SWIG@*/; |
| 6315 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6316 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAULT", TRUE | 0x2 | GV_ADDMULTI); |
| 6317 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAULT))); |
| 6318 |
0 |
| SvREADONLY_on(sv); |
| 6319 |
|
| } while(0) /*@SWIG@*/; |
| 6320 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6321 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EINVAL", TRUE | 0x2 | GV_ADDMULTI); |
| 6322 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EINVAL))); |
| 6323 |
0 |
| SvREADONLY_on(sv); |
| 6324 |
|
| } while(0) /*@SWIG@*/; |
| 6325 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6326 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAILED", TRUE | 0x2 | GV_ADDMULTI); |
| 6327 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAILED))); |
| 6328 |
0 |
| SvREADONLY_on(sv); |
| 6329 |
|
| } while(0) /*@SWIG@*/; |
| 6330 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6331 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EFACTOR", TRUE | 0x2 | GV_ADDMULTI); |
| 6332 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFACTOR))); |
| 6333 |
0 |
| SvREADONLY_on(sv); |
| 6334 |
|
| } while(0) /*@SWIG@*/; |
| 6335 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6336 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ESANITY", TRUE | 0x2 | GV_ADDMULTI); |
| 6337 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESANITY))); |
| 6338 |
0 |
| SvREADONLY_on(sv); |
| 6339 |
|
| } while(0) /*@SWIG@*/; |
| 6340 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6341 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOMEM", TRUE | 0x2 | GV_ADDMULTI); |
| 6342 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOMEM))); |
| 6343 |
0 |
| SvREADONLY_on(sv); |
| 6344 |
|
| } while(0) /*@SWIG@*/; |
| 6345 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6346 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADFUNC", TRUE | 0x2 | GV_ADDMULTI); |
| 6347 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADFUNC))); |
| 6348 |
0 |
| SvREADONLY_on(sv); |
| 6349 |
|
| } while(0) /*@SWIG@*/; |
| 6350 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6351 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ERUNAWAY", TRUE | 0x2 | GV_ADDMULTI); |
| 6352 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERUNAWAY))); |
| 6353 |
0 |
| SvREADONLY_on(sv); |
| 6354 |
|
| } while(0) /*@SWIG@*/; |
| 6355 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6356 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EMAXITER", TRUE | 0x2 | GV_ADDMULTI); |
| 6357 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EMAXITER))); |
| 6358 |
0 |
| SvREADONLY_on(sv); |
| 6359 |
|
| } while(0) /*@SWIG@*/; |
| 6360 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6361 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EZERODIV", TRUE | 0x2 | GV_ADDMULTI); |
| 6362 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EZERODIV))); |
| 6363 |
0 |
| SvREADONLY_on(sv); |
| 6364 |
|
| } while(0) /*@SWIG@*/; |
| 6365 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6366 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADTOL", TRUE | 0x2 | GV_ADDMULTI); |
| 6367 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADTOL))); |
| 6368 |
0 |
| SvREADONLY_on(sv); |
| 6369 |
|
| } while(0) /*@SWIG@*/; |
| 6370 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6371 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOL", TRUE | 0x2 | GV_ADDMULTI); |
| 6372 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOL))); |
| 6373 |
0 |
| SvREADONLY_on(sv); |
| 6374 |
|
| } while(0) /*@SWIG@*/; |
| 6375 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6376 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNDRFLW", TRUE | 0x2 | GV_ADDMULTI); |
| 6377 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNDRFLW))); |
| 6378 |
0 |
| SvREADONLY_on(sv); |
| 6379 |
|
| } while(0) /*@SWIG@*/; |
| 6380 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6381 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EOVRFLW", TRUE | 0x2 | GV_ADDMULTI); |
| 6382 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOVRFLW))); |
| 6383 |
0 |
| SvREADONLY_on(sv); |
| 6384 |
|
| } while(0) /*@SWIG@*/; |
| 6385 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6386 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ELOSS", TRUE | 0x2 | GV_ADDMULTI); |
| 6387 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ELOSS))); |
| 6388 |
0 |
| SvREADONLY_on(sv); |
| 6389 |
|
| } while(0) /*@SWIG@*/; |
| 6390 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6391 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EROUND", TRUE | 0x2 | GV_ADDMULTI); |
| 6392 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EROUND))); |
| 6393 |
0 |
| SvREADONLY_on(sv); |
| 6394 |
|
| } while(0) /*@SWIG@*/; |
| 6395 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6396 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADLEN", TRUE | 0x2 | GV_ADDMULTI); |
| 6397 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADLEN))); |
| 6398 |
0 |
| SvREADONLY_on(sv); |
| 6399 |
|
| } while(0) /*@SWIG@*/; |
| 6400 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6401 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOTSQR", TRUE | 0x2 | GV_ADDMULTI); |
| 6402 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOTSQR))); |
| 6403 |
0 |
| SvREADONLY_on(sv); |
| 6404 |
|
| } while(0) /*@SWIG@*/; |
| 6405 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6406 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ESING", TRUE | 0x2 | GV_ADDMULTI); |
| 6407 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESING))); |
| 6408 |
0 |
| SvREADONLY_on(sv); |
| 6409 |
|
| } while(0) /*@SWIG@*/; |
| 6410 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6411 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EDIVERGE", TRUE | 0x2 | GV_ADDMULTI); |
| 6412 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDIVERGE))); |
| 6413 |
0 |
| SvREADONLY_on(sv); |
| 6414 |
|
| } while(0) /*@SWIG@*/; |
| 6415 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6416 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNSUP", TRUE | 0x2 | GV_ADDMULTI); |
| 6417 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNSUP))); |
| 6418 |
0 |
| SvREADONLY_on(sv); |
| 6419 |
|
| } while(0) /*@SWIG@*/; |
| 6420 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6421 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNIMPL", TRUE | 0x2 | GV_ADDMULTI); |
| 6422 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNIMPL))); |
| 6423 |
0 |
| SvREADONLY_on(sv); |
| 6424 |
|
| } while(0) /*@SWIG@*/; |
| 6425 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6426 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ECACHE", TRUE | 0x2 | GV_ADDMULTI); |
| 6427 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ECACHE))); |
| 6428 |
0 |
| SvREADONLY_on(sv); |
| 6429 |
|
| } while(0) /*@SWIG@*/; |
| 6430 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6431 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ETABLE", TRUE | 0x2 | GV_ADDMULTI); |
| 6432 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETABLE))); |
| 6433 |
0 |
| SvREADONLY_on(sv); |
| 6434 |
|
| } while(0) /*@SWIG@*/; |
| 6435 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6436 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROG", TRUE | 0x2 | GV_ADDMULTI); |
| 6437 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROG))); |
| 6438 |
0 |
| SvREADONLY_on(sv); |
| 6439 |
|
| } while(0) /*@SWIG@*/; |
| 6440 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6441 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROGJ", TRUE | 0x2 | GV_ADDMULTI); |
| 6442 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROGJ))); |
| 6443 |
0 |
| SvREADONLY_on(sv); |
| 6444 |
|
| } while(0) /*@SWIG@*/; |
| 6445 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6446 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLF", TRUE | 0x2 | GV_ADDMULTI); |
| 6447 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLF))); |
| 6448 |
0 |
| SvREADONLY_on(sv); |
| 6449 |
|
| } while(0) /*@SWIG@*/; |
| 6450 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6451 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLX", TRUE | 0x2 | GV_ADDMULTI); |
| 6452 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLX))); |
| 6453 |
0 |
| SvREADONLY_on(sv); |
| 6454 |
|
| } while(0) /*@SWIG@*/; |
| 6455 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6456 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLG", TRUE | 0x2 | GV_ADDMULTI); |
| 6457 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLG))); |
| 6458 |
0 |
| SvREADONLY_on(sv); |
| 6459 |
|
| } while(0) /*@SWIG@*/; |
| 6460 |
|
| /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do { |
| 6461 |
0 |
| SV *sv = get_sv((char*) SWIG_prefix "GSL_EOF", TRUE | 0x2 | GV_ADDMULTI); |
| 6462 |
0 |
| sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOF))); |
| 6463 |
0 |
| SvREADONLY_on(sv); |
| 6464 |
|
| } while(0) /*@SWIG@*/; |
| 6465 |
0 |
| SWIG_TypeClientData(SWIGTYPE_p_gsl_multiroot_function_struct, (void*) "Math::GSL::Multiroots::gsl_multiroot_function_struct"); |
| 6466 |
0 |
| SWIG_TypeClientData(SWIGTYPE_p_gsl_multiroot_fsolver_type, (void*) "Math::GSL::Multiroots::gsl_multiroot_fsolver_type"); |
| 6467 |
0 |
| SWIG_TypeClientData(SWIGTYPE_p_gsl_multiroot_fsolver, (void*) "Math::GSL::Multiroots::gsl_multiroot_fsolver"); |
| 6468 |
0 |
| SWIG_TypeClientData(SWIGTYPE_p_gsl_multiroot_function_fdf_struct, (void*) "Math::GSL::Multiroots::gsl_multiroot_function_fdf_struct"); |
| 6469 |
0 |
| SWIG_TypeClientData(SWIGTYPE_p_gsl_multiroot_fdfsolver_type, (void*) "Math::GSL::Multiroots::gsl_multiroot_fdfsolver_type"); |
| 6470 |
0 |
| SWIG_TypeClientData(SWIGTYPE_p_gsl_multiroot_fdfsolver, (void*) "Math::GSL::Multiroots::gsl_multiroot_fdfsolver"); |
| 6471 |
0 |
| ST(0) = &PL_sv_yes; |
| 6472 |
0 |
| XSRETURN(1); |
| 6473 |
|
| } |
| 6474 |
|
| |