Lines 1172-1227
Link Here
|
1172 |
value = auparse_interpret_field(self->au); |
1172 |
value = auparse_interpret_field(self->au); |
1173 |
return Py_BuildValue("s", value); |
1173 |
return Py_BuildValue("s", value); |
1174 |
} |
1174 |
} |
1175 |
|
1175 |
|
1176 |
#if 0 |
1176 |
/* Removed if-block which broke gcc */ |
1177 |
/******************************** |
|
|
1178 |
* |
1179 |
********************************/ |
1180 |
PyDoc_STRVAR(_doc, |
1181 |
" |
1182 |
\n\ |
1183 |
No Return value, raises exception (EnvironmentError) on error.\n\ |
1184 |
"); |
1185 |
static PyObject * |
1186 |
AuParser_(AuParser *self, PyObject *args) |
1187 |
{ |
1188 |
int result; |
1189 |
|
1190 |
if (!PyArg_ParseTuple(args, "", &)) return NULL; |
1191 |
PARSER_CHECK; |
1192 |
|
1193 |
if (result == 0) Py_RETURN_NONE; |
1194 |
PyErr_SetFromErrno(PyExc_EnvironmentError); |
1195 |
return NULL; |
1196 |
} |
1197 |
{"", (PyCFunction)AuParser_, METH_VARARGS, _doc}, |
1198 |
|
1199 |
|
1200 |
/******************************** |
1201 |
* |
1202 |
********************************/ |
1203 |
PyDoc_STRVAR(_doc, |
1204 |
" |
1205 |
\n\ |
1206 |
Returns True on success, False if \n\ |
1207 |
Raises exception (EnvironmentError) on error.\n\ |
1208 |
"); |
1209 |
static PyObject * |
1210 |
AuParser_(AuParser *self) |
1211 |
{ |
1212 |
int result; |
1213 |
|
1214 |
PARSER_CHECK; |
1215 |
result = self->au); |
1216 |
|
1217 |
if (result > 0) Py_RETURN_TRUE; |
1218 |
if (result == 0) Py_RETURN_FALSE; |
1219 |
PyErr_SetFromErrno(PyExc_EnvironmentError); |
1220 |
return NULL; |
1221 |
} |
1222 |
{"", (PyCFunction)AuParser_, METH_NOARGS, _doc}, |
1223 |
#endif |
1224 |
|
1177 |
|
1225 |
static |
1178 |
static |
1226 |
PyGetSetDef AuParser_getseters[] = { |
1179 |
PyGetSetDef AuParser_getseters[] = { |
1227 |
{NULL} /* Sentinel */ |
1180 |
{NULL} /* Sentinel */ |