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

Delta Between Two Patch Sets: Modules/_winapi.c

Issue 3871: cross and native build of python for mingw32 with distutils
Left Patch Set: Created 9 years, 5 months ago
Right 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:
Right: Side by side diff | Download
« no previous file with change/comment | « Modules/socketmodule.h ('k') | Objects/exceptions.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 /* 1 /*
2 * Support routines from the Windows API 2 * Support routines from the Windows API
3 * 3 *
4 * This module was originally created by merging PC/_subprocess.c with 4 * This module was originally created by merging PC/_subprocess.c with
5 * Modules/_multiprocessing/win32_functions.c. 5 * Modules/_multiprocessing/win32_functions.c.
6 * 6 *
7 * Copyright (c) 2004 by Fredrik Lundh <fredrik@pythonware.com> 7 * Copyright (c) 2004 by Fredrik Lundh <fredrik@pythonware.com>
8 * Copyright (c) 2004 by Secret Labs AB, http://www.pythonware.com 8 * Copyright (c) 2004 by Secret Labs AB, http://www.pythonware.com
9 * Copyright (c) 2004 by Peter Astrand <astrand@lysator.liu.se> 9 * Copyright (c) 2004 by Peter Astrand <astrand@lysator.liu.se>
10 * 10 *
(...skipping 21 matching lines...) Expand all
32 */ 32 */
33 33
34 /* Licensed to PSF under a Contributor Agreement. */ 34 /* Licensed to PSF under a Contributor Agreement. */
35 /* See http://www.python.org/2.4/license for licensing details. */ 35 /* See http://www.python.org/2.4/license for licensing details. */
36 36
37 #include "Python.h" 37 #include "Python.h"
38 #include "structmember.h" 38 #include "structmember.h"
39 39
40 #define WINDOWS_LEAN_AND_MEAN 40 #define WINDOWS_LEAN_AND_MEAN
41 #include "windows.h" 41 #include "windows.h"
42 #ifdef _MSC_VER
43 # define HAVE_CRTDBG_H
44 #endif
45 #ifdef HAVE_CRTDBG_H
42 #include <crtdbg.h> 46 #include <crtdbg.h>
47 #endif
48
49 #ifndef FILE_FLAG_FIRST_PIPE_INSTANCE
50 /* require _WIN32_WINNT >= 0x0500
51 * MSDN Note - Windows 2000:
52 * This flag is not supported until Windows 2000 SP2 and Windows XP.
53 */
54 #define FILE_FLAG_FIRST_PIPE_INSTANCE 0x00080000
55 #endif
43 56
44 #if defined(MS_WIN32) && !defined(MS_WIN64) 57 #if defined(MS_WIN32) && !defined(MS_WIN64)
45 #define HANDLE_TO_PYNUM(handle) \ 58 #define HANDLE_TO_PYNUM(handle) \
46 PyLong_FromUnsignedLong((unsigned long) handle) 59 PyLong_FromUnsignedLong((unsigned long) handle)
47 #define PYNUM_TO_HANDLE(obj) ((HANDLE)PyLong_AsUnsignedLong(obj)) 60 #define PYNUM_TO_HANDLE(obj) ((HANDLE)PyLong_AsUnsignedLong(obj))
48 #define F_POINTER "k" 61 #define F_POINTER "k"
49 #define T_POINTER T_ULONG 62 #define T_POINTER T_ULONG
50 #else 63 #else
51 #define HANDLE_TO_PYNUM(handle) \ 64 #define HANDLE_TO_PYNUM(handle) \
52 PyLong_FromUnsignedLongLong((unsigned long long) handle) 65 PyLong_FromUnsignedLongLong((unsigned long long) handle)
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 WINAPI_CONSTANT(F_DWORD, STD_ERROR_HANDLE); 1332 WINAPI_CONSTANT(F_DWORD, STD_ERROR_HANDLE);
1320 WINAPI_CONSTANT(F_DWORD, STILL_ACTIVE); 1333 WINAPI_CONSTANT(F_DWORD, STILL_ACTIVE);
1321 WINAPI_CONSTANT(F_DWORD, SW_HIDE); 1334 WINAPI_CONSTANT(F_DWORD, SW_HIDE);
1322 WINAPI_CONSTANT(F_DWORD, WAIT_OBJECT_0); 1335 WINAPI_CONSTANT(F_DWORD, WAIT_OBJECT_0);
1323 WINAPI_CONSTANT(F_DWORD, WAIT_TIMEOUT); 1336 WINAPI_CONSTANT(F_DWORD, WAIT_TIMEOUT);
1324 1337
1325 WINAPI_CONSTANT("i", NULL); 1338 WINAPI_CONSTANT("i", NULL);
1326 1339
1327 return m; 1340 return m;
1328 } 1341 }
LEFTRIGHT

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