diff options
author | perky <perky@FreeBSD.org> | 2007-08-14 15:44:59 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2007-08-14 15:44:59 +0800 |
commit | 3020bcfbe59618d6a70200ae8a3c77ff4d7e167b (patch) | |
tree | a8bdefa2524bbba86c4ed734d7b09ab001cd87a9 /textproc/py-rxp | |
parent | 0b879528dccf7471e1b92363961e46062cfe46b3 (diff) | |
download | freebsd-ports-gnome-3020bcfbe59618d6a70200ae8a3c77ff4d7e167b.tar.gz freebsd-ports-gnome-3020bcfbe59618d6a70200ae8a3c77ff4d7e167b.tar.zst freebsd-ports-gnome-3020bcfbe59618d6a70200ae8a3c77ff4d7e167b.zip |
Fix build on 7.0 and python 2.5.
Diffstat (limited to 'textproc/py-rxp')
-rw-r--r-- | textproc/py-rxp/files/patch-pyRXP.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/textproc/py-rxp/files/patch-pyRXP.c b/textproc/py-rxp/files/patch-pyRXP.c new file mode 100644 index 000000000000..17d8f2f584a0 --- /dev/null +++ b/textproc/py-rxp/files/patch-pyRXP.c @@ -0,0 +1,28 @@ +--- pyRXP.c.orig Sat Oct 26 00:27:40 2002 ++++ pyRXP.c Tue Aug 14 16:43:48 2007 +@@ -578,7 +578,8 @@ + + static PyObject* pyRXPParser_parse(pyRXPParserObject* xself, PyObject* args, PyObject* kw) + { +- int srcLen, i; ++ int srcLen; ++ Py_ssize_t i; + char *src; + FILE16 *f; + InputSource source; +@@ -731,11 +732,12 @@ + static pyRXPParserObject* pyRXPParser(PyObject* module, PyObject* args, PyObject* kw) + { + pyRXPParserObject* self; +- int i; ++ Py_ssize_t i; + + if(!PyArg_ParseTuple(args, ":Parser")) return NULL; +- if(!(self = PyObject_NEW(pyRXPParserObject, &pyRXPParserType))) return NULL; +- self->warnCB = self->eoCB = self->fourth = (void*)self->srcName = NULL; ++ self = PyObject_NEW(pyRXPParserObject, &pyRXPParserType); ++ if(!self) return NULL; ++ self->warnCB = self->eoCB = self->fourth = self->srcName = NULL; + if(!(self->srcName=PyString_FromString("[unknown]"))){ + PyErr_SetString(moduleError,"Internal error, memory limit reached!"); + Lfree: pyRXPParserFree(self); |