729
/* Compatibility macros for Python 3 */
730
#if PY_VERSION_HEX >= 0x03000000
732
#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
733
#define PyInt_Check(x) PyLong_Check(x)
734
#define PyInt_AsLong(x) PyLong_AsLong(x)
735
#define PyInt_FromLong(x) PyLong_FromLong(x)
736
#define PyString_Check(name) PyBytes_Check(name)
737
#define PyString_FromString(x) PyUnicode_FromString(x)
738
#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
739
#define PyString_AsString(str) PyBytes_AsString(str)
740
#define PyString_Size(str) PyBytes_Size(str)
741
#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
742
#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
743
#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
744
#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
749
# define Py_TYPE(op) ((op)->ob_type)
752
/* SWIG APIs for compatibility of both Python 2 & 3 */
754
#if PY_VERSION_HEX >= 0x03000000
755
# define SWIG_Python_str_FromFormat PyUnicode_FromFormat
757
# define SWIG_Python_str_FromFormat PyString_FromFormat
761
/* Warning: This function will allocate a new string in Python 3,
762
* so please call SWIG_Python_str_DelForPy3(x) to free the space.
765
SWIG_Python_str_AsChar(PyObject *str)
767
#if PY_VERSION_HEX >= 0x03000000
771
str = PyUnicode_AsUTF8String(str);
772
PyBytes_AsStringAndSize(str, &cstr, &len);
773
newstr = (char *) malloc(len+1);
774
memcpy(newstr, cstr, len+1);
778
return PyString_AsString(str);
782
#if PY_VERSION_HEX >= 0x03000000
783
# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
785
# define SWIG_Python_str_DelForPy3(x)
790
SWIG_Python_str_FromChar(const char *c)
792
#if PY_VERSION_HEX >= 0x03000000
793
return PyUnicode_FromString(c);
795
return PyString_FromString(c);
715
799
/* Add PyOS_snprintf for old Pythons */
716
800
#if PY_VERSION_HEX < 0x02020000
1338
1532
SWIGRUNTIME PyObject *
1339
PySwigObject_oct(PySwigObject *v)
1533
SwigPyObject_oct(SwigPyObject *v)
1341
return PySwigObject_format("%o",v);
1535
return SwigPyObject_format("%o",v);
1344
1538
SWIGRUNTIME PyObject *
1345
PySwigObject_hex(PySwigObject *v)
1539
SwigPyObject_hex(SwigPyObject *v)
1347
return PySwigObject_format("%x",v);
1541
return SwigPyObject_format("%x",v);
1350
1544
SWIGRUNTIME PyObject *
1351
1545
#ifdef METH_NOARGS
1352
PySwigObject_repr(PySwigObject *v)
1546
SwigPyObject_repr(SwigPyObject *v)
1354
PySwigObject_repr(PySwigObject *v, PyObject *args)
1548
SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1357
1551
const char *name = SWIG_TypePrettyName(v->ty);
1358
PyObject *hex = PySwigObject_hex(v);
1359
PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1552
PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, (void *)v);
1363
PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365
PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1555
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1557
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1559
# if PY_VERSION_HEX >= 0x03000000
1560
PyObject *joined = PyUnicode_Concat(repr, nrep);
1367
1565
PyString_ConcatAndDel(&repr,nrep);
1372
1571
SWIGRUNTIME int
1373
PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1572
SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375
1575
#ifdef METH_NOARGS
1376
PyObject *repr = PySwigObject_repr(v);
1576
PyObject *repr = SwigPyObject_repr(v);
1378
PyObject *repr = PySwigObject_repr(v, NULL);
1578
PyObject *repr = SwigPyObject_repr(v, NULL);
1381
fputs(PyString_AsString(repr), fp);
1581
str = SWIG_Python_str_AsChar(repr);
1583
SWIG_Python_str_DelForPy3(str);
1382
1584
Py_DECREF(repr);
1389
1591
SWIGRUNTIME PyObject *
1390
PySwigObject_str(PySwigObject *v)
1592
SwigPyObject_str(SwigPyObject *v)
1392
1594
char result[SWIG_BUFFER_SIZE];
1393
1595
return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1394
PyString_FromString(result) : 0;
1596
SWIG_Python_str_FromChar(result) : 0;
1397
1599
SWIGRUNTIME int
1398
PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1600
SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1400
1602
void *i = v->ptr;
1401
1603
void *j = w->ptr;
1402
1604
return (i < j) ? -1 : ((i > j) ? 1 : 0);
1405
SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
SWIGRUNTIME PyTypeObject*
1408
PySwigObject_type(void) {
1409
static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1607
/* Added for Python 3.x, would it also be useful for Python 2.x? */
1608
SWIGRUNTIME PyObject*
1609
SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1612
if( op != Py_EQ && op != Py_NE ) {
1613
Py_INCREF(Py_NotImplemented);
1614
return Py_NotImplemented;
1616
res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1621
SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1623
#ifdef SWIGPYTHON_BUILTIN
1624
static swig_type_info *SwigPyObject_stype = 0;
1625
SWIGRUNTIME PyTypeObject*
1626
SwigPyObject_type(void) {
1627
SwigPyClientData *cd;
1628
assert(SwigPyObject_stype);
1629
cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1635
SWIGRUNTIME PyTypeObject*
1636
SwigPyObject_type(void) {
1637
static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1413
1642
SWIGRUNTIMEINLINE int
1414
PySwigObject_Check(PyObject *op) {
1415
return ((op)->ob_type == PySwigObject_type())
1416
|| (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1643
SwigPyObject_Check(PyObject *op) {
1644
#ifdef SWIGPYTHON_BUILTIN
1645
PyTypeObject *target_tp = SwigPyObject_type();
1646
if (PyType_IsSubtype(op->ob_type, target_tp))
1648
return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1650
return (Py_TYPE(op) == SwigPyObject_type())
1651
|| (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1419
1655
SWIGRUNTIME PyObject *
1420
PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1656
SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1422
1658
SWIGRUNTIME void
1423
PySwigObject_dealloc(PyObject *v)
1659
SwigPyObject_dealloc(PyObject *v)
1425
PySwigObject *sobj = (PySwigObject *) v;
1661
SwigPyObject *sobj = (SwigPyObject *) v;
1426
1662
PyObject *next = sobj->next;
1427
1663
if (sobj->own == SWIG_POINTER_OWN) {
1428
1664
swig_type_info *ty = sobj->ty;
1429
PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1665
SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1430
1666
PyObject *destroy = data ? data->destroy : 0;
1432
1668
/* destroy is always a VARARGS method */
1434
1670
if (data->delargs) {
1435
/* we need to create a temporal object to carry the destroy operation */
1436
PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1671
/* we need to create a temporary object to carry the destroy operation */
1672
PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1437
1673
res = SWIG_Python_CallFunctor(destroy, tmp);
1438
1674
Py_DECREF(tmp);
1550
1786
static PyMethodDef
1551
1787
swigobject_methods[] = {
1552
{(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553
{(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554
{(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555
{(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556
{(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557
{(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1788
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1789
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1790
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1791
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"},
1792
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1793
{(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"},
1561
1797
static PyMethodDef
1562
1798
swigobject_methods[] = {
1563
{(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564
{(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565
{(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566
{(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567
{(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568
{(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1799
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1800
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1801
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1802
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1803
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1804
{(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"},
1573
1809
#if PY_VERSION_HEX < 0x02020000
1574
1810
SWIGINTERN PyObject *
1575
PySwigObject_getattr(PySwigObject *sobj,char *name)
1811
SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1577
1813
return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1581
1817
SWIGRUNTIME PyTypeObject*
1582
_PySwigObject_type(void) {
1818
SwigPyObject_TypeOnce(void) {
1583
1819
static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1585
static PyNumberMethods PySwigObject_as_number = {
1821
static PyNumberMethods SwigPyObject_as_number = {
1586
1822
(binaryfunc)0, /*nb_add*/
1587
1823
(binaryfunc)0, /*nb_subtract*/
1588
1824
(binaryfunc)0, /*nb_multiply*/
1825
/* nb_divide removed in Python 3 */
1826
#if PY_VERSION_HEX < 0x03000000
1589
1827
(binaryfunc)0, /*nb_divide*/
1590
1829
(binaryfunc)0, /*nb_remainder*/
1591
1830
(binaryfunc)0, /*nb_divmod*/
1592
1831
(ternaryfunc)0,/*nb_power*/
1603
(coercion)0, /*nb_coerce*/
1604
(unaryfunc)PySwigObject_long, /*nb_int*/
1605
(unaryfunc)PySwigObject_long, /*nb_long*/
1842
#if PY_VERSION_HEX < 0x03000000
1845
(unaryfunc)SwigPyObject_long, /*nb_int*/
1846
#if PY_VERSION_HEX < 0x03000000
1847
(unaryfunc)SwigPyObject_long, /*nb_long*/
1606
1851
(unaryfunc)0, /*nb_float*/
1607
(unaryfunc)PySwigObject_oct, /*nb_oct*/
1608
(unaryfunc)PySwigObject_hex, /*nb_hex*/
1609
#if PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
1852
#if PY_VERSION_HEX < 0x03000000
1853
(unaryfunc)SwigPyObject_oct, /*nb_oct*/
1854
(unaryfunc)SwigPyObject_hex, /*nb_hex*/
1856
#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */
1857
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1858
#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
1610
1859
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1611
1860
#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
1612
1861
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1618
static PyTypeObject pyswigobject_type;
1867
static PyTypeObject swigpyobject_type;
1619
1868
static int type_init = 0;
1620
1869
if (!type_init) {
1621
const PyTypeObject tmp
1623
PyObject_HEAD_INIT(NULL)
1625
(char *)"PySwigObject", /* tp_name */
1626
sizeof(PySwigObject), /* tp_basicsize */
1627
0, /* tp_itemsize */
1628
(destructor)PySwigObject_dealloc, /* tp_dealloc */
1629
(printfunc)PySwigObject_print, /* tp_print */
1870
const PyTypeObject tmp = {
1871
/* PyObject header changed in Python 3 */
1872
#if PY_VERSION_HEX >= 0x03000000
1873
PyVarObject_HEAD_INIT(NULL, 0)
1875
PyObject_HEAD_INIT(NULL)
1878
(char *)"SwigPyObject", /* tp_name */
1879
sizeof(SwigPyObject), /* tp_basicsize */
1880
0, /* tp_itemsize */
1881
(destructor)SwigPyObject_dealloc, /* tp_dealloc */
1882
(printfunc)SwigPyObject_print, /* tp_print */
1630
1883
#if PY_VERSION_HEX < 0x02020000
1631
(getattrfunc)PySwigObject_getattr, /* tp_getattr */
1633
(getattrfunc)0, /* tp_getattr */
1635
(setattrfunc)0, /* tp_setattr */
1636
(cmpfunc)PySwigObject_compare, /* tp_compare */
1637
(reprfunc)PySwigObject_repr, /* tp_repr */
1638
&PySwigObject_as_number, /* tp_as_number */
1639
0, /* tp_as_sequence */
1640
0, /* tp_as_mapping */
1641
(hashfunc)0, /* tp_hash */
1642
(ternaryfunc)0, /* tp_call */
1643
(reprfunc)PySwigObject_str, /* tp_str */
1644
PyObject_GenericGetAttr, /* tp_getattro */
1645
0, /* tp_setattro */
1646
0, /* tp_as_buffer */
1647
Py_TPFLAGS_DEFAULT, /* tp_flags */
1648
swigobject_doc, /* tp_doc */
1649
0, /* tp_traverse */
1651
0, /* tp_richcompare */
1652
0, /* tp_weaklistoffset */
1884
(getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1886
(getattrfunc)0, /* tp_getattr */
1888
(setattrfunc)0, /* tp_setattr */
1889
#if PY_VERSION_HEX >= 0x03000000
1890
0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1892
(cmpfunc)SwigPyObject_compare, /* tp_compare */
1894
(reprfunc)SwigPyObject_repr, /* tp_repr */
1895
&SwigPyObject_as_number, /* tp_as_number */
1896
0, /* tp_as_sequence */
1897
0, /* tp_as_mapping */
1898
(hashfunc)0, /* tp_hash */
1899
(ternaryfunc)0, /* tp_call */
1900
(reprfunc)SwigPyObject_str, /* tp_str */
1901
PyObject_GenericGetAttr, /* tp_getattro */
1902
0, /* tp_setattro */
1903
0, /* tp_as_buffer */
1904
Py_TPFLAGS_DEFAULT, /* tp_flags */
1905
swigobject_doc, /* tp_doc */
1906
0, /* tp_traverse */
1908
(richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1909
0, /* tp_weaklistoffset */
1653
1910
#if PY_VERSION_HEX >= 0x02020000
1655
0, /* tp_iternext */
1656
swigobject_methods, /* tp_methods */
1661
0, /* tp_descr_get */
1662
0, /* tp_descr_set */
1663
0, /* tp_dictoffset */
1672
0, /* tp_subclasses */
1673
0, /* tp_weaklist */
1912
0, /* tp_iternext */
1913
swigobject_methods, /* tp_methods */
1918
0, /* tp_descr_get */
1919
0, /* tp_descr_set */
1920
0, /* tp_dictoffset */
1929
0, /* tp_subclasses */
1930
0, /* tp_weaklist */
1675
1932
#if PY_VERSION_HEX >= 0x02030000
1935
#if PY_VERSION_HEX >= 0x02060000
1678
1938
#ifdef COUNT_ALLOCS
1679
0,0,0,0 /* tp_alloc -> tp_next */
1939
0,0,0,0 /* tp_alloc -> tp_next */
1682
pyswigobject_type = tmp;
1683
pyswigobject_type.ob_type = &PyType_Type;
1942
swigpyobject_type = tmp;
1944
#if PY_VERSION_HEX < 0x02020000
1945
swigpyobject_type.ob_type = &PyType_Type;
1947
if (PyType_Ready(&swigpyobject_type) < 0)
1686
return &pyswigobject_type;
1951
return &swigpyobject_type;
1689
1954
SWIGRUNTIME PyObject *
1690
PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1955
SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1692
PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1957
SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
1694
1959
sobj->ptr = ptr;
1755
2020
return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1758
SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
2023
SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
1760
2025
SWIGRUNTIME PyTypeObject*
1761
PySwigPacked_type(void) {
1762
static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
2026
SwigPyPacked_type(void) {
2027
static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
1766
2031
SWIGRUNTIMEINLINE int
1767
PySwigPacked_Check(PyObject *op) {
1768
return ((op)->ob_type == _PySwigPacked_type())
1769
|| (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
2032
SwigPyPacked_Check(PyObject *op) {
2033
return ((op)->ob_type == SwigPyPacked_TypeOnce())
2034
|| (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
1772
2037
SWIGRUNTIME void
1773
PySwigPacked_dealloc(PyObject *v)
2038
SwigPyPacked_dealloc(PyObject *v)
1775
if (PySwigPacked_Check(v)) {
1776
PySwigPacked *sobj = (PySwigPacked *) v;
2040
if (SwigPyPacked_Check(v)) {
2041
SwigPyPacked *sobj = (SwigPyPacked *) v;
1777
2042
free(sobj->pack);
1779
2044
PyObject_DEL(v);
1782
2047
SWIGRUNTIME PyTypeObject*
1783
_PySwigPacked_type(void) {
2048
SwigPyPacked_TypeOnce(void) {
1784
2049
static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1785
static PyTypeObject pyswigpacked_type;
1786
static int type_init = 0;
2050
static PyTypeObject swigpypacked_type;
2051
static int type_init = 0;
1787
2052
if (!type_init) {
1788
const PyTypeObject tmp
1790
PyObject_HEAD_INIT(NULL)
1792
(char *)"PySwigPacked", /* tp_name */
1793
sizeof(PySwigPacked), /* tp_basicsize */
1794
0, /* tp_itemsize */
1795
(destructor)PySwigPacked_dealloc, /* tp_dealloc */
1796
(printfunc)PySwigPacked_print, /* tp_print */
1797
(getattrfunc)0, /* tp_getattr */
1798
(setattrfunc)0, /* tp_setattr */
1799
(cmpfunc)PySwigPacked_compare, /* tp_compare */
1800
(reprfunc)PySwigPacked_repr, /* tp_repr */
1801
0, /* tp_as_number */
1802
0, /* tp_as_sequence */
1803
0, /* tp_as_mapping */
1804
(hashfunc)0, /* tp_hash */
1805
(ternaryfunc)0, /* tp_call */
1806
(reprfunc)PySwigPacked_str, /* tp_str */
1807
PyObject_GenericGetAttr, /* tp_getattro */
1808
0, /* tp_setattro */
1809
0, /* tp_as_buffer */
1810
Py_TPFLAGS_DEFAULT, /* tp_flags */
1811
swigpacked_doc, /* tp_doc */
1812
0, /* tp_traverse */
1814
0, /* tp_richcompare */
1815
0, /* tp_weaklistoffset */
2053
const PyTypeObject tmp = {
2054
/* PyObject header changed in Python 3 */
2055
#if PY_VERSION_HEX>=0x03000000
2056
PyVarObject_HEAD_INIT(NULL, 0)
2058
PyObject_HEAD_INIT(NULL)
2061
(char *)"SwigPyPacked", /* tp_name */
2062
sizeof(SwigPyPacked), /* tp_basicsize */
2063
0, /* tp_itemsize */
2064
(destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2065
(printfunc)SwigPyPacked_print, /* tp_print */
2066
(getattrfunc)0, /* tp_getattr */
2067
(setattrfunc)0, /* tp_setattr */
2068
#if PY_VERSION_HEX>=0x03000000
2069
0, /* tp_reserved in 3.0.1 */
2071
(cmpfunc)SwigPyPacked_compare, /* tp_compare */
2073
(reprfunc)SwigPyPacked_repr, /* tp_repr */
2074
0, /* tp_as_number */
2075
0, /* tp_as_sequence */
2076
0, /* tp_as_mapping */
2077
(hashfunc)0, /* tp_hash */
2078
(ternaryfunc)0, /* tp_call */
2079
(reprfunc)SwigPyPacked_str, /* tp_str */
2080
PyObject_GenericGetAttr, /* tp_getattro */
2081
0, /* tp_setattro */
2082
0, /* tp_as_buffer */
2083
Py_TPFLAGS_DEFAULT, /* tp_flags */
2084
swigpacked_doc, /* tp_doc */
2085
0, /* tp_traverse */
2087
0, /* tp_richcompare */
2088
0, /* tp_weaklistoffset */
1816
2089
#if PY_VERSION_HEX >= 0x02020000
1818
0, /* tp_iternext */
1824
0, /* tp_descr_get */
1825
0, /* tp_descr_set */
1826
0, /* tp_dictoffset */
1835
0, /* tp_subclasses */
1836
0, /* tp_weaklist */
2091
0, /* tp_iternext */
2097
0, /* tp_descr_get */
2098
0, /* tp_descr_set */
2099
0, /* tp_dictoffset */
2108
0, /* tp_subclasses */
2109
0, /* tp_weaklist */
1838
2111
#if PY_VERSION_HEX >= 0x02030000
2114
#if PY_VERSION_HEX >= 0x02060000
1841
2117
#ifdef COUNT_ALLOCS
1842
0,0,0,0 /* tp_alloc -> tp_next */
2118
0,0,0,0 /* tp_alloc -> tp_next */
1845
pyswigpacked_type = tmp;
1846
pyswigpacked_type.ob_type = &PyType_Type;
2121
swigpypacked_type = tmp;
2123
#if PY_VERSION_HEX < 0x02020000
2124
swigpypacked_type.ob_type = &PyType_Type;
2126
if (PyType_Ready(&swigpypacked_type) < 0)
1849
return &pyswigpacked_type;
2130
return &swigpypacked_type;
1852
2133
SWIGRUNTIME PyObject *
1853
PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
2134
SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
1855
PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
2136
SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
1857
2138
void *pack = malloc(size);
1888
2169
SWIGRUNTIMEINLINE PyObject *
1889
2170
_SWIG_This(void)
1891
return PyString_FromString("this");
2172
return SWIG_Python_str_FromChar("this");
2175
static PyObject *swig_this = NULL;
1894
2177
SWIGRUNTIME PyObject *
1895
2178
SWIG_This(void)
1897
static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
2180
if (swig_this == NULL)
2181
swig_this = _SWIG_This();
1898
2182
return swig_this;
1901
2185
/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1903
SWIGRUNTIME PySwigObject *
2187
/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2188
#if PY_VERSION_HEX>=0x03000000
2189
#define SWIG_PYTHON_SLOW_GETSET_THIS
2192
SWIGRUNTIME SwigPyObject *
1904
2193
SWIG_Python_GetSwigThis(PyObject *pyobj)
1906
if (PySwigObject_Check(pyobj)) {
1907
return (PySwigObject *) pyobj;
2197
if (SwigPyObject_Check(pyobj))
2198
return (SwigPyObject *) pyobj;
2200
#ifdef SWIGPYTHON_BUILTIN
2202
# ifdef PyWeakref_CheckProxy
2203
if (PyWeakref_CheckProxy(pyobj)) {
2204
pyobj = PyWeakref_GET_OBJECT(pyobj);
2205
if (pyobj && SwigPyObject_Check(pyobj))
2206
return (SwigPyObject*) pyobj;
1910
2214
#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1911
if (PyInstance_Check(pyobj)) {
1912
obj = _PyInstance_Lookup(pyobj, SWIG_This());
2215
if (PyInstance_Check(pyobj)) {
2216
obj = _PyInstance_Lookup(pyobj, SWIG_This());
2218
PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2219
if (dictptr != NULL) {
2220
PyObject *dict = *dictptr;
2221
obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1914
PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1915
if (dictptr != NULL) {
1916
PyObject *dict = *dictptr;
1917
obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1919
2223
#ifdef PyWeakref_CheckProxy
1920
if (PyWeakref_CheckProxy(pyobj)) {
1921
PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1922
return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2224
if (PyWeakref_CheckProxy(pyobj)) {
2225
PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2226
return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1925
obj = PyObject_GetAttr(pyobj,SWIG_This());
1929
if (PyErr_Occurred()) PyErr_Clear();
2229
obj = PyObject_GetAttr(pyobj,SWIG_This());
2233
if (PyErr_Occurred()) PyErr_Clear();
1935
obj = PyObject_GetAttr(pyobj,SWIG_This());
1939
if (PyErr_Occurred()) PyErr_Clear();
1943
if (obj && !PySwigObject_Check(obj)) {
1944
/* a PyObject is called 'this', try to get the 'real this'
1945
PySwigObject from it */
1946
return SWIG_Python_GetSwigThis(obj);
1948
return (PySwigObject *)obj;
2239
obj = PyObject_GetAttr(pyobj,SWIG_This());
2243
if (PyErr_Occurred()) PyErr_Clear();
2247
if (obj && !SwigPyObject_Check(obj)) {
2248
/* a PyObject is called 'this', try to get the 'real this'
2249
SwigPyObject from it */
2250
return SWIG_Python_GetSwigThis(obj);
2252
return (SwigPyObject *)obj;
1952
2256
/* Acquire a pointer value */
1969
2273
SWIGRUNTIME int
1970
2274
SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1971
if (!obj) return SWIG_ERROR;
1972
2280
if (obj == Py_None) {
1974
2283
return SWIG_OK;
1976
PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
2288
sobj = SWIG_Python_GetSwigThis(obj);
2292
void *vptr = sobj->ptr;
2294
swig_type_info *to = sobj->ty;
2296
/* no type cast needed */
2297
if (ptr) *ptr = vptr;
2300
swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2302
sobj = (SwigPyObject *)sobj->next;
2306
*ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2307
if (newmemory == SWIG_CAST_NEW_MEMORY) {
2308
assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2310
*own = *own | SWIG_CAST_NEW_MEMORY;
2317
if (ptr) *ptr = vptr;
1980
void *vptr = sobj->ptr;
1982
swig_type_info *to = sobj->ty;
1984
/* no type cast needed */
1985
if (ptr) *ptr = vptr;
1988
swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1990
sobj = (PySwigObject *)sobj->next;
1994
*ptr = SWIG_TypeCast(tc,vptr,&newmemory);
1995
if (newmemory == SWIG_CAST_NEW_MEMORY) {
1998
*own = *own | SWIG_CAST_NEW_MEMORY;
2323
*own = *own | sobj->own;
2324
if (flags & SWIG_POINTER_DISOWN) {
2329
if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2330
SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2331
if (data && !data->implicitconv) {
2332
PyObject *klass = data->klass;
2335
data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2336
impconv = SWIG_Python_CallFunctor(klass, obj);
2337
data->implicitconv = 0;
2338
if (PyErr_Occurred()) {
2343
SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2346
res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2347
if (SWIG_IsOK(res)) {
2350
/* transfer the ownership to 'ptr' */
2352
res = SWIG_AddCast(res);
2353
res = SWIG_AddNewMask(res);
2355
res = SWIG_AddCast(res);
2005
if (ptr) *ptr = vptr;
2011
*own = *own | sobj->own;
2012
if (flags & SWIG_POINTER_DISOWN) {
2017
int res = SWIG_ERROR;
2018
if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2019
PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2020
if (data && !data->implicitconv) {
2021
PyObject *klass = data->klass;
2024
data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2025
impconv = SWIG_Python_CallFunctor(klass, obj);
2026
data->implicitconv = 0;
2027
if (PyErr_Occurred()) {
2032
PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2035
res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2036
if (SWIG_IsOK(res)) {
2039
/* transfer the ownership to 'ptr' */
2041
res = SWIG_AddCast(res);
2042
res = SWIG_AddNewMask(res);
2044
res = SWIG_AddCast(res);
2058
2368
/* Convert a function ptr value */
2216
2532
/* Create a new pointer object */
2218
2534
SWIGRUNTIME PyObject *
2219
SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2535
SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2536
SwigPyClientData *clientdata;
2221
2541
return SWIG_Py_Void();
2223
int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2224
PyObject *robj = PySwigObject_New(ptr, type, own);
2225
PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2226
if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2227
PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2543
clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2544
own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2545
if (clientdata && clientdata->pytype) {
2546
SwigPyObject *newobj;
2547
if (flags & SWIG_BUILTIN_TP_INIT) {
2548
newobj = (SwigPyObject*) self;
2550
PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2551
while (newobj->next)
2552
newobj = (SwigPyObject *) newobj->next;
2553
newobj->next = next_self;
2554
newobj = (SwigPyObject *)next_self;
2557
newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2564
#ifdef SWIGPYTHON_BUILTIN
2567
return (PyObject*) newobj;
2569
return SWIG_Py_Void();
2572
assert(!(flags & SWIG_BUILTIN_TP_INIT));
2574
robj = SwigPyObject_New(ptr, type, own);
2575
if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2576
PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2237
2585
/* Create a new packed object */
2239
2587
SWIGRUNTIMEINLINE PyObject *
2240
2588
SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2241
return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2589
return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2244
2592
/* -----------------------------------------------------------------------------*
2541
2976
#define SWIGTYPE_p_svn_dirent_t swig_types[54]
2542
2977
#define SWIGTYPE_p_svn_errno_t swig_types[55]
2543
2978
#define SWIGTYPE_p_svn_error_t swig_types[56]
2544
#define SWIGTYPE_p_svn_io_dirent_t swig_types[57]
2545
#define SWIGTYPE_p_svn_io_file_del_t swig_types[58]
2546
#define SWIGTYPE_p_svn_location_segment_t swig_types[59]
2547
#define SWIGTYPE_p_svn_lock_t swig_types[60]
2548
#define SWIGTYPE_p_svn_log_changed_path2_t swig_types[61]
2549
#define SWIGTYPE_p_svn_log_changed_path_t swig_types[62]
2550
#define SWIGTYPE_p_svn_log_entry_t swig_types[63]
2551
#define SWIGTYPE_p_svn_merge_range_t swig_types[64]
2552
#define SWIGTYPE_p_svn_mergeinfo_inheritance_t swig_types[65]
2553
#define SWIGTYPE_p_svn_node_kind_t swig_types[66]
2554
#define SWIGTYPE_p_svn_opt_revision_range_t swig_types[67]
2555
#define SWIGTYPE_p_svn_opt_revision_t swig_types[68]
2556
#define SWIGTYPE_p_svn_opt_revision_value_t swig_types[69]
2557
#define SWIGTYPE_p_svn_opt_subcommand_desc2_t swig_types[70]
2558
#define SWIGTYPE_p_svn_opt_subcommand_desc_t swig_types[71]
2559
#define SWIGTYPE_p_svn_prop_kind swig_types[72]
2560
#define SWIGTYPE_p_svn_stream_t swig_types[73]
2561
#define SWIGTYPE_p_svn_string_t swig_types[74]
2562
#define SWIGTYPE_p_svn_stringbuf_t swig_types[75]
2563
#define SWIGTYPE_p_svn_txdelta_op_t swig_types[76]
2564
#define SWIGTYPE_p_svn_txdelta_stream_t swig_types[77]
2565
#define SWIGTYPE_p_svn_txdelta_window_t swig_types[78]
2566
#define SWIGTYPE_p_svn_version_checklist_t swig_types[79]
2567
#define SWIGTYPE_p_svn_version_t swig_types[80]
2568
#define SWIGTYPE_p_unsigned_char swig_types[81]
2569
#define SWIGTYPE_p_void swig_types[82]
2570
static swig_type_info *swig_types[84];
2571
static swig_module_info swig_module = {swig_types, 83, 0, 0, 0, 0};
2979
#define SWIGTYPE_p_svn_io_dirent2_t swig_types[57]
2980
#define SWIGTYPE_p_svn_io_dirent_t swig_types[58]
2981
#define SWIGTYPE_p_svn_io_file_del_t swig_types[59]
2982
#define SWIGTYPE_p_svn_location_segment_t swig_types[60]
2983
#define SWIGTYPE_p_svn_lock_t swig_types[61]
2984
#define SWIGTYPE_p_svn_log_changed_path2_t swig_types[62]
2985
#define SWIGTYPE_p_svn_log_changed_path_t swig_types[63]
2986
#define SWIGTYPE_p_svn_log_entry_t swig_types[64]
2987
#define SWIGTYPE_p_svn_merge_range_t swig_types[65]
2988
#define SWIGTYPE_p_svn_mergeinfo_inheritance_t swig_types[66]
2989
#define SWIGTYPE_p_svn_node_kind_t swig_types[67]
2990
#define SWIGTYPE_p_svn_opt_revision_range_t swig_types[68]
2991
#define SWIGTYPE_p_svn_opt_revision_t swig_types[69]
2992
#define SWIGTYPE_p_svn_opt_revision_value_t swig_types[70]
2993
#define SWIGTYPE_p_svn_opt_subcommand_desc2_t swig_types[71]
2994
#define SWIGTYPE_p_svn_opt_subcommand_desc_t swig_types[72]
2995
#define SWIGTYPE_p_svn_prop_kind swig_types[73]
2996
#define SWIGTYPE_p_svn_stream_mark_t swig_types[74]
2997
#define SWIGTYPE_p_svn_stream_t swig_types[75]
2998
#define SWIGTYPE_p_svn_string_t swig_types[76]
2999
#define SWIGTYPE_p_svn_stringbuf_t swig_types[77]
3000
#define SWIGTYPE_p_svn_tristate_t swig_types[78]
3001
#define SWIGTYPE_p_svn_txdelta_op_t swig_types[79]
3002
#define SWIGTYPE_p_svn_txdelta_stream_t swig_types[80]
3003
#define SWIGTYPE_p_svn_txdelta_window_t swig_types[81]
3004
#define SWIGTYPE_p_svn_version_checklist_t swig_types[82]
3005
#define SWIGTYPE_p_svn_version_t swig_types[83]
3006
#define SWIGTYPE_p_unsigned_char swig_types[84]
3007
#define SWIGTYPE_p_unsigned_long swig_types[85]
3008
#define SWIGTYPE_p_void swig_types[86]
3009
static swig_type_info *swig_types[88];
3010
static swig_module_info swig_module = {swig_types, 87, 0, 0, 0, 0};
2572
3011
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2573
3012
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2625
3069
#define svn_argnum_obj17 18
2626
3070
#define svn_argnum_obj18 19
2627
3071
#define svn_argnum_obj19 20
3072
#define svn_argnum_obj20 21
3073
#define svn_argnum_obj21 22
3074
#define svn_argnum_obj22 23
3075
#define svn_argnum_obj23 24
3076
#define svn_argnum_obj24 25
3077
#define svn_argnum_obj25 26
3078
#define svn_argnum_obj26 27
3079
#define svn_argnum_obj27 28
3080
#define svn_argnum_obj28 29
3081
#define svn_argnum_obj29 30
3082
#define svn_argnum_obj30 31
3083
#define svn_argnum_obj31 32
3084
#define svn_argnum_obj32 33
3085
#define svn_argnum_obj33 34
3086
#define svn_argnum_obj34 35
3087
#define svn_argnum_obj35 36
3088
#define svn_argnum_obj36 37
3089
#define svn_argnum_obj37 38
3090
#define svn_argnum_obj38 39
3091
#define svn_argnum_obj39 40
2630
3094
#include <apr_md5.h>
2631
3095
#include "svn_md5.h"
3099
svn_txdelta_window_t_ops_get(PyObject *window_ob)
3102
PyObject *ops_list, *window_pool;
3106
Normally, these kinds of conversions would belong in a typemap.
3107
However, typemaps won't allow us to change the result type to an array,
3108
so we have to make this custom accessor function.
3109
A cleaner approach would be to use something like:
3111
%extend svn_txdelta_window_t { void get_ops(apr_array_header_t ** ops); }
3113
But that means unnecessary copying, plus more hacks to get the pool for the
3114
array and for wrapping the individual op objects. So we just don't bother.
3117
/* Note: the standard svn-python typemap releases the GIL while calling the
3118
wrapped function, but this function does Python stuff, so we have to
3119
reacquire it again. */
3120
svn_swig_py_acquire_py_lock();
3121
status = svn_swig_ConvertPtr(window_ob, &window,
3122
SWIG_TypeQuery("svn_txdelta_window_t *"));
3126
PyErr_SetString(PyExc_TypeError,
3127
"expected an svn_txdelta_window_t* proxy");
3128
svn_swig_py_release_py_lock();
3132
window_pool = PyObject_GetAttrString(window_ob, "_parent_pool");
3134
if (window_pool == NULL)
3136
svn_swig_py_release_py_lock();
3140
ops_list = svn_swig_py_txdelta_window_t_ops_get(window,
3141
SWIG_TypeQuery("svn_txdelta_op_t *"), window_pool);
3143
svn_swig_py_release_py_lock();
2634
3149
#include "svn_delta.h"
2911
3450
static svn_error_t * svn_delta_editor_invoke_set_target_revision(
2912
svn_delta_editor_t * _obj, void *edit_baton, svn_revnum_t target_revision, apr_pool_t *pool) {
2913
return (_obj->set_target_revision)(edit_baton, target_revision, pool);
3451
svn_delta_editor_t * _obj, void *edit_baton, svn_revnum_t target_revision, apr_pool_t *scratch_pool) {
3452
return (_obj->set_target_revision)(edit_baton, target_revision, scratch_pool);
2916
3455
static svn_error_t * svn_delta_editor_invoke_open_root(
2917
svn_delta_editor_t * _obj, void *edit_baton, svn_revnum_t base_revision, apr_pool_t *dir_pool, void **root_baton) {
2918
return (_obj->open_root)(edit_baton, base_revision, dir_pool, root_baton);
3456
svn_delta_editor_t * _obj, void *edit_baton, svn_revnum_t base_revision, apr_pool_t *result_pool, void **root_baton) {
3457
return (_obj->open_root)(edit_baton, base_revision, result_pool, root_baton);
2921
3460
static svn_error_t * svn_delta_editor_invoke_delete_entry(
2922
svn_delta_editor_t * _obj, const char *path, svn_revnum_t revision, void *parent_baton, apr_pool_t *pool) {
2923
return (_obj->delete_entry)(path, revision, parent_baton, pool);
3461
svn_delta_editor_t * _obj, const char *path, svn_revnum_t revision, void *parent_baton, apr_pool_t *scratch_pool) {
3462
return (_obj->delete_entry)(path, revision, parent_baton, scratch_pool);
2926
3465
static svn_error_t * svn_delta_editor_invoke_add_directory(
2927
svn_delta_editor_t * _obj, const char *path, void *parent_baton, const char *copyfrom_path, svn_revnum_t copyfrom_revision, apr_pool_t *dir_pool, void **child_baton) {
2928
return (_obj->add_directory)(path, parent_baton, copyfrom_path, copyfrom_revision, dir_pool, child_baton);
3466
svn_delta_editor_t * _obj, const char *path, void *parent_baton, const char *copyfrom_path, svn_revnum_t copyfrom_revision, apr_pool_t *result_pool, void **child_baton) {
3467
return (_obj->add_directory)(path, parent_baton, copyfrom_path, copyfrom_revision, result_pool, child_baton);
2931
3470
static svn_error_t * svn_delta_editor_invoke_open_directory(
2932
svn_delta_editor_t * _obj, const char *path, void *parent_baton, svn_revnum_t base_revision, apr_pool_t *dir_pool, void **child_baton) {
2933
return (_obj->open_directory)(path, parent_baton, base_revision, dir_pool, child_baton);
3471
svn_delta_editor_t * _obj, const char *path, void *parent_baton, svn_revnum_t base_revision, apr_pool_t *result_pool, void **child_baton) {
3472
return (_obj->open_directory)(path, parent_baton, base_revision, result_pool, child_baton);
2936
3475
static svn_error_t * svn_delta_editor_invoke_change_dir_prop(
2937
svn_delta_editor_t * _obj, void *dir_baton, const char *name, const svn_string_t *value, apr_pool_t *pool) {
2938
return (_obj->change_dir_prop)(dir_baton, name, value, pool);
3476
svn_delta_editor_t * _obj, void *dir_baton, const char *name, const svn_string_t *value, apr_pool_t *scratch_pool) {
3477
return (_obj->change_dir_prop)(dir_baton, name, value, scratch_pool);
2941
3480
static svn_error_t * svn_delta_editor_invoke_close_directory(
2942
svn_delta_editor_t * _obj, void *dir_baton, apr_pool_t *pool) {
2943
return (_obj->close_directory)(dir_baton, pool);
3481
svn_delta_editor_t * _obj, void *dir_baton, apr_pool_t *scratch_pool) {
3482
return (_obj->close_directory)(dir_baton, scratch_pool);
2946
3485
static svn_error_t * svn_delta_editor_invoke_absent_directory(
2947
svn_delta_editor_t * _obj, const char *path, void *parent_baton, apr_pool_t *pool) {
2948
return (_obj->absent_directory)(path, parent_baton, pool);
3486
svn_delta_editor_t * _obj, const char *path, void *parent_baton, apr_pool_t *scratch_pool) {
3487
return (_obj->absent_directory)(path, parent_baton, scratch_pool);
2951
3490
static svn_error_t * svn_delta_editor_invoke_add_file(
2952
svn_delta_editor_t * _obj, const char *path, void *parent_baton, const char *copyfrom_path, svn_revnum_t copyfrom_revision, apr_pool_t *file_pool, void **file_baton) {
2953
return (_obj->add_file)(path, parent_baton, copyfrom_path, copyfrom_revision, file_pool, file_baton);
3491
svn_delta_editor_t * _obj, const char *path, void *parent_baton, const char *copyfrom_path, svn_revnum_t copyfrom_revision, apr_pool_t *result_pool, void **file_baton) {
3492
return (_obj->add_file)(path, parent_baton, copyfrom_path, copyfrom_revision, result_pool, file_baton);
2956
3495
static svn_error_t * svn_delta_editor_invoke_open_file(
2957
svn_delta_editor_t * _obj, const char *path, void *parent_baton, svn_revnum_t base_revision, apr_pool_t *file_pool, void **file_baton) {
2958
return (_obj->open_file)(path, parent_baton, base_revision, file_pool, file_baton);
3496
svn_delta_editor_t * _obj, const char *path, void *parent_baton, svn_revnum_t base_revision, apr_pool_t *result_pool, void **file_baton) {
3497
return (_obj->open_file)(path, parent_baton, base_revision, result_pool, file_baton);
2961
3500
static svn_error_t * svn_delta_editor_invoke_apply_textdelta(
2962
svn_delta_editor_t * _obj, void *file_baton, const char *base_checksum, apr_pool_t *pool, svn_txdelta_window_handler_t *handler, void **handler_baton) {
2963
return (_obj->apply_textdelta)(file_baton, base_checksum, pool, handler, handler_baton);
3501
svn_delta_editor_t * _obj, void *file_baton, const char *base_checksum, apr_pool_t *result_pool, svn_txdelta_window_handler_t *handler, void **handler_baton) {
3502
return (_obj->apply_textdelta)(file_baton, base_checksum, result_pool, handler, handler_baton);
2966
3505
static svn_error_t * svn_delta_editor_invoke_change_file_prop(
2967
svn_delta_editor_t * _obj, void *file_baton, const char *name, const svn_string_t *value, apr_pool_t *pool) {
2968
return (_obj->change_file_prop)(file_baton, name, value, pool);
3506
svn_delta_editor_t * _obj, void *file_baton, const char *name, const svn_string_t *value, apr_pool_t *scratch_pool) {
3507
return (_obj->change_file_prop)(file_baton, name, value, scratch_pool);
2971
3510
static svn_error_t * svn_delta_editor_invoke_close_file(
2972
svn_delta_editor_t * _obj, void *file_baton, const char *text_checksum, apr_pool_t *pool) {
2973
return (_obj->close_file)(file_baton, text_checksum, pool);
3511
svn_delta_editor_t * _obj, void *file_baton, const char *text_checksum, apr_pool_t *scratch_pool) {
3512
return (_obj->close_file)(file_baton, text_checksum, scratch_pool);
2976
3515
static svn_error_t * svn_delta_editor_invoke_absent_file(
2977
svn_delta_editor_t * _obj, const char *path, void *parent_baton, apr_pool_t *pool) {
2978
return (_obj->absent_file)(path, parent_baton, pool);
3516
svn_delta_editor_t * _obj, const char *path, void *parent_baton, apr_pool_t *scratch_pool) {
3517
return (_obj->absent_file)(path, parent_baton, scratch_pool);
2981
3520
static svn_error_t * svn_delta_editor_invoke_close_edit(
2982
svn_delta_editor_t * _obj, void *edit_baton, apr_pool_t *pool) {
2983
return (_obj->close_edit)(edit_baton, pool);
3521
svn_delta_editor_t * _obj, void *edit_baton, apr_pool_t *scratch_pool) {
3522
return (_obj->close_edit)(edit_baton, scratch_pool);
2986
3525
static svn_error_t * svn_delta_editor_invoke_abort_edit(
2987
svn_delta_editor_t * _obj, void *edit_baton, apr_pool_t *pool) {
2988
return (_obj->abort_edit)(edit_baton, pool);
3526
svn_delta_editor_t * _obj, void *edit_baton, apr_pool_t *scratch_pool) {
3527
return (_obj->abort_edit)(edit_baton, scratch_pool);
2991
3530
static svn_error_t * svn_txdelta_invoke_window_handler(
4561
5081
resultobj = SWIG_Py_Void();
4563
5083
resultobj = SWIG_Python_AppendOutput(resultobj, svn_swig_NewPointerObj(arg6, SWIGTYPE_p_p_f_p_svn_txdelta_window_t_p_void__p_svn_error_t,
4564
_global_py_pool, args));
5084
_global_py_pool, args))
4567
5089
resultobj = SWIG_Python_AppendOutput(resultobj, svn_swig_NewPointerObj(*arg7, SWIGTYPE_p_void,
4568
_global_py_pool, args));
5090
_global_py_pool, args))
5095
Py_XDECREF(_global_py_pool);
5100
Py_XDECREF(_global_py_pool);
5106
SWIGINTERN PyObject *_wrap_svn_txdelta_to_svndiff3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5107
PyObject *resultobj = 0;
5108
svn_txdelta_window_handler_t *arg1 = (svn_txdelta_window_handler_t *) 0 ;
5109
void **arg2 = (void **) 0 ;
5110
svn_stream_t *arg3 = (svn_stream_t *) 0 ;
5113
apr_pool_t *arg6 = (apr_pool_t *) 0 ;
5114
apr_pool_t *_global_pool = NULL ;
5115
PyObject *_global_py_pool = NULL ;
5117
PyObject * obj0 = 0 ;
5118
PyObject * obj1 = 0 ;
5119
PyObject * obj2 = 0 ;
5120
PyObject * obj3 = 0 ;
5122
if (svn_swig_py_get_pool_arg(args, SWIGTYPE_p_apr_pool_t,
5123
&_global_py_pool, &_global_pool))
5125
arg6 = _global_pool;
5127
if (_global_pool == NULL)
5129
if (svn_swig_py_get_parent_pool(args, SWIGTYPE_p_apr_pool_t,
5130
&_global_py_pool, &_global_pool))
5133
arg1 = (svn_txdelta_window_handler_t *) apr_pcalloc(_global_pool, sizeof(svn_txdelta_window_handler_t));
5134
if (arg1 == NULL) SWIG_fail;
5137
if (!PyArg_ParseTuple(args,(char *)"OOO|O:svn_txdelta_to_svndiff3",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5139
arg3 = svn_swig_py_make_stream (obj0, _global_pool);
5142
arg4 = (int)SWIG_As_long (obj1);
5143
if (SWIG_arg_fail(svn_argnum_obj1)) {
5148
arg5 = (int)SWIG_As_long (obj2);
5149
if (SWIG_arg_fail(svn_argnum_obj2)) {
5154
/* Verify that the user supplied a valid pool */
5155
if (obj3 != Py_None && obj3 != _global_py_pool) {
5156
SWIG_Python_TypeError(SWIG_TypePrettyName(SWIGTYPE_p_apr_pool_t), obj3);
5157
SWIG_arg_fail(svn_argnum_obj3);
5162
svn_swig_py_release_py_lock();
5164
svn_txdelta_to_svndiff3(arg1,arg2,arg3,arg4,arg5,arg6);
5166
svn_swig_py_acquire_py_lock();
5169
resultobj = SWIG_Py_Void();
5171
resultobj = SWIG_Python_AppendOutput(resultobj, svn_swig_NewPointerObj(arg1, SWIGTYPE_p_p_f_p_svn_txdelta_window_t_p_void__p_svn_error_t,
5172
_global_py_pool, args))
5177
resultobj = SWIG_Python_AppendOutput(resultobj, svn_swig_NewPointerObj(*arg2, SWIGTYPE_p_void,
5178
_global_py_pool, args))
4571
5183
Py_XDECREF(_global_py_pool);
8111
8769
"svn_txdelta_compose_windows(svn_txdelta_window_t window_A, svn_txdelta_window_t window_B, \n"
8112
8770
" apr_pool_t pool) -> svn_txdelta_window_t\n"
8114
{ (char *)"svn_txdelta_apply_instructions", _wrap_svn_txdelta_apply_instructions, METH_VARARGS, (char *)"\n"
8115
"svn_txdelta_apply_instructions(svn_txdelta_window_t window, char sbuf, char tbuf, \n"
8116
" apr_size_t tlen)\n"
8772
{ (char *)"svn_txdelta_apply_instructions", _wrap_svn_txdelta_apply_instructions, METH_VARARGS, (char *)"svn_txdelta_apply_instructions(svn_txdelta_window_t window, char sbuf, char tbuf)"},
8118
8773
{ (char *)"svn_txdelta_run", _wrap_svn_txdelta_run, METH_VARARGS, (char *)"\n"
8119
8774
"svn_txdelta_run(svn_stream_t source, svn_stream_t target, svn_txdelta_window_handler_t handler, \n"
8120
8775
" void handler_baton, \n"
8121
" svn_checksum_kind_t checksum_kind, svn_checksum_t checksum, \n"
8122
" svn_cancel_func_t cancel_func, \n"
8123
" apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t\n"
8776
" svn_checksum_kind_t checksum_kind, svn_cancel_func_t cancel_func, \n"
8777
" apr_pool_t result_pool, \n"
8778
" apr_pool_t scratch_pool) -> svn_error_t\n"
8125
8780
{ (char *)"svn_txdelta_stream_create", _wrap_svn_txdelta_stream_create, METH_VARARGS, (char *)"\n"
8126
8781
"svn_txdelta_stream_create(void baton, svn_txdelta_next_window_fn_t next_window, \n"
8127
8782
" svn_txdelta_md5_digest_fn_t md5_digest, apr_pool_t pool) -> svn_txdelta_stream_t\n"
8129
{ (char *)"svn_txdelta_next_window", _wrap_svn_txdelta_next_window, METH_VARARGS, (char *)"\n"
8130
"svn_txdelta_next_window(svn_txdelta_window_t window, svn_txdelta_stream_t stream, \n"
8131
" apr_pool_t pool) -> svn_error_t\n"
8784
{ (char *)"svn_txdelta_next_window", _wrap_svn_txdelta_next_window, METH_VARARGS, (char *)"svn_txdelta_next_window(svn_txdelta_stream_t stream, apr_pool_t pool) -> svn_error_t"},
8133
8785
{ (char *)"svn_txdelta_md5_digest", _wrap_svn_txdelta_md5_digest, METH_VARARGS, (char *)"svn_txdelta_md5_digest(svn_txdelta_stream_t stream) -> unsigned char"},
8134
{ (char *)"svn_txdelta", _wrap_svn_txdelta, METH_VARARGS, (char *)"\n"
8135
"svn_txdelta(svn_txdelta_stream_t stream, svn_stream_t source, svn_stream_t target, \n"
8136
" apr_pool_t pool)\n"
8786
{ (char *)"svn_txdelta", _wrap_svn_txdelta, METH_VARARGS, (char *)"svn_txdelta(svn_stream_t source, svn_stream_t target, apr_pool_t pool)"},
8138
8787
{ (char *)"svn_txdelta_target_push", _wrap_svn_txdelta_target_push, METH_VARARGS, (char *)"\n"
8139
8788
"svn_txdelta_target_push(svn_txdelta_window_handler_t handler, void handler_baton, \n"
8140
8789
" svn_stream_t source, apr_pool_t pool) -> svn_stream_t\n"
8146
8795
{ (char *)"svn_txdelta_send_stream", _wrap_svn_txdelta_send_stream, METH_VARARGS, (char *)"\n"
8147
8796
"svn_txdelta_send_stream(svn_stream_t stream, svn_txdelta_window_handler_t handler, \n"
8148
" void handler_baton, unsigned char digest, \n"
8149
" apr_pool_t pool) -> svn_error_t\n"
8797
" void handler_baton, apr_pool_t pool) -> svn_error_t\n"
8151
8799
{ (char *)"svn_txdelta_send_txstream", _wrap_svn_txdelta_send_txstream, METH_VARARGS, (char *)"\n"
8152
8800
"svn_txdelta_send_txstream(svn_txdelta_stream_t txstream, svn_txdelta_window_handler_t handler, \n"
8153
8801
" void handler_baton, apr_pool_t pool) -> svn_error_t\n"
8155
8803
{ (char *)"svn_txdelta_apply", _wrap_svn_txdelta_apply, METH_VARARGS, (char *)"\n"
8156
"svn_txdelta_apply(svn_stream_t source, svn_stream_t target, unsigned char result_digest, \n"
8157
" char error_info, apr_pool_t pool, \n"
8158
" svn_txdelta_window_handler_t handler, \n"
8159
" void handler_baton)\n"
8161
{ (char *)"svn_txdelta_to_svndiff2", _wrap_svn_txdelta_to_svndiff2, METH_VARARGS, (char *)"\n"
8162
"svn_txdelta_to_svndiff2(svn_txdelta_window_handler_t handler, void handler_baton, \n"
8163
" svn_stream_t output, int svndiff_version, \n"
8164
" apr_pool_t pool)\n"
8166
{ (char *)"svn_txdelta_to_svndiff", _wrap_svn_txdelta_to_svndiff, METH_VARARGS, (char *)"\n"
8167
"svn_txdelta_to_svndiff(svn_stream_t output, apr_pool_t pool, svn_txdelta_window_handler_t handler, \n"
8168
" void handler_baton)\n"
8804
"svn_txdelta_apply(svn_stream_t source, svn_stream_t target, char error_info, \n"
8805
" apr_pool_t pool)\n"
8807
{ (char *)"svn_txdelta_to_svndiff3", _wrap_svn_txdelta_to_svndiff3, METH_VARARGS, (char *)"\n"
8808
"svn_txdelta_to_svndiff3(svn_stream_t output, int svndiff_version, int compression_level, \n"
8809
" apr_pool_t pool)\n"
8811
{ (char *)"svn_txdelta_to_svndiff2", _wrap_svn_txdelta_to_svndiff2, METH_VARARGS, (char *)"svn_txdelta_to_svndiff2(svn_stream_t output, int svndiff_version, apr_pool_t pool)"},
8812
{ (char *)"svn_txdelta_to_svndiff", _wrap_svn_txdelta_to_svndiff, METH_VARARGS, (char *)"svn_txdelta_to_svndiff(svn_stream_t output, apr_pool_t pool)"},
8170
8813
{ (char *)"svn_txdelta_parse_svndiff", _wrap_svn_txdelta_parse_svndiff, METH_VARARGS, (char *)"\n"
8171
8814
"svn_txdelta_parse_svndiff(svn_txdelta_window_handler_t handler, void handler_baton, \n"
8172
8815
" svn_boolean_t error_on_early_close, apr_pool_t pool) -> svn_stream_t\n"
8174
{ (char *)"svn_txdelta_read_svndiff_window", _wrap_svn_txdelta_read_svndiff_window, METH_VARARGS, (char *)"\n"
8175
"svn_txdelta_read_svndiff_window(svn_txdelta_window_t window, svn_stream_t stream, int svndiff_version, \n"
8176
" apr_pool_t pool) -> svn_error_t\n"
8817
{ (char *)"svn_txdelta_read_svndiff_window", _wrap_svn_txdelta_read_svndiff_window, METH_VARARGS, (char *)"svn_txdelta_read_svndiff_window(svn_stream_t stream, int svndiff_version, apr_pool_t pool) -> svn_error_t"},
8178
8818
{ (char *)"svn_txdelta_skip_svndiff_window", _wrap_svn_txdelta_skip_svndiff_window, METH_VARARGS, (char *)"svn_txdelta_skip_svndiff_window(apr_file_t file, int svndiff_version, apr_pool_t pool) -> svn_error_t"},
8179
8819
{ (char *)"svn_delta_editor_t_set_target_revision_set", _wrap_svn_delta_editor_t_set_target_revision_set, METH_VARARGS, (char *)"svn_delta_editor_t_set_target_revision_set(svn_delta_editor_t self, svn_error_t set_target_revision)"},
8180
8820
{ (char *)"svn_delta_editor_t_set_target_revision_get", _wrap_svn_delta_editor_t_set_target_revision_get, METH_VARARGS, (char *)"svn_delta_editor_t_set_target_revision_get(svn_delta_editor_t self) -> svn_error_t"},
8230
8868
" apr_pool_t pool) -> svn_error_t\n"
8232
8870
{ (char *)"svn_compat_wrap_file_rev_handler", _wrap_svn_compat_wrap_file_rev_handler, METH_VARARGS, (char *)"\n"
8233
"svn_compat_wrap_file_rev_handler(svn_file_rev_handler_t handler2, void handler2_baton, \n"
8234
" svn_file_rev_handler_old_t handler, void handler_baton, \n"
8871
"svn_compat_wrap_file_rev_handler(svn_file_rev_handler_old_t handler, void handler_baton, \n"
8235
8872
" apr_pool_t pool)\n"
8237
8874
{ (char *)"svn_txdelta_stream_t_swigregister", svn_txdelta_stream_t_swigregister, METH_VARARGS, NULL},
8238
8875
{ (char *)"svn_delta_editor_invoke_set_target_revision", _wrap_svn_delta_editor_invoke_set_target_revision, METH_VARARGS, (char *)"\n"
8239
8876
"svn_delta_editor_invoke_set_target_revision(svn_delta_editor_t _obj, void edit_baton, svn_revnum_t target_revision, \n"
8240
" apr_pool_t pool) -> svn_error_t\n"
8877
" apr_pool_t scratch_pool) -> svn_error_t\n"
8242
8879
{ (char *)"svn_delta_editor_invoke_open_root", _wrap_svn_delta_editor_invoke_open_root, METH_VARARGS, (char *)"\n"
8243
8880
"svn_delta_editor_invoke_open_root(svn_delta_editor_t _obj, void edit_baton, svn_revnum_t base_revision, \n"
8244
" apr_pool_t dir_pool, void root_baton) -> svn_error_t\n"
8881
" apr_pool_t result_pool) -> svn_error_t\n"
8246
8883
{ (char *)"svn_delta_editor_invoke_delete_entry", _wrap_svn_delta_editor_invoke_delete_entry, METH_VARARGS, (char *)"\n"
8247
8884
"svn_delta_editor_invoke_delete_entry(svn_delta_editor_t _obj, char path, svn_revnum_t revision, \n"
8248
" void parent_baton, apr_pool_t pool) -> svn_error_t\n"
8885
" void parent_baton, apr_pool_t scratch_pool) -> svn_error_t\n"
8250
8887
{ (char *)"svn_delta_editor_invoke_add_directory", _wrap_svn_delta_editor_invoke_add_directory, METH_VARARGS, (char *)"\n"
8251
8888
"svn_delta_editor_invoke_add_directory(svn_delta_editor_t _obj, char path, void parent_baton, \n"
8252
8889
" char copyfrom_path, svn_revnum_t copyfrom_revision, \n"
8253
" apr_pool_t dir_pool, void child_baton) -> svn_error_t\n"
8890
" apr_pool_t result_pool) -> svn_error_t\n"
8255
8892
{ (char *)"svn_delta_editor_invoke_open_directory", _wrap_svn_delta_editor_invoke_open_directory, METH_VARARGS, (char *)"\n"
8256
8893
"svn_delta_editor_invoke_open_directory(svn_delta_editor_t _obj, char path, void parent_baton, \n"
8257
" svn_revnum_t base_revision, apr_pool_t dir_pool, \n"
8258
" void child_baton) -> svn_error_t\n"
8894
" svn_revnum_t base_revision, apr_pool_t result_pool) -> svn_error_t\n"
8260
8896
{ (char *)"svn_delta_editor_invoke_change_dir_prop", _wrap_svn_delta_editor_invoke_change_dir_prop, METH_VARARGS, (char *)"\n"
8261
8897
"svn_delta_editor_invoke_change_dir_prop(svn_delta_editor_t _obj, void dir_baton, char name, \n"
8262
" svn_string_t value, apr_pool_t pool) -> svn_error_t\n"
8898
" svn_string_t value, apr_pool_t scratch_pool) -> svn_error_t\n"
8264
{ (char *)"svn_delta_editor_invoke_close_directory", _wrap_svn_delta_editor_invoke_close_directory, METH_VARARGS, (char *)"svn_delta_editor_invoke_close_directory(svn_delta_editor_t _obj, void dir_baton, apr_pool_t pool) -> svn_error_t"},
8900
{ (char *)"svn_delta_editor_invoke_close_directory", _wrap_svn_delta_editor_invoke_close_directory, METH_VARARGS, (char *)"svn_delta_editor_invoke_close_directory(svn_delta_editor_t _obj, void dir_baton, apr_pool_t scratch_pool) -> svn_error_t"},
8265
8901
{ (char *)"svn_delta_editor_invoke_absent_directory", _wrap_svn_delta_editor_invoke_absent_directory, METH_VARARGS, (char *)"\n"
8266
8902
"svn_delta_editor_invoke_absent_directory(svn_delta_editor_t _obj, char path, void parent_baton, \n"
8267
" apr_pool_t pool) -> svn_error_t\n"
8903
" apr_pool_t scratch_pool) -> svn_error_t\n"
8269
8905
{ (char *)"svn_delta_editor_invoke_add_file", _wrap_svn_delta_editor_invoke_add_file, METH_VARARGS, (char *)"\n"
8270
8906
"svn_delta_editor_invoke_add_file(svn_delta_editor_t _obj, char path, void parent_baton, \n"
8271
8907
" char copyfrom_path, svn_revnum_t copyfrom_revision, \n"
8272
" apr_pool_t file_pool, void file_baton) -> svn_error_t\n"
8908
" apr_pool_t result_pool) -> svn_error_t\n"
8274
8910
{ (char *)"svn_delta_editor_invoke_open_file", _wrap_svn_delta_editor_invoke_open_file, METH_VARARGS, (char *)"\n"
8275
8911
"svn_delta_editor_invoke_open_file(svn_delta_editor_t _obj, char path, void parent_baton, \n"
8276
" svn_revnum_t base_revision, apr_pool_t file_pool, \n"
8277
" void file_baton) -> svn_error_t\n"
8912
" svn_revnum_t base_revision, apr_pool_t result_pool) -> svn_error_t\n"
8279
8914
{ (char *)"svn_delta_editor_invoke_apply_textdelta", _wrap_svn_delta_editor_invoke_apply_textdelta, METH_VARARGS, (char *)"\n"
8280
8915
"svn_delta_editor_invoke_apply_textdelta(svn_delta_editor_t _obj, void file_baton, char base_checksum, \n"
8281
" apr_pool_t pool, svn_txdelta_window_handler_t handler, \n"
8282
" void handler_baton) -> svn_error_t\n"
8916
" apr_pool_t result_pool) -> svn_error_t\n"
8284
8918
{ (char *)"svn_delta_editor_invoke_change_file_prop", _wrap_svn_delta_editor_invoke_change_file_prop, METH_VARARGS, (char *)"\n"
8285
8919
"svn_delta_editor_invoke_change_file_prop(svn_delta_editor_t _obj, void file_baton, char name, \n"
8286
" svn_string_t value, apr_pool_t pool) -> svn_error_t\n"
8920
" svn_string_t value, apr_pool_t scratch_pool) -> svn_error_t\n"
8288
8922
{ (char *)"svn_delta_editor_invoke_close_file", _wrap_svn_delta_editor_invoke_close_file, METH_VARARGS, (char *)"\n"
8289
8923
"svn_delta_editor_invoke_close_file(svn_delta_editor_t _obj, void file_baton, char text_checksum, \n"
8290
" apr_pool_t pool) -> svn_error_t\n"
8924
" apr_pool_t scratch_pool) -> svn_error_t\n"
8292
8926
{ (char *)"svn_delta_editor_invoke_absent_file", _wrap_svn_delta_editor_invoke_absent_file, METH_VARARGS, (char *)"\n"
8293
8927
"svn_delta_editor_invoke_absent_file(svn_delta_editor_t _obj, char path, void parent_baton, \n"
8294
" apr_pool_t pool) -> svn_error_t\n"
8928
" apr_pool_t scratch_pool) -> svn_error_t\n"
8296
{ (char *)"svn_delta_editor_invoke_close_edit", _wrap_svn_delta_editor_invoke_close_edit, METH_VARARGS, (char *)"svn_delta_editor_invoke_close_edit(svn_delta_editor_t _obj, void edit_baton, apr_pool_t pool) -> svn_error_t"},
8297
{ (char *)"svn_delta_editor_invoke_abort_edit", _wrap_svn_delta_editor_invoke_abort_edit, METH_VARARGS, (char *)"svn_delta_editor_invoke_abort_edit(svn_delta_editor_t _obj, void edit_baton, apr_pool_t pool) -> svn_error_t"},
8930
{ (char *)"svn_delta_editor_invoke_close_edit", _wrap_svn_delta_editor_invoke_close_edit, METH_VARARGS, (char *)"svn_delta_editor_invoke_close_edit(svn_delta_editor_t _obj, void edit_baton, apr_pool_t scratch_pool) -> svn_error_t"},
8931
{ (char *)"svn_delta_editor_invoke_abort_edit", _wrap_svn_delta_editor_invoke_abort_edit, METH_VARARGS, (char *)"svn_delta_editor_invoke_abort_edit(svn_delta_editor_t _obj, void edit_baton, apr_pool_t scratch_pool) -> svn_error_t"},
8298
8932
{ (char *)"svn_txdelta_invoke_window_handler", _wrap_svn_txdelta_invoke_window_handler, METH_VARARGS, (char *)"\n"
8299
8933
"svn_txdelta_invoke_window_handler(svn_txdelta_window_handler_t _obj, svn_txdelta_window_t window, \n"
8300
8934
" void baton) -> svn_error_t\n"
8302
{ (char *)"svn_txdelta_invoke_next_window_fn", _wrap_svn_txdelta_invoke_next_window_fn, METH_VARARGS, (char *)"\n"
8303
"svn_txdelta_invoke_next_window_fn(svn_txdelta_next_window_fn_t _obj, svn_txdelta_window_t window, \n"
8304
" void baton, apr_pool_t pool) -> svn_error_t\n"
8936
{ (char *)"svn_txdelta_invoke_next_window_fn", _wrap_svn_txdelta_invoke_next_window_fn, METH_VARARGS, (char *)"svn_txdelta_invoke_next_window_fn(svn_txdelta_next_window_fn_t _obj, void baton, apr_pool_t pool) -> svn_error_t"},
8306
8937
{ (char *)"svn_txdelta_invoke_md5_digest_fn", _wrap_svn_txdelta_invoke_md5_digest_fn, METH_VARARGS, (char *)"svn_txdelta_invoke_md5_digest_fn(svn_txdelta_md5_digest_fn_t _obj, void baton) -> unsigned char"},
8307
8938
{ (char *)"svn_delta_invoke_path_driver_cb_func", _wrap_svn_delta_invoke_path_driver_cb_func, METH_VARARGS, (char *)"\n"
8308
"svn_delta_invoke_path_driver_cb_func(svn_delta_path_driver_cb_func_t _obj, void dir_baton, \n"
8309
" void parent_baton, void callback_baton, char path, \n"
8310
" apr_pool_t pool) -> svn_error_t\n"
8939
"svn_delta_invoke_path_driver_cb_func(svn_delta_path_driver_cb_func_t _obj, void parent_baton, \n"
8940
" void callback_baton, char path, apr_pool_t pool) -> svn_error_t\n"
8312
8942
{ (char *)"svn_file_invoke_rev_handler", _wrap_svn_file_invoke_rev_handler, METH_VARARGS, (char *)"\n"
8313
8943
"svn_file_invoke_rev_handler(svn_file_rev_handler_t _obj, void baton, char path, \n"
8314
8944
" svn_revnum_t rev, apr_hash_t rev_props, svn_boolean_t result_of_merge, \n"
8315
" svn_txdelta_window_handler_t delta_handler, \n"
8316
" void delta_baton, apr_array_header_t prop_diffs, \n"
8945
" apr_array_header_t prop_diffs, \n"
8317
8946
" apr_pool_t pool) -> svn_error_t\n"
8319
8948
{ (char *)"svn_file_invoke_rev_handler_old", _wrap_svn_file_invoke_rev_handler_old, METH_VARARGS, (char *)"\n"
8320
8949
"svn_file_invoke_rev_handler_old(svn_file_rev_handler_old_t _obj, void baton, char path, \n"
8321
8950
" svn_revnum_t rev, apr_hash_t rev_props, \n"
8322
" svn_txdelta_window_handler_t delta_handler, void delta_baton, \n"
8323
" apr_array_header_t prop_diffs, \n"
8324
" apr_pool_t pool) -> svn_error_t\n"
8951
" apr_array_header_t prop_diffs, apr_pool_t pool) -> svn_error_t\n"
8326
8953
{ (char *)"svn_txdelta_window_handler_t_swigregister", svn_txdelta_window_handler_t_swigregister, METH_VARARGS, NULL},
8327
8954
{ (char *)"svn_txdelta_next_window_fn_t_swigregister", svn_txdelta_next_window_fn_t_swigregister, METH_VARARGS, NULL},
8408
9036
static swig_type_info _swigt__p_svn_opt_subcommand_desc2_t = {"_p_svn_opt_subcommand_desc2_t", "struct svn_opt_subcommand_desc2_t *|svn_opt_subcommand_desc2_t *", 0, 0, (void*)0, 0};
8409
9037
static swig_type_info _swigt__p_svn_opt_subcommand_desc_t = {"_p_svn_opt_subcommand_desc_t", "struct svn_opt_subcommand_desc_t *|svn_opt_subcommand_desc_t *", 0, 0, (void*)0, 0};
8410
9038
static swig_type_info _swigt__p_svn_prop_kind = {"_p_svn_prop_kind", "svn_prop_kind_t *|enum svn_prop_kind *", 0, 0, (void*)0, 0};
9039
static swig_type_info _swigt__p_svn_stream_mark_t = {"_p_svn_stream_mark_t", "struct svn_stream_mark_t *|svn_stream_mark_t *", 0, 0, (void*)0, 0};
8411
9040
static swig_type_info _swigt__p_svn_stream_t = {"_p_svn_stream_t", "struct svn_stream_t *|svn_stream_t *", 0, 0, (void*)0, 0};
8412
9041
static swig_type_info _swigt__p_svn_string_t = {"_p_svn_string_t", "struct svn_string_t *|svn_string_t *", 0, 0, (void*)0, 0};
8413
9042
static swig_type_info _swigt__p_svn_stringbuf_t = {"_p_svn_stringbuf_t", "struct svn_stringbuf_t *|svn_stringbuf_t *", 0, 0, (void*)0, 0};
9043
static swig_type_info _swigt__p_svn_tristate_t = {"_p_svn_tristate_t", "enum svn_tristate_t *|svn_tristate_t *", 0, 0, (void*)0, 0};
8414
9044
static swig_type_info _swigt__p_svn_txdelta_op_t = {"_p_svn_txdelta_op_t", "struct svn_txdelta_op_t *|svn_txdelta_op_t *", 0, 0, (void*)0, 0};
8415
9045
static swig_type_info _swigt__p_svn_txdelta_stream_t = {"_p_svn_txdelta_stream_t", "struct svn_txdelta_stream_t *|svn_txdelta_stream_t *", 0, 0, (void*)0, 0};
8416
9046
static swig_type_info _swigt__p_svn_txdelta_window_t = {"_p_svn_txdelta_window_t", "struct svn_txdelta_window_t *|svn_txdelta_window_t *", 0, 0, (void*)0, 0};
8417
9047
static swig_type_info _swigt__p_svn_version_checklist_t = {"_p_svn_version_checklist_t", "struct svn_version_checklist_t *|svn_version_checklist_t *", 0, 0, (void*)0, 0};
8418
9048
static swig_type_info _swigt__p_svn_version_t = {"_p_svn_version_t", "struct svn_version_t *|svn_version_t *", 0, 0, (void*)0, 0};
8419
9049
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0};
9050
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|svn_linenum_t *", 0, 0, (void*)0, 0};
8420
9051
static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
8422
9053
static swig_type_info *swig_type_initial[] = {
8578
9214
static swig_cast_info _swigc__p_svn_opt_subcommand_desc2_t[] = { {&_swigt__p_svn_opt_subcommand_desc2_t, 0, 0, 0},{0, 0, 0, 0}};
8579
9215
static swig_cast_info _swigc__p_svn_opt_subcommand_desc_t[] = { {&_swigt__p_svn_opt_subcommand_desc_t, 0, 0, 0},{0, 0, 0, 0}};
8580
9216
static swig_cast_info _swigc__p_svn_prop_kind[] = { {&_swigt__p_svn_prop_kind, 0, 0, 0},{0, 0, 0, 0}};
9217
static swig_cast_info _swigc__p_svn_stream_mark_t[] = { {&_swigt__p_svn_stream_mark_t, 0, 0, 0},{0, 0, 0, 0}};
8581
9218
static swig_cast_info _swigc__p_svn_stream_t[] = { {&_swigt__p_svn_stream_t, 0, 0, 0},{0, 0, 0, 0}};
8582
9219
static swig_cast_info _swigc__p_svn_string_t[] = { {&_swigt__p_svn_string_t, 0, 0, 0},{0, 0, 0, 0}};
8583
9220
static swig_cast_info _swigc__p_svn_stringbuf_t[] = { {&_swigt__p_svn_stringbuf_t, 0, 0, 0},{0, 0, 0, 0}};
9221
static swig_cast_info _swigc__p_svn_tristate_t[] = { {&_swigt__p_svn_tristate_t, 0, 0, 0},{0, 0, 0, 0}};
8584
9222
static swig_cast_info _swigc__p_svn_txdelta_op_t[] = { {&_swigt__p_svn_txdelta_op_t, 0, 0, 0},{0, 0, 0, 0}};
8585
9223
static swig_cast_info _swigc__p_svn_txdelta_stream_t[] = { {&_swigt__p_svn_txdelta_stream_t, 0, 0, 0},{0, 0, 0, 0}};
8586
9224
static swig_cast_info _swigc__p_svn_txdelta_window_t[] = { {&_swigt__p_svn_txdelta_window_t, 0, 0, 0},{0, 0, 0, 0}};
8587
9225
static swig_cast_info _swigc__p_svn_version_checklist_t[] = { {&_swigt__p_svn_version_checklist_t, 0, 0, 0},{0, 0, 0, 0}};
8588
9226
static swig_cast_info _swigc__p_svn_version_t[] = { {&_swigt__p_svn_version_t, 0, 0, 0},{0, 0, 0, 0}};
8589
9227
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
9228
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
8590
9229
static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
8592
9231
static swig_cast_info *swig_cast_initial[] = {
9189
9876
#ifdef __cplusplus
9192
SWIGEXPORT void SWIG_init(void) {
9881
#if PY_VERSION_HEX >= 0x03000000
9887
PyObject *m, *d, *md;
9888
#if PY_VERSION_HEX >= 0x03000000
9889
static struct PyModuleDef SWIG_module = {
9890
# if PY_VERSION_HEX >= 0x03020000
9891
PyModuleDef_HEAD_INIT,
9894
PyObject_HEAD_INIT(NULL)
9911
#if defined(SWIGPYTHON_BUILTIN)
9912
static SwigPyClientData SwigPyObject_clientdata = {
9915
static PyGetSetDef this_getset_def = {
9916
(char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
9918
static SwigPyGetSet thisown_getset_closure = {
9919
(PyCFunction) SwigPyObject_own,
9920
(PyCFunction) SwigPyObject_own
9922
static PyGetSetDef thisown_getset_def = {
9923
(char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
9925
PyObject *metatype_args;
9926
PyTypeObject *builtin_pytype;
9927
int builtin_base_count;
9928
swig_type_info *builtin_basetype;
9930
PyGetSetDescrObject *static_getset;
9931
PyTypeObject *metatype;
9932
SwigPyClientData *cd;
9933
PyObject *public_interface, *public_symbol;
9934
PyObject *this_descr;
9935
PyObject *thisown_descr;
9938
(void)builtin_pytype;
9939
(void)builtin_base_count;
9940
(void)builtin_basetype;
9942
(void)static_getset;
9944
/* metatype is used to implement static member variables. */
9945
metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
9946
assert(metatype_args);
9947
metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL);
9949
Py_DECREF(metatype_args);
9950
metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
9951
assert(PyType_Ready(metatype) >= 0);
9195
9954
/* Fix SwigMethods to carry the callback ptrs when needed */
9196
9955
SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
9957
#if PY_VERSION_HEX >= 0x03000000
9958
m = PyModule_Create(&SWIG_module);
9198
9960
m = Py_InitModule((char *) SWIG_name, SwigMethods);
9199
d = PyModule_GetDict(m);
9962
md = d = PyModule_GetDict(m);
9201
9964
SWIG_InitializeModule(0);
9966
#ifdef SWIGPYTHON_BUILTIN
9967
SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
9968
assert(SwigPyObject_stype);
9969
cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
9971
SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
9972
SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
9973
} else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
9974
PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
9975
# if PY_VERSION_HEX >= 0x03000000
9982
/* All objects have a 'this' attribute */
9983
this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
9986
/* All objects have a 'thisown' attribute */
9987
thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
9988
(void)thisown_descr;
9990
public_interface = PyList_New(0);
9992
(void)public_symbol;
9994
PyDict_SetItemString(md, "__all__", public_interface);
9995
Py_DECREF(public_interface);
9996
for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
9997
SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
9998
for (i = 0; swig_const_table[i].name != 0; ++i)
9999
SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
9202
10002
SWIG_InstallConstants(d,swig_const_table);
10004
SWIG_Python_SetConstant(d, "SVN_DELTA_COMPRESSION_LEVEL_NONE",SWIG_From_long((long)(0)));
10005
SWIG_Python_SetConstant(d, "SVN_DELTA_COMPRESSION_LEVEL_MAX",SWIG_From_long((long)(9)));
10006
SWIG_Python_SetConstant(d, "SVN_DELTA_COMPRESSION_LEVEL_DEFAULT",SWIG_From_long((long)(5)));
9205
10007
SWIG_Python_SetConstant(d, "svn_txdelta_source",SWIG_From_long((long)(svn_txdelta_source)));
9206
10008
SWIG_Python_SetConstant(d, "svn_txdelta_target",SWIG_From_long((long)(svn_txdelta_target)));
9207
10009
SWIG_Python_SetConstant(d, "svn_txdelta_new",SWIG_From_long((long)(svn_txdelta_new)));
10010
#if PY_VERSION_HEX >= 0x03000000