diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-11-21 21:27:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 21:27:47 (GMT) |
commit | bcda8f1d42a98d9022736dd52d855be8e220fe15 (patch) | |
tree | d340839a87b14d84adf04fceb230c0922fef0b6c /Modules/_io/winconsoleio.c | |
parent | aac1f81eef971876ba5b1673db9ce6620311c469 (diff) | |
download | cpython-bcda8f1d42a98d9022736dd52d855be8e220fe15.zip cpython-bcda8f1d42a98d9022736dd52d855be8e220fe15.tar.gz cpython-bcda8f1d42a98d9022736dd52d855be8e220fe15.tar.bz2 |
bpo-35081: Add Include/internal/pycore_object.h (GH-10640)
Move _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() from
Include/objimpl.h to Include/internal/pycore_object.h.
Diffstat (limited to 'Modules/_io/winconsoleio.c')
-rw-r--r-- | Modules/_io/winconsoleio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_io/winconsoleio.c b/Modules/_io/winconsoleio.c index 148255c..824690f 100644 --- a/Modules/_io/winconsoleio.c +++ b/Modules/_io/winconsoleio.c @@ -8,6 +8,7 @@ #define PY_SSIZE_T_CLEAN #include "Python.h" +#include "pycore_object.h" #ifdef MS_WINDOWS @@ -556,7 +557,7 @@ read_console_w(HANDLE handle, DWORD maxlen, DWORD *readlen) { Py_BEGIN_ALLOW_THREADS DWORD off = 0; while (off < maxlen) { - DWORD n = (DWORD)-1; + DWORD n = (DWORD)-1; DWORD len = min(maxlen - off, BUFSIZ); SetLastError(0); BOOL res = ReadConsoleW(handle, &buf[off], len, &n, NULL); |