diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2007-08-14 07:44:59 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2007-08-14 07:44:59 +0000 |
commit | d30bb503cd7bce276e900bc1a4f78bf4ab45fbfb (patch) | |
tree | 77e2bfc833326e60c560fa54f694b805f3583f55 /textproc/py-rxp | |
parent | cd7d847d26abd14abd3350cbbb00dbd4b6578159 (diff) | |
download | ports-d30bb503cd7bce276e900bc1a4f78bf4ab45fbfb.tar.gz ports-d30bb503cd7bce276e900bc1a4f78bf4ab45fbfb.zip |
Notes
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); |