--- bindings/python/auparse_python.c.orig 2007-11-13 16:54:00.698756334 +0100 +++ bindings/python/auparse_python.c.orig 2007-11-13 16:54:33.701112007 +0100 @@ -1172,56 +1172,9 @@ value = auparse_interpret_field(self->au); return Py_BuildValue("s", value); } -#if 0 -/******************************** - * - ********************************/ -PyDoc_STRVAR(_doc, -" -\n\ -No Return value, raises exception (EnvironmentError) on error.\n\ -"); -static PyObject * -AuParser_(AuParser *self, PyObject *args) -{ - int result; - - if (!PyArg_ParseTuple(args, "", &)) return NULL; - PARSER_CHECK; - - if (result == 0) Py_RETURN_NONE; - PyErr_SetFromErrno(PyExc_EnvironmentError); - return NULL; -} - {"", (PyCFunction)AuParser_, METH_VARARGS, _doc}, - - -/******************************** - * - ********************************/ -PyDoc_STRVAR(_doc, -" -\n\ -Returns True on success, False if \n\ -Raises exception (EnvironmentError) on error.\n\ -"); -static PyObject * -AuParser_(AuParser *self) -{ - int result; - - PARSER_CHECK; - result = self->au); - - if (result > 0) Py_RETURN_TRUE; - if (result == 0) Py_RETURN_FALSE; - PyErr_SetFromErrno(PyExc_EnvironmentError); - return NULL; -} - {"", (PyCFunction)AuParser_, METH_NOARGS, _doc}, -#endif +/* Removed if-block which broke gcc */ static PyGetSetDef AuParser_getseters[] = { {NULL} /* Sentinel */