mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
ANSIfy as many declarations as possible.
This commit is contained in:
parent
bd8ad942fe
commit
b4bd21cf79
5 changed files with 8 additions and 7 deletions
|
@ -28,7 +28,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
extern char *Py_GetProgramName();
|
extern char *Py_GetProgramName(void);
|
||||||
|
|
||||||
typedef struct Module {
|
typedef struct Module {
|
||||||
struct Module *next;
|
struct Module *next;
|
||||||
|
|
|
@ -16,7 +16,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
#include "importdl.h"
|
#include "importdl.h"
|
||||||
|
|
||||||
|
|
||||||
extern char *Py_GetProgramName();
|
extern char *Py_GetProgramName(void);
|
||||||
|
|
||||||
const struct filedescr _PyImport_DynLoadFiletab[] = {
|
const struct filedescr _PyImport_DynLoadFiletab[] = {
|
||||||
{".o", "rb", C_EXTENSION},
|
{".o", "rb", C_EXTENSION},
|
||||||
|
|
|
@ -13,9 +13,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
|
||||||
#ifdef MS_WIN32
|
#ifdef MS_WIN32
|
||||||
extern void PyWinFreeze_ExeInit();
|
extern void PyWinFreeze_ExeInit(void);
|
||||||
extern void PyWinFreeze_ExeTerm();
|
extern void PyWinFreeze_ExeTerm(void);
|
||||||
extern int PyInitFrozenExtensions();
|
extern int PyInitFrozenExtensions(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
|
|
|
@ -817,7 +817,8 @@ is_builtin(char *name)
|
||||||
pathname and an open file. Return NULL if the module is not found. */
|
pathname and an open file. Return NULL if the module is not found. */
|
||||||
|
|
||||||
#ifdef MS_COREDLL
|
#ifdef MS_COREDLL
|
||||||
extern FILE *PyWin_FindRegisteredModule();
|
extern FILE *PyWin_FindRegisteredModule(const char *, struct filedescr **,
|
||||||
|
char *, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CHECK_IMPORT_CASE
|
#ifdef CHECK_IMPORT_CASE
|
||||||
|
|
|
@ -106,7 +106,7 @@ void PyThread__exit_prog(int status)
|
||||||
PyThread_type_lock PyThread_allocate_lock(void)
|
PyThread_type_lock PyThread_allocate_lock(void)
|
||||||
{
|
{
|
||||||
struct lock *lock;
|
struct lock *lock;
|
||||||
extern char *malloc();
|
extern char *malloc(size_t);
|
||||||
|
|
||||||
dprintf(("PyThread_allocate_lock called\n"));
|
dprintf(("PyThread_allocate_lock called\n"));
|
||||||
if (!initialized)
|
if (!initialized)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue