Staging
v0.5.1
https://github.com/python/cpython
Revision 82550d5b8654cee55357cef303038effa4e0448a authored by Tim Peters on 08 April 2003, 19:02:34 UTC, committed by Tim Peters on 08 April 2003, 19:02:34 UTC
backporting fixes so that garbage collection doesn't have to trigger
execution of arbitrary Python code just to figure out whether
an object has a __del__ method.
1 parent 71e300e
Raw File
Tip revision: 82550d5b8654cee55357cef303038effa4e0448a authored by Tim Peters on 08 April 2003, 19:02:34 UTC
Added private API function _PyInstance_Lookup(). This is part of
Tip revision: 82550d5
WinMain.c
/* Minimal main program -- everything is loaded from the library. */

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

#include "Python.h"

extern int Py_Main(int, char **);

int WINAPI WinMain(
    HINSTANCE hInstance,      /* handle to current instance */
    HINSTANCE hPrevInstance,  /* handle to previous instance */
    LPSTR lpCmdLine,          /* pointer to command line */
    int nCmdShow              /* show state of window */
)
{
    return Py_Main(__argc, __argv);
}
back to top