SF.net SVN: mahogany: [7316] trunk/M/src/Python
[email protected] Tue, 14 Aug 2007 15:39:51 -0700
| Newsgroups | gmane.mail.mahogany.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7316
http://mahogany.svn.sourceforge.net/mahogany/?rev=7316&view=rev
Author: vadz
Date: 2007-08-14 15:39:49 -0700 (Tue, 14 Aug 2007)
Log Message:
-----------
regenerated with swig 1.3.29
Modified Paths:
--------------
trunk/M/src/Python/HeaderInfo.cpp-swig
trunk/M/src/Python/HeaderInfo.py-swig
trunk/M/src/Python/MDialogs.cpp-swig
trunk/M/src/Python/MDialogs.py-swig
trunk/M/src/Python/MailFolder.cpp-swig
trunk/M/src/Python/MailFolder.py-swig
trunk/M/src/Python/Message.cpp-swig
trunk/M/src/Python/Message.py-swig
trunk/M/src/Python/MimePart.cpp-swig
trunk/M/src/Python/MimePart.py-swig
trunk/M/src/Python/MimeType.cpp-swig
trunk/M/src/Python/MimeType.py-swig
trunk/M/src/Python/SendMessage.cpp-swig
trunk/M/src/Python/SendMessage.py-swig
Modified: trunk/M/src/Python/HeaderInfo.cpp-swig
===================================================================
--- trunk/M/src/Python/HeaderInfo.cpp-swig 2007-08-04 18:35:40 UTC (rev 7315)
+++ trunk/M/src/Python/HeaderInfo.cpp-swig 2007-08-14 22:39:49 UTC (rev 7316)
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.28
+ * Version 1.3.29
*
* 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
@@ -27,12 +27,10 @@
};
#endif
-/***********************************************************************
- *
+/* -----------------------------------------------------------------------------
* This section contains generic SWIG labels for method/variable
* declarations/attributes, and other compiler dependent labels.
- *
- ************************************************************************/
+ * ----------------------------------------------------------------------------- */
/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
@@ -89,7 +87,13 @@
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif
-/* exporting methods for Windows DLLs */
+/* exporting methods */
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+# ifndef GCC_HASCLASSVISIBILITY
+# define GCC_HASCLASSVISIBILITY
+# endif
+#endif
+
#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# if defined(STATIC_LINKED)
@@ -98,7 +102,11 @@
# define SWIGEXPORT __declspec(dllexport)
# endif
# else
-# define SWIGEXPORT
+# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
+# define SWIGEXPORT __attribute__ ((visibility("default")))
+# else
+# define SWIGEXPORT
+# endif
# endif
#endif
@@ -111,17 +119,21 @@
# endif
#endif
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
+
/* MPython.h has to appear first */
#include <MPython.h>
-/***********************************************************************
+/* -----------------------------------------------------------------------------
* swigrun.swg
*
- * This file contains generic CAPI SWIG runtime support for pointer
- * type checking.
- *
- ************************************************************************/
+ * This file contains generic CAPI SWIG runtime support for pointer
+ * type checking.
+ * ----------------------------------------------------------------------------- */
/* This should only be incremented when either the layout of swig_type_info changes,
or for whatever reason, the runtime changes incompatibly */
@@ -346,7 +358,7 @@
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
while ((*f1 == ' ') && (f1 != l1)) ++f1;
while ((*f2 == ' ') && (f2 != l2)) ++f2;
- if (*f1 != *f2) return (int)(*f1 - *f2);
+ if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
}
return (l1 - f1) - (l2 - f2);
}
@@ -708,7 +720,7 @@
/* Add PyOS_snprintf for old Pythons */
#if PY_VERSION_HEX < 0x02020000
# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
-# define PyOS_snprintf _snprintf
+# define PyOS_snprintf _snprintf
# else
# define PyOS_snprintf snprintf
# endif
@@ -718,7 +730,7 @@
#if PY_VERSION_HEX < 0x02020000
#ifndef SWIG_PYBUFFER_SIZE
-#define SWIG_PYBUFFER_SIZE 1024
+# define SWIG_PYBUFFER_SIZE 1024
#endif
static PyObject *
@@ -729,36 +741,62 @@
va_start(ap, fmt);
res = vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
- return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
+ return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
}
#endif
/* Add PyObject_Del for old Pythons */
#if PY_VERSION_HEX < 0x01060000
-#define PyObject_Del(op) PyMem_DEL((op))
+# define PyObject_Del(op) PyMem_DEL((op))
#endif
#ifndef PyObject_DEL
-#define PyObject_DEL PyObject_Del
+# define PyObject_DEL PyObject_Del
#endif
/* A crude PyExc_StopIteration exception for old Pythons */
#if PY_VERSION_HEX < 0x02020000
-#define PyExc_StopIteration PyExc_RuntimeError
-#define PyObject_GenericGetAttr 0
-#define Py_NotImplemented PyExc_RuntimeError
+# ifndef PyExc_StopIteration
+# define PyExc_StopIteration PyExc_RuntimeError
+# endif
+# ifndef PyObject_GenericGetAttr
+# define PyObject_GenericGetAttr 0
+# endif
#endif
+/* Py_NotImplemented is defined in 2.1 and up. */
+#if PY_VERSION_HEX < 0x02010000
+# ifndef Py_NotImplemented
+# define Py_NotImplemented PyExc_RuntimeError
+# endif
+#endif
/* A crude PyString_AsStringAndSize implementation for old Pythons */
#if PY_VERSION_HEX < 0x02010000
-#define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
+# ifndef PyString_AsStringAndSize
+# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
+# endif
#endif
+/* PySequence_Size for old Pythons */
#if PY_VERSION_HEX < 0x02000000
-#define PySequence_Size PySequence_Length
+# ifndef PySequence_Size
+# define PySequence_Size PySequence_Length
+# endif
#endif
+/* PyBool_FromLong for old Pythons */
+#if PY_VERSION_HEX < 0x02030000
+static
+PyObject *PyBool_FromLong(long ok)
+{
+ PyObject *result = ok ? Py_True : Py_False;
+ Py_INCREF(result);
+ return result;
+}
+#endif
+
+
/* -----------------------------------------------------------------------------
* error manipulation
* ----------------------------------------------------------------------------- */
@@ -933,15 +971,17 @@
#endif
-/***********************************************************************
+/* -----------------------------------------------------------------------------
+ * See the LICENSE file for information on copyright, usage and redistribution
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
+ *
* pyrun.swg
*
- * This file contains the runtime support for Python modules
- * and includes code for managing global variables and pointer
- * type checking.
+ * This file contains the runtime support for Python modules
+ * and includes code for managing global variables and pointer
+ * type checking.
*
- * Author : David Beazley ([email protected])
- ************************************************************************/
+ * ----------------------------------------------------------------------------- */
/* Common SWIG API */
@@ -1171,7 +1211,6 @@
return none;
}
-
/* PySwigClientData */
typedef struct {
@@ -1207,7 +1246,7 @@
PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
/* the klass element */
data->klass = obj;
- Py_INCREF(obj);
+ Py_INCREF(data->klass);
/* the newraw method and newargs arguments used to create a new raw instance */
if (PyClass_Check(obj)) {
data->newraw = 0;
@@ -1216,15 +1255,17 @@
} else {
#if (PY_VERSION_HEX < 0x02020000)
data->newraw = 0;
- data->newargs = obj;
- Py_INCREF(obj);
#else
- data->newraw = PyObject_GetAttrString((PyObject*)&PyBaseObject_Type, (char *)"__new__");
- Py_INCREF(data->newraw);
- data->newargs = PyTuple_New(1);
- PyTuple_SetItem(data->newargs, 0, obj);
+ data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
+#endif
+ if (data->newraw) {
+ Py_INCREF(data->newraw);
+ data->newargs = PyTuple_New(1);
+ PyTuple_SetItem(data->newargs, 0, obj);
+ } else {
+ data->newargs = obj;
+ }
Py_INCREF(data->newargs);
-#endif
}
/* the destroy method, aka as the C++ delete method */
data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
@@ -1252,7 +1293,6 @@
SWIGRUNTIME void
PySwigClientData_Del(PySwigClientData* data)
{
- Py_XDECREF(data->klass);
Py_XDECREF(data->newraw);
Py_XDECREF(data->newargs);
Py_XDECREF(data->destroy);
@@ -1305,14 +1345,22 @@
}
SWIGRUNTIME PyObject *
+#ifdef METH_NOARGS
PySwigObject_repr(PySwigObject *v)
+#else
+PySwigObject_repr(PySwigObject *v, PyObject *args)
+#endif
{
const char *name = SWIG_TypePrettyName(v->ty);
PyObject *hex = PySwigObject_hex(v);
PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
Py_DECREF(hex);
if (v->next) {
+#ifdef METH_NOARGS
PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
+#else
+ PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
+#endif
PyString_ConcatAndDel(&repr,nrep);
}
return repr;
@@ -1321,7 +1369,11 @@
SWIGRUNTIME int
PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
{
+#ifdef METH_NOARGS
PyObject *repr = PySwigObject_repr(v);
+#else
+ PyObject *repr = PySwigObject_repr(v, NULL);
+#endif
if (repr) {
fputs(PyString_AsString(repr), fp);
Py_DECREF(repr);
@@ -1470,7 +1522,7 @@
else
{
PySwigObject *sobj = (PySwigObject *)v;
- PyObject *obj = sobj->own ? Py_True : Py_False;
+ PyObject *obj = PyBool_FromLong(sobj->own);
if (val) {
#ifdef METH_NOARGS
if (PyObject_IsTrue(val)) {
@@ -1486,7 +1538,6 @@
}
#endif
}
- Py_INCREF(obj);
return obj;
}
}
@@ -1499,6 +1550,7 @@
{(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
{0, 0, 0, 0}
};
#else
@@ -1509,6 +1561,7 @@
{(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
{0, 0, 0, 0}
};
#endif
@@ -1856,14 +1909,13 @@
if (dictptr != NULL) {
PyObject *dict = *dictptr;
obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
- }
+ } else {
#ifdef PyWeakref_CheckProxy
- else if (PyWeakref_CheckProxy(pyobj)) {
- PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
- return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
- }
+ if (PyWeakref_CheckProxy(pyobj)) {
+ PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
+ return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
+ }
#endif
- if (!obj) {
obj = PyObject_GetAttr(pyobj,SWIG_This());
if (obj) {
Py_DECREF(obj);
@@ -1891,7 +1943,6 @@
}
}
-
/* Acquire a pointer value */
SWIGRUNTIME int
@@ -2071,6 +2122,14 @@
}
return inst;
#else
+#if (PY_VERSION_HEX >= 0x02010000)
+ PyObject *inst;
+ PyObject *dict = PyDict_New();
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ inst = PyInstance_NewRaw(data->newargs, dict);
+ Py_DECREF(dict);
+ return (PyObject *) inst;
+#else
PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
if (inst == NULL) {
return NULL;
@@ -2082,11 +2141,56 @@
Py_DECREF(inst);
return NULL;
}
+#ifdef Py_TPFLAGS_HAVE_WEAKREFS
+ inst->in_weakreflist = NULL;
+#endif
+#ifdef Py_TPFLAGS_GC
+ PyObject_GC_Init(inst);
+#endif
PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
return (PyObject *) inst;
#endif
+#endif
}
+SWIGRUNTIME void
+SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
+{
+ PyObject *dict;
+#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
+ PyObject **dictptr = _PyObject_GetDictPtr(inst);
+ if (dictptr != NULL) {
+ dict = *dictptr;
+ if (dict == NULL) {
+ dict = PyDict_New();
+ *dictptr = dict;
+ }
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ return;
+ }
+#endif
+ dict = PyObject_GetAttrString(inst, "__dict__");
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ Py_DECREF(dict);
+}
+
+
+SWIGINTERN PyObject *
+SWIG_Python_InitShadowInstance(PyObject *args) {
+ PyObject *obj[2];
+ if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
+ return NULL;
+ } else {
+ PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
+ if (sthis) {
+ PySwigObject_append((PyObject*) sthis, obj[1]);
+ } else {
+ SWIG_Python_SetSwigThis(obj[0], obj[1]);
+ }
+ return SWIG_Py_Void();
+ }
+}
+
/* Create a new pointer object */
SWIGRUNTIME PyObject *
@@ -2204,7 +2308,35 @@
}
}
+/* The python cached type query */
+SWIGRUNTIME PyObject *
+SWIG_Python_TypeCache() {
+ static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
+ return cache;
+}
+SWIGRUNTIME swig_type_info *
+SWIG_Python_TypeQuery(const char *type)
+{
+ PyObject *cache = SWIG_Python_TypeCache();
+ PyObject *key = PyString_FromString(type);
+ PyObject *obj = PyDict_GetItem(cache, key);
+ swig_type_info *descriptor;
+ if (obj) {
+ descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
+ } else {
+ swig_module_info *swig_module = SWIG_Python_GetModule();
+ descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
+ if (descriptor) {
+ obj = PyCObject_FromVoidPtr(descriptor, NULL);
+ PyDict_SetItem(cache, key, obj);
+ Py_DECREF(obj);
+ }
+ }
+ Py_DECREF(key);
+ return descriptor;
+}
+
/*
For backward compatibility only
*/
@@ -2353,7 +2485,7 @@
#if (PY_VERSION_HEX <= 0x02000000)
# if !defined(SWIG_PYTHON_CLASSIC)
-# warning "This python version probably requires to use swig with the '-classic' option"
+# error "This python version requires to use swig with the '-classic' option"
# endif
#endif
@@ -2364,11 +2496,11 @@
#define SWIG_name "_HeaderInfo"
-#define SWIGVERSION 0x010328
+#define SWIGVERSION 0x010329
-#define SWIG_as_voidptr(a) const_cast<void * >(static_cast<const void * >(a))
-#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast<void** >(a))
+#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
+#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
#include <stdexcept>
@@ -2452,16 +2584,14 @@
SWIG_From_unsigned_SS_long (unsigned long value)
{
return (value > LONG_MAX) ?
- PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast<long >(value));
+ PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
}
SWIGINTERNINLINE PyObject*
SWIG_From_bool (bool value)
{
- PyObject *obj = value ? Py_True : Py_False;
- Py_INCREF(obj);
- return obj;
+ return PyBool_FromLong(value ? 1 : 0);
}
@@ -2605,7 +2735,7 @@
SWIGINTERNINLINE PyObject *
SWIG_From_size_t (size_t value)
{
- return SWIG_From_unsigned_SS_long (static_cast<unsigned long >(value));
+ return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
}
@@ -2661,7 +2791,6 @@
if (!PyArg_ParseTuple(args,(char *)":new_HeaderInfo")) SWIG_fail;
result = (HeaderInfo *)new HeaderInfo();
-
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HeaderInfo, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
@@ -2682,12 +2811,11 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetSubject" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
{
String const &_result_ref = ((HeaderInfo const *)arg1)->GetSubject();
result = (String *) &_result_ref;
}
-
resultobj = PyString_FromStringAndSize(result->data(), result->length());
return resultobj;
fail:
@@ -2708,12 +2836,11 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetFrom" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
{
String const &_result_ref = ((HeaderInfo const *)arg1)->GetFrom();
result = (String *) &_result_ref;
}
-
resultobj = PyString_FromStringAndSize(result->data(), result->length());
return resultobj;
fail:
@@ -2734,12 +2861,11 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetTo" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
{
String const &_result_ref = ((HeaderInfo const *)arg1)->GetTo();
result = (String *) &_result_ref;
}
-
resultobj = PyString_FromStringAndSize(result->data(), result->length());
return resultobj;
fail:
@@ -2760,12 +2886,11 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetNewsgroups" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
{
String const &_result_ref = ((HeaderInfo const *)arg1)->GetNewsgroups();
result = (String *) &_result_ref;
}
-
resultobj = PyString_FromStringAndSize(result->data(), result->length());
return resultobj;
fail:
@@ -2786,10 +2911,9 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetDate" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
result = ((HeaderInfo const *)arg1)->GetDate();
-
- resultobj = SWIG_NewPointerObj((new time_t(static_cast<const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -2809,12 +2933,11 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetId" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
{
String const &_result_ref = ((HeaderInfo const *)arg1)->GetId();
result = (String *) &_result_ref;
}
-
resultobj = PyString_FromStringAndSize(result->data(), result->length());
return resultobj;
fail:
@@ -2835,10 +2958,9 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetUId" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
result = ((HeaderInfo const *)arg1)->GetUId();
-
- resultobj = SWIG_NewPointerObj((new UIdType(static_cast<const UIdType& >(result))), SWIGTYPE_p_UIdType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new UIdType(static_cast< const UIdType& >(result))), SWIGTYPE_p_UIdType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -2858,12 +2980,11 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetReferences" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
{
String const &_result_ref = ((HeaderInfo const *)arg1)->GetReferences();
result = (String *) &_result_ref;
}
-
resultobj = PyString_FromStringAndSize(result->data(), result->length());
return resultobj;
fail:
@@ -2884,12 +3005,11 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetInReplyTo" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
{
String const &_result_ref = ((HeaderInfo const *)arg1)->GetInReplyTo();
result = (String *) &_result_ref;
}
-
resultobj = PyString_FromStringAndSize(result->data(), result->length());
return resultobj;
fail:
@@ -2910,10 +3030,9 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetStatus" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
result = (int)((HeaderInfo const *)arg1)->GetStatus();
-
- resultobj = SWIG_From_int(static_cast<int >(result));
+ resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
@@ -2933,10 +3052,9 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetSize" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
result = (unsigned long)((HeaderInfo const *)arg1)->GetSize();
-
- resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
+ resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
return resultobj;
fail:
return NULL;
@@ -2956,10 +3074,9 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetLines" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
result = (unsigned long)((HeaderInfo const *)arg1)->GetLines();
-
- resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
+ resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
return resultobj;
fail:
return NULL;
@@ -2982,7 +3099,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_SetEncoding" "', argument " "1"" of type '" "HeaderInfo *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFontEncoding, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -2991,13 +3108,12 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfo_SetEncoding" "', argument " "2"" of type '" "wxFontEncoding""'");
} else {
- wxFontEncoding * temp = reinterpret_cast<wxFontEncoding * >(argp2);
+ wxFontEncoding * temp = reinterpret_cast< wxFontEncoding * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->SetEncoding(arg2);
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -3018,10 +3134,9 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetEncoding" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
result = ((HeaderInfo const *)arg1)->GetEncoding();
-
- resultobj = SWIG_NewPointerObj((new wxFontEncoding(static_cast<const wxFontEncoding& >(result))), SWIGTYPE_p_wxFontEncoding, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new wxFontEncoding(static_cast< const wxFontEncoding& >(result))), SWIGTYPE_p_wxFontEncoding, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3041,10 +3156,9 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_HasEncoding" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
result = (bool)((HeaderInfo const *)arg1)->HasEncoding();
-
- resultobj = SWIG_From_bool(static_cast<bool >(result));
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
@@ -3064,10 +3178,9 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_IsValid" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
result = (bool)((HeaderInfo const *)arg1)->IsValid();
-
- resultobj = SWIG_From_bool(static_cast<bool >(result));
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
@@ -3098,12 +3211,12 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfo_GetFromOrTo" "', argument " "1"" of type '" "HeaderInfo const *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
ecode2 = SWIG_AsVal_bool(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderInfo_GetFromOrTo" "', argument " "2"" of type '" "bool""'");
}
- arg2 = static_cast<bool >(val2);
+ arg2 = static_cast< bool >(val2);
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArrayString, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HeaderInfo_GetFromOrTo" "', argument " "3"" of type '" "wxArrayString const &""'");
@@ -3111,7 +3224,7 @@
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfo_GetFromOrTo" "', argument " "3"" of type '" "wxArrayString const &""'");
}
- arg3 = reinterpret_cast<wxArrayString * >(argp3);
+ arg3 = reinterpret_cast< wxArrayString * >(argp3);
{
char * temps; int templ;
if (PyString_AsStringAndSize(obj3, &temps, &templ)) return NULL;
@@ -3119,8 +3232,7 @@
arg4 = &tempstr4;
}
result = (HeaderInfo::HeaderKind)HeaderInfo::GetFromOrTo((HeaderInfo const *)arg1,arg2,(wxArrayString const &)*arg3,arg4);
-
- resultobj = SWIG_From_int(static_cast<int >(result));
+ resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
@@ -3139,7 +3251,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderInfo" "', argument " "1"" of type '" "HeaderInfo *""'");
}
- arg1 = reinterpret_cast<HeaderInfo * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfo * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
@@ -3150,10 +3262,10 @@
SWIGINTERN PyObject *HeaderInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
- SWIG_TypeNewClientData(SWIGTYPE_p_HeaderInfo, SWIG_NewClientData(obj));
- return SWIG_Py_Void();
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
+ SWIG_TypeNewClientData(SWIGTYPE_p_HeaderInfo, SWIG_NewClientData(obj));
+ return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_HeaderInfoList_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
@@ -3169,9 +3281,8 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_Create" "', argument " "1"" of type '" "MailFolder *""'");
}
- arg1 = reinterpret_cast<MailFolder * >(argp1);
+ arg1 = reinterpret_cast< MailFolder * >(argp1);
result = (HeaderInfoList *)HeaderInfoList::Create(arg1);
-
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HeaderInfoList, 0 | 0 );
return resultobj;
fail:
@@ -3192,10 +3303,9 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_Count" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
result = ((HeaderInfoList const *)arg1)->Count();
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3219,7 +3329,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetItemByIndex" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3228,13 +3338,12 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetItemByIndex" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (HeaderInfo *)((HeaderInfoList const *)arg1)->GetItemByIndex(arg2);
-
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HeaderInfo, 0 | 0 );
return resultobj;
fail:
@@ -3259,7 +3368,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetItemByMsgno" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3268,13 +3377,12 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetItemByMsgno" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (HeaderInfo *)((HeaderInfoList const *)arg1)->GetItemByMsgno(arg2);
-
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HeaderInfo, 0 | 0 );
return resultobj;
fail:
@@ -3299,7 +3407,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetItem" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3308,13 +3416,12 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetItem" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (HeaderInfo *)((HeaderInfoList const *)arg1)->GetItem(arg2);
-
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HeaderInfo, 0 | 0 );
return resultobj;
fail:
@@ -3339,7 +3446,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetIdxFromUId" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_UIdType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3348,14 +3455,13 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetIdxFromUId" "', argument " "2"" of type '" "UIdType""'");
} else {
- UIdType * temp = reinterpret_cast<UIdType * >(argp2);
+ UIdType * temp = reinterpret_cast< UIdType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = ((HeaderInfoList const *)arg1)->GetIdxFromUId(arg2);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3379,7 +3485,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetEntryUId" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_UIdType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3388,13 +3494,12 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetEntryUId" "', argument " "2"" of type '" "UIdType""'");
} else {
- UIdType * temp = reinterpret_cast<UIdType * >(argp2);
+ UIdType * temp = reinterpret_cast< UIdType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (HeaderInfo *)((HeaderInfoList const *)arg1)->GetEntryUId(arg2);
-
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HeaderInfo, 0 | 0 );
return resultobj;
fail:
@@ -3419,14 +3524,13 @@
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetIdxFromMsgno" "', argument " "1"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp1);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp1);
arg1 = *temp;
if (SWIG_IsNewObj(res1)) delete temp;
}
}
result = HeaderInfoList::GetIdxFromMsgno(arg1);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3450,14 +3554,13 @@
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetMsgnoFromIdx" "', argument " "1"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp1);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp1);
arg1 = *temp;
if (SWIG_IsNewObj(res1)) delete temp;
}
}
result = HeaderInfoList::GetMsgnoFromIdx(arg1);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3481,7 +3584,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetIdxFromPos" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3490,14 +3593,13 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetIdxFromPos" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = ((HeaderInfoList const *)arg1)->GetIdxFromPos(arg2);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3521,7 +3623,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetPosFromIdx" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3530,14 +3632,13 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetPosFromIdx" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = ((HeaderInfoList const *)arg1)->GetPosFromIdx(arg2);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3561,7 +3662,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetOldPosFromIdx" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3570,14 +3671,13 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetOldPosFromIdx" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = ((HeaderInfoList const *)arg1)->GetOldPosFromIdx(arg2);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3601,7 +3701,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetIndentation" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3610,14 +3710,13 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetIndentation" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = ((HeaderInfoList const *)arg1)->GetIndentation(arg2);
-
- resultobj = SWIG_From_size_t(static_cast<size_t >(result));
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
@@ -3640,7 +3739,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_OnRemove" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3649,13 +3748,12 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_OnRemove" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->OnRemove(arg2);
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -3679,7 +3777,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_OnAdd" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3688,13 +3786,12 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_OnAdd" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->OnAdd(arg2);
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -3714,9 +3811,8 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_OnClose" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
(arg1)->OnClose();
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -3749,7 +3845,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_FindHeaderByFlag" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MailFolder__MessageStatus, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3758,7 +3854,7 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_FindHeaderByFlag" "', argument " "2"" of type '" "MailFolder::MessageStatus""'");
} else {
- MailFolder::MessageStatus * temp = reinterpret_cast<MailFolder::MessageStatus * >(argp2);
+ MailFolder::MessageStatus * temp = reinterpret_cast< MailFolder::MessageStatus * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
@@ -3767,15 +3863,14 @@
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeaderInfoList_FindHeaderByFlag" "', argument " "3"" of type '" "bool""'");
}
- arg3 = static_cast<bool >(val3);
+ arg3 = static_cast< bool >(val3);
ecode4 = SWIG_AsVal_long(obj3, &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HeaderInfoList_FindHeaderByFlag" "', argument " "4"" of type '" "long""'");
}
- arg4 = static_cast<long >(val4);
+ arg4 = static_cast< long >(val4);
result = (arg1)->FindHeaderByFlag(arg2,arg3,arg4);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3803,7 +3898,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_FindHeaderByFlag" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MailFolder__MessageStatus, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3812,7 +3907,7 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_FindHeaderByFlag" "', argument " "2"" of type '" "MailFolder::MessageStatus""'");
} else {
- MailFolder::MessageStatus * temp = reinterpret_cast<MailFolder::MessageStatus * >(argp2);
+ MailFolder::MessageStatus * temp = reinterpret_cast< MailFolder::MessageStatus * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
@@ -3821,10 +3916,9 @@
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeaderInfoList_FindHeaderByFlag" "', argument " "3"" of type '" "bool""'");
}
- arg3 = static_cast<bool >(val3);
+ arg3 = static_cast< bool >(val3);
result = (arg1)->FindHeaderByFlag(arg2,arg3);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3848,7 +3942,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_FindHeaderByFlag" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MailFolder__MessageStatus, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3857,14 +3951,13 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_FindHeaderByFlag" "', argument " "2"" of type '" "MailFolder::MessageStatus""'");
} else {
- MailFolder::MessageStatus * temp = reinterpret_cast<MailFolder::MessageStatus * >(argp2);
+ MailFolder::MessageStatus * temp = reinterpret_cast< MailFolder::MessageStatus * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (arg1)->FindHeaderByFlag(arg2);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -3970,7 +4063,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_FindHeaderByFlagWrap" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MailFolder__MessageStatus, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -3979,7 +4072,7 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_FindHeaderByFlagWrap" "', argument " "2"" of type '" "MailFolder::MessageStatus""'");
} else {
- MailFolder::MessageStatus * temp = reinterpret_cast<MailFolder::MessageStatus * >(argp2);
+ MailFolder::MessageStatus * temp = reinterpret_cast< MailFolder::MessageStatus * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
@@ -3988,15 +4081,14 @@
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeaderInfoList_FindHeaderByFlagWrap" "', argument " "3"" of type '" "bool""'");
}
- arg3 = static_cast<bool >(val3);
+ arg3 = static_cast< bool >(val3);
ecode4 = SWIG_AsVal_long(obj3, &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HeaderInfoList_FindHeaderByFlagWrap" "', argument " "4"" of type '" "long""'");
}
- arg4 = static_cast<long >(val4);
+ arg4 = static_cast< long >(val4);
result = (arg1)->FindHeaderByFlagWrap(arg2,arg3,arg4);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -4024,7 +4116,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_FindHeaderByFlagWrap" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MailFolder__MessageStatus, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -4033,7 +4125,7 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_FindHeaderByFlagWrap" "', argument " "2"" of type '" "MailFolder::MessageStatus""'");
} else {
- MailFolder::MessageStatus * temp = reinterpret_cast<MailFolder::MessageStatus * >(argp2);
+ MailFolder::MessageStatus * temp = reinterpret_cast< MailFolder::MessageStatus * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
@@ -4042,10 +4134,9 @@
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeaderInfoList_FindHeaderByFlagWrap" "', argument " "3"" of type '" "bool""'");
}
- arg3 = static_cast<bool >(val3);
+ arg3 = static_cast< bool >(val3);
result = (arg1)->FindHeaderByFlagWrap(arg2,arg3);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -4069,7 +4160,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_FindHeaderByFlagWrap" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MailFolder__MessageStatus, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -4078,14 +4169,13 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_FindHeaderByFlagWrap" "', argument " "2"" of type '" "MailFolder::MessageStatus""'");
} else {
- MailFolder::MessageStatus * temp = reinterpret_cast<MailFolder::MessageStatus * >(argp2);
+ MailFolder::MessageStatus * temp = reinterpret_cast< MailFolder::MessageStatus * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (arg1)->FindHeaderByFlagWrap(arg2);
-
- resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast<const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
+ resultobj = SWIG_NewPointerObj((new MsgnoType(static_cast< const MsgnoType& >(result))), SWIGTYPE_p_MsgnoType, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
@@ -4187,7 +4277,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetAllHeadersByFlag" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MailFolder__MessageStatus, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -4196,7 +4286,7 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetAllHeadersByFlag" "', argument " "2"" of type '" "MailFolder::MessageStatus""'");
} else {
- MailFolder::MessageStatus * temp = reinterpret_cast<MailFolder::MessageStatus * >(argp2);
+ MailFolder::MessageStatus * temp = reinterpret_cast< MailFolder::MessageStatus * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
@@ -4205,9 +4295,8 @@
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeaderInfoList_GetAllHeadersByFlag" "', argument " "3"" of type '" "bool""'");
}
- arg3 = static_cast<bool >(val3);
+ arg3 = static_cast< bool >(val3);
result = (MsgnoArray *)(arg1)->GetAllHeadersByFlag(arg2,arg3);
-
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsgnoArray, 0 | 0 );
return resultobj;
fail:
@@ -4232,7 +4321,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetAllHeadersByFlag" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MailFolder__MessageStatus, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -4241,13 +4330,12 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_GetAllHeadersByFlag" "', argument " "2"" of type '" "MailFolder::MessageStatus""'");
} else {
- MailFolder::MessageStatus * temp = reinterpret_cast<MailFolder::MessageStatus * >(argp2);
+ MailFolder::MessageStatus * temp = reinterpret_cast< MailFolder::MessageStatus * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (MsgnoArray *)(arg1)->GetAllHeadersByFlag(arg2);
-
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsgnoArray, 0 | 0 );
return resultobj;
fail:
@@ -4321,7 +4409,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_SetSortOrder" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SortParams, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderInfoList_SetSortOrder" "', argument " "2"" of type '" "SortParams const &""'");
@@ -4329,10 +4417,9 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_SetSortOrder" "', argument " "2"" of type '" "SortParams const &""'");
}
- arg2 = reinterpret_cast<SortParams * >(argp2);
+ arg2 = reinterpret_cast< SortParams * >(argp2);
result = (bool)(arg1)->SetSortOrder((SortParams const &)*arg2);
-
- resultobj = SWIG_From_bool(static_cast<bool >(result));
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
@@ -4356,7 +4443,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_SetThreadParameters" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ThreadParams, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderInfoList_SetThreadParameters" "', argument " "2"" of type '" "ThreadParams const &""'");
@@ -4364,10 +4451,9 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_SetThreadParameters" "', argument " "2"" of type '" "ThreadParams const &""'");
}
- arg2 = reinterpret_cast<ThreadParams * >(argp2);
+ arg2 = reinterpret_cast< ThreadParams * >(argp2);
result = (bool)(arg1)->SetThreadParameters((ThreadParams const &)*arg2);
-
- resultobj = SWIG_From_bool(static_cast<bool >(result));
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
@@ -4387,10 +4473,9 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_GetLastMod" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
result = (HeaderInfoList::LastMod)((HeaderInfoList const *)arg1)->GetLastMod();
-
- resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
+ resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
return resultobj;
fail:
return NULL;
@@ -4414,15 +4499,14 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_HasChanged" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderInfoList_HasChanged" "', argument " "2"" of type '" "HeaderInfoList::LastMod""'");
}
- arg2 = static_cast<HeaderInfoList::LastMod >(val2);
+ arg2 = static_cast< HeaderInfoList::LastMod >(val2);
result = (bool)((HeaderInfoList const *)arg1)->HasChanged(arg2);
-
- resultobj = SWIG_From_bool(static_cast<bool >(result));
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
@@ -4445,7 +4529,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_CachePositions" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Sequence, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderInfoList_CachePositions" "', argument " "2"" of type '" "Sequence const &""'");
@@ -4453,9 +4537,8 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_CachePositions" "', argument " "2"" of type '" "Sequence const &""'");
}
- arg2 = reinterpret_cast<Sequence * >(argp2);
+ arg2 = reinterpret_cast< Sequence * >(argp2);
(arg1)->CachePositions((Sequence const &)*arg2);
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -4483,7 +4566,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_CacheMsgnos" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -4492,7 +4575,7 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_CacheMsgnos" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
@@ -4505,13 +4588,12 @@
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_CacheMsgnos" "', argument " "3"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp3);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp3);
arg3 = *temp;
if (SWIG_IsNewObj(res3)) delete temp;
}
}
(arg1)->CacheMsgnos(arg2,arg3);
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -4536,7 +4618,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_IsInCache" "', argument " "1"" of type '" "HeaderInfoList const *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -4545,14 +4627,13 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_IsInCache" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (bool)((HeaderInfoList const *)arg1)->IsInCache(arg2);
-
- resultobj = SWIG_From_bool(static_cast<bool >(result));
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
@@ -4576,7 +4657,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderInfoList_ReallyGet" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MsgnoType, 0 | 0);
if (!SWIG_IsOK(res2)) {
@@ -4585,14 +4666,13 @@
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeaderInfoList_ReallyGet" "', argument " "2"" of type '" "MsgnoType""'");
} else {
- MsgnoType * temp = reinterpret_cast<MsgnoType * >(argp2);
+ MsgnoType * temp = reinterpret_cast< MsgnoType * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (bool)(arg1)->ReallyGet(arg2);
-
- resultobj = SWIG_From_bool(static_cast<bool >(result));
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
@@ -4611,7 +4691,7 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderInfoList" "', argument " "1"" of type '" "HeaderInfoList *""'");
}
- arg1 = reinterpret_cast<HeaderInfoList * >(argp1);
+ arg1 = reinterpret_cast< HeaderInfoList * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
@@ -4622,10 +4702,10 @@
SWIGINTERN PyObject *HeaderInfoList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
- SWIG_TypeNewClientData(SWIGTYPE_p_HeaderInfoList, SWIG_NewClientData(obj));
- return SWIG_Py_Void();
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
+ SWIG_TypeNewClientData(SWIGTYPE_p_HeaderInfoList, SWIG_NewClientData(obj));
+ return SWIG_Py_Void();
}
static PyMethodDef SwigMethods[] = {
@@ -4772,7 +4852,7 @@
#ifdef __cplusplus
}
#endif
-/*************************************************************************
+/* -----------------------------------------------------------------------------
* Type initialization:
* This problem is tough by the requirement that no dynamic
* memory is used. Also, since swig_type_info structures store pointers to
@@ -4784,7 +4864,7 @@
* swig_module, and does all the lookup, filling in the swig_module.types
* array with the correct data and linking the correct swig_cast_info
* structures together.
-
+ *
* The generated swig_type_info structures are assigned staticly to an initial
* array. We just loop though that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
@@ -4798,7 +4878,7 @@
* we find the array of casts associated with the type, and loop through it
* adding the casts to the list. The one last trick we need to do is making
* sure the type pointer in the swig_cast_info struct is correct.
-
+ *
* First off, we lookup the cast->type name to see if it is already loaded.
* There are three cases to handle:
* 1) If the cast->type has already been loaded AND the type we are adding
@@ -4811,7 +4891,7 @@
* 3) Finally, if cast->type has not already been loaded, then we add that
* swig_cast_info to the linked list (because the cast->type) pointer will
* be correct.
-**/
+ * ----------------------------------------------------------------------------- */
#ifdef __cplusplus
extern "C" {
@@ -5264,9 +5344,9 @@
SWIG_InstallConstants(d,swig_const_table);
- SWIG_Python_SetConstant(d, "HeaderInfo_Invalid",SWIG_From_int(static_cast<int >(HeaderInfo::Invalid)));
- SWIG_Python_SetConstant(d, "HeaderInfo_From",SWIG_From_int(static_cast<int >(HeaderInfo::From)));
- SWIG_Python_SetConstant(d, "HeaderInfo_To",SWIG_From_int(static_cast<int >(HeaderInfo::To)));
- SWIG_Python_SetConstant(d, "HeaderInfo_Newsgroup",SWIG_From_int(static_cast<int >(HeaderInfo::Newsgroup)));
+ SWIG_Python_SetConstant(d, "HeaderInfo_Invalid",SWIG_From_int(static_cast< int >(HeaderInfo::Invalid)));
+ SWIG_Python_SetConstant(d, "HeaderInfo_From",SWIG_From_int(static_cast< int >(HeaderInfo::From)));
+ SWIG_Python_SetConstant(d, "HeaderInfo_To",SWIG_From_int(static_cast< int >(HeaderInfo::To)));
+ SWIG_Python_SetConstant(d, "HeaderInfo_Newsgroup",SWIG_From_int(static_cast< int >(HeaderInfo::Newsgroup)));
}
Modified: trunk/M/src/Python/HeaderInfo.py-swig
===================================================================
--- trunk/M/src/Python/HeaderInfo.py-swig 2007-08-04 18:35:40 UTC (rev 7315)
+++ trunk/M/src/Python/HeaderInfo.py-swig 2007-08-14 22:39:49 UTC (rev 7316)
@@ -1,4 +1,4 @@
-# This file was created automatically by SWIG 1.3.28.
+# This file was created automatically by SWIG 1.3.29.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
@@ -27,6 +27,11 @@
if method: return method(self)
raise AttributeError,name
+def _swig_repr(self):
+ try: strthis = "proxy of " + self.this.__repr__()
+ except: strthis = ""
+ return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
+
import types
try:
_object = types.ObjectType
@@ -42,11 +47,8 @@
__setattr__ = lambda self, name, value: _swig_setattr(self, HeaderInfo, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, HeaderInfo, name)
- def __repr__(self):
- try: strthis = "at 0x%x" %( self.this, )
- except: strthis = ""
- return "<%s.%s; proxy of C++ HeaderInfo instance %s>" % (self.__class__.__module__, self.__class__.__name__, strthis,)
- def __init__(self, *args):
+ __repr__ = _swig_repr
+ def __init__(self, *args):
this = _HeaderInfo.new_HeaderInfo(*args)
try: self.this.append(this)
except: self.this = this
@@ -74,8 +76,8 @@
if _newclass:GetFromOrTo = staticmethod(_HeaderInfo.HeaderInfo_GetFromOrTo)
__swig_destroy__ = _HeaderInfo.delete_HeaderInfo
__del__ = lambda self : None;
-_HeaderInfo.HeaderInfo_swigregister(HeaderInfo)
-
+HeaderInfo_swigregister = _HeaderInfo.HeaderInfo_swigregister
+HeaderInfo_swigregister(HeaderInfo)
HeaderInfo_GetFromOrTo = _HeaderInfo.HeaderInfo_GetFromOrTo
class HeaderInfoList(_object):
@@ -84,10 +86,7 @@
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, HeaderInfoList, name)
def __init__(self): raise AttributeError, "No constructor defined"
- def __repr__(self):
- try: strthis = "at 0x%x" %( self.this, )
- except: strthis = ""
- return "<%s.%s; proxy of C++ HeaderInfoList instance %s>" % (self.__class__.__module__, self.__class__.__name__, strthis,)
+ __repr__ = _swig_repr
__swig_getmethods__["Create"] = lambda x: _HeaderInfo.HeaderInfoList_Create
if _newclass:Create = staticmethod(_HeaderInfo.HeaderInfoList_Create)
def Count(*args): return _HeaderInfo.HeaderInfoList_Count(*args)
@@ -120,12 +119,10 @@
def ReallyGet(*args): return _HeaderInfo.HeaderInfoList_ReallyGet(*args)
__swig_destroy__ = _HeaderInfo.delete_HeaderInfoList
__del__ = lambda self : None;
-_HeaderInfo.HeaderInfoList_swigregister(HeaderInfoList)
-
+HeaderInfoList_swigregister = _HeaderInfo.HeaderInfoList_swigregister
+HeaderInfoList_swigregister(HeaderInfoList)
HeaderInfoList_Create = _HeaderInfo.HeaderInfoList_Create
-
HeaderInfoList_GetIdxFromMsgno = _HeaderInfo.HeaderInfoList_GetIdxFromMsgno
-
HeaderInfoList_GetMsgnoFromIdx = _HeaderInfo.HeaderInfoList_GetMsgnoFromIdx
Modified: trunk/M/src/Python/MDialogs.cpp-swig
===================================================================
--- trunk/M/src/Python/MDialogs.cpp-swig 2007-08-04 18:35:40 UTC (rev 7315)
+++ trunk/M/src/Python/MDialogs.cpp-swig 2007-08-14 22:39:49 UTC (rev 7316)
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.28
+ * Version 1.3.29
*
* 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
@@ -27,12 +27,10 @@
};
#endif
-/***********************************************************************
- *
+/* -----------------------------------------------------------------------------
* This section contains generic SWIG labels for method/variable
* declarations/attributes, and other compiler dependent labels.
- *
- ************************************************************************/
+ * ----------------------------------------------------------------------------- */
/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
@@ -89,7 +87,13 @@
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif
-/* exporting methods for Windows DLLs */
+/* exporting methods */
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+# ifndef GCC_HASCLASSVISIBILITY
+# define GCC_HASCLASSVISIBILITY
+# endif
+#endif
+
#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# if defined(STATIC_LINKED)
@@ -98,7 +102,11 @@
# define SWIGEXPORT __declspec(dllexport)
# endif
# else
-# define SWIGEXPORT
+# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
+# define SWIGEXPORT __attribute__ ((visibility("default")))
+# else
+# define SWIGEXPORT
+# endif
# endif
#endif
@@ -111,17 +119,21 @@
# endif
#endif
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
+
/* MPython.h has to appear first */
#include <MPython.h>
-/***********************************************************************
+/* -----------------------------------------------------------------------------
* swigrun.swg
*
- * This file contains generic CAPI SWIG runtime support for pointer
- * type checking.
- *
- ************************************************************************/
+ * This file contains generic CAPI SWIG runtime support for pointer
+ * type checking.
+ * ----------------------------------------------------------------------------- */
/* This should only be incremented when either the layout of swig_type_info changes,
or for whatever reason, the runtime changes incompatibly */
@@ -346,7 +358,7 @@
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
while ((*f1 == ' ') && (f1 != l1)) ++f1;
while ((*f2 == ' ') && (f2 != l2)) ++f2;
- if (*f1 != *f2) return (int)(*f1 - *f2);
+ if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
}
return (l1 - f1) - (l2 - f2);
}
@@ -708,7 +720,7 @@
/* Add PyOS_snprintf for old Pythons */
#if PY_VERSION_HEX < 0x02020000
# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
-# define PyOS_snprintf _snprintf
+# define PyOS_snprintf _snprintf
# else
# define PyOS_snprintf snprintf
# endif
@@ -718,7 +730,7 @@
#if PY_VERSION_HEX < 0x02020000
#ifndef SWIG_PYBUFFER_SIZE
-#define SWIG_PYBUFFER_SIZE 1024
+# define SWIG_PYBUFFER_SIZE 1024
#endif
static PyObject *
@@ -729,36 +741,62 @@
va_start(ap, fmt);
res = vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
- return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
+ return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
}
#endif
/* Add PyObject_Del for old Pythons */
#if PY_VERSION_HEX < 0x01060000
-#define PyObject_Del(op) PyMem_DEL((op))
+# define PyObject_Del(op) PyMem_DEL((op))
#endif
#ifndef PyObject_DEL
-#define PyObject_DEL PyObject_Del
+# define PyObject_DEL PyObject_Del
#endif
/* A crude PyExc_StopIteration exception for old Pythons */
#if PY_VERSION_HEX < 0x02020000
-#define PyExc_StopIteration PyExc_RuntimeError
-#define PyObject_GenericGetAttr 0
-#define Py_NotImplemented PyExc_RuntimeError
+# ifndef PyExc_StopIteration
+# define PyExc_StopIteration PyExc_RuntimeError
+# endif
+# ifndef PyObject_GenericGetAttr
+# define PyObject_GenericGetAttr 0
+# endif
#endif
+/* Py_NotImplemented is defined in 2.1 and up. */
+#if PY_VERSION_HEX < 0x02010000
+# ifndef Py_NotImplemented
+# define Py_NotImplemented PyExc_RuntimeError
+# endif
+#endif
/* A crude PyString_AsStringAndSize implementation for old Pythons */
#if PY_VERSION_HEX < 0x02010000
-#define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
+# ifndef PyString_AsStringAndSize
+# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
+# endif
#endif
+/* PySequence_Size for old Pythons */
#if PY_VERSION_HEX < 0x02000000
-#define PySequence_Size PySequence_Length
+# ifndef PySequence_Size
+# define PySequence_Size PySequence_Length
+# endif
#endif
+/* PyBool_FromLong for old Pythons */
+#if PY_VERSION_HEX < 0x02030000
+static
+PyObject *PyBool_FromLong(long ok)
+{
+ PyObject *result = ok ? Py_True : Py_False;
+ Py_INCREF(result);
+ return result;
+}
+#endif
+
+
/* -----------------------------------------------------------------------------
* error manipulation
* ----------------------------------------------------------------------------- */
@@ -933,15 +971,17 @@
#endif
-/***********************************************************************
+/* -----------------------------------------------------------------------------
+ * See the LICENSE file for information on copyright, usage and redistribution
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
+ *
* pyrun.swg
*
- * This file contains the runtime support for Python modules
- * and includes code for managing global variables and pointer
- * type checking.
+ * This file contains the runtime support for Python modules
+ * and includes code for managing global variables and pointer
+ * type checking.
*
- * Author : David Beazley ([email protected])
- ************************************************************************/
+ * ----------------------------------------------------------------------------- */
/* Common SWIG API */
@@ -1171,7 +1211,6 @@
return none;
}
-
/* PySwigClientData */
typedef struct {
@@ -1207,7 +1246,7 @@
PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
/* the klass element */
data->klass = obj;
- Py_INCREF(obj);
+ Py_INCREF(data->klass);
/* the newraw method and newargs arguments used to create a new raw instance */
if (PyClass_Check(obj)) {
data->newraw = 0;
@@ -1216,15 +1255,17 @@
} else {
#if (PY_VERSION_HEX < 0x02020000)
data->newraw = 0;
- data->newargs = obj;
- Py_INCREF(obj);
#else
- data->newraw = PyObject_GetAttrString((PyObject*)&PyBaseObject_Type, (char *)"__new__");
- Py_INCREF(data->newraw);
- data->newargs = PyTuple_New(1);
- PyTuple_SetItem(data->newargs, 0, obj);
+ data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
+#endif
+ if (data->newraw) {
+ Py_INCREF(data->newraw);
+ data->newargs = PyTuple_New(1);
+ PyTuple_SetItem(data->newargs, 0, obj);
+ } else {
+ data->newargs = obj;
+ }
Py_INCREF(data->newargs);
-#endif
}
/* the destroy method, aka as the C++ delete method */
data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
@@ -1252,7 +1293,6 @@
SWIGRUNTIME void
PySwigClientData_Del(PySwigClientData* data)
{
- Py_XDECREF(data->klass);
Py_XDECREF(data->newraw);
Py_XDECREF(data->newargs);
Py_XDECREF(data->destroy);
@@ -1305,14 +1345,22 @@
}
SWIGRUNTIME PyObject *
+#ifdef METH_NOARGS
PySwigObject_repr(PySwigObject *v)
+#else
+PySwigObject_repr(PySwigObject *v, PyObject *args)
+#endif
{
const char *name = SWIG_TypePrettyName(v->ty);
PyObject *hex = PySwigObject_hex(v);
PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
Py_DECREF(hex);
if (v->next) {
+#ifdef METH_NOARGS
PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
+#else
+ PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
+#endif
PyString_ConcatAndDel(&repr,nrep);
}
return repr;
@@ -1321,7 +1369,11 @@
SWIGRUNTIME int
PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
{
+#ifdef METH_NOARGS
PyObject *repr = PySwigObject_repr(v);
+#else
+ PyObject *repr = PySwigObject_repr(v, NULL);
+#endif
if (repr) {
fputs(PyString_AsString(repr), fp);
Py_DECREF(repr);
@@ -1470,7 +1522,7 @@
else
{
PySwigObject *sobj = (PySwigObject *)v;
- PyObject *obj = sobj->own ? Py_True : Py_False;
+ PyObject *obj = PyBool_FromLong(sobj->own);
if (val) {
#ifdef METH_NOARGS
if (PyObject_IsTrue(val)) {
@@ -1486,7 +1538,6 @@
}
#endif
}
- Py_INCREF(obj);
return obj;
}
}
@@ -1499,6 +1550,7 @@
{(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
{0, 0, 0, 0}
};
#else
@@ -1509,6 +1561,7 @@
{(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
{0, 0, 0, 0}
};
#endif
@@ -1856,14 +1909,13 @@
if (dictptr != NULL) {
PyObject *dict = *dictptr;
obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
- }
+ } else {
#ifdef PyWeakref_CheckProxy
- else if (PyWeakref_CheckProxy(pyobj)) {
- PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
- return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
- }
+ if (PyWeakref_CheckProxy(pyobj)) {
+ PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
+ return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
+ }
#endif
- if (!obj) {
obj = PyObject_GetAttr(pyobj,SWIG_This());
if (obj) {
Py_DECREF(obj);
@@ -1891,7 +1943,6 @@
}
}
-
/* Acquire a pointer value */
SWIGRUNTIME int
@@ -2071,6 +2122,14 @@
}
return inst;
#else
+#if (PY_VERSION_HEX >= 0x02010000)
+ PyObject *inst;
+ PyObject *dict = PyDict_New();
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ inst = PyInstance_NewRaw(data->newargs, dict);
+ Py_DECREF(dict);
+ return (PyObject *) inst;
+#else
PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
if (inst == NULL) {
return NULL;
@@ -2082,11 +2141,56 @@
Py_DECREF(inst);
return NULL;
}
+#ifdef Py_TPFLAGS_HAVE_WEAKREFS
+ inst->in_weakreflist = NULL;
+#endif
+#ifdef Py_TPFLAGS_GC
+ PyObject_GC_Init(inst);
+#endif
PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
return (PyObject *) inst;
#endif
+#endif
}
+SWIGRUNTIME void
+SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
+{
+ PyObject *dict;
+#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
+ PyObject **dictptr = _PyObject_GetDictPtr(inst);
+ if (dictptr != NULL) {
+ dict = *dictptr;
+ if (dict == NULL) {
+ dict = PyDict_New();
+ *dictptr = dict;
+ }
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ return;
+ }
+#endif
+ dict = PyObject_GetAttrString(inst, "__dict__");
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ Py_DECREF(dict);
+}
+
+
+SWIGINTERN PyObject *
+SWIG_Python_InitShadowInstance(PyObject *args) {
+ PyObject *obj[2];
+ if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
+ return NULL;
+ } else {
+ PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
+ if (sthis) {
+ PySwigObject_append((PyObject*) sthis, obj[1]);
+ } else {
+ SWIG_Python_SetSwigThis(obj[0], obj[1]);
+ }
+ return SWIG_Py_Void();
+ }
+}
+
/* Create a new pointer object */
SWIGRUNTIME PyObject *
@@ -2204,7 +2308,35 @@
}
}
+/* The python cached type query */
+SWIGRUNTIME PyObject *
+SWIG_Python_TypeCache() {
+ static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
+ return cache;
+}
+SWIGRUNTIME swig_type_info *
+SWIG_Python_TypeQuery(const char *type)
+{
+ PyObject *cache = SWIG_Python_TypeCache();
+ PyObject *key = PyString_FromString(type);
+ PyObject *obj = PyDict_GetItem(cache, key);
+ swig_type_info *descriptor;
+ if (obj) {
+ descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
+ } else {
+ swig_module_info *swig_module = SWIG_Python_GetModule();
+ descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
+ if (descriptor) {
+ obj = PyCObject_FromVoidPtr(descriptor, NULL);
+ PyDict_SetItem(cache, key, obj);
+ Py_DECREF(obj);
+ }
+ }
+ Py_DECREF(key);
+ return descriptor;
+}
+
/*
For backward compatibility only
*/
@@ -2337,7 +2469,7 @@
#if (PY_VERSION_HEX <= 0x02000000)
# if !defined(SWIG_PYTHON_CLASSIC)
-# warning "This python version probably requires to use swig with the '-classic' option"
+# error "This python version requires to use swig with the '-classic' option"
# endif
#endif
@@ -2348,11 +2480,11 @@
#define SWIG_name "_MDialogs"
-#define SWIGVERSION 0x010328
+#define SWIGVERSION 0x010329
-#define SWIG_as_voidptr(a) const_cast<void * >(static_cast<const void * >(a))
-#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast<void** >(a))
+#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
+#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
#include <stdexcept>
@@ -2424,7 +2556,7 @@
bool Message(const char *message)
{
- return MDialog_Message(message, NULL);
+ return MDialog_Message(wxString(message), NULL);
}
void Status(const char *message)
@@ -2469,7 +2601,7 @@
if (*alloc == SWIG_NEWOBJ)
#endif
{
- *cptr = reinterpret_cast<char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
+ *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
*alloc = SWIG_NEWOBJ;
}
else {
@@ -2485,10 +2617,10 @@
} else {
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
if (pchar_descriptor) {
- char* vptr = 0;
- if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
- if (cptr) *cptr = vptr;
- if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
+ void* vptr = 0;
+ if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
+ if (cptr) *cptr = (char *) vptr;
+ if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
if (alloc) *alloc = SWIG_OLDOBJ;
return SWIG_OK;
}
@@ -2504,9 +2636,7 @@
SWIGINTERNINLINE PyObject*
SWIG_From_bool (bool value)
{
- PyObject *obj = value ? Py_True : Py_False;
- Py_INCREF(obj);
- return obj;
+ return PyBool_FromLong(value ? 1 : 0);
}
#ifdef __cplusplus
@@ -2528,8 +2658,7 @@
}
arg1 = buf1;
result = (bool)Message((char const *)arg1);
-
- resultobj = SWIG_From_bool(static_cast<bool >(result));
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return resultobj;
fail:
@@ -2553,7 +2682,6 @@
}
arg1 = buf1;
Status((char const *)arg1);
-
resultobj = SWIG_Py_Void();
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return resultobj;
@@ -2593,7 +2721,7 @@
#ifdef __cplusplus
}
#endif
-/*************************************************************************
+/* -----------------------------------------------------------------------------
* Type initialization:
* This problem is tough by the requirement that no dynamic
* memory is used. Also, since swig_type_info structures store pointers to
@@ -2605,7 +2733,7 @@
* swig_module, and does all the lookup, filling in the swig_module.types
* array with the correct data and linking the correct swig_cast_info
* structures together.
-
+ *
* The generated swig_type_info structures are assigned staticly to an initial
* array. We just loop though that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
@@ -2619,7 +2747,7 @@
* we find the array of casts associated with the type, and loop through it
* adding the casts to the list. The one last trick we need to do is making
* sure the type pointer in the swig_cast_info struct is correct.
-
+ *
* First off, we lookup the cast->type name to see if it is already loaded.
* There are three cases to handle:
* 1) If the cast->type has already been loaded AND the type we are adding
@@ -2632,7 +2760,7 @@
* 3) Finally, if cast->type has not already been loaded, then we add that
* swig_cast_info to the linked list (because the cast->type) pointer will
* be correct.
-**/
+ * ----------------------------------------------------------------------------- */
#ifdef __cplusplus
extern "C" {
Modified: trunk/M/src/Python/MDialogs.py-swig
===================================================================
--- trunk/M/src/Python/MDialogs.py-swig 2007-08-04 18:35:40 UTC (rev 7315)
+++ trunk/M/src/Python/MDialogs.py-swig 2007-08-14 22:39:49 UTC (rev 7316)
@@ -1,4 +1,4 @@
-# This file was created automatically by SWIG 1.3.28.
+# This file was created automatically by SWIG 1.3.29.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
@@ -27,6 +27,11 @@
if method: return method(self)
raise AttributeError,name
+def _swig_repr(self):
+ try: strthis = "proxy of " + self.this.__repr__()
+ except: strthis = ""
+ return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
+
import types
try:
_object = types.ObjectType
@@ -37,9 +42,7 @@
del types
-
Message = _MDialogs.Message
-
Status = _MDialogs.Status
Modified: trunk/M/src/Python/MailFolder.cpp-swig
===================================================================
--- trunk/M/src/Python/MailFolder.cpp-swig 2007-08-04 18:35:40 UTC (rev 7315)
+++ trunk/M/src/Python/MailFolder.cpp-swig 2007-08-14 22:39:49 UTC (rev 7316)
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.28
+ * Version 1.3.29
*
* 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
@@ -27,12 +27,10 @@
};
#endif
-/***********************************************************************
- *
+/* -----------------------------------------------------------------------------
* This section contains generic SWIG labels for method/variable
* declarations/attributes, and other compiler dependent labels.
- *
- ************************************************************************/
+ * ----------------------------------------------------------------------------- */
/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
@@ -89,7 +87,13 @@
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif
-/* exporting methods for Windows DLLs */
+/* exporting methods */
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+# ifndef GCC_HASCLASSVISIBILITY
+# define GCC_HASCLASSVISIBILITY
+# endif
+#endif
+
#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# if defined(STATIC_LINKED)
@@ -98,7 +102,11 @@
# define SWIGEXPORT __declspec(dllexport)
# endif
# else
-# define SWIGEXPORT
+# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
+# define SWIGEXPORT __attribute__ ((visibility("default")))
+# else
+# define SWIGEXPORT
+# endif
# endif
#endif
@@ -111,17 +119,21 @@
# endif
#endif
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
+
/* MPython.h has to appear first */
#include <MPython.h>
-/***********************************************************************
+/* -----------------------------------------------------------------------------
* swigrun.swg
*
- * This file contains generic CAPI SWIG runtime support for pointer
- * type checking.
- *
- ************************************************************************/
+ * This file contains generic CAPI SWIG runtime support for pointer
+ * type checking.
+ * ----------------------------------------------------------------------------- */
/* This should only be incremented when either the layout of swig_type_info changes,
or for whatever reason, the runtime changes incompatibly */
@@ -346,7 +358,7 @@
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
while ((*f1 == ' ') && (f1 != l1)) ++f1;
while ((*f2 == ' ') && (f2 != l2)) ++f2;
- if (*f1 != *f2) return (int)(*f1 - *f2);
+ if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
}
return (l1 - f1) - (l2 - f2);
}
@@ -708,7 +720,7 @@
/* Add PyOS_snprintf for old Pythons */
#if PY_VERSION_HEX < 0x02020000
# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
-# define PyOS_snprintf _snprintf
+# define PyOS_snprintf _snprintf
# else
# define PyOS_snprintf snprintf
# endif
@@ -718,7 +730,7 @@
#if PY_VERSION_HEX < 0x02020000
#ifndef SWIG_PYBUFFER_SIZE
-#define SWIG_PYBUFFER_SIZE 1024
+# define SWIG_PYBUFFER_SIZE 1024
#endif
static PyObject *
@@ -729,36 +741,62 @@
va_start(ap, fmt);
res = vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
- return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
+ return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
}
#endif
/* Add PyObject_Del for old Pythons */
#if PY_VERSION_HEX < 0x01060000
-#define PyObject_Del(op) PyMem_DEL((op))
+# define PyObject_Del(op) PyMem_DEL((op))
#endif
#ifndef PyObject_DEL
-#define PyObject_DEL PyObject_Del
+# define PyObject_DEL PyObject_Del
#endif
/* A crude PyExc_StopIteration exception for old Pythons */
#if PY_VERSION_HEX < 0x02020000
-#define PyExc_StopIteration PyExc_RuntimeError
-#define PyObject_GenericGetAttr 0
-#define Py_NotImplemented PyExc_RuntimeError
+# ifndef PyExc_StopIteration
+# define PyExc_StopIteration PyExc_RuntimeError
+# endif
+# ifndef PyObject_GenericGetAttr
+# define PyObject_GenericGetAttr 0
+# endif
#endif
+/* Py_NotImplemented is defined in 2.1 and up. */
+#if PY_VERSION_HEX < 0x02010000
+# ifndef Py_NotImplemented
+# define Py_NotImplemented PyExc_RuntimeError
+# endif
+#endif
/* A crude PyString_AsStringAndSize implementation for old Pythons */
#if PY_VERSION_HEX < 0x02010000
-#define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
+# ifndef PyString_AsStringAndSize
+# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
+# endif
#endif
+/* PySequence_Size for old Pythons */
#if PY_VERSION_HEX < 0x02000000
-#define PySequence_Size PySequence_Length
+# ifndef PySequence_Size
+# define PySequence_Size PySequence_Length
+# endif
#endif
+/* PyBool_FromLong for old Pythons */
+#if PY_VERSION_HEX < 0x02030000
+static
+PyObject *PyBool_FromLong(long ok)
+{
+ PyObject *result = ok ? Py_True : Py_False;
+ Py_INCREF(result);
+ return result;
+}
+#endif
+
+
/* -----------------------------------------------------------------------------
* error manipulation
* ----------------------------------------------------------------------------- */
@@ -933,15 +971,17 @@
#endif
-/***********************************************************************
+/* -----------------------------------------------------------------------------
+ * See the LICENSE file for information on copyright, usage and redistribution
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
+ *
* pyrun.swg
*
- * This file contains the runtime support for Python modules
- * and includes code for managing global variables and pointer
- * type checking.
+ * This file contains the runtime support for Python modules
+ * and includes code for managing global variables and pointer
+ * type checking.
*
- * Author : David Beazley ([email protected])
- ************************************************************************/
+ * ----------------------------------------------------------------------------- */
/* Common SWIG API */
@@ -1171,7 +1211,6 @@
return none;
}
-
/* PySwigClientData */
typedef struct {
@@ -1207,7 +1246,7 @@
PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
/* the klass element */
data->klass = obj;
- Py_INCREF(obj);
+ Py_INCREF(data->klass);
/* the newraw method and newargs arguments used to create a new raw instance */
if (PyClass_Check(obj)) {
data->newraw = 0;
@@ -1216,15 +1255,17 @@
} else {
#if (PY_VERSION_HEX < 0x02020000)
data->newraw = 0;
- data->newargs = obj;
- Py_INCREF(obj);
#else
- data->newraw = PyObject_GetAttrString((PyObject*)&PyBaseObject_Type, (char *)"__new__");
- Py_INCREF(data->newraw);
- data->newargs = PyTuple_New(1);
- PyTuple_SetItem(data->newargs, 0, obj);
- Py_INCREF(data->newargs);
+ data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
#endif
+ if (data->newraw) {
+ Py_INCREF(data->newraw);
+ data->newargs = PyTuple_New(1);
+ PyTuple_SetItem(data->newargs, 0, obj);
+ } else {
+ data->newargs = obj;
+ }
+ Py_INCREF(data->newargs);
}
/* the destroy method, aka as the C++ delete method */
data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
@@ -1252,7 +1293,6 @@
SWIGRUNTIME void
PySwigClientData_Del(PySwigClientData* data)
{
- Py_XDECREF(data->klass);
Py_XDECREF(data->newraw);
Py_XDECREF(data->newargs);
Py_XDECREF(data->destroy);
@@ -1305,14 +1345,22 @@
}
SWIGRUNTIME PyObject *
+#ifdef METH_NOARGS
PySwigObject_repr(PySwigObject *v)
+#else
+PySwigObject_repr(PySwigObject *v, PyObject *args)
+#endif
{
const char *name = SWIG_TypePrettyName(v->ty);
PyObject *hex = PySwigObject_hex(v);
PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
Py_DECREF(hex);
if (v->next) {
+#ifdef METH_NOARGS
PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
+#else
+ PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
+#endif
PyString_ConcatAndDel(&repr,nrep);
}
return repr;
@@ -1321,7 +1369,11 @@
SWIGRUNTIME int
PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
{
+#ifdef METH_NOARGS
PyObject *repr = PySwigObject_repr(v);
+#else
+ PyObject *repr = PySwigObject_repr(v, NULL);
+#endif
if (repr) {
fputs(PyString_AsString(repr), fp);
Py_DECREF(repr);
@@ -1470,7 +1522,7 @@
else
{
PySwigObject *sobj = (PySwigObject *)v;
- PyObject *obj = sobj->own ? Py_True : Py_False;
+ PyObject *obj = PyBool_FromLong(sobj->own);
if (val) {
#ifdef METH_NOARGS
if (PyObject_IsTrue(val)) {
@@ -1486,7 +1538,6 @@
}
#endif
}
- Py_INCREF(obj);
return obj;
}
}
@@ -1499,6 +1550,7 @@
{(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
{0, 0, 0, 0}
};
#else
@@ -1509,6 +1561,7 @@
{(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
{0, 0, 0, 0}
};
#endif
@@ -1856,14 +1909,13 @@
if (dictptr != NULL) {
PyObject *dict = *dictptr;
obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
- }
+ } else {
#ifdef PyWeakref_CheckProxy
- else if (PyWeakref_CheckProxy(pyobj)) {
- PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
- return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
- }
+ if (PyWeakref_CheckProxy(pyobj)) {
+ PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
+ return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
+ }
#endif
- if (!obj) {
obj = PyObject_GetAttr(pyobj,SWIG_This());
if (obj) {
Py_DECREF(obj);
@@ -1891,7 +1943,6 @@
}
}
-
/* Acquire a pointer value */
SWIGRUNTIME int
@@ -2071,6 +2122,14 @@
}
return inst;
#else
+#if (PY_VERSION_HEX >= 0x02010000)
+ PyObject *inst;
+ PyObject *dict = PyDict_New();
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ inst = PyInstance_NewRaw(data->newargs, dict);
+ Py_DECREF(dict);
+ return (PyObject *) inst;
+#else
PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
if (inst == NULL) {
return NULL;
@@ -2082,11 +2141,56 @@
Py_DECREF(inst);
return NULL;
}
+#ifdef Py_TPFLAGS_HAVE_WEAKREFS
+ inst->in_weakreflist = NULL;
+#endif
+#ifdef Py_TPFLAGS_GC
+ PyObject_GC_Init(inst);
+#endif
PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
return (PyObject *) inst;
#endif
+#endif
}
+SWIGRUNTIME void
+SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
+{
+ PyObject *dict;
+#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
+ PyObject **dictptr = _PyObject_GetDictPtr(inst);
+ if (dictptr != NULL) {
+ dict = *dictptr;
+ if (dict == NULL) {
+ dict = PyDict_New();
+ *dictptr = dict;
+ }
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ return;
+ }
+#endif
+ dict = PyObject_GetAttrString(inst, "__dict__");
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ Py_DECREF(dict);
+}
+
+
+SWIGINTERN PyObject *
+SWIG_Python_InitShadowInstance(PyObject *args) {
+ PyObject *obj[2];
+ if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
+ return NULL;
+ } else {
+ PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
+ if (sthis) {
+ PySwigObject_append((PyObject*) sthis, obj[1]);
+ } else {
+ SWIG_Python_SetSwigThis(obj[0], obj[1]);
+ }
+ return SWIG_Py_Void();
+ }
+}
+
/* Create a new pointer object */
SWIGRUNTIME PyObject *
@@ -2204,7 +2308,35 @@
}
}
+/* The python cached type query */
+SWIGRUNTIME PyObject *
+SWIG_Python_TypeCache() {
+ static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
+ return cache;
+}
+SWIGRUNTIME swig_type_info *
+SWIG_Python_TypeQuery(const char *type)
+{
+ PyObject *cache = SWIG_Python_TypeCache();
+ PyObject *key = PyString_FromString(type);
+ PyObject *obj = PyDict_GetItem(cache, key);
+ swig_type_info *descriptor;
+ if (obj) {
+ descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
+ } else {
+ swig_module_info *swig_module = SWIG_Python_GetModule();
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/