Mercurial > cpython-lru_cache-weakref
annotate PC/WinMain.c @ 25838:8540887bcec6 2.2
Backport of 2.183:
Fix memory leak in add_subclass() found by NealN with valgrind.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 18 Oct 2002 13:42:21 +0000 |
| parents | a1f07fcc3d41 |
| children | f66b3a3509c7 |
| 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 |
|
17621
a1f07fcc3d41
SF bug 418296: WinMain.c should use WIN32_LEAN_AND_MEAN.
Tim Peters <tim.peters@gmail.com>
parents:
13668
diff
changeset
|
3 #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
|
4 #include <windows.h> |
|
13437
9fd333693350
- this is a tentative checkin of the #100764 patch (by
Fredrik Lundh <fredrik@pythonware.com>
parents:
8893
diff
changeset
|
5 |
|
8892
a7083295eb38
Different version games:
Guido van Rossum <guido@python.org>
parents:
6809
diff
changeset
|
6 #include "Python.h" |
|
6809
140e65f83953
Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
7 |
|
13668
d7d81ea9c82d
ANSIfication: remove very-old-varargs code, fix function declarations so
Thomas Wouters <thomas@python.org>
parents:
13440
diff
changeset
|
8 extern int Py_Main(int, char **); |
|
6809
140e65f83953
Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
9 |
|
140e65f83953
Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
10 int WINAPI WinMain( |
|
13437
9fd333693350
- this is a tentative checkin of the #100764 patch (by
Fredrik Lundh <fredrik@pythonware.com>
parents:
8893
diff
changeset
|
11 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
|
12 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
|
13 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
|
14 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
|
15 ) |
|
140e65f83953
Adding a new project: pythonw, or WinMain.c, containing a main program
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
16 { |
|
13437
9fd333693350
- this is a tentative checkin of the #100764 patch (by
Fredrik Lundh <fredrik@pythonware.com>
parents:
8893
diff
changeset
|
17 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
|
18 } |
