diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-22 23:38:01 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-22 23:38:01 (GMT) |
commit | b4bd21cf79166e769b7027d14c2de002ec6ec9cb (patch) | |
tree | 190725ee856c2ca5e9e9a4a1e2616802d3cf34fd /Python | |
parent | bd8ad942fe2cf22d741b3a132d98baa350537c77 (diff) | |
download | cpython-b4bd21cf79166e769b7027d14c2de002ec6ec9cb.zip cpython-b4bd21cf79166e769b7027d14c2de002ec6ec9cb.tar.gz cpython-b4bd21cf79166e769b7027d14c2de002ec6ec9cb.tar.bz2 |
ANSIfy as many declarations as possible.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/dynload_aix.c | 2 | ||||
-rw-r--r-- | Python/dynload_dl.c | 2 | ||||
-rw-r--r-- | Python/frozenmain.c | 6 | ||||
-rw-r--r-- | Python/import.c | 3 | ||||
-rw-r--r-- | Python/thread_lwp.h | 2 |
5 files changed, 8 insertions, 7 deletions
diff --git a/Python/dynload_aix.c b/Python/dynload_aix.c index 6a22988..013e8f8 100644 --- a/Python/dynload_aix.c +++ b/Python/dynload_aix.c @@ -28,7 +28,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #endif -extern char *Py_GetProgramName(); +extern char *Py_GetProgramName(void); typedef struct Module { struct Module *next; diff --git a/Python/dynload_dl.c b/Python/dynload_dl.c index af95254..84fc9c4 100644 --- a/Python/dynload_dl.c +++ b/Python/dynload_dl.c @@ -16,7 +16,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #include "importdl.h" -extern char *Py_GetProgramName(); +extern char *Py_GetProgramName(void); const struct filedescr _PyImport_DynLoadFiletab[] = { {".o", "rb", C_EXTENSION}, diff --git a/Python/frozenmain.c b/Python/frozenmain.c index f846c2d..576baac 100644 --- a/Python/frozenmain.c +++ b/Python/frozenmain.c @@ -13,9 +13,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #include "Python.h" #ifdef MS_WIN32 -extern void PyWinFreeze_ExeInit(); -extern void PyWinFreeze_ExeTerm(); -extern int PyInitFrozenExtensions(); +extern void PyWinFreeze_ExeInit(void); +extern void PyWinFreeze_ExeTerm(void); +extern int PyInitFrozenExtensions(void); #endif #ifdef HAVE_UNISTD_H diff --git a/Python/import.c b/Python/import.c index 959474a..46c8469 100644 --- a/Python/import.c +++ b/Python/import.c @@ -817,7 +817,8 @@ is_builtin(char *name) pathname and an open file. Return NULL if the module is not found. */ #ifdef MS_COREDLL -extern FILE *PyWin_FindRegisteredModule(); +extern FILE *PyWin_FindRegisteredModule(const char *, struct filedescr **, + char *, int); #endif #ifdef CHECK_IMPORT_CASE diff --git a/Python/thread_lwp.h b/Python/thread_lwp.h index 671387c..8858e91 100644 --- a/Python/thread_lwp.h +++ b/Python/thread_lwp.h @@ -106,7 +106,7 @@ void PyThread__exit_prog(int status) PyThread_type_lock PyThread_allocate_lock(void) { struct lock *lock; - extern char *malloc(); + extern char *malloc(size_t); dprintf(("PyThread_allocate_lock called\n")); if (!initialized) |