]> granicus.if.org Git - python/commitdiff
Peter Schneider-Kamp <nowonder@nowonder.de>:
authorFred Drake <fdrake@acm.org>
Thu, 31 Aug 2000 05:18:54 +0000 (05:18 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 31 Aug 2000 05:18:54 +0000 (05:18 +0000)
Remove some of GCC's warning in -Wstrict-prototypes mode.

This closes SourceForge patch #101342.

Modules/arraymodule.c
Modules/readline.c
Modules/selectmodule.c
Objects/fileobject.c

index 6648c9c0b3b907f9f7187dc9a311ddca6ec871c2..530b214c1ab16b6dea13607468ebee36462116b4 100644 (file)
@@ -788,9 +788,7 @@ static char pop_doc [] =
 Return the i-th element and delete it from the array. i defaults to -1.";
 
 static PyObject *
-array_extend(self, args)
-       arrayobject *self;
-       PyObject *args;
+array_extend(arrayobject *self, PyObject *args)
 {
        int size;
         PyObject    *bb;
index 4f8969ba61a82a97f4e8b02e6bb330758da24a19..01482062f2a661647ac48104096766ad4d330126 100644 (file)
 #else
 #include <readline/readline.h> /* You may need to add an -I option to Setup */
 
-extern int rl_parse_and_bind();
-extern int rl_read_init_file();
-extern int rl_insert_text();
-extern int rl_bind_key();
-extern int rl_bind_key_in_map();
-extern int rl_initialize();
-extern int add_history();
+extern int rl_parse_and_bind(char *);
+extern int rl_read_init_file(char *);
+extern int rl_insert_text(char *);
+extern int rl_bind_key(int, Function *);
+extern int rl_bind_key_in_map(int, Function *, Keymap);
+extern int rl_initialize(void);
+extern int add_history(char *);
 extern Function *rl_event_hook;
 #endif
 
index 1c747a5e029889c07d94ebcba99ff95c2ca0be4f..1c1f3d8cdbe8f1009605cf6d8686478dfbd24697 100644 (file)
@@ -508,7 +508,7 @@ static PyMethodDef poll_methods[] = {
 };
 
 static pollObject *
-newPollObject()
+newPollObject(void)
 {
         pollObject *self;
        self = PyObject_New(pollObject, &poll_Type);
index beb36b5a08ba32b74a01f8826080cebb13a73e37..6305520d145529c36cf931079788926e286db0cc 100644 (file)
@@ -253,14 +253,11 @@ file_close(PyFileObject *f, PyObject *args)
 /* a portable fseek() function
    return 0 on success, non-zero on failure (with errno set) */
 int
-_portable_fseek(fp, offset, whence)
-       FILE* fp;
 #if defined(HAVE_LARGEFILE_SUPPORT) && SIZEOF_OFF_T < 8 && SIZEOF_FPOS_T >= 8 
-       fpos_t offset;
+_portable_fseek(FILE *fp, fpos_t offset, int whence)
 #else
-       off_t offset;
+_portable_fseek(FILE *fp, off_t offset, int whence)
 #endif
-       int whence;
 {
 #if defined(HAVE_FSEEKO)
        return fseeko(fp, offset, whence);
@@ -302,8 +299,7 @@ fpos_t
 #else
 off_t
 #endif
-_portable_ftell(fp)
-       FILE* fp;
+_portable_ftell(FILE* fp)
 {
 #if defined(HAVE_FTELLO) && defined(HAVE_LARGEFILE_SUPPORT)
        return ftello(fp);