]> granicus.if.org Git - python/commitdiff
ANSIfy as many declarations as possible.
authorThomas Wouters <thomas@python.org>
Sat, 22 Jul 2000 23:38:01 +0000 (23:38 +0000)
committerThomas Wouters <thomas@python.org>
Sat, 22 Jul 2000 23:38:01 +0000 (23:38 +0000)
Python/dynload_aix.c
Python/dynload_dl.c
Python/frozenmain.c
Python/import.c
Python/thread_lwp.h

index 6a229882f5365a9c544309239399a17a7d75675b..013e8f8bf5ddaa1fb48ca88c82ef2bb963b7df9c 100644 (file)
@@ -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;
index af95254f3344498ebbe580be3ae1a9bb25e888df..84fc9c4ed98a3e3264cc85bfff3b4463f4c388ec 100644 (file)
@@ -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},
index f846c2d2c03c56a31706a8c6b90e699f6cb76dbe..576baacc6b91ee1e1ad2c25d8d4cab451005ca41 100644 (file)
@@ -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
index 959474a429804f296bb89d763e8922400eb5ca1f..46c84697396806b1c57b890421035fb98a743fc8 100644 (file)
@@ -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
index 671387c46ccc5e86cbbfae718e0cfbfab3d46ca4..8858e911bd221daf9df40ae29fbb149e0cb5a501 100644 (file)
@@ -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)