Mercurial > cpython-lru_cache-weakref
annotate PC/WinMain.c @ 80661:94de77bd0b4b 2.7
Issue #16194: document imp.load_dynamic problems
when read several extension modules from the same binary object file.
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Thu, 29 Nov 2012 19:51:28 +0200 |
| parents | 9d02a4adf574 |
| children | 22a74eaf6b22 |
| 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 |
|
6809
140e65f83953
Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
8 int WINAPI WinMain( |
|
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 */ |
|
9fd333693350
- this is a tentative checkin of the #100764 patch (by
Fredrik Lundh <fredrik@pythonware.com>
parents:
8893
diff
changeset
|
11 LPSTR lpCmdLine, /* pointer to command line */ |
|
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 { |
|
13437
9fd333693350
- this is a tentative checkin of the #100764 patch (by
Fredrik Lundh <fredrik@pythonware.com>
parents:
8893
diff
changeset
|
15 return Py_Main(__argc, __argv); |
|
6809
140e65f83953
Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
16 } |
