* wrap/python/libpy.c: Update from Swig 1.3.21.
* HACKING: Update versions.
This commit is contained in:
parent
07ba321e0a
commit
53a0cc7a54
3 changed files with 245 additions and 121 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2004-02-10 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
2004-02-10 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
||||||
|
|
||||||
|
* wrap/python/libpy.c: Update from Swig 1.3.21.
|
||||||
|
* HACKING: Update versions.
|
||||||
|
|
||||||
* src/tgbaalgos/ltl2tgba_fm.cc (ltl_to_tgba_fm): Take an exprop
|
* src/tgbaalgos/ltl2tgba_fm.cc (ltl_to_tgba_fm): Take an exprop
|
||||||
argument. Consider all possible combinations of propositions when
|
argument. Consider all possible combinations of propositions when
|
||||||
generating arcs. Suggested by Jean-Michel Couvreur.
|
generating arcs. Suggested by Jean-Michel Couvreur.
|
||||||
|
|
|
||||||
16
HACKING
16
HACKING
|
|
@ -1,5 +1,5 @@
|
||||||
Bootstraping:
|
Bootstraping from CVS:
|
||||||
=============
|
======================
|
||||||
|
|
||||||
Some files in SPOT's source tree are generated. They are distributed
|
Some files in SPOT's source tree are generated. They are distributed
|
||||||
so that users do not need to tools to rebuild them, but we don't keep
|
so that users do not need to tools to rebuild them, but we don't keep
|
||||||
|
|
@ -9,12 +9,12 @@ conflicts.
|
||||||
Here are the tools you need to bootstrap the CVS tree, or more
|
Here are the tools you need to bootstrap the CVS tree, or more
|
||||||
generally if you plan to regenerate some of the generated files.
|
generally if you plan to regenerate some of the generated files.
|
||||||
|
|
||||||
GNU Autoconf 2.57
|
GNU Autoconf >= 2.57
|
||||||
GNU Automake 1.8
|
GNU Automake >= 1.8
|
||||||
GNU Flex (the version probably doesn't matter much, we used 2.5.4)
|
GNU Flex (the version probably doesn't matter much, we used 2.5.31)
|
||||||
The CVS version of GNU Bison (called 1.875b at the time of writing)
|
The CVS version of GNU Bison (called 1.875c at the time of writing)
|
||||||
SWIG 1.3.19
|
SWIG 1.3.21
|
||||||
Doxygen 1.3.5
|
Doxygen >= 1.3.5
|
||||||
|
|
||||||
Bootstrap the CVS tree by running
|
Bootstrap the CVS tree by running
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,39 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||||
|
* Version 1.3.21
|
||||||
|
*
|
||||||
|
* This file is not intended to be easily readable and contains a number of
|
||||||
|
* coding conventions designed to improve portability and efficiency. Do not make
|
||||||
|
* changes to this file unless you know what you are doing--modify the SWIG
|
||||||
|
* interface file instead.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#define SWIGPYTHON
|
||||||
|
|
||||||
|
#define SWIG_GLOBAL 1
|
||||||
|
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
|
||||||
|
/*************************************************************** -*- c -*-
|
||||||
|
* python/precommon.swg
|
||||||
|
*
|
||||||
|
* Rename all exported symbols from common.swg, to avoid symbol
|
||||||
|
* clashes if multiple interpreters are included
|
||||||
|
*
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
#define SWIG_TypeRegister SWIG_Python_TypeRegister
|
||||||
|
#define SWIG_TypeCheck SWIG_Python_TypeCheck
|
||||||
|
#define SWIG_TypeCast SWIG_Python_TypeCast
|
||||||
|
#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
|
||||||
|
#define SWIG_TypeName SWIG_Python_TypeName
|
||||||
|
#define SWIG_TypeQuery SWIG_Python_TypeQuery
|
||||||
|
#define SWIG_TypeClientData SWIG_Python_TypeClientData
|
||||||
|
#define SWIG_PackData SWIG_Python_PackData
|
||||||
|
#define SWIG_UnpackData SWIG_Python_UnpackData
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* common.swg
|
* common.swg
|
||||||
*
|
*
|
||||||
|
|
@ -16,33 +51,33 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__WIN32__)
|
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
||||||
# if defined(_MSC_VER)
|
# if defined(_MSC_VER) || defined(__GNUC__)
|
||||||
# if defined(STATIC_LINKED)
|
# if defined(STATIC_LINKED)
|
||||||
# define SWIGEXPORT(a) a
|
# define SWIGEXPORT(a) a
|
||||||
# define SWIGIMPORT(a) extern a
|
# define SWIGIMPORT(a) extern a
|
||||||
# else
|
# else
|
||||||
# define SWIGEXPORT(a) __declspec(dllexport) a
|
# define SWIGEXPORT(a) __declspec(dllexport) a
|
||||||
# define SWIGIMPORT(a) extern a
|
# define SWIGIMPORT(a) extern a
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# if defined(__BORLANDC__)
|
# if defined(__BORLANDC__)
|
||||||
# define SWIGEXPORT(a) a _export
|
# define SWIGEXPORT(a) a _export
|
||||||
# define SWIGIMPORT(a) a _export
|
# define SWIGIMPORT(a) a _export
|
||||||
# else
|
# else
|
||||||
# define SWIGEXPORT(a) a
|
# define SWIGEXPORT(a) a
|
||||||
# define SWIGIMPORT(a) a
|
# define SWIGIMPORT(a) a
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define SWIGEXPORT(a) a
|
# define SWIGEXPORT(a) a
|
||||||
# define SWIGIMPORT(a) a
|
# define SWIGIMPORT(a) a
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SWIG_GLOBAL
|
#ifdef SWIG_GLOBAL
|
||||||
#define SWIGRUNTIME(a) SWIGEXPORT(a)
|
# define SWIGRUNTIME(a) SWIGEXPORT(a)
|
||||||
#else
|
#else
|
||||||
#define SWIGRUNTIME(a) static a
|
# define SWIGRUNTIME(a) static a
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
@ -53,10 +88,10 @@ typedef void *(*swig_converter_func)(void *);
|
||||||
typedef struct swig_type_info *(*swig_dycast_func)(void **);
|
typedef struct swig_type_info *(*swig_dycast_func)(void **);
|
||||||
|
|
||||||
typedef struct swig_type_info {
|
typedef struct swig_type_info {
|
||||||
const char *name;
|
const char *name;
|
||||||
swig_converter_func converter;
|
swig_converter_func converter;
|
||||||
const char *str;
|
const char *str;
|
||||||
void *clientdata;
|
void *clientdata;
|
||||||
swig_dycast_func dcast;
|
swig_dycast_func dcast;
|
||||||
struct swig_type_info *next;
|
struct swig_type_info *next;
|
||||||
struct swig_type_info *prev;
|
struct swig_type_info *prev;
|
||||||
|
|
@ -71,6 +106,8 @@ SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
|
||||||
SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
|
SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
|
||||||
SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
|
SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
|
||||||
SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
|
SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
|
||||||
|
SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
|
||||||
|
SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
@ -78,15 +115,14 @@ static swig_type_info *swig_type_list = 0;
|
||||||
|
|
||||||
/* Register a type mapping with the type-checking */
|
/* Register a type mapping with the type-checking */
|
||||||
SWIGRUNTIME(swig_type_info *)
|
SWIGRUNTIME(swig_type_info *)
|
||||||
SWIG_TypeRegister(swig_type_info *ti)
|
SWIG_TypeRegister(swig_type_info *ti) {
|
||||||
{
|
|
||||||
swig_type_info *tc, *head, *ret, *next;
|
swig_type_info *tc, *head, *ret, *next;
|
||||||
/* Check to see if this type has already been registered */
|
/* Check to see if this type has already been registered */
|
||||||
tc = swig_type_list;
|
tc = swig_type_list;
|
||||||
while (tc) {
|
while (tc) {
|
||||||
if (strcmp(tc->name, ti->name) == 0) {
|
if (strcmp(tc->name, ti->name) == 0) {
|
||||||
/* Already exists in the table. Just add additional types to the list */
|
/* Already exists in the table. Just add additional types to the list */
|
||||||
if (tc->clientdata) ti->clientdata = tc->clientdata;
|
if (tc->clientdata) ti->clientdata = tc->clientdata;
|
||||||
head = tc;
|
head = tc;
|
||||||
next = tc->next;
|
next = tc->next;
|
||||||
goto l1;
|
goto l1;
|
||||||
|
|
@ -101,7 +137,7 @@ SWIG_TypeRegister(swig_type_info *ti)
|
||||||
swig_type_list = ti;
|
swig_type_list = ti;
|
||||||
|
|
||||||
/* Build linked lists */
|
/* Build linked lists */
|
||||||
l1:
|
l1:
|
||||||
ret = head;
|
ret = head;
|
||||||
tc = ti + 1;
|
tc = ti + 1;
|
||||||
/* Patch up the rest of the links */
|
/* Patch up the rest of the links */
|
||||||
|
|
@ -111,15 +147,14 @@ SWIG_TypeRegister(swig_type_info *ti)
|
||||||
head = tc;
|
head = tc;
|
||||||
tc++;
|
tc++;
|
||||||
}
|
}
|
||||||
if (next) next->prev = head; /**/
|
if (next) next->prev = head;
|
||||||
head->next = next;
|
head->next = next;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check the typename */
|
/* Check the typename */
|
||||||
SWIGRUNTIME(swig_type_info *)
|
SWIGRUNTIME(swig_type_info *)
|
||||||
SWIG_TypeCheck(char *c, swig_type_info *ty)
|
SWIG_TypeCheck(char *c, swig_type_info *ty) {
|
||||||
{
|
|
||||||
swig_type_info *s;
|
swig_type_info *s;
|
||||||
if (!ty) return 0; /* Void pointer */
|
if (!ty) return 0; /* Void pointer */
|
||||||
s = ty->next; /* First element always just a name */
|
s = ty->next; /* First element always just a name */
|
||||||
|
|
@ -129,13 +164,13 @@ SWIG_TypeCheck(char *c, swig_type_info *ty)
|
||||||
/* Move s to the top of the linked list */
|
/* Move s to the top of the linked list */
|
||||||
s->prev->next = s->next;
|
s->prev->next = s->next;
|
||||||
if (s->next) {
|
if (s->next) {
|
||||||
s->next->prev = s->prev;
|
s->next->prev = s->prev;
|
||||||
}
|
}
|
||||||
/* Insert s as second element in the list */
|
/* Insert s as second element in the list */
|
||||||
s->next = ty->next;
|
s->next = ty->next;
|
||||||
if (ty->next) ty->next->prev = s;
|
if (ty->next) ty->next->prev = s;
|
||||||
ty->next = s;
|
ty->next = s;
|
||||||
s->prev = ty; /**/
|
s->prev = ty;
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
s = s->next;
|
s = s->next;
|
||||||
|
|
@ -145,21 +180,19 @@ SWIG_TypeCheck(char *c, swig_type_info *ty)
|
||||||
|
|
||||||
/* Cast a pointer up an inheritance hierarchy */
|
/* Cast a pointer up an inheritance hierarchy */
|
||||||
SWIGRUNTIME(void *)
|
SWIGRUNTIME(void *)
|
||||||
SWIG_TypeCast(swig_type_info *ty, void *ptr)
|
SWIG_TypeCast(swig_type_info *ty, void *ptr) {
|
||||||
{
|
|
||||||
if ((!ty) || (!ty->converter)) return ptr;
|
if ((!ty) || (!ty->converter)) return ptr;
|
||||||
return (*ty->converter)(ptr);
|
return (*ty->converter)(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dynamic pointer casting. Down an inheritance hierarchy */
|
/* Dynamic pointer casting. Down an inheritance hierarchy */
|
||||||
SWIGRUNTIME(swig_type_info *)
|
SWIGRUNTIME(swig_type_info *)
|
||||||
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
|
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
|
||||||
{
|
|
||||||
swig_type_info *lastty = ty;
|
swig_type_info *lastty = ty;
|
||||||
if (!ty || !ty->dcast) return ty;
|
if (!ty || !ty->dcast) return ty;
|
||||||
while (ty && (ty->dcast)) {
|
while (ty && (ty->dcast)) {
|
||||||
ty = (*ty->dcast)(ptr);
|
ty = (*ty->dcast)(ptr);
|
||||||
if (ty) lastty = ty;
|
if (ty) lastty = ty;
|
||||||
}
|
}
|
||||||
return lastty;
|
return lastty;
|
||||||
}
|
}
|
||||||
|
|
@ -193,20 +226,59 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
||||||
if (!equiv->converter) {
|
if (!equiv->converter) {
|
||||||
tc = swig_type_list;
|
tc = swig_type_list;
|
||||||
while (tc) {
|
while (tc) {
|
||||||
if ((strcmp(tc->name, equiv->name) == 0))
|
if ((strcmp(tc->name, equiv->name) == 0))
|
||||||
SWIG_TypeClientData(tc,clientdata);
|
SWIG_TypeClientData(tc,clientdata);
|
||||||
tc = tc->prev;
|
tc = tc->prev;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
equiv = equiv->next;
|
equiv = equiv->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pack binary data into a string */
|
||||||
|
SWIGRUNTIME(char *)
|
||||||
|
SWIG_PackData(char *c, void *ptr, int sz) {
|
||||||
|
static char hex[17] = "0123456789abcdef";
|
||||||
|
int i;
|
||||||
|
unsigned char *u = (unsigned char *) ptr;
|
||||||
|
register unsigned char uu;
|
||||||
|
for (i = 0; i < sz; i++,u++) {
|
||||||
|
uu = *u;
|
||||||
|
*(c++) = hex[(uu & 0xf0) >> 4];
|
||||||
|
*(c++) = hex[uu & 0xf];
|
||||||
|
}
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Unpack binary data from a string */
|
||||||
|
SWIGRUNTIME(char *)
|
||||||
|
SWIG_UnpackData(char *c, void *ptr, int sz) {
|
||||||
|
register unsigned char uu = 0;
|
||||||
|
register int d;
|
||||||
|
unsigned char *u = (unsigned char *) ptr;
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < sz; i++, u++) {
|
||||||
|
d = *(c++);
|
||||||
|
if ((d >= '0') && (d <= '9'))
|
||||||
|
uu = ((d - '0') << 4);
|
||||||
|
else if ((d >= 'a') && (d <= 'f'))
|
||||||
|
uu = ((d - ('a'-10)) << 4);
|
||||||
|
d = *(c++);
|
||||||
|
if ((d >= '0') && (d <= '9'))
|
||||||
|
uu |= (d - '0');
|
||||||
|
else if ((d >= 'a') && (d <= 'f'))
|
||||||
|
uu |= (d - ('a'-10));
|
||||||
|
*u = uu;
|
||||||
|
}
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* python.swg
|
* python.swg
|
||||||
*
|
*
|
||||||
|
|
@ -247,17 +319,37 @@ typedef struct swig_const_info {
|
||||||
swig_type_info **ptype;
|
swig_type_info **ptype;
|
||||||
} swig_const_info;
|
} swig_const_info;
|
||||||
|
|
||||||
|
/* Common SWIG API */
|
||||||
|
#define SWIG_ConvertPtr(obj, pp, type, flags) \
|
||||||
|
SWIG_Python_ConvertPtr(obj, pp, type, flags)
|
||||||
|
#define SWIG_NewPointerObj(p, type, flags) \
|
||||||
|
SWIG_Python_NewPointerObj(p, type, flags)
|
||||||
|
#define SWIG_MustGetPtr(p, type, argnum, flags) \
|
||||||
|
SWIG_Python_MustGetPtr(p, type, argnum, flags)
|
||||||
|
|
||||||
|
/* Python-specific SWIG API */
|
||||||
|
#define SWIG_newvarlink() \
|
||||||
|
SWIG_Python_newvarlink()
|
||||||
|
#define SWIG_addvarlink(p, name, get_attr, set_attr) \
|
||||||
|
SWIG_Python_addvarlink(p, name, get_attr, set_attr)
|
||||||
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
|
||||||
|
SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
|
||||||
|
#define SWIG_NewPackedObj(ptr, sz, type) \
|
||||||
|
SWIG_Python_NewPackedObj(ptr, sz, type)
|
||||||
|
#define SWIG_InstallConstants(d, constants) \
|
||||||
|
SWIG_Python_InstallConstants(d, constants)
|
||||||
|
|
||||||
#ifdef SWIG_NOINCLUDE
|
#ifdef SWIG_NOINCLUDE
|
||||||
|
|
||||||
SWIGEXPORT(PyObject *) SWIG_newvarlink(void);
|
SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
|
||||||
SWIGEXPORT(void) SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
|
SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
|
||||||
SWIGEXPORT(int) SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
|
SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
|
||||||
SWIGEXPORT(int) SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
|
SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
|
||||||
SWIGEXPORT(char *) SWIG_PackData(char *c, void *, int);
|
SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
|
||||||
SWIGEXPORT(char *) SWIG_UnpackData(char *c, void *, int);
|
SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
|
||||||
SWIGEXPORT(PyObject *) SWIG_NewPointerObj(void *, swig_type_info *,int own);
|
SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
|
||||||
SWIGEXPORT(PyObject *) SWIG_NewPackedObj(void *, int sz, swig_type_info *);
|
SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
|
||||||
SWIGEXPORT(void) SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|
@ -324,7 +416,7 @@ swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
|
||||||
statichere PyTypeObject varlinktype = {
|
statichere PyTypeObject varlinktype = {
|
||||||
PyObject_HEAD_INIT(0)
|
PyObject_HEAD_INIT(0)
|
||||||
0,
|
0,
|
||||||
(char *)"swigvarlink", /* Type name */
|
(char *)"swigvarlink", /* Type name */
|
||||||
sizeof(swig_varlinkobject), /* Basic size */
|
sizeof(swig_varlinkobject), /* Basic size */
|
||||||
0, /* Itemsize */
|
0, /* Itemsize */
|
||||||
0, /* Deallocator */
|
0, /* Deallocator */
|
||||||
|
|
@ -340,7 +432,7 @@ statichere PyTypeObject varlinktype = {
|
||||||
|
|
||||||
/* Create a variable linking object for use later */
|
/* Create a variable linking object for use later */
|
||||||
SWIGRUNTIME(PyObject *)
|
SWIGRUNTIME(PyObject *)
|
||||||
SWIG_newvarlink(void) {
|
SWIG_Python_newvarlink(void) {
|
||||||
swig_varlinkobject *result = 0;
|
swig_varlinkobject *result = 0;
|
||||||
result = PyMem_NEW(swig_varlinkobject,1);
|
result = PyMem_NEW(swig_varlinkobject,1);
|
||||||
varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
|
varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
|
||||||
|
|
@ -352,8 +444,7 @@ SWIG_newvarlink(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SWIGRUNTIME(void)
|
SWIGRUNTIME(void)
|
||||||
SWIG_addvarlink(PyObject *p, char *name,
|
SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
|
||||||
PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
|
|
||||||
swig_varlinkobject *v;
|
swig_varlinkobject *v;
|
||||||
swig_globalvar *gv;
|
swig_globalvar *gv;
|
||||||
v= (swig_varlinkobject *) p;
|
v= (swig_varlinkobject *) p;
|
||||||
|
|
@ -366,49 +457,11 @@ SWIG_addvarlink(PyObject *p, char *name,
|
||||||
v->vars = gv;
|
v->vars = gv;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pack binary data into a string */
|
|
||||||
SWIGRUNTIME(char *)
|
|
||||||
SWIG_PackData(char *c, void *ptr, int sz) {
|
|
||||||
static char hex[17] = "0123456789abcdef";
|
|
||||||
int i;
|
|
||||||
unsigned char *u = (unsigned char *) ptr;
|
|
||||||
register unsigned char uu;
|
|
||||||
for (i = 0; i < sz; i++,u++) {
|
|
||||||
uu = *u;
|
|
||||||
*(c++) = hex[(uu & 0xf0) >> 4];
|
|
||||||
*(c++) = hex[uu & 0xf];
|
|
||||||
}
|
|
||||||
return c;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Unpack binary data from a string */
|
|
||||||
SWIGRUNTIME(char *)
|
|
||||||
SWIG_UnpackData(char *c, void *ptr, int sz) {
|
|
||||||
register unsigned char uu = 0;
|
|
||||||
register int d;
|
|
||||||
unsigned char *u = (unsigned char *) ptr;
|
|
||||||
int i;
|
|
||||||
for (i = 0; i < sz; i++, u++) {
|
|
||||||
d = *(c++);
|
|
||||||
if ((d >= '0') && (d <= '9'))
|
|
||||||
uu = ((d - '0') << 4);
|
|
||||||
else if ((d >= 'a') && (d <= 'f'))
|
|
||||||
uu = ((d - ('a'-10)) << 4);
|
|
||||||
d = *(c++);
|
|
||||||
if ((d >= '0') && (d <= '9'))
|
|
||||||
uu |= (d - '0');
|
|
||||||
else if ((d >= 'a') && (d <= 'f'))
|
|
||||||
uu |= (d - ('a'-10));
|
|
||||||
*u = uu;
|
|
||||||
}
|
|
||||||
return c;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Convert a pointer value */
|
/* Convert a pointer value */
|
||||||
SWIGRUNTIME(int)
|
SWIGRUNTIME(int)
|
||||||
SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
|
SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
|
||||||
swig_type_info *tc;
|
swig_type_info *tc;
|
||||||
char *c;
|
char *c = 0;
|
||||||
static PyObject *SWIG_this = 0;
|
static PyObject *SWIG_this = 0;
|
||||||
int newref = 0;
|
int newref = 0;
|
||||||
PyObject *pyobj = 0;
|
PyObject *pyobj = 0;
|
||||||
|
|
@ -476,17 +529,17 @@ cobject:
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
|
if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
|
||||||
PyObject *zero = PyInt_FromLong(0);
|
PyObject *zero = PyInt_FromLong(0);
|
||||||
PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
|
PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
|
||||||
Py_DECREF(zero);
|
Py_DECREF(zero);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
type_error:
|
type_error:
|
||||||
if (flags & SWIG_POINTER_EXCEPTION) {
|
if (flags & SWIG_POINTER_EXCEPTION) {
|
||||||
if (ty) {
|
if (ty && c) {
|
||||||
char *temp = (char *) malloc(64+strlen(ty->name));
|
char *temp = (char *) malloc(64+strlen(ty->name)+strlen(c));
|
||||||
sprintf(temp,"Type error. Expected %s", ty->name);
|
sprintf(temp,"Type error. Got %s, expected %s", c, ty->name);
|
||||||
PyErr_SetString(PyExc_TypeError, temp);
|
PyErr_SetString(PyExc_TypeError, temp);
|
||||||
free((char *) temp);
|
free((char *) temp);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -496,11 +549,19 @@ type_error:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Convert a pointer value, signal an exception on a type mismatch */
|
||||||
|
SWIGRUNTIME(void *)
|
||||||
|
SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
|
||||||
|
void *result;
|
||||||
|
SWIG_Python_ConvertPtr(obj, &result, ty, flags | SWIG_POINTER_EXCEPTION);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
/* Convert a packed value value */
|
/* Convert a packed value value */
|
||||||
SWIGRUNTIME(int)
|
SWIGRUNTIME(int)
|
||||||
SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
|
SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
|
||||||
swig_type_info *tc;
|
swig_type_info *tc;
|
||||||
char *c;
|
char *c = 0;
|
||||||
|
|
||||||
if ((!obj) || (!PyString_Check(obj))) goto type_error;
|
if ((!obj) || (!PyString_Check(obj))) goto type_error;
|
||||||
c = PyString_AsString(obj);
|
c = PyString_AsString(obj);
|
||||||
|
|
@ -517,9 +578,9 @@ SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int fla
|
||||||
type_error:
|
type_error:
|
||||||
|
|
||||||
if (flags) {
|
if (flags) {
|
||||||
if (ty) {
|
if (ty && c) {
|
||||||
char *temp = (char *) malloc(64+strlen(ty->name));
|
char *temp = (char *) malloc(64+strlen(ty->name)+strlen(c));
|
||||||
sprintf(temp,"Type error. Expected %s", ty->name);
|
sprintf(temp,"Type error. Got %s, expected %s", c, ty->name);
|
||||||
PyErr_SetString(PyExc_TypeError, temp);
|
PyErr_SetString(PyExc_TypeError, temp);
|
||||||
free((char *) temp);
|
free((char *) temp);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -531,7 +592,7 @@ type_error:
|
||||||
|
|
||||||
/* Create a new pointer object */
|
/* Create a new pointer object */
|
||||||
SWIGRUNTIME(PyObject *)
|
SWIGRUNTIME(PyObject *)
|
||||||
SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
|
SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
|
||||||
PyObject *robj;
|
PyObject *robj;
|
||||||
if (!ptr) {
|
if (!ptr) {
|
||||||
Py_INCREF(Py_None);
|
Py_INCREF(Py_None);
|
||||||
|
|
@ -558,9 +619,9 @@ SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
|
||||||
Py_DECREF(args);
|
Py_DECREF(args);
|
||||||
if (inst) {
|
if (inst) {
|
||||||
if (own) {
|
if (own) {
|
||||||
PyObject *n = PyInt_FromLong(1);
|
PyObject *n = PyInt_FromLong(1);
|
||||||
PyObject_SetAttrString(inst,(char*)"thisown",n);
|
PyObject_SetAttrString(inst,(char*)"thisown",n);
|
||||||
Py_DECREF(n);
|
Py_DECREF(n);
|
||||||
}
|
}
|
||||||
robj = inst;
|
robj = inst;
|
||||||
}
|
}
|
||||||
|
|
@ -569,7 +630,7 @@ SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SWIGRUNTIME(PyObject *)
|
SWIGRUNTIME(PyObject *)
|
||||||
SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
|
SWIG_Python_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
|
||||||
char result[1024];
|
char result[1024];
|
||||||
char *r = result;
|
char *r = result;
|
||||||
if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
|
if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
|
||||||
|
|
@ -581,7 +642,7 @@ SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
|
||||||
|
|
||||||
/* Install Constants */
|
/* Install Constants */
|
||||||
SWIGRUNTIME(void)
|
SWIGRUNTIME(void)
|
||||||
SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
|
SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
|
||||||
int i;
|
int i;
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
for (i = 0; constants[i].type; i++) {
|
for (i = 0; constants[i].type; i++) {
|
||||||
|
|
@ -614,12 +675,72 @@ SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Contract support */
|
||||||
|
|
||||||
|
#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
||||||
|
|
||||||
|
static swig_type_info *swig_types[1];
|
||||||
|
|
||||||
|
/* -------- TYPES TABLE (END) -------- */
|
||||||
|
|
||||||
|
|
||||||
|
/*-----------------------------------------------
|
||||||
|
@(target):= _swigrun.so
|
||||||
|
------------------------------------------------*/
|
||||||
|
#define SWIG_init init_swigrun
|
||||||
|
|
||||||
|
#define SWIG_name "_swigrun"
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
static PyMethodDef SwigMethods[] = {
|
||||||
|
{ NULL, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
||||||
|
|
||||||
|
|
||||||
|
static swig_type_info *swig_types_initial[] = {
|
||||||
|
0
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
|
||||||
|
|
||||||
|
static swig_const_info swig_const_table[] = {
|
||||||
|
{0}};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
|
SWIGEXPORT(void) SWIG_init(void) {
|
||||||
|
static PyObject *SWIG_globals = 0;
|
||||||
|
static int typeinit = 0;
|
||||||
|
PyObject *m, *d;
|
||||||
|
int i;
|
||||||
|
if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
|
||||||
|
m = Py_InitModule((char *) SWIG_name, SwigMethods);
|
||||||
|
d = PyModule_GetDict(m);
|
||||||
|
|
||||||
|
if (!typeinit) {
|
||||||
|
for (i = 0; swig_types_initial[i]; i++) {
|
||||||
|
swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
|
||||||
|
}
|
||||||
|
typeinit = 1;
|
||||||
|
}
|
||||||
|
SWIG_InstallConstants(d,swig_const_table);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue