Mercurial > cpython-lru_cache-weakref
annotate PC/WinMain.c @ 79691:05c8928362ee
Merge __next__ method link fixes with 3.3.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Fri, 12 Oct 2012 13:46:37 +0300 |
| parents | a444985a675a |
| children |
| 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 } |
