##// END OF EJS Templates
cext: remove Python 2 variant of listdir_slot()...
Gregory Szorc -
r49669:41bd7e8f default
parent child Browse files
Show More
@@ -73,19 +73,11 b' struct listdir_stat {'
73 };
73 };
74 #endif
74 #endif
75
75
76 #ifdef IS_PY3K
77 #define listdir_slot(name) \
76 #define listdir_slot(name) \
78 static PyObject *listdir_stat_##name(PyObject *self, void *x) \
77 static PyObject *listdir_stat_##name(PyObject *self, void *x) \
79 { \
78 { \
80 return PyLong_FromLong(((struct listdir_stat *)self)->st.name); \
79 return PyLong_FromLong(((struct listdir_stat *)self)->st.name); \
81 }
80 }
82 #else
83 #define listdir_slot(name) \
84 static PyObject *listdir_stat_##name(PyObject *self, void *x) \
85 { \
86 return PyInt_FromLong(((struct listdir_stat *)self)->st.name); \
87 }
88 #endif
89
81
90 listdir_slot(st_dev)
82 listdir_slot(st_dev)
91 listdir_slot(st_mode)
83 listdir_slot(st_mode)
General Comments 0
You need to be logged in to leave comments. Login now