mercurial/osutil.c
changeset 7190 aecea6934fdd
parent 7136 d834ed27199f
child 8330 7de68012f86e
child 8722 48da69ff79bd
equal deleted inserted replaced
7189:8bbbba2a1a9c 7190:aecea6934fdd
    44 	struct stat st;
    44 	struct stat st;
    45 };
    45 };
    46 #endif
    46 #endif
    47 
    47 
    48 #define listdir_slot(name) \
    48 #define listdir_slot(name) \
    49     static PyObject *listdir_stat_##name(PyObject *self, void *x) \
    49 	static PyObject *listdir_stat_##name(PyObject *self, void *x) \
    50     { \
    50 	{ \
    51         return PyInt_FromLong(((struct listdir_stat *)self)->st.name); \
    51 		return PyInt_FromLong(((struct listdir_stat *)self)->st.name); \
    52     }
    52 	}
    53 
    53 
    54 listdir_slot(st_dev)
    54 listdir_slot(st_dev)
    55 listdir_slot(st_mode)
    55 listdir_slot(st_mode)
    56 listdir_slot(st_nlink)
    56 listdir_slot(st_nlink)
    57 #ifdef _WIN32
    57 #ifdef _WIN32