Mercurial > hg > xemacs-beta
comparison src/nt.c @ 5934:e2fae7783046 cygwin
lots of use of EMACS_INT, a few others, to eliminate all pointer truncation warnings
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Sat, 12 Dec 2015 19:08:46 +0000 |
parents | 4dee0387b9de |
children | 574f0cded429 |
comparison
equal
deleted
inserted
replaced
5933:c1e8f3294298 | 5934:e2fae7783046 |
---|---|
2183 retry_fclose (stdin); | 2183 retry_fclose (stdin); |
2184 retry_fclose (stdout); | 2184 retry_fclose (stdout); |
2185 retry_fclose (stderr); | 2185 retry_fclose (stderr); |
2186 | 2186 |
2187 if (stdin_save != INVALID_HANDLE_VALUE) | 2187 if (stdin_save != INVALID_HANDLE_VALUE) |
2188 _open_osfhandle ((long) stdin_save, O_TEXT); | 2188 _open_osfhandle ((EMACS_INT) stdin_save, O_TEXT); |
2189 else | 2189 else |
2190 _open ("nul", O_TEXT | O_NOINHERIT | O_RDONLY); | 2190 _open ("nul", O_TEXT | O_NOINHERIT | O_RDONLY); |
2191 _fdopen (0, "r"); | 2191 _fdopen (0, "r"); |
2192 | 2192 |
2193 if (stdout_save != INVALID_HANDLE_VALUE) | 2193 if (stdout_save != INVALID_HANDLE_VALUE) |
2194 _open_osfhandle ((long) stdout_save, O_TEXT); | 2194 _open_osfhandle ((EMACS_INT) stdout_save, O_TEXT); |
2195 else | 2195 else |
2196 _open ("nul", O_TEXT | O_NOINHERIT | O_WRONLY); | 2196 _open ("nul", O_TEXT | O_NOINHERIT | O_WRONLY); |
2197 _fdopen (1, "w"); | 2197 _fdopen (1, "w"); |
2198 | 2198 |
2199 if (stderr_save != INVALID_HANDLE_VALUE) | 2199 if (stderr_save != INVALID_HANDLE_VALUE) |
2200 _open_osfhandle ((long) stderr_save, O_TEXT); | 2200 _open_osfhandle ((EMACS_INT) stderr_save, O_TEXT); |
2201 else | 2201 else |
2202 _open ("nul", O_TEXT | O_NOINHERIT | O_WRONLY); | 2202 _open ("nul", O_TEXT | O_NOINHERIT | O_WRONLY); |
2203 _fdopen (2, "w"); | 2203 _fdopen (2, "w"); |
2204 } | 2204 } |
2205 | 2205 |