mirror of
https://github.com/python/cpython
synced 2026-09-28 09:18:18 +03:00
ANSIfication: remove very-old-varargs code, fix function declarations so
they include prototypes.
This commit is contained in:
parent
bd4bc4e9e9
commit
a534594fc7
4 changed files with 4 additions and 38 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include "Python.h"
|
||||
|
||||
extern int Py_Main();
|
||||
extern int Py_Main(int, char **);
|
||||
|
||||
int WINAPI WinMain(
|
||||
HINSTANCE hInstance, /* handle to current instance */
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ done:
|
|||
static void
|
||||
get_progpath(void)
|
||||
{
|
||||
extern char *Py_GetProgramName();
|
||||
extern char *Py_GetProgramName(void);
|
||||
char *path = getenv("PATH");
|
||||
char *prog = Py_GetProgramName();
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
|||
|
||||
#ifdef MS_WIN32
|
||||
#include <windows.h>
|
||||
extern BOOL PyWin_IsWin32s();
|
||||
extern BOOL PyWin_IsWin32s(void);
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
@ -242,7 +242,7 @@ getpythonregpath(HKEY keyBase, BOOL bWin32s)
|
|||
static void
|
||||
get_progpath(void)
|
||||
{
|
||||
extern char *Py_GetProgramName();
|
||||
extern char *Py_GetProgramName(void);
|
||||
char *path = getenv("PATH");
|
||||
char *prog = Py_GetProgramName();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue