Very partial patches to build Python3.
[fedora-mingw.git] / python / python-2.5.1-pysqlite.patch
1 diff -up Python-2.5.1/Modules/_sqlite/cache.h.pysqlite Python-2.5.1/Modules/_sqlite/cache.h
2 --- Python-2.5.1/Modules/_sqlite/cache.h.pysqlite       2006-04-23 16:24:26.000000000 +0100
3 +++ Python-2.5.1/Modules/_sqlite/cache.h        2007-10-25 11:21:31.000000000 +0100
4 @@ -64,7 +64,7 @@ extern PyTypeObject CacheType;
5  int node_init(Node* self, PyObject* args, PyObject* kwargs);
6  void node_dealloc(Node* self);
7  
8 -int cache_init(Cache* self, PyObject* args, PyObject* kwargs);
9 +int pysqlite_cache_init(Cache* self, PyObject* args, PyObject* kwargs);
10  void cache_dealloc(Cache* self);
11  PyObject* cache_get(Cache* self, PyObject* args);
12  
13 diff -up Python-2.5.1/Modules/_sqlite/cache.c.pysqlite Python-2.5.1/Modules/_sqlite/cache.c
14 --- Python-2.5.1/Modules/_sqlite/cache.c.pysqlite       2006-04-23 16:24:26.000000000 +0100
15 +++ Python-2.5.1/Modules/_sqlite/cache.c        2007-10-25 11:22:10.000000000 +0100
16 @@ -54,7 +54,7 @@ void node_dealloc(Node* self)
17      self->ob_type->tp_free((PyObject*)self);
18  }
19  
20 -int cache_init(Cache* self, PyObject* args, PyObject* kwargs)
21 +int pysqlite_cache_init(Cache* self, PyObject* args, PyObject* kwargs)
22  {
23      PyObject* factory;
24      int size = 10;
25 @@ -352,7 +352,7 @@ PyTypeObject CacheType = {
26          0,                                              /* tp_descr_get */
27          0,                                              /* tp_descr_set */
28          0,                                              /* tp_dictoffset */
29 -        (initproc)cache_init,                           /* tp_init */
30 +        (initproc)pysqlite_cache_init,                  /* tp_init */
31          0,                                              /* tp_alloc */
32          0,                                              /* tp_new */
33          0                                               /* tp_free */