annotate PC/WinMain.c @ 87690:66c1c9f32567 default tip

Add use_weakref option to functools.lru_cache The use_weakref option makes lru_cache create weak references to the function arguments when creating the cache key, which prevents them from staying in the memory forever even after all other references to them are gone. This is a proof of concept for http://bugs.python.org/issue19859
author Radomir Dopieralski <devel@sheep.art.pl>
date Tue, 03 Dec 2013 16:02:48 +0100
parents a444985a675a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8893
09063eeda2b7 This file's previous log message is bogus.
Guido van Rossum <guido@python.org>
parents: 8892
diff changeset
1 /* Minimal main program -- everything is loaded from the library. */
6809
140e65f83953 Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff changeset
2
41969
9d02a4adf574 Merged revisions 55631-55794 via svnmerge from
Guido van Rossum <guido@python.org>
parents: 33430
diff changeset
3 #include "Python.h"
9d02a4adf574 Merged revisions 55631-55794 via svnmerge from
Guido van Rossum <guido@python.org>
parents: 33430
diff changeset
4
17621
a1f07fcc3d41 SF bug 418296: WinMain.c should use WIN32_LEAN_AND_MEAN.
Tim Peters <tim.peters@gmail.com>
parents: 13668
diff changeset
5 #define WIN32_LEAN_AND_MEAN
6809
140e65f83953 Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff changeset
6 #include <windows.h>
13437
9fd333693350 - this is a tentative checkin of the #100764 patch (by
Fredrik Lundh <fredrik@pythonware.com>
parents: 8893
diff changeset
7
46794
a444985a675a Use UNICODE wWinMain, to make CRT initialize __wargv.
Martin v. Löwis <martin@v.loewis.de>
parents: 46318
diff changeset
8 int WINAPI wWinMain(
13437
9fd333693350 - this is a tentative checkin of the #100764 patch (by
Fredrik Lundh <fredrik@pythonware.com>
parents: 8893
diff changeset
9 HINSTANCE hInstance, /* handle to current instance */
9fd333693350 - this is a tentative checkin of the #100764 patch (by
Fredrik Lundh <fredrik@pythonware.com>
parents: 8893
diff changeset
10 HINSTANCE hPrevInstance, /* handle to previous instance */
46794
a444985a675a Use UNICODE wWinMain, to make CRT initialize __wargv.
Martin v. Löwis <martin@v.loewis.de>
parents: 46318
diff changeset
11 LPWSTR lpCmdLine, /* pointer to command line */
13437
9fd333693350 - this is a tentative checkin of the #100764 patch (by
Fredrik Lundh <fredrik@pythonware.com>
parents: 8893
diff changeset
12 int nCmdShow /* show state of window */
6809
140e65f83953 Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff changeset
13 )
140e65f83953 Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff changeset
14 {
46318
22a74eaf6b22 Change command line processing API to use wchar_t.
Martin v. Löwis <martin@v.loewis.de>
parents: 41969
diff changeset
15 return Py_Main(__argc, __wargv);
6809
140e65f83953 Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff changeset
16 }