15#ifndef SWIGTEMPLATEDISAMBIGUATOR
16# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
17# define SWIGTEMPLATEDISAMBIGUATOR template
18# elif defined(__HP_aCC)
21# define SWIGTEMPLATEDISAMBIGUATOR template
23# define SWIGTEMPLATEDISAMBIGUATOR
29# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
30# define SWIGINLINE inline
39# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
40# define SWIGUNUSED __attribute__ ((__unused__))
45# define SWIGUNUSED __attribute__ ((__unused__))
51#ifndef SWIG_MSC_UNSUPPRESS_4505
53# pragma warning(disable : 4505)
59# define SWIGUNUSEDPARM(p)
61# define SWIGUNUSEDPARM(p) p SWIGUNUSED
67# define SWIGINTERN static SWIGUNUSED
71#ifndef SWIGINTERNINLINE
72# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
77# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
78# ifndef GCC_HASCLASSVISIBILITY
79# define GCC_HASCLASSVISIBILITY
85# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
86# if defined(STATIC_LINKED)
89# define SWIGEXPORT __declspec(dllexport)
92# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
93# define SWIGEXPORT __attribute__ ((visibility("default")))
102# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
103# define SWIGSTDCALL __stdcall
110#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
111# define _CRT_SECURE_NO_DEPRECATE
115#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
116# define _SCL_SECURE_NO_DEPRECATE
120#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
121# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
129#ifdef __INTEL_COMPILER
130# pragma warning disable 592
133#if __cplusplus >=201103L
134# define SWIG_NULLPTR nullptr
136# define SWIG_NULLPTR NULL
139#define SWIG_UnknownError -1
140#define SWIG_IOError -2
141#define SWIG_RuntimeError -3
142#define SWIG_IndexError -4
143#define SWIG_TypeError -5
144#define SWIG_DivisionByZero -6
145#define SWIG_OverflowError -7
146#define SWIG_SyntaxError -8
147#define SWIG_ValueError -9
148#define SWIG_SystemError -10
149#define SWIG_AttributeError -11
150#define SWIG_MemoryError -12
151#define SWIG_NullReferenceError -13
162#define SWIG_RUNTIME_VERSION "4"
165#ifdef SWIG_TYPE_TABLE
166# define SWIG_QUOTE_STRING(x) #x
167# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
168# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
170# define SWIG_TYPE_TABLE_NAME
183# define SWIGRUNTIME SWIGINTERN
186#ifndef SWIGRUNTIMEINLINE
187# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
191#ifndef SWIG_BUFFER_SIZE
192# define SWIG_BUFFER_SIZE 1024
196#define SWIG_POINTER_DISOWN 0x1
197#define SWIG_CAST_NEW_MEMORY 0x2
198#define SWIG_POINTER_NO_NULL 0x4
199#define SWIG_POINTER_CLEAR 0x8
200#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
203#define SWIG_POINTER_OWN 0x1
287#define SWIG_ERROR (-1)
291#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
293#define SWIG_IsOK(r) (r >= 0)
294#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
297#define SWIG_CASTRANKLIMIT (1 << 8)
299#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
301#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
303#define SWIG_BADOBJ (SWIG_ERROR)
304#define SWIG_OLDOBJ (SWIG_OK)
305#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
306#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
308#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
309#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
310#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
311#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
312#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
313#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
316#if defined(SWIG_CASTRANK_MODE)
317# ifndef SWIG_TypeRank
318# define SWIG_TypeRank unsigned long
320# ifndef SWIG_MAXCASTRANK
321# define SWIG_MAXCASTRANK (2)
323# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
324# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
332# define SWIG_AddCast(r) (r)
333# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
339#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
340 (defined __cplusplus && __cplusplus >= 201103L) || \
341 defined SWIG_HAVE_SNPRINTF) && \
342 !defined SWIG_NO_SNPRINTF
343# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
344# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
350# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
351# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
360typedef void *(*swig_converter_func)(
void *,
int *);
402 const char *f2,
const char *l2) {
403 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
404 while ((*f1 ==
' ') && (f1 != l1)) ++f1;
405 while ((*f2 ==
' ') && (f2 != l2)) ++f2;
406 if (*f1 != *f2)
return (*f1 > *f2) ? 1 : -1;
408 return (
int)((l1 - f1) - (l2 - f2));
418 const char* te = tb + strlen(tb);
420 while (equiv != 0 && *ne) {
421 for (nb = ne; *ne; ++ne) {
422 if (*ne ==
'|')
break;
447 if (strcmp(iter->
type->
name, c) == 0) {
448 if (iter == ty->
cast)
474 if (iter->
type == from) {
475 if (iter == ty->
cast)
507 if (!ty || !ty->
dcast)
return ty;
508 while (ty && (ty->
dcast)) {
509 ty = (*ty->
dcast)(ptr);
535 const char *last_name =
type->str;
538 if (*
s ==
'|') last_name =
s+1;
586 size_t r = iter->
size - 1;
589 size_t i = (l + r) >> 1;
590 const char *iname = iter->
types[i]->
name;
592 int compare = strcmp(name, iname);
594 return iter->
types[i];
610 }
while (iter != end);
637 for (; i < iter->
size; ++i) {
639 return iter->
types[i];
642 }
while (iter != end);
654 static const char hex[17] =
"0123456789abcdef";
655 const unsigned char *u = (
unsigned char *) ptr;
656 const unsigned char *eu = u + sz;
657 for (; u != eu; ++u) {
658 unsigned char uu = *u;
659 *(c++) = hex[(uu & 0xf0) >> 4];
660 *(c++) = hex[uu & 0xf];
670 unsigned char *u = (
unsigned char *) ptr;
671 const unsigned char *eu = u + sz;
672 for (; u != eu; ++u) {
675 if ((d >=
'0') && (d <=
'9'))
676 uu = (
unsigned char)((d -
'0') << 4);
677 else if ((d >=
'a') && (d <=
'f'))
678 uu = (
unsigned char)((d - (
'a'-10)) << 4);
682 if ((d >=
'0') && (d <=
'9'))
683 uu |= (
unsigned char)(d -
'0');
684 else if ((d >=
'a') && (d <=
'f'))
685 uu |= (
unsigned char)(d - (
'a'-10));
699 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
702 if (strlen(name) + 1 > (bsz - (r - buff)))
return 0;
710 if (strcmp(c,
"NULL") == 0) {
723 size_t lname = (name ? strlen(name) : 0);
724 if ((2*sz + 2 + lname) > bsz)
return 0;
728 strncpy(r,name,lname+1);
738 if (strcmp(c,
"NULL") == 0) {
760#ifdef SWIG_MODULE_CLIENTDATA_TYPE
int compare(Agobj_t *l, Agobj_t *r)
#define SWIG_MangledTypeQuery(name)
#define SWIG_TypeQuery(name)
#define SWIG_MODULE_CLIENTDATA_TYPE
#define SWIG_CheckState(r)
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
void *(* swig_converter_func)(void *, int *)
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
struct swig_type_info *(* swig_dycast_func)(void **)
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty)
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
#define SWIGRUNTIMEINLINE
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
struct swig_cast_info * prev
struct swig_cast_info * next
swig_converter_func converter
swig_cast_info ** cast_initial
swig_type_info ** type_initial
struct swig_module_info * next
struct swig_cast_info * cast