| 1 |
/* ---------------------------------------------------------------------------- |
| 2 |
* This file was automatically generated by SWIG (http://www.swig.org). |
| 3 |
* Version 1.3.16u-20021020-0914 |
| 4 |
* |
| 5 |
* This file is not intended to be easily readable and contains a number of |
| 6 |
* coding conventions designed to improve portability and efficiency. Do not make |
| 7 |
* changes to this file unless you know what you are doing--modify the SWIG |
| 8 |
* interface file instead. |
| 9 |
* ----------------------------------------------------------------------------- */ |
| 10 |
|
| 11 |
/*********************************************************************** |
| 12 |
* common.swg |
| 13 |
* |
| 14 |
* This file contains generic SWIG runtime support for pointer |
| 15 |
* type checking as well as a few commonly used macros to control |
| 16 |
* external linkage. |
| 17 |
* |
| 18 |
* Author : David Beazley ([email protected]) |
| 19 |
* |
| 20 |
* Copyright (c) 1999-2000, The University of Chicago |
| 21 |
* |
| 22 |
* This file may be freely redistributed without license or fee provided |
| 23 |
* this copyright message remains intact. |
| 24 |
************************************************************************/ |
| 25 |
|
| 26 |
#include <string.h> |
| 27 |
|
| 28 |
#if defined(_WIN32) || defined(__WIN32__) |
| 29 |
# if defined(_MSC_VER) |
| 30 |
# if defined(STATIC_LINKED) |
| 31 |
# define SWIGEXPORT(a) a |
| 32 |
# define SWIGIMPORT(a) extern a |
| 33 |
# else |
| 34 |
# define SWIGEXPORT(a) __declspec(dllexport) a |
| 35 |
# define SWIGIMPORT(a) extern a |
| 36 |
# endif |
| 37 |
# else |
| 38 |
# if defined(__BORLANDC__) |
| 39 |
# define SWIGEXPORT(a) a _export |
| 40 |
# define SWIGIMPORT(a) a _export |
| 41 |
# else |
| 42 |
# define SWIGEXPORT(a) a |
| 43 |
# define SWIGIMPORT(a) a |
| 44 |
# endif |
| 45 |
# endif |
| 46 |
#else |
| 47 |
# define SWIGEXPORT(a) a |
| 48 |
# define SWIGIMPORT(a) a |
| 49 |
#endif |
| 50 |
|
| 51 |
#ifdef SWIG_GLOBAL |
| 52 |
#define SWIGRUNTIME(a) SWIGEXPORT(a) |
| 53 |
#else |
| 54 |
#define SWIGRUNTIME(a) static a |
| 55 |
#endif |
| 56 |
|
| 57 |
#ifdef __cplusplus |
| 58 |
extern "C" { |
| 59 |
#endif |
| 60 |
|
| 61 |
typedef void *(*swig_converter_func)(void *); |
| 62 |
typedef struct swig_type_info *(*swig_dycast_func)(void **); |
| 63 |
|
| 64 |
typedef struct swig_type_info { |
| 65 |
const char *name; |
| 66 |
swig_converter_func converter; |
| 67 |
const char *str; |
| 68 |
void *clientdata; |
| 69 |
swig_dycast_func dcast; |
| 70 |
struct swig_type_info *next; |
| 71 |
struct swig_type_info *prev; |
| 72 |
} swig_type_info; |
| 73 |
|
| 74 |
#ifdef SWIG_NOINCLUDE |
| 75 |
|
| 76 |
SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); |
| 77 |
SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); |
| 78 |
SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); |
| 79 |
SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); |
| 80 |
SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
| 81 |
SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); |
| 82 |
|
| 83 |
#else |
| 84 |
|
| 85 |
static swig_type_info *swig_type_list = 0; |
| 86 |
|
| 87 |
/* Register a type mapping with the type-checking */ |
| 88 |
SWIGRUNTIME(swig_type_info *) |
| 89 |
SWIG_TypeRegister(swig_type_info *ti) |
| 90 |
{ |
| 91 |
swig_type_info *tc, *head, *ret, *next; |
| 92 |
/* Check to see if this type has already been registered */ |
| 93 |
tc = swig_type_list; |
| 94 |
while (tc) { |
| 95 |
if (strcmp(tc->name, ti->name) == 0) { |
| 96 |
/* Already exists in the table. Just add additional types to the list */ |
| 97 |
if (tc->clientdata) ti->clientdata = tc->clientdata; |
| 98 |
head = tc; |
| 99 |
next = tc->next; |
| 100 |
goto l1; |
| 101 |
} |
| 102 |
tc = tc->prev; |
| 103 |
} |
| 104 |
head = ti; |
| 105 |
next = 0; |
| 106 |
|
| 107 |
/* Place in list */ |
| 108 |
ti->prev = swig_type_list; |
| 109 |
swig_type_list = ti; |
| 110 |
|
| 111 |
/* Build linked lists */ |
| 112 |
l1: |
| 113 |
ret = head; |
| 114 |
tc = ti + 1; |
| 115 |
/* Patch up the rest of the links */ |
| 116 |
while (tc->name) { |
| 117 |
head->next = tc; |
| 118 |
tc->prev = head; |
| 119 |
head = tc; |
| 120 |
tc++; |
| 121 |
} |
| 122 |
head->next = next; |
| 123 |
return ret; |
| 124 |
} |
| 125 |
|
| 126 |
/* Check the typename */ |
| 127 |
SWIGRUNTIME(swig_type_info *) |
| 128 |
SWIG_TypeCheck(char *c, swig_type_info *ty) |
| 129 |
{ |
| 130 |
swig_type_info *s; |
| 131 |
if (!ty) return 0; /* Void pointer */ |
| 132 |
s = ty->next; /* First element always just a name */ |
| 133 |
do { |
| 134 |
if (strcmp(s->name,c) == 0) { |
| 135 |
if (s == ty->next) return s; |
| 136 |
/* Move s to the top of the linked list */ |
| 137 |
s->prev->next = s->next; |
| 138 |
if (s->next) { |
| 139 |
s->next->prev = s->prev; |
| 140 |
} |
| 141 |
/* Insert s as second element in the list */ |
| 142 |
s->next = ty->next; |
| 143 |
if (ty->next) ty->next->prev = s; |
| 144 |
ty->next = s; |
| 145 |
return s; |
| 146 |
} |
| 147 |
s = s->next; |
| 148 |
} while (s && (s != ty->next)); |
| 149 |
return 0; |
| 150 |
} |
| 151 |
|
| 152 |
/* Cast a pointer up an inheritance hierarchy */ |
| 153 |
SWIGRUNTIME(void *) |
| 154 |
SWIG_TypeCast(swig_type_info *ty, void *ptr) |
| 155 |
{ |
| 156 |
if ((!ty) || (!ty->converter)) return ptr; |
| 157 |
return (*ty->converter)(ptr); |
| 158 |
} |
| 159 |
|
| 160 |
/* Dynamic pointer casting. Down an inheritance hierarchy */ |
| 161 |
SWIGRUNTIME(swig_type_info *) |
| 162 |
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) |
| 163 |
{ |
| 164 |
swig_type_info *lastty = ty; |
| 165 |
if (!ty || !ty->dcast) return ty; |
| 166 |
while (ty && (ty->dcast)) { |
| 167 |
ty = (*ty->dcast)(ptr); |
| 168 |
if (ty) lastty = ty; |
| 169 |
} |
| 170 |
return lastty; |
| 171 |
} |
| 172 |
|
| 173 |
/* Search for a swig_type_info structure */ |
| 174 |
SWIGRUNTIME(swig_type_info *) |
| 175 |
SWIG_TypeQuery(const char *name) { |
| 176 |
swig_type_info *ty = swig_type_list; |
| 177 |
while (ty) { |
| 178 |
if (ty->str && (strcmp(name,ty->str) == 0)) return ty; |
| 179 |
if (ty->name && (strcmp(name,ty->name) == 0)) return ty; |
| 180 |
ty = ty->prev; |
| 181 |
} |
| 182 |
return 0; |
| 183 |
} |
| 184 |
|
| 185 |
/* Set the clientdata field for a type */ |
| 186 |
SWIGRUNTIME(void) |
| 187 |
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
| 188 |
swig_type_info *tc, *equiv; |
| 189 |
if (ti->clientdata) return; |
| 190 |
ti->clientdata = clientdata; |
| 191 |
equiv = ti->next; |
| 192 |
while (equiv) { |
| 193 |
if (!equiv->converter) { |
| 194 |
tc = swig_type_list; |
| 195 |
while (tc) { |
| 196 |
if ((strcmp(tc->name, equiv->name) == 0)) |
| 197 |
SWIG_TypeClientData(tc,clientdata); |
| 198 |
tc = tc->prev; |
| 199 |
} |
| 200 |
} |
| 201 |
equiv = equiv->next; |
| 202 |
} |
| 203 |
} |
| 204 |
#endif |
| 205 |
|
| 206 |
#ifdef __cplusplus |
| 207 |
} |
| 208 |
|
| 209 |
#endif |
| 210 |
|
| 211 |
/* ----------------------------------------------------------------------------- |
| 212 |
* perl5.swg |
| 213 |
* |
| 214 |
* Perl5 runtime library |
| 215 |
* $Header: /cvs/projects/SWIG/Lib/perl5/Attic/perlrun.swg,v 1.1.2.10 2002/09/02 22:54:30 beazley Exp $ |
| 216 |
* ----------------------------------------------------------------------------- */ |
| 217 |
|
| 218 |
#define SWIGPERL |
| 219 |
#define SWIGPERL5 |
| 220 |
#ifdef __cplusplus |
| 221 |
/* Needed on some windows machines---since MS plays funny |
| 222 |
games with the header files under C++ */ |
| 223 |
#include <math.h> |
| 224 |
#include <stdlib.h> |
| 225 |
extern "C" { |
| 226 |
#endif |
| 227 |
#include "EXTERN.h" |
| 228 |
#include "perl.h" |
| 229 |
#include "XSUB.h" |
| 230 |
|
| 231 |
/* Get rid of free and malloc defined by perl */ |
| 232 |
#undef free |
| 233 |
#undef malloc |
| 234 |
|
| 235 |
#ifndef pTHX_ |
| 236 |
#define pTHX_ |
| 237 |
#endif |
| 238 |
|
| 239 |
#include <string.h> |
| 240 |
#ifdef __cplusplus |
| 241 |
} |
| 242 |
#endif |
| 243 |
|
| 244 |
/* Macro to call an XS function */ |
| 245 |
|
| 246 |
#ifdef PERL_OBJECT |
| 247 |
#define SWIG_CALLXS(_name) _name(cv,pPerl) |
| 248 |
#else |
| 249 |
#ifndef MULTIPLICITY |
| 250 |
#define SWIG_CALLXS(_name) _name(cv) |
| 251 |
#else |
| 252 |
#define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) |
| 253 |
#endif |
| 254 |
#endif |
| 255 |
|
| 256 |
/* Macros for low-level exception handling */ |
| 257 |
#define SWIG_fail goto fail |
| 258 |
#define SWIG_croak(x) while ((_swigerr = (const char *) x)) goto fail |
| 259 |
#define SWIG_MAX_ERRMSG 256 |
| 260 |
|
| 261 |
/* Note: SwigMagicFuncHack is a typedef used to get the C++ |
| 262 |
compiler to just shut up already */ |
| 263 |
|
| 264 |
#ifdef PERL_OBJECT |
| 265 |
#define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this; |
| 266 |
typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); |
| 267 |
|
| 268 |
#ifdef __cplusplus |
| 269 |
extern "C" { |
| 270 |
#endif |
| 271 |
typedef int (CPerlObj::*SwigMagicFuncHack)(SV *, MAGIC *); |
| 272 |
#ifdef __cplusplus |
| 273 |
} |
| 274 |
#endif |
| 275 |
|
| 276 |
#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) |
| 277 |
#define SWIGCLASS_STATIC |
| 278 |
#else |
| 279 |
#define MAGIC_PPERL |
| 280 |
#define SWIGCLASS_STATIC static |
| 281 |
#ifndef MULTIPLICITY |
| 282 |
#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) |
| 283 |
typedef int (*SwigMagicFunc)(SV *, MAGIC *); |
| 284 |
|
| 285 |
#ifdef __cplusplus |
| 286 |
extern "C" { |
| 287 |
#endif |
| 288 |
typedef int (*SwigMagicFuncHack)(SV *, MAGIC *); |
| 289 |
#ifdef __cplusplus |
| 290 |
} |
| 291 |
#endif |
| 292 |
|
| 293 |
|
| 294 |
#else |
| 295 |
#define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) |
| 296 |
typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); |
| 297 |
#ifdef __cplusplus |
| 298 |
extern "C" { |
| 299 |
#endif |
| 300 |
typedef int (*SwigMagicFuncHack)(struct interpreter *, SV *, MAGIC *); |
| 301 |
#ifdef __cplusplus |
| 302 |
} |
| 303 |
#endif |
| 304 |
|
| 305 |
#endif |
| 306 |
#endif |
| 307 |
|
| 308 |
#if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE) |
| 309 |
#define PerlIO_exportFILE(fh,fl) (FILE*)(fh) |
| 310 |
#endif |
| 311 |
|
| 312 |
/* Modifications for newer Perl 5.005 releases */ |
| 313 |
|
| 314 |
#if !defined(PERL_REVISION) || ((PERL_REVISION >= 5) && ((PERL_VERSION < 5) || ((PERL_VERSION == 5) && (PERL_SUBVERSION < 50)))) |
| 315 |
#ifndef PL_sv_yes |
| 316 |
#define PL_sv_yes sv_yes |
| 317 |
#endif |
| 318 |
#ifndef PL_sv_undef |
| 319 |
#define PL_sv_undef sv_undef |
| 320 |
#endif |
| 321 |
#ifndef PL_na |
| 322 |
#define PL_na na |
| 323 |
#endif |
| 324 |
#endif |
| 325 |
|
| 326 |
#include <stdlib.h> |
| 327 |
|
| 328 |
#ifdef __cplusplus |
| 329 |
extern "C" { |
| 330 |
#endif |
| 331 |
|
| 332 |
#ifdef SWIG_NOINCLUDE |
| 333 |
|
| 334 |
#ifndef PERL_OBJECT |
| 335 |
extern int SWIG_ConvertPtr(SV *, void **, swig_type_info *, int flags); |
| 336 |
extern void SWIG_MakePtr(SV *, void *, swig_type_info *, int flags); |
| 337 |
#else |
| 338 |
extern int _SWIG_ConvertPtr(CPerlObj *, SV *, void **, swig_type_info *,int flags); |
| 339 |
extern void _SWIG_MakePtr(CPerlObj *, SV *, void *, swig_type_info *, int flags); |
| 340 |
#define SWIG_ConvertPtr(a,b,c,d) _SWIG_ConvertPtr(pPerl,a,b,c,d) |
| 341 |
#define SWIG_MakePtr(a,b,c,d) _SWIG_MakePtr(pPerl,a,b,c,d) |
| 342 |
#endif |
| 343 |
|
| 344 |
#else |
| 345 |
|
| 346 |
/* Function for getting a pointer value */ |
| 347 |
|
| 348 |
#ifndef PERL_OBJECT |
| 349 |
SWIGRUNTIME(int) |
| 350 |
SWIG_ConvertPtr(SV *sv, void **ptr, swig_type_info *_t, int flags) |
| 351 |
#else |
| 352 |
#define SWIG_ConvertPtr(a,b,c,d) _SWIG_ConvertPtr(pPerl,a,b,c,d) |
| 353 |
SWIGRUNTIME(int) |
| 354 |
_SWIG_ConvertPtr(CPerlObj *pPerl, SV *sv, void **ptr, swig_type_info *_t, int flags) |
| 355 |
#endif |
| 356 |
{ |
| 357 |
char *_c; |
| 358 |
swig_type_info *tc; |
| 359 |
IV tmp; |
| 360 |
|
| 361 |
/* If magical, apply more magic */ |
| 362 |
if (SvGMAGICAL(sv)) |
| 363 |
mg_get(sv); |
| 364 |
|
| 365 |
/* Check to see if this is an object */ |
| 366 |
if (sv_isobject(sv)) { |
| 367 |
SV *tsv = (SV*) SvRV(sv); |
| 368 |
if ((SvTYPE(tsv) == SVt_PVHV)) { |
| 369 |
MAGIC *mg; |
| 370 |
if (SvMAGICAL(tsv)) { |
| 371 |
mg = mg_find(tsv,'P'); |
| 372 |
if (mg) { |
| 373 |
SV *rsv = mg->mg_obj; |
| 374 |
if (sv_isobject(rsv)) { |
| 375 |
tmp = SvIV((SV*)SvRV(rsv)); |
| 376 |
} |
| 377 |
} |
| 378 |
} else { |
| 379 |
return -1; |
| 380 |
} |
| 381 |
} else { |
| 382 |
tmp = SvIV((SV*)SvRV(sv)); |
| 383 |
} |
| 384 |
if (!_t) { |
| 385 |
*(ptr) = (void *) tmp; |
| 386 |
return 0; |
| 387 |
} |
| 388 |
} else if (! SvOK(sv)) { /* Check for undef */ |
| 389 |
*(ptr) = (void *) 0; |
| 390 |
return 0; |
| 391 |
} else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ |
| 392 |
*(ptr) = (void *) 0; |
| 393 |
if (!SvROK(sv)) |
| 394 |
return 0; |
| 395 |
else |
| 396 |
return -1; |
| 397 |
} else { /* Don't know what it is */ |
| 398 |
*(ptr) = (void *) 0; |
| 399 |
return -1; |
| 400 |
} |
| 401 |
if (_t) { |
| 402 |
/* Now see if the types match */ |
| 403 |
_c = HvNAME(SvSTASH(SvRV(sv))); |
| 404 |
tc = SWIG_TypeCheck(_c,_t); |
| 405 |
if (!tc) { |
| 406 |
*ptr = (void *) tmp; |
| 407 |
return -1; |
| 408 |
} |
| 409 |
*ptr = SWIG_TypeCast(tc,(void *)tmp); |
| 410 |
return 0; |
| 411 |
} |
| 412 |
*ptr = (void *) tmp; |
| 413 |
return 0; |
| 414 |
} |
| 415 |
#ifndef PERL_OBJECT |
| 416 |
SWIGRUNTIME(void) |
| 417 |
SWIG_MakePtr(SV *sv, void *ptr, swig_type_info *t,int flags) |
| 418 |
#else |
| 419 |
#define SWIG_MakePtr(a,b,c,d) _SWIG_MakePtr(pPerl,a,b,c,d) |
| 420 |
SWIGRUNTIME(void) |
| 421 |
_SWIG_MakePtr(CPerlObj *pPerl, SV *sv, void *ptr, swig_type_info *t, int flags) |
| 422 |
#endif |
| 423 |
{ |
| 424 |
sv_setref_pv(sv, (char *) t->name, ptr); |
| 425 |
} |
| 426 |
|
| 427 |
#endif |
| 428 |
|
| 429 |
typedef XS(SwigPerlWrapper); |
| 430 |
typedef SwigPerlWrapper *SwigPerlWrapperPtr; |
| 431 |
|
| 432 |
/* Structure for command table */ |
| 433 |
typedef struct { |
| 434 |
const char *name; |
| 435 |
SwigPerlWrapperPtr wrapper; |
| 436 |
} swig_command_info; |
| 437 |
|
| 438 |
/* Information for constant table */ |
| 439 |
|
| 440 |
#define SWIG_INT 1 |
| 441 |
#define SWIG_FLOAT 2 |
| 442 |
#define SWIG_STRING 3 |
| 443 |
#define SWIG_POINTER 4 |
| 444 |
#define SWIG_BINARY 5 |
| 445 |
|
| 446 |
/* Constant information structure */ |
| 447 |
typedef struct swig_constant_info { |
| 448 |
int type; |
| 449 |
const char *name; |
| 450 |
long lvalue; |
| 451 |
double dvalue; |
| 452 |
void *pvalue; |
| 453 |
swig_type_info **ptype; |
| 454 |
} swig_constant_info; |
| 455 |
|
| 456 |
#ifdef __cplusplus |
| 457 |
} |
| 458 |
#endif |
| 459 |
|
| 460 |
/* Structure for variable table */ |
| 461 |
typedef struct { |
| 462 |
const char *name; |
| 463 |
SwigMagicFunc set; |
| 464 |
SwigMagicFunc get; |
| 465 |
swig_type_info **type; |
| 466 |
} swig_variable_info; |
| 467 |
|
| 468 |
/* Magic variable code */ |
| 469 |
#ifndef PERL_OBJECT |
| 470 |
#define swig_create_magic(s,a,b,c) _swig_create_magic(s,a,b,c) |
| 471 |
#ifndef MULTIPLICITY |
| 472 |
static void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int \ |
| 473 |
(*get)(SV *,MAGIC *)) { |
| 474 |
#else |
| 475 |
static void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*,\ |
| 476 |
SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) { |
| 477 |
#endif |
| 478 |
#else |
| 479 |
#define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c) |
| 480 |
static void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) { |
| 481 |
#endif |
| 482 |
MAGIC *mg; |
| 483 |
sv_magic(sv,sv,'U',(char *) name,strlen(name)); |
| 484 |
mg = mg_find(sv,'U'); |
| 485 |
mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); |
| 486 |
mg->mg_virtual->svt_get = (SwigMagicFuncHack) get; |
| 487 |
mg->mg_virtual->svt_set = (SwigMagicFuncHack) set; |
| 488 |
mg->mg_virtual->svt_len = 0; |
| 489 |
mg->mg_virtual->svt_clear = 0; |
| 490 |
mg->mg_virtual->svt_free = 0; |
| 491 |
} |
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
|
| 496 |
|
| 497 |
|
| 498 |
|
| 499 |
/* -------- TYPES TABLE (BEGIN) -------- */ |
| 500 |
|
| 501 |
#define SWIGTYPE_p_double swig_types[0] |
| 502 |
#define SWIGTYPE_p_int swig_types[1] |
| 503 |
static swig_type_info *swig_types[3]; |
| 504 |
|
| 505 |
/* -------- TYPES TABLE (END) -------- */ |
| 506 |
|
| 507 |
#define SWIG_init boot_Ifeffit |
| 508 |
|
| 509 |
#define SWIG_name "Ifeffit::boot_Ifeffit" |
| 510 |
#define SWIG_prefix "Ifeffit::" |
| 511 |
|
| 512 |
#ifdef __cplusplus |
| 513 |
extern "C" |
| 514 |
#endif |
| 515 |
#ifndef PERL_OBJECT |
| 516 |
#ifndef MULTIPLICITY |
| 517 |
SWIGEXPORT(void) SWIG_init (CV* cv); |
| 518 |
#else |
| 519 |
SWIGEXPORT(void) SWIG_init (pTHXo_ CV* cv); |
| 520 |
#endif |
| 521 |
#else |
| 522 |
SWIGEXPORT(void) SWIG_init (CV *cv, CPerlObj *); |
| 523 |
#endif |
| 524 |
|
| 525 |
|
| 526 |
#include "ifeffit.h" |
| 527 |
|
| 528 |
|
| 529 |
static int *new_Pint() { |
| 530 |
return (int *) calloc(1,sizeof(int)); |
| 531 |
} |
| 532 |
|
| 533 |
static int *copy_Pint(int value) { |
| 534 |
int *self = (int *) calloc(1,sizeof(int)); |
| 535 |
*self = value; |
| 536 |
return self; |
| 537 |
} |
| 538 |
|
| 539 |
static void delete_Pint(int *self) { |
| 540 |
if (self) free(self); |
| 541 |
} |
| 542 |
|
| 543 |
static void Pint_assign(int *self, int value) { |
| 544 |
*self = value; |
| 545 |
} |
| 546 |
|
| 547 |
static int Pint_value(int *self) { |
| 548 |
return *self; |
| 549 |
} |
| 550 |
|
| 551 |
|
| 552 |
static double *new_Pdbl() { |
| 553 |
return (double *) calloc(1,sizeof(double)); |
| 554 |
} |
| 555 |
|
| 556 |
static double *copy_Pdbl(double value) { |
| 557 |
double *self = (double *) calloc(1,sizeof(double)); |
| 558 |
*self = value; |
| 559 |
return self; |
| 560 |
} |
| 561 |
|
| 562 |
static void delete_Pdbl(double *self) { |
| 563 |
if (self) free(self); |
| 564 |
} |
| 565 |
|
| 566 |
static void Pdbl_assign(double *self, double value) { |
| 567 |
*self = value; |
| 568 |
} |
| 569 |
|
| 570 |
static double Pdbl_value(double *self) { |
| 571 |
return *self; |
| 572 |
} |
| 573 |
|
| 574 |
|
| 575 |
static double *new_Parr(int nelements) { |
| 576 |
return (double *) calloc(nelements,sizeof(double)); |
| 577 |
} |
| 578 |
|
| 579 |
static void delete_Parr(double *ary) { |
| 580 |
free(ary); |
| 581 |
} |
| 582 |
|
| 583 |
static double Parr_getitem(double *ary, int index) { |
| 584 |
return ary[index]; |
| 585 |
} |
| 586 |
static void Parr_setitem(double *ary, int index, double value) { |
| 587 |
ary[index] = value; |
| 588 |
} |
| 589 |
|
| 590 |
#ifdef PERL_OBJECT |
| 591 |
#define MAGIC_CLASS _wrap_Ifeffit_var:: |
| 592 |
class _wrap_Ifeffit_var : public CPerlObj { |
| 593 |
public: |
| 594 |
#else |
| 595 |
#define MAGIC_CLASS |
| 596 |
#endif |
| 597 |
SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *sv, MAGIC *mg) { |
| 598 |
MAGIC_PPERL |
| 599 |
sv = sv; mg = mg; |
| 600 |
croak("Value is read-only."); |
| 601 |
return 0; |
| 602 |
} |
| 603 |
|
| 604 |
|
| 605 |
#ifdef PERL_OBJECT |
| 606 |
}; |
| 607 |
#endif |
| 608 |
|
| 609 |
#ifdef __cplusplus |
| 610 |
extern "C" { |
| 611 |
#endif |
| 612 |
XS(_wrap_iff_exec) { |
| 613 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 614 |
const char *_swigerr = _swigmsg; |
| 615 |
{ |
| 616 |
char *arg1 ; |
| 617 |
int result; |
| 618 |
int argvi = 0; |
| 619 |
dXSARGS; |
| 620 |
|
| 621 |
if ((items < 1) || (items > 1)) { |
| 622 |
SWIG_croak("Usage: iff_exec(char *);"); |
| 623 |
} |
| 624 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 625 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 626 |
result = (int)iff_exec(arg1); |
| 627 |
|
| 628 |
ST(argvi) = sv_newmortal(); |
| 629 |
sv_setiv(ST(argvi++), (IV) result); |
| 630 |
XSRETURN(argvi); |
| 631 |
fail: |
| 632 |
(void) _swigerr; |
| 633 |
} |
| 634 |
croak(_swigerr); |
| 635 |
} |
| 636 |
|
| 637 |
|
| 638 |
XS(_wrap_ifeffit) { |
| 639 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 640 |
const char *_swigerr = _swigmsg; |
| 641 |
{ |
| 642 |
char *arg1 ; |
| 643 |
int result; |
| 644 |
int argvi = 0; |
| 645 |
dXSARGS; |
| 646 |
|
| 647 |
if ((items < 1) || (items > 1)) { |
| 648 |
SWIG_croak("Usage: ifeffit(char *);"); |
| 649 |
} |
| 650 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 651 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 652 |
result = (int)ifeffit(arg1); |
| 653 |
|
| 654 |
ST(argvi) = sv_newmortal(); |
| 655 |
sv_setiv(ST(argvi++), (IV) result); |
| 656 |
XSRETURN(argvi); |
| 657 |
fail: |
| 658 |
(void) _swigerr; |
| 659 |
} |
| 660 |
croak(_swigerr); |
| 661 |
} |
| 662 |
|
| 663 |
|
| 664 |
XS(_wrap_iff_get_string) { |
| 665 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 666 |
const char *_swigerr = _swigmsg; |
| 667 |
{ |
| 668 |
char *arg1 ; |
| 669 |
char *arg2 ; |
| 670 |
int result; |
| 671 |
int argvi = 0; |
| 672 |
dXSARGS; |
| 673 |
|
| 674 |
if ((items < 2) || (items > 2)) { |
| 675 |
SWIG_croak("Usage: iff_get_string(char *,char *);"); |
| 676 |
} |
| 677 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 678 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 679 |
if (!SvOK((SV*) ST(1))) arg2 = 0; |
| 680 |
else arg2 = (char *) SvPV(ST(1), PL_na); |
| 681 |
result = (int)iff_get_string(arg1,arg2); |
| 682 |
|
| 683 |
ST(argvi) = sv_newmortal(); |
| 684 |
sv_setiv(ST(argvi++), (IV) result); |
| 685 |
XSRETURN(argvi); |
| 686 |
fail: |
| 687 |
(void) _swigerr; |
| 688 |
} |
| 689 |
croak(_swigerr); |
| 690 |
} |
| 691 |
|
| 692 |
|
| 693 |
XS(_wrap_iff_put_string) { |
| 694 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 695 |
const char *_swigerr = _swigmsg; |
| 696 |
{ |
| 697 |
char *arg1 ; |
| 698 |
char *arg2 ; |
| 699 |
int result; |
| 700 |
int argvi = 0; |
| 701 |
dXSARGS; |
| 702 |
|
| 703 |
if ((items < 2) || (items > 2)) { |
| 704 |
SWIG_croak("Usage: iff_put_string(char *,char *);"); |
| 705 |
} |
| 706 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 707 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 708 |
if (!SvOK((SV*) ST(1))) arg2 = 0; |
| 709 |
else arg2 = (char *) SvPV(ST(1), PL_na); |
| 710 |
result = (int)iff_put_string(arg1,arg2); |
| 711 |
|
| 712 |
ST(argvi) = sv_newmortal(); |
| 713 |
sv_setiv(ST(argvi++), (IV) result); |
| 714 |
XSRETURN(argvi); |
| 715 |
fail: |
| 716 |
(void) _swigerr; |
| 717 |
} |
| 718 |
croak(_swigerr); |
| 719 |
} |
| 720 |
|
| 721 |
|
| 722 |
XS(_wrap_iff_get_scalar) { |
| 723 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 724 |
const char *_swigerr = _swigmsg; |
| 725 |
{ |
| 726 |
char *arg1 ; |
| 727 |
double *arg2 = (double *) 0 ; |
| 728 |
int result; |
| 729 |
int argvi = 0; |
| 730 |
dXSARGS; |
| 731 |
|
| 732 |
if ((items < 2) || (items > 2)) { |
| 733 |
SWIG_croak("Usage: iff_get_scalar(char *,double *);"); |
| 734 |
} |
| 735 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 736 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 737 |
{ |
| 738 |
if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_double,0) < 0) { |
| 739 |
SWIG_croak("Type error in argument 2 of iff_get_scalar. Expected _p_double"); |
| 740 |
} |
| 741 |
} |
| 742 |
result = (int)iff_get_scalar(arg1,arg2); |
| 743 |
|
| 744 |
ST(argvi) = sv_newmortal(); |
| 745 |
sv_setiv(ST(argvi++), (IV) result); |
| 746 |
XSRETURN(argvi); |
| 747 |
fail: |
| 748 |
(void) _swigerr; |
| 749 |
} |
| 750 |
croak(_swigerr); |
| 751 |
} |
| 752 |
|
| 753 |
|
| 754 |
XS(_wrap_iff_put_scalar) { |
| 755 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 756 |
const char *_swigerr = _swigmsg; |
| 757 |
{ |
| 758 |
char *arg1 ; |
| 759 |
double *arg2 = (double *) 0 ; |
| 760 |
int result; |
| 761 |
int argvi = 0; |
| 762 |
dXSARGS; |
| 763 |
|
| 764 |
if ((items < 2) || (items > 2)) { |
| 765 |
SWIG_croak("Usage: iff_put_scalar(char *,double *);"); |
| 766 |
} |
| 767 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 768 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 769 |
{ |
| 770 |
if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_double,0) < 0) { |
| 771 |
SWIG_croak("Type error in argument 2 of iff_put_scalar. Expected _p_double"); |
| 772 |
} |
| 773 |
} |
| 774 |
result = (int)iff_put_scalar(arg1,arg2); |
| 775 |
|
| 776 |
ST(argvi) = sv_newmortal(); |
| 777 |
sv_setiv(ST(argvi++), (IV) result); |
| 778 |
XSRETURN(argvi); |
| 779 |
fail: |
| 780 |
(void) _swigerr; |
| 781 |
} |
| 782 |
croak(_swigerr); |
| 783 |
} |
| 784 |
|
| 785 |
|
| 786 |
XS(_wrap_iff_get_array) { |
| 787 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 788 |
const char *_swigerr = _swigmsg; |
| 789 |
{ |
| 790 |
char *arg1 ; |
| 791 |
double *arg2 = (double *) 0 ; |
| 792 |
int result; |
| 793 |
int argvi = 0; |
| 794 |
dXSARGS; |
| 795 |
|
| 796 |
if ((items < 2) || (items > 2)) { |
| 797 |
SWIG_croak("Usage: iff_get_array(char *,double *);"); |
| 798 |
} |
| 799 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 800 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 801 |
{ |
| 802 |
if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_double,0) < 0) { |
| 803 |
SWIG_croak("Type error in argument 2 of iff_get_array. Expected _p_double"); |
| 804 |
} |
| 805 |
} |
| 806 |
result = (int)iff_get_array(arg1,arg2); |
| 807 |
|
| 808 |
ST(argvi) = sv_newmortal(); |
| 809 |
sv_setiv(ST(argvi++), (IV) result); |
| 810 |
XSRETURN(argvi); |
| 811 |
fail: |
| 812 |
(void) _swigerr; |
| 813 |
} |
| 814 |
croak(_swigerr); |
| 815 |
} |
| 816 |
|
| 817 |
|
| 818 |
XS(_wrap_iff_put_array) { |
| 819 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 820 |
const char *_swigerr = _swigmsg; |
| 821 |
{ |
| 822 |
char *arg1 ; |
| 823 |
int *arg2 = (int *) 0 ; |
| 824 |
double *arg3 = (double *) 0 ; |
| 825 |
int result; |
| 826 |
int argvi = 0; |
| 827 |
dXSARGS; |
| 828 |
|
| 829 |
if ((items < 3) || (items > 3)) { |
| 830 |
SWIG_croak("Usage: iff_put_array(char *,int *,double *);"); |
| 831 |
} |
| 832 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 833 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 834 |
{ |
| 835 |
if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_int,0) < 0) { |
| 836 |
SWIG_croak("Type error in argument 2 of iff_put_array. Expected _p_int"); |
| 837 |
} |
| 838 |
} |
| 839 |
{ |
| 840 |
if (SWIG_ConvertPtr(ST(2), (void **) &arg3, SWIGTYPE_p_double,0) < 0) { |
| 841 |
SWIG_croak("Type error in argument 3 of iff_put_array. Expected _p_double"); |
| 842 |
} |
| 843 |
} |
| 844 |
result = (int)iff_put_array(arg1,arg2,arg3); |
| 845 |
|
| 846 |
ST(argvi) = sv_newmortal(); |
| 847 |
sv_setiv(ST(argvi++), (IV) result); |
| 848 |
XSRETURN(argvi); |
| 849 |
fail: |
| 850 |
(void) _swigerr; |
| 851 |
} |
| 852 |
croak(_swigerr); |
| 853 |
} |
| 854 |
|
| 855 |
|
| 856 |
XS(_wrap_iff_get_echo) { |
| 857 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 858 |
const char *_swigerr = _swigmsg; |
| 859 |
{ |
| 860 |
char *arg1 ; |
| 861 |
int result; |
| 862 |
int argvi = 0; |
| 863 |
dXSARGS; |
| 864 |
|
| 865 |
if ((items < 1) || (items > 1)) { |
| 866 |
SWIG_croak("Usage: iff_get_echo(char *);"); |
| 867 |
} |
| 868 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 869 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 870 |
result = (int)iff_get_echo(arg1); |
| 871 |
|
| 872 |
ST(argvi) = sv_newmortal(); |
| 873 |
sv_setiv(ST(argvi++), (IV) result); |
| 874 |
XSRETURN(argvi); |
| 875 |
fail: |
| 876 |
(void) _swigerr; |
| 877 |
} |
| 878 |
croak(_swigerr); |
| 879 |
} |
| 880 |
|
| 881 |
|
| 882 |
XS(_wrap_iff_strval) { |
| 883 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 884 |
const char *_swigerr = _swigmsg; |
| 885 |
{ |
| 886 |
char *arg1 ; |
| 887 |
char *result; |
| 888 |
int argvi = 0; |
| 889 |
dXSARGS; |
| 890 |
|
| 891 |
if ((items < 1) || (items > 1)) { |
| 892 |
SWIG_croak("Usage: iff_strval(char *);"); |
| 893 |
} |
| 894 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 895 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 896 |
result = (char *)iff_strval(arg1); |
| 897 |
|
| 898 |
ST(argvi) = sv_newmortal(); |
| 899 |
if (result) { |
| 900 |
sv_setpv((SV*)ST(argvi++), (char *) result); |
| 901 |
}else { |
| 902 |
sv_setsv((SV*)ST(argvi++), &PL_sv_undef); |
| 903 |
} |
| 904 |
XSRETURN(argvi); |
| 905 |
fail: |
| 906 |
(void) _swigerr; |
| 907 |
} |
| 908 |
croak(_swigerr); |
| 909 |
} |
| 910 |
|
| 911 |
|
| 912 |
XS(_wrap_iff_scaval) { |
| 913 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 914 |
const char *_swigerr = _swigmsg; |
| 915 |
{ |
| 916 |
char *arg1 ; |
| 917 |
double result; |
| 918 |
int argvi = 0; |
| 919 |
dXSARGS; |
| 920 |
|
| 921 |
if ((items < 1) || (items > 1)) { |
| 922 |
SWIG_croak("Usage: iff_scaval(char *);"); |
| 923 |
} |
| 924 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 925 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 926 |
result = (double)iff_scaval(arg1); |
| 927 |
|
| 928 |
ST(argvi) = sv_newmortal(); |
| 929 |
sv_setnv(ST(argvi++), (double) result); |
| 930 |
XSRETURN(argvi); |
| 931 |
fail: |
| 932 |
(void) _swigerr; |
| 933 |
} |
| 934 |
croak(_swigerr); |
| 935 |
} |
| 936 |
|
| 937 |
|
| 938 |
XS(_wrap_ifeffit_) { |
| 939 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 940 |
const char *_swigerr = _swigmsg; |
| 941 |
{ |
| 942 |
char *arg1 ; |
| 943 |
int arg2 ; |
| 944 |
int result; |
| 945 |
int argvi = 0; |
| 946 |
dXSARGS; |
| 947 |
|
| 948 |
if ((items < 2) || (items > 2)) { |
| 949 |
SWIG_croak("Usage: ifeffit_(char *,int);"); |
| 950 |
} |
| 951 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 952 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 953 |
arg2 = (int) SvIV(ST(1)); |
| 954 |
result = (int)ifeffit_(arg1,arg2); |
| 955 |
|
| 956 |
ST(argvi) = sv_newmortal(); |
| 957 |
sv_setiv(ST(argvi++), (IV) result); |
| 958 |
XSRETURN(argvi); |
| 959 |
fail: |
| 960 |
(void) _swigerr; |
| 961 |
} |
| 962 |
croak(_swigerr); |
| 963 |
} |
| 964 |
|
| 965 |
|
| 966 |
XS(_wrap_iffgetstr_) { |
| 967 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 968 |
const char *_swigerr = _swigmsg; |
| 969 |
{ |
| 970 |
char *arg1 ; |
| 971 |
char *arg2 ; |
| 972 |
int arg3 ; |
| 973 |
int arg4 ; |
| 974 |
int result; |
| 975 |
int argvi = 0; |
| 976 |
dXSARGS; |
| 977 |
|
| 978 |
if ((items < 4) || (items > 4)) { |
| 979 |
SWIG_croak("Usage: iffgetstr_(char *,char *,int,int);"); |
| 980 |
} |
| 981 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 982 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 983 |
if (!SvOK((SV*) ST(1))) arg2 = 0; |
| 984 |
else arg2 = (char *) SvPV(ST(1), PL_na); |
| 985 |
arg3 = (int) SvIV(ST(2)); |
| 986 |
arg4 = (int) SvIV(ST(3)); |
| 987 |
result = (int)iffgetstr_(arg1,arg2,arg3,arg4); |
| 988 |
|
| 989 |
ST(argvi) = sv_newmortal(); |
| 990 |
sv_setiv(ST(argvi++), (IV) result); |
| 991 |
XSRETURN(argvi); |
| 992 |
fail: |
| 993 |
(void) _swigerr; |
| 994 |
} |
| 995 |
croak(_swigerr); |
| 996 |
} |
| 997 |
|
| 998 |
|
| 999 |
XS(_wrap_iffgetsca_) { |
| 1000 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1001 |
const char *_swigerr = _swigmsg; |
| 1002 |
{ |
| 1003 |
char *arg1 ; |
| 1004 |
double *arg2 = (double *) 0 ; |
| 1005 |
int arg3 ; |
| 1006 |
int result; |
| 1007 |
int argvi = 0; |
| 1008 |
dXSARGS; |
| 1009 |
|
| 1010 |
if ((items < 3) || (items > 3)) { |
| 1011 |
SWIG_croak("Usage: iffgetsca_(char *,double *,int);"); |
| 1012 |
} |
| 1013 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 1014 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 1015 |
{ |
| 1016 |
if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_double,0) < 0) { |
| 1017 |
SWIG_croak("Type error in argument 2 of iffgetsca_. Expected _p_double"); |
| 1018 |
} |
| 1019 |
} |
| 1020 |
arg3 = (int) SvIV(ST(2)); |
| 1021 |
result = (int)iffgetsca_(arg1,arg2,arg3); |
| 1022 |
|
| 1023 |
ST(argvi) = sv_newmortal(); |
| 1024 |
sv_setiv(ST(argvi++), (IV) result); |
| 1025 |
XSRETURN(argvi); |
| 1026 |
fail: |
| 1027 |
(void) _swigerr; |
| 1028 |
} |
| 1029 |
croak(_swigerr); |
| 1030 |
} |
| 1031 |
|
| 1032 |
|
| 1033 |
XS(_wrap_iffgetarr_) { |
| 1034 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1035 |
const char *_swigerr = _swigmsg; |
| 1036 |
{ |
| 1037 |
char *arg1 ; |
| 1038 |
double *arg2 = (double *) 0 ; |
| 1039 |
int arg3 ; |
| 1040 |
int result; |
| 1041 |
int argvi = 0; |
| 1042 |
dXSARGS; |
| 1043 |
|
| 1044 |
if ((items < 3) || (items > 3)) { |
| 1045 |
SWIG_croak("Usage: iffgetarr_(char *,double *,int);"); |
| 1046 |
} |
| 1047 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 1048 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 1049 |
{ |
| 1050 |
if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_double,0) < 0) { |
| 1051 |
SWIG_croak("Type error in argument 2 of iffgetarr_. Expected _p_double"); |
| 1052 |
} |
| 1053 |
} |
| 1054 |
arg3 = (int) SvIV(ST(2)); |
| 1055 |
result = (int)iffgetarr_(arg1,arg2,arg3); |
| 1056 |
|
| 1057 |
ST(argvi) = sv_newmortal(); |
| 1058 |
sv_setiv(ST(argvi++), (IV) result); |
| 1059 |
XSRETURN(argvi); |
| 1060 |
fail: |
| 1061 |
(void) _swigerr; |
| 1062 |
} |
| 1063 |
croak(_swigerr); |
| 1064 |
} |
| 1065 |
|
| 1066 |
|
| 1067 |
XS(_wrap_iffputarr_) { |
| 1068 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1069 |
const char *_swigerr = _swigmsg; |
| 1070 |
{ |
| 1071 |
char *arg1 ; |
| 1072 |
int *arg2 = (int *) 0 ; |
| 1073 |
double *arg3 = (double *) 0 ; |
| 1074 |
int arg4 ; |
| 1075 |
int result; |
| 1076 |
int argvi = 0; |
| 1077 |
dXSARGS; |
| 1078 |
|
| 1079 |
if ((items < 4) || (items > 4)) { |
| 1080 |
SWIG_croak("Usage: iffputarr_(char *,int *,double *,int);"); |
| 1081 |
} |
| 1082 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 1083 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 1084 |
{ |
| 1085 |
if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_int,0) < 0) { |
| 1086 |
SWIG_croak("Type error in argument 2 of iffputarr_. Expected _p_int"); |
| 1087 |
} |
| 1088 |
} |
| 1089 |
{ |
| 1090 |
if (SWIG_ConvertPtr(ST(2), (void **) &arg3, SWIGTYPE_p_double,0) < 0) { |
| 1091 |
SWIG_croak("Type error in argument 3 of iffputarr_. Expected _p_double"); |
| 1092 |
} |
| 1093 |
} |
| 1094 |
arg4 = (int) SvIV(ST(3)); |
| 1095 |
result = (int)iffputarr_(arg1,arg2,arg3,arg4); |
| 1096 |
|
| 1097 |
ST(argvi) = sv_newmortal(); |
| 1098 |
sv_setiv(ST(argvi++), (IV) result); |
| 1099 |
XSRETURN(argvi); |
| 1100 |
fail: |
| 1101 |
(void) _swigerr; |
| 1102 |
} |
| 1103 |
croak(_swigerr); |
| 1104 |
} |
| 1105 |
|
| 1106 |
|
| 1107 |
XS(_wrap_iffgetecho_) { |
| 1108 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1109 |
const char *_swigerr = _swigmsg; |
| 1110 |
{ |
| 1111 |
char *arg1 ; |
| 1112 |
int arg2 ; |
| 1113 |
int result; |
| 1114 |
int argvi = 0; |
| 1115 |
dXSARGS; |
| 1116 |
|
| 1117 |
if ((items < 2) || (items > 2)) { |
| 1118 |
SWIG_croak("Usage: iffgetecho_(char *,int);"); |
| 1119 |
} |
| 1120 |
if (!SvOK((SV*) ST(0))) arg1 = 0; |
| 1121 |
else arg1 = (char *) SvPV(ST(0), PL_na); |
| 1122 |
arg2 = (int) SvIV(ST(1)); |
| 1123 |
result = (int)iffgetecho_(arg1,arg2); |
| 1124 |
|
| 1125 |
ST(argvi) = sv_newmortal(); |
| 1126 |
sv_setiv(ST(argvi++), (IV) result); |
| 1127 |
XSRETURN(argvi); |
| 1128 |
fail: |
| 1129 |
(void) _swigerr; |
| 1130 |
} |
| 1131 |
croak(_swigerr); |
| 1132 |
} |
| 1133 |
|
| 1134 |
|
| 1135 |
XS(_wrap_new_Pint) { |
| 1136 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1137 |
const char *_swigerr = _swigmsg; |
| 1138 |
{ |
| 1139 |
int *result; |
| 1140 |
int argvi = 0; |
| 1141 |
dXSARGS; |
| 1142 |
|
| 1143 |
if ((items < 0) || (items > 0)) { |
| 1144 |
SWIG_croak("Usage: new_Pint();"); |
| 1145 |
} |
| 1146 |
result = (int *)new_Pint(); |
| 1147 |
|
| 1148 |
ST(argvi) = sv_newmortal(); |
| 1149 |
SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_int,0); |
| 1150 |
XSRETURN(argvi); |
| 1151 |
fail: |
| 1152 |
(void) _swigerr; |
| 1153 |
} |
| 1154 |
croak(_swigerr); |
| 1155 |
} |
| 1156 |
|
| 1157 |
|
| 1158 |
XS(_wrap_copy_Pint) { |
| 1159 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1160 |
const char *_swigerr = _swigmsg; |
| 1161 |
{ |
| 1162 |
int arg1 ; |
| 1163 |
int *result; |
| 1164 |
int argvi = 0; |
| 1165 |
dXSARGS; |
| 1166 |
|
| 1167 |
if ((items < 1) || (items > 1)) { |
| 1168 |
SWIG_croak("Usage: copy_Pint(value);"); |
| 1169 |
} |
| 1170 |
arg1 = (int) SvIV(ST(0)); |
| 1171 |
result = (int *)copy_Pint(arg1); |
| 1172 |
|
| 1173 |
ST(argvi) = sv_newmortal(); |
| 1174 |
SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_int,0); |
| 1175 |
XSRETURN(argvi); |
| 1176 |
fail: |
| 1177 |
(void) _swigerr; |
| 1178 |
} |
| 1179 |
croak(_swigerr); |
| 1180 |
} |
| 1181 |
|
| 1182 |
|
| 1183 |
XS(_wrap_delete_Pint) { |
| 1184 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1185 |
const char *_swigerr = _swigmsg; |
| 1186 |
{ |
| 1187 |
int *arg1 = (int *) 0 ; |
| 1188 |
int argvi = 0; |
| 1189 |
dXSARGS; |
| 1190 |
|
| 1191 |
if ((items < 1) || (items > 1)) { |
| 1192 |
SWIG_croak("Usage: delete_Pint(self);"); |
| 1193 |
} |
| 1194 |
{ |
| 1195 |
if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_int,0) < 0) { |
| 1196 |
SWIG_croak("Type error in argument 1 of delete_Pint. Expected _p_int"); |
| 1197 |
} |
| 1198 |
} |
| 1199 |
delete_Pint(arg1); |
| 1200 |
|
| 1201 |
|
| 1202 |
XSRETURN(argvi); |
| 1203 |
fail: |
| 1204 |
(void) _swigerr; |
| 1205 |
} |
| 1206 |
croak(_swigerr); |
| 1207 |
} |
| 1208 |
|
| 1209 |
|
| 1210 |
XS(_wrap_Pint_assign) { |
| 1211 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1212 |
const char *_swigerr = _swigmsg; |
| 1213 |
{ |
| 1214 |
int *arg1 = (int *) 0 ; |
| 1215 |
int arg2 ; |
| 1216 |
int argvi = 0; |
| 1217 |
dXSARGS; |
| 1218 |
|
| 1219 |
if ((items < 2) || (items > 2)) { |
| 1220 |
SWIG_croak("Usage: Pint_assign(self,value);"); |
| 1221 |
} |
| 1222 |
{ |
| 1223 |
if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_int,0) < 0) { |
| 1224 |
SWIG_croak("Type error in argument 1 of Pint_assign. Expected _p_int"); |
| 1225 |
} |
| 1226 |
} |
| 1227 |
arg2 = (int) SvIV(ST(1)); |
| 1228 |
Pint_assign(arg1,arg2); |
| 1229 |
|
| 1230 |
|
| 1231 |
XSRETURN(argvi); |
| 1232 |
fail: |
| 1233 |
(void) _swigerr; |
| 1234 |
} |
| 1235 |
croak(_swigerr); |
| 1236 |
} |
| 1237 |
|
| 1238 |
|
| 1239 |
XS(_wrap_Pint_value) { |
| 1240 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1241 |
const char *_swigerr = _swigmsg; |
| 1242 |
{ |
| 1243 |
int *arg1 = (int *) 0 ; |
| 1244 |
int result; |
| 1245 |
int argvi = 0; |
| 1246 |
dXSARGS; |
| 1247 |
|
| 1248 |
if ((items < 1) || (items > 1)) { |
| 1249 |
SWIG_croak("Usage: Pint_value(self);"); |
| 1250 |
} |
| 1251 |
{ |
| 1252 |
if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_int,0) < 0) { |
| 1253 |
SWIG_croak("Type error in argument 1 of Pint_value. Expected _p_int"); |
| 1254 |
} |
| 1255 |
} |
| 1256 |
result = (int)Pint_value(arg1); |
| 1257 |
|
| 1258 |
ST(argvi) = sv_newmortal(); |
| 1259 |
sv_setiv(ST(argvi++), (IV) result); |
| 1260 |
XSRETURN(argvi); |
| 1261 |
fail: |
| 1262 |
(void) _swigerr; |
| 1263 |
} |
| 1264 |
croak(_swigerr); |
| 1265 |
} |
| 1266 |
|
| 1267 |
|
| 1268 |
XS(_wrap_new_Pdbl) { |
| 1269 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1270 |
const char *_swigerr = _swigmsg; |
| 1271 |
{ |
| 1272 |
double *result; |
| 1273 |
int argvi = 0; |
| 1274 |
dXSARGS; |
| 1275 |
|
| 1276 |
if ((items < 0) || (items > 0)) { |
| 1277 |
SWIG_croak("Usage: new_Pdbl();"); |
| 1278 |
} |
| 1279 |
result = (double *)new_Pdbl(); |
| 1280 |
|
| 1281 |
ST(argvi) = sv_newmortal(); |
| 1282 |
SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_double,0); |
| 1283 |
XSRETURN(argvi); |
| 1284 |
fail: |
| 1285 |
(void) _swigerr; |
| 1286 |
} |
| 1287 |
croak(_swigerr); |
| 1288 |
} |
| 1289 |
|
| 1290 |
|
| 1291 |
XS(_wrap_copy_Pdbl) { |
| 1292 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1293 |
const char *_swigerr = _swigmsg; |
| 1294 |
{ |
| 1295 |
double arg1 ; |
| 1296 |
double *result; |
| 1297 |
int argvi = 0; |
| 1298 |
dXSARGS; |
| 1299 |
|
| 1300 |
if ((items < 1) || (items > 1)) { |
| 1301 |
SWIG_croak("Usage: copy_Pdbl(value);"); |
| 1302 |
} |
| 1303 |
arg1 = (double) SvNV(ST(0)); |
| 1304 |
|
| 1305 |
result = (double *)copy_Pdbl(arg1); |
| 1306 |
|
| 1307 |
ST(argvi) = sv_newmortal(); |
| 1308 |
SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_double,0); |
| 1309 |
XSRETURN(argvi); |
| 1310 |
fail: |
| 1311 |
(void) _swigerr; |
| 1312 |
} |
| 1313 |
croak(_swigerr); |
| 1314 |
} |
| 1315 |
|
| 1316 |
|
| 1317 |
XS(_wrap_delete_Pdbl) { |
| 1318 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1319 |
const char *_swigerr = _swigmsg; |
| 1320 |
{ |
| 1321 |
double *arg1 = (double *) 0 ; |
| 1322 |
int argvi = 0; |
| 1323 |
dXSARGS; |
| 1324 |
|
| 1325 |
if ((items < 1) || (items > 1)) { |
| 1326 |
SWIG_croak("Usage: delete_Pdbl(self);"); |
| 1327 |
} |
| 1328 |
{ |
| 1329 |
if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_double,0) < 0) { |
| 1330 |
SWIG_croak("Type error in argument 1 of delete_Pdbl. Expected _p_double"); |
| 1331 |
} |
| 1332 |
} |
| 1333 |
delete_Pdbl(arg1); |
| 1334 |
|
| 1335 |
|
| 1336 |
XSRETURN(argvi); |
| 1337 |
fail: |
| 1338 |
(void) _swigerr; |
| 1339 |
} |
| 1340 |
croak(_swigerr); |
| 1341 |
} |
| 1342 |
|
| 1343 |
|
| 1344 |
XS(_wrap_Pdbl_assign) { |
| 1345 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1346 |
const char *_swigerr = _swigmsg; |
| 1347 |
{ |
| 1348 |
double *arg1 = (double *) 0 ; |
| 1349 |
double arg2 ; |
| 1350 |
int argvi = 0; |
| 1351 |
dXSARGS; |
| 1352 |
|
| 1353 |
if ((items < 2) || (items > 2)) { |
| 1354 |
SWIG_croak("Usage: Pdbl_assign(self,value);"); |
| 1355 |
} |
| 1356 |
{ |
| 1357 |
if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_double,0) < 0) { |
| 1358 |
SWIG_croak("Type error in argument 1 of Pdbl_assign. Expected _p_double"); |
| 1359 |
} |
| 1360 |
} |
| 1361 |
arg2 = (double) SvNV(ST(1)); |
| 1362 |
|
| 1363 |
Pdbl_assign(arg1,arg2); |
| 1364 |
|
| 1365 |
|
| 1366 |
XSRETURN(argvi); |
| 1367 |
fail: |
| 1368 |
(void) _swigerr; |
| 1369 |
} |
| 1370 |
croak(_swigerr); |
| 1371 |
} |
| 1372 |
|
| 1373 |
|
| 1374 |
XS(_wrap_Pdbl_value) { |
| 1375 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1376 |
const char *_swigerr = _swigmsg; |
| 1377 |
{ |
| 1378 |
double *arg1 = (double *) 0 ; |
| 1379 |
double result; |
| 1380 |
int argvi = 0; |
| 1381 |
dXSARGS; |
| 1382 |
|
| 1383 |
if ((items < 1) || (items > 1)) { |
| 1384 |
SWIG_croak("Usage: Pdbl_value(self);"); |
| 1385 |
} |
| 1386 |
{ |
| 1387 |
if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_double,0) < 0) { |
| 1388 |
SWIG_croak("Type error in argument 1 of Pdbl_value. Expected _p_double"); |
| 1389 |
} |
| 1390 |
} |
| 1391 |
result = (double)Pdbl_value(arg1); |
| 1392 |
|
| 1393 |
ST(argvi) = sv_newmortal(); |
| 1394 |
sv_setnv(ST(argvi++), (double) result); |
| 1395 |
XSRETURN(argvi); |
| 1396 |
fail: |
| 1397 |
(void) _swigerr; |
| 1398 |
} |
| 1399 |
croak(_swigerr); |
| 1400 |
} |
| 1401 |
|
| 1402 |
|
| 1403 |
XS(_wrap_new_Parr) { |
| 1404 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1405 |
const char *_swigerr = _swigmsg; |
| 1406 |
{ |
| 1407 |
int arg1 ; |
| 1408 |
double *result; |
| 1409 |
int argvi = 0; |
| 1410 |
dXSARGS; |
| 1411 |
|
| 1412 |
if ((items < 1) || (items > 1)) { |
| 1413 |
SWIG_croak("Usage: new_Parr(nelements);"); |
| 1414 |
} |
| 1415 |
arg1 = (int) SvIV(ST(0)); |
| 1416 |
result = (double *)new_Parr(arg1); |
| 1417 |
|
| 1418 |
ST(argvi) = sv_newmortal(); |
| 1419 |
SWIG_MakePtr(ST(argvi++), (void *) result, SWIGTYPE_p_double,0); |
| 1420 |
XSRETURN(argvi); |
| 1421 |
fail: |
| 1422 |
(void) _swigerr; |
| 1423 |
} |
| 1424 |
croak(_swigerr); |
| 1425 |
} |
| 1426 |
|
| 1427 |
|
| 1428 |
XS(_wrap_delete_Parr) { |
| 1429 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1430 |
const char *_swigerr = _swigmsg; |
| 1431 |
{ |
| 1432 |
double *arg1 = (double *) 0 ; |
| 1433 |
int argvi = 0; |
| 1434 |
dXSARGS; |
| 1435 |
|
| 1436 |
if ((items < 1) || (items > 1)) { |
| 1437 |
SWIG_croak("Usage: delete_Parr(ary);"); |
| 1438 |
} |
| 1439 |
{ |
| 1440 |
if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_double,0) < 0) { |
| 1441 |
SWIG_croak("Type error in argument 1 of delete_Parr. Expected _p_double"); |
| 1442 |
} |
| 1443 |
} |
| 1444 |
delete_Parr(arg1); |
| 1445 |
|
| 1446 |
|
| 1447 |
XSRETURN(argvi); |
| 1448 |
fail: |
| 1449 |
(void) _swigerr; |
| 1450 |
} |
| 1451 |
croak(_swigerr); |
| 1452 |
} |
| 1453 |
|
| 1454 |
|
| 1455 |
XS(_wrap_Parr_getitem) { |
| 1456 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1457 |
const char *_swigerr = _swigmsg; |
| 1458 |
{ |
| 1459 |
double *arg1 = (double *) 0 ; |
| 1460 |
int arg2 ; |
| 1461 |
double result; |
| 1462 |
int argvi = 0; |
| 1463 |
dXSARGS; |
| 1464 |
|
| 1465 |
if ((items < 2) || (items > 2)) { |
| 1466 |
SWIG_croak("Usage: Parr_getitem(ary,index);"); |
| 1467 |
} |
| 1468 |
{ |
| 1469 |
if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_double,0) < 0) { |
| 1470 |
SWIG_croak("Type error in argument 1 of Parr_getitem. Expected _p_double"); |
| 1471 |
} |
| 1472 |
} |
| 1473 |
arg2 = (int) SvIV(ST(1)); |
| 1474 |
result = (double)Parr_getitem(arg1,arg2); |
| 1475 |
|
| 1476 |
ST(argvi) = sv_newmortal(); |
| 1477 |
sv_setnv(ST(argvi++), (double) result); |
| 1478 |
XSRETURN(argvi); |
| 1479 |
fail: |
| 1480 |
(void) _swigerr; |
| 1481 |
} |
| 1482 |
croak(_swigerr); |
| 1483 |
} |
| 1484 |
|
| 1485 |
|
| 1486 |
XS(_wrap_Parr_setitem) { |
| 1487 |
char _swigmsg[SWIG_MAX_ERRMSG] = ""; |
| 1488 |
const char *_swigerr = _swigmsg; |
| 1489 |
{ |
| 1490 |
double *arg1 = (double *) 0 ; |
| 1491 |
int arg2 ; |
| 1492 |
double arg3 ; |
| 1493 |
int argvi = 0; |
| 1494 |
dXSARGS; |
| 1495 |
|
| 1496 |
if ((items < 3) || (items > 3)) { |
| 1497 |
SWIG_croak("Usage: Parr_setitem(ary,index,value);"); |
| 1498 |
} |
| 1499 |
{ |
| 1500 |
if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_double,0) < 0) { |
| 1501 |
SWIG_croak("Type error in argument 1 of Parr_setitem. Expected _p_double"); |
| 1502 |
} |
| 1503 |
} |
| 1504 |
arg2 = (int) SvIV(ST(1)); |
| 1505 |
arg3 = (double) SvNV(ST(2)); |
| 1506 |
|
| 1507 |
Parr_setitem(arg1,arg2,arg3); |
| 1508 |
|
| 1509 |
|
| 1510 |
XSRETURN(argvi); |
| 1511 |
fail: |
| 1512 |
(void) _swigerr; |
| 1513 |
} |
| 1514 |
croak(_swigerr); |
| 1515 |
} |
| 1516 |
|
| 1517 |
|
| 1518 |
|
| 1519 |
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
| 1520 |
|
| 1521 |
static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; |
| 1522 |
static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
| 1523 |
|
| 1524 |
static swig_type_info *swig_types_initial[] = { |
| 1525 |
_swigt__p_double, |
| 1526 |
_swigt__p_int, |
| 1527 |
0 |
| 1528 |
}; |
| 1529 |
|
| 1530 |
|
| 1531 |
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
| 1532 |
|
| 1533 |
static swig_constant_info swig_constants[] = { |
| 1534 |
{0} |
| 1535 |
}; |
| 1536 |
#ifdef __cplusplus |
| 1537 |
} |
| 1538 |
#endif |
| 1539 |
static swig_variable_info swig_variables[] = { |
| 1540 |
{0} |
| 1541 |
}; |
| 1542 |
static swig_command_info swig_commands[] = { |
| 1543 |
{"Ifeffit::iff_exec", _wrap_iff_exec}, |
| 1544 |
{"Ifeffit::iff_ifeffit", _wrap_ifeffit}, |
| 1545 |
{"Ifeffit::iff_get_string", _wrap_iff_get_string}, |
| 1546 |
{"Ifeffit::iff_put_string", _wrap_iff_put_string}, |
| 1547 |
{"Ifeffit::iff_get_scalar", _wrap_iff_get_scalar}, |
| 1548 |
{"Ifeffit::iff_put_scalar", _wrap_iff_put_scalar}, |
| 1549 |
{"Ifeffit::iff_get_array", _wrap_iff_get_array}, |
| 1550 |
{"Ifeffit::iff_put_array", _wrap_iff_put_array}, |
| 1551 |
{"Ifeffit::iff_get_echo", _wrap_iff_get_echo}, |
| 1552 |
{"Ifeffit::iff_strval", _wrap_iff_strval}, |
| 1553 |
{"Ifeffit::iff_scaval", _wrap_iff_scaval}, |
| 1554 |
{"Ifeffit::ifeffit_", _wrap_ifeffit_}, |
| 1555 |
{"Ifeffit::iffgetstr_", _wrap_iffgetstr_}, |
| 1556 |
{"Ifeffit::iffgetsca_", _wrap_iffgetsca_}, |
| 1557 |
{"Ifeffit::iffgetarr_", _wrap_iffgetarr_}, |
| 1558 |
{"Ifeffit::iffputarr_", _wrap_iffputarr_}, |
| 1559 |
{"Ifeffit::iffgetecho_", _wrap_iffgetecho_}, |
| 1560 |
{"Ifeffit::new_Pint", _wrap_new_Pint}, |
| 1561 |
{"Ifeffit::copy_Pint", _wrap_copy_Pint}, |
| 1562 |
{"Ifeffit::delete_Pint", _wrap_delete_Pint}, |
| 1563 |
{"Ifeffit::Pint_assign", _wrap_Pint_assign}, |
| 1564 |
{"Ifeffit::Pint_value", _wrap_Pint_value}, |
| 1565 |
{"Ifeffit::new_Pdbl", _wrap_new_Pdbl}, |
| 1566 |
{"Ifeffit::copy_Pdbl", _wrap_copy_Pdbl}, |
| 1567 |
{"Ifeffit::delete_Pdbl", _wrap_delete_Pdbl}, |
| 1568 |
{"Ifeffit::Pdbl_assign", _wrap_Pdbl_assign}, |
| 1569 |
{"Ifeffit::Pdbl_value", _wrap_Pdbl_value}, |
| 1570 |
{"Ifeffit::new_Parr", _wrap_new_Parr}, |
| 1571 |
{"Ifeffit::delete_Parr", _wrap_delete_Parr}, |
| 1572 |
{"Ifeffit::Parr_getitem", _wrap_Parr_getitem}, |
| 1573 |
{"Ifeffit::Parr_setitem", _wrap_Parr_setitem}, |
| 1574 |
{0,0} |
| 1575 |
}; |
| 1576 |
|
| 1577 |
#ifdef __cplusplus |
| 1578 |
extern "C" |
| 1579 |
#endif |
| 1580 |
|
| 1581 |
XS(SWIG_init) { |
| 1582 |
dXSARGS; |
| 1583 |
int i; |
| 1584 |
static int _init = 0; |
| 1585 |
if (!_init) { |
| 1586 |
for (i = 0; swig_types_initial[i]; i++) { |
| 1587 |
swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); |
| 1588 |
} |
| 1589 |
_init = 1; |
| 1590 |
} |
| 1591 |
|
| 1592 |
/* Install commands */ |
| 1593 |
for (i = 0; swig_commands[i].name; i++) { |
| 1594 |
newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__); |
| 1595 |
} |
| 1596 |
|
| 1597 |
/* Install variables */ |
| 1598 |
for (i = 0; swig_variables[i].name; i++) { |
| 1599 |
SV *sv; |
| 1600 |
sv = perl_get_sv((char*) swig_variables[i].name, TRUE | 0x2); |
| 1601 |
if (swig_variables[i].type) { |
| 1602 |
SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); |
| 1603 |
}else { |
| 1604 |
sv_setiv(sv,(IV) 0); |
| 1605 |
} |
| 1606 |
swig_create_magic(sv, (char *) swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); |
| 1607 |
} |
| 1608 |
|
| 1609 |
/* Install constant */ |
| 1610 |
for (i = 0; swig_constants[i].type; i++) { |
| 1611 |
SV *sv; |
| 1612 |
sv = perl_get_sv((char*)swig_constants[i].name, TRUE | 0x2); |
| 1613 |
switch(swig_constants[i].type) { |
| 1614 |
case SWIG_INT: |
| 1615 |
sv_setiv(sv, (IV) swig_constants[i].lvalue); |
| 1616 |
break; |
| 1617 |
case SWIG_FLOAT: |
| 1618 |
sv_setnv(sv, (double) swig_constants[i].dvalue); |
| 1619 |
break; |
| 1620 |
case SWIG_STRING: |
| 1621 |
sv_setpv(sv, (char *) swig_constants[i].pvalue); |
| 1622 |
break; |
| 1623 |
case SWIG_POINTER: |
| 1624 |
SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); |
| 1625 |
break; |
| 1626 |
case SWIG_BINARY: |
| 1627 |
/* obj = SWIG_NewPackedObj(swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); */ |
| 1628 |
break; |
| 1629 |
default: |
| 1630 |
break; |
| 1631 |
} |
| 1632 |
SvREADONLY_on(sv); |
| 1633 |
} |
| 1634 |
|
| 1635 |
ST(0) = &PL_sv_yes; |
| 1636 |
XSRETURN(1); |
| 1637 |
} |
| 1638 |
|