Show More
@@ -8,6 +8,7 b'' | |||||
8 | */ |
|
8 | */ | |
9 |
|
9 | |||
10 | #define _ATFILE_SOURCE |
|
10 | #define _ATFILE_SOURCE | |
|
11 | #define PY_SSIZE_T_CLEAN | |||
11 | #include <Python.h> |
|
12 | #include <Python.h> | |
12 | #include <errno.h> |
|
13 | #include <errno.h> | |
13 | #include <fcntl.h> |
|
14 | #include <fcntl.h> | |
@@ -227,7 +228,7 b' static PyObject *make_item(const WIN32_F' | |||||
227 | kind, py_st); |
|
228 | kind, py_st); | |
228 | } |
|
229 | } | |
229 |
|
230 | |||
230 |
static PyObject *_listdir(char *path, |
|
231 | static PyObject *_listdir(char *path, Py_ssize_t plen, int wantstat, char *skip) | |
231 | { |
|
232 | { | |
232 | PyObject *rval = NULL; /* initialize - return value */ |
|
233 | PyObject *rval = NULL; /* initialize - return value */ | |
233 | PyObject *list; |
|
234 | PyObject *list; | |
@@ -1181,7 +1182,8 b' static PyObject *listdir(PyObject *self,' | |||||
1181 | PyObject *statobj = NULL; /* initialize - optional arg */ |
|
1182 | PyObject *statobj = NULL; /* initialize - optional arg */ | |
1182 | PyObject *skipobj = NULL; /* initialize - optional arg */ |
|
1183 | PyObject *skipobj = NULL; /* initialize - optional arg */ | |
1183 | char *path, *skip = NULL; |
|
1184 | char *path, *skip = NULL; | |
1184 | int wantstat, plen; |
|
1185 | Py_ssize_t plen; | |
|
1186 | int wantstat; | |||
1185 |
|
1187 | |||
1186 | static char *kwlist[] = {"path", "stat", "skip", NULL}; |
|
1188 | static char *kwlist[] = {"path", "stat", "skip", NULL}; | |
1187 |
|
1189 |
General Comments 0
You need to be logged in to leave comments.
Login now