Staging
v0.5.1
https://github.com/python/cpython
Revision bbf10b59d1eb619bd683bccb433b4d1326287a07 authored by Jeremy Hylton on 02 February 2001, 02:58:48 UTC, committed by Jeremy Hylton on 02 February 2001, 02:58:48 UTC
1 parent 0c07b50
Raw File
Tip revision: bbf10b59d1eb619bd683bccb433b4d1326287a07 authored by Jeremy Hylton on 02 February 2001, 02:58:48 UTC
add missing DECREF (thanks, Barry)
Tip revision: bbf10b5
WinMain.c
/* Minimal main program -- everything is loaded from the library. */

#define WINDOWS_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