##// END OF EJS Templates
parsers: fix istat macro to work with single line if statement
fowles -
r28792:50713615 default
parent child Browse files
Show More
@@ -1029,12 +1029,14 b' static PyObject *index_stats(indexObject'
1029 1029 return NULL;
1030 1030
1031 1031 #define istat(__n, __d) \
1032 t = PyInt_FromSsize_t(self->__n); \
1033 if (!t) \
1034 goto bail; \
1035 if (PyDict_SetItemString(obj, __d, t) == -1) \
1036 goto bail; \
1037 Py_DECREF(t);
1032 do { \
1033 t = PyInt_FromSsize_t(self->__n); \
1034 if (!t) \
1035 goto bail; \
1036 if (PyDict_SetItemString(obj, __d, t) == -1) \
1037 goto bail; \
1038 Py_DECREF(t); \
1039 } while (0)
1038 1040
1039 1041 if (self->added) {
1040 1042 Py_ssize_t len = PyList_GET_SIZE(self->added);
General Comments 0
You need to be logged in to leave comments. Login now