Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(17)

Side by Side Diff: Include/fileobject.h

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Include/node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* File object interface (what's left of it -- see io.py) */ 1 /* File object interface (what's left of it -- see io.py) */
2 2
3 #ifndef Py_FILEOBJECT_H 3 #ifndef Py_FILEOBJECT_H
4 #define Py_FILEOBJECT_H 4 #define Py_FILEOBJECT_H
5 #ifdef __cplusplus 5 #ifdef __cplusplus
6 extern "C" { 6 extern "C" {
7 #endif 7 #endif
8 8
9 #define PY_STDIOTEXTMODE "b" 9 #define PY_STDIOTEXTMODE "b"
10 10
(...skipping 27 matching lines...) Expand all
38 * from various functions in the Windows CRT beginning with 38 * from various functions in the Windows CRT beginning with
39 * Visual Studio 2005 39 * Visual Studio 2005
40 */ 40 */
41 int _PyVerify_fd(int fd); 41 int _PyVerify_fd(int fd);
42 #else 42 #else
43 #define _PyVerify_fd(A) (1) /* dummy */ 43 #define _PyVerify_fd(A) (1) /* dummy */
44 #endif 44 #endif
45 #endif /* Py_LIMITED_API */ 45 #endif /* Py_LIMITED_API */
46 46
47 /* A routine to check if a file descriptor can be select()-ed. */ 47 /* A routine to check if a file descriptor can be select()-ed. */
48 #ifdef HAVE_SELECT 48 /* NOTE check below obsolete Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE */
49 #if defined(HAVE_SELECT) && !defined(MS_WIN32)
49 #define _PyIsSelectable_fd(FD) (((FD) >= 0) && ((FD) < FD_SETSIZE)) 50 #define _PyIsSelectable_fd(FD) (((FD) >= 0) && ((FD) < FD_SETSIZE))
50 #else 51 #else
51 #define _PyIsSelectable_fd(FD) (1) 52 #define _PyIsSelectable_fd(FD) (1)
52 #endif /* HAVE_SELECT */ 53 #endif /* HAVE_SELECT */
53 54
54 #ifdef __cplusplus 55 #ifdef __cplusplus
55 } 56 }
56 #endif 57 #endif
57 #endif /* !Py_FILEOBJECT_H */ 58 #endif /* !Py_FILEOBJECT_H */
OLDNEW
« no previous file with comments | « no previous file | Include/node.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+