Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4bd21c

Browse files
committed
ANSIfy as many declarations as possible.
1 parent bd8ad94 commit b4bd21c

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

Python/dynload_aix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
2828
#endif
2929

3030

31-
extern char *Py_GetProgramName();
31+
extern char *Py_GetProgramName(void);
3232

3333
typedef struct Module {
3434
struct Module *next;

Python/dynload_dl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1616
#include "importdl.h"
1717

1818

19-
extern char *Py_GetProgramName();
19+
extern char *Py_GetProgramName(void);
2020

2121
const struct filedescr _PyImport_DynLoadFiletab[] = {
2222
{".o", "rb", C_EXTENSION},

Python/frozenmain.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1313
#include "Python.h"
1414

1515
#ifdef MS_WIN32
16-
extern void PyWinFreeze_ExeInit();
17-
extern void PyWinFreeze_ExeTerm();
18-
extern int PyInitFrozenExtensions();
16+
extern void PyWinFreeze_ExeInit(void);
17+
extern void PyWinFreeze_ExeTerm(void);
18+
extern int PyInitFrozenExtensions(void);
1919
#endif
2020

2121
#ifdef HAVE_UNISTD_H

Python/import.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,8 @@ is_builtin(char *name)
817817
pathname and an open file. Return NULL if the module is not found. */
818818

819819
#ifdef MS_COREDLL
820-
extern FILE *PyWin_FindRegisteredModule();
820+
extern FILE *PyWin_FindRegisteredModule(const char *, struct filedescr **,
821+
char *, int);
821822
#endif
822823

823824
#ifdef CHECK_IMPORT_CASE

Python/thread_lwp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void PyThread__exit_prog(int status)
106106
PyThread_type_lock PyThread_allocate_lock(void)
107107
{
108108
struct lock *lock;
109-
extern char *malloc();
109+
extern char *malloc(size_t);
110110

111111
dprintf(("PyThread_allocate_lock called\n"));
112112
if (!initialized)

0 commit comments

Comments
 (0)