bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] proposal for PARAMS removal from gnulib


From: Paul Eggert
Subject: [Bug-gnulib] proposal for PARAMS removal from gnulib
Date: 17 Jun 2003 12:40:11 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

The latest Bison test version has problems with PARAMS mismatch.  This
motivated me to propose the following patch.  gnulib assumes C89 or
better now, so it doesn't need PARAMS any more.

Index: lib/ChangeLog
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/ChangeLog,v
retrieving revision 1.494
diff -p -u -r1.494 ChangeLog
--- lib/ChangeLog       11 Jun 2003 10:42:09 -0000      1.494
+++ lib/ChangeLog       17 Jun 2003 19:36:05 -0000
@@ -1,3 +1,18 @@
+2003-06-17  Paul Eggert  <address@hidden>
+
+       Assume C89, so PARAMS isn't needed.
+       * backupfile.h (PARAMS): Remove.  All uses removed.
+       * closeout.h, dirname.h, filemode.h, fsusage.h, getdate.h, getline.h,
+       group-member.h, hard-locale.h, hash.h, linebuffer.h, long-options.h,
+       makepath.h, memcasecmp.h, memcoll.h, modechange.h, mountlist.h,
+       path-concat.h, physmem.h, posixtm.h, quote.h, readutmp.h, same.h,
+       save-cwd.h, savedir.h, stdio-safer.h, strtoimax.c, strverscmp.h,
+       unistd-safer.h, version-etc.h, xalloc.h, xreadlink.h, xstrtod.h,
+       xstrtol.h: Likewise.
+       * filemode.h, hard-locale.h, memcoll.h, modechange.h, physmem.h, same.h,
+       strverscmp.h: Do not include config.h; no longer needed.
+       Anyway, config.h should always be included before any other file.
+       
 2003-06-11  Simon Josefsson  <address@hidden>
 
        * sysexit_.h: New file.
Index: lib/backupfile.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/backupfile.c,v
retrieving revision 1.39
diff -p -u -r1.39 backupfile.c
--- lib/backupfile.c    4 Jun 2003 19:22:29 -0000       1.39
+++ lib/backupfile.c    17 Jun 2003 19:36:06 -0000
@@ -111,8 +111,8 @@ char *malloc ();
    to numbered) backup file name. */
 const char *simple_backup_suffix = "~";
 
-static int max_backup_version PARAMS ((const char *, const char *));
-static int version_number PARAMS ((const char *, const char *, size_t));
+static int max_backup_version (const char *, const char *);
+static int version_number (const char *, const char *, size_t);
 
 /* Return the name of the new backup file for file FILE,
    allocated with malloc.  Return 0 if out of memory.
Index: lib/backupfile.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/backupfile.h,v
retrieving revision 1.11
diff -p -u -r1.11 backupfile.h
--- lib/backupfile.h    7 Aug 2000 15:48:18 -0000       1.11
+++ lib/backupfile.h    17 Jun 2003 19:36:06 -0000
@@ -44,17 +44,9 @@ enum backup_type
 
 extern char const *simple_backup_suffix;
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-char *find_backup_file_name PARAMS ((char const *, enum backup_type));
-enum backup_type get_version PARAMS ((char const *context, char const *arg));
-enum backup_type xget_version PARAMS ((char const *context, char const *arg));
-void addext PARAMS ((char *, char const *, int));
+char *find_backup_file_name (char const *, enum backup_type);
+enum backup_type get_version (char const *context, char const *arg);
+enum backup_type xget_version (char const *context, char const *arg);
+void addext (char *, char const *, int);
 
 #endif /* ! BACKUPFILE_H_ */
Index: lib/closeout.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/closeout.h,v
retrieving revision 1.4
diff -p -u -r1.4 closeout.h
--- lib/closeout.h      2 Dec 2000 20:45:30 -0000       1.4
+++ lib/closeout.h      17 Jun 2003 19:36:06 -0000
@@ -1,17 +1,9 @@
 #ifndef CLOSEOUT_H
 # define CLOSEOUT_H 1
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-void close_stdout_set_status PARAMS ((int status));
-void close_stdout_set_file_name PARAMS ((const char *file));
-void close_stdout PARAMS ((void));
-void close_stdout_status PARAMS ((int status));
+void close_stdout_set_status (int status);
+void close_stdout_set_file_name (const char *file);
+void close_stdout (void);
+void close_stdout_status (int status);
 
 #endif
Index: lib/dirname.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/dirname.h,v
retrieving revision 1.7
diff -p -u -r1.7 dirname.h
--- lib/dirname.h       4 Jun 2003 19:22:29 -0000       1.7
+++ lib/dirname.h       17 Jun 2003 19:36:06 -0000
@@ -19,14 +19,6 @@
 
 # include <stddef.h>
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
 # ifndef DIRECTORY_SEPARATOR
 #  define DIRECTORY_SEPARATOR '/'
 # endif
@@ -39,11 +31,11 @@
 #  define FILESYSTEM_PREFIX_LEN(Filename) 0
 # endif
 
-char *base_name PARAMS ((char const *path));
-char *dir_name PARAMS ((char const *path));
-size_t base_len PARAMS ((char const *path));
-size_t dir_len PARAMS ((char const *path));
+char *base_name (char const *path);
+char *dir_name (char const *path);
+size_t base_len (char const *path);
+size_t dir_len (char const *path);
 
-int strip_trailing_slashes PARAMS ((char *path));
+int strip_trailing_slashes (char *path);
 
 #endif /* not DIRNAME_H_ */
Index: lib/filemode.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/filemode.h,v
retrieving revision 1.3
diff -p -u -r1.3 filemode.h
--- lib/filemode.h      26 Apr 1999 13:13:36 -0000      1.3
+++ lib/filemode.h      17 Jun 2003 19:36:06 -0000
@@ -1,19 +1,7 @@
 #ifndef FILEMODE_H_
 
-# if HAVE_CONFIG_H
-#  include <config.h>
-# endif
-
 # include <sys/types.h>
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-void mode_string PARAMS ((mode_t mode, char *str));
+void mode_string (mode_t mode, char *str);
 
 #endif
Index: lib/fsusage.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/fsusage.h,v
retrieving revision 1.8
diff -p -u -r1.8 fsusage.h
--- lib/fsusage.h       7 Aug 2000 15:48:18 -0000       1.8
+++ lib/fsusage.h       17 Jun 2003 19:36:06 -0000
@@ -31,15 +31,6 @@ struct fs_usage
   uintmax_t fsu_ffree;         /* Free file nodes. */
 };
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-int get_fs_usage PARAMS ((const char *path, const char *disk,
-                         struct fs_usage *fsp));
+int get_fs_usage (const char *path, const char *disk, struct fs_usage *fsp);
 
 #endif
Index: lib/getdate.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getdate.h,v
retrieving revision 1.9
diff -p -u -r1.9 getdate.h
--- lib/getdate.h       7 Aug 2000 15:48:18 -0000       1.9
+++ lib/getdate.h       17 Jun 2003 19:36:07 -0000
@@ -18,14 +18,6 @@
 # include <config.h>
 #endif
 
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-#endif
-
 #ifdef vms
 # include <types.h>
 # include <time.h>
@@ -43,4 +35,4 @@
 # endif
 #endif /* defined (vms) */
 
-time_t get_date PARAMS ((const char *p, const time_t *now));
+time_t get_date (const char *p, const time_t *now);
Index: lib/getline.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getline.h,v
retrieving revision 1.11
diff -p -u -r1.11 getline.h
--- lib/getline.h       31 Dec 2002 12:56:28 -0000      1.11
+++ lib/getline.h       17 Jun 2003 19:36:07 -0000
@@ -20,22 +20,12 @@ Foundation, Inc., 59 Temple Place - Suit
 # include <stddef.h>
 # include <stdio.h>
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
 /* glibc2 has these functions declared in <stdio.h>.  Avoid redeclarations.  */
 # if __GLIBC__ < 2
 
-int
-getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
+int getline (char **_lineptr, size_t *_n, FILE *_stream);
 
-int
-getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
+int getdelim (char **_lineptr, size_t *_n, int _delimiter, FILE *_stream);
 
 # endif
 
Index: lib/group-member.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/group-member.h,v
retrieving revision 1.6
diff -p -u -r1.6 group-member.h
--- lib/group-member.h  28 Dec 1997 09:48:26 -0000      1.6
+++ lib/group-member.h  17 Jun 2003 19:36:07 -0000
@@ -1,15 +1,6 @@
 #ifndef GROUP_MEMBER_H_
 # define GROUP_MEMBER_H_ 1
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-int
-  group_member PARAMS ((gid_t));
+int group_member (gid_t);
 
 #endif /* GROUP_MEMBER_H_ */
Index: lib/hard-locale.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/hard-locale.h,v
retrieving revision 1.1
diff -p -u -r1.1 hard-locale.h
--- lib/hard-locale.h   4 Jul 1999 10:38:37 -0000       1.1
+++ lib/hard-locale.h   17 Jun 2003 19:36:07 -0000
@@ -1,18 +1,6 @@
 #ifndef HARD_LOCALE_H_
 # define HARD_LOCALE_H_ 1
 
-# if HAVE_CONFIG_H
-#  include <config.h>
-# endif
-
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-int hard_locale PARAMS ((int));
+int hard_locale (int);
 
 #endif /* HARD_LOCALE_H_ */
Index: lib/hash.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/hash.h,v
retrieving revision 1.13
diff -p -u -r1.13 hash.h
--- lib/hash.h  4 Jun 2003 19:22:29 -0000       1.13
+++ lib/hash.h  17 Jun 2003 19:36:07 -0000
@@ -26,18 +26,10 @@
 
 # include <stdio.h>
 
-# ifndef PARAMS
-#  if PROTOTYPES || __STDC__
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-typedef unsigned (*Hash_hasher) PARAMS ((const void *, unsigned));
-typedef bool (*Hash_comparator) PARAMS ((const void *, const void *));
-typedef void (*Hash_data_freer) PARAMS ((void *));
-typedef bool (*Hash_processor) PARAMS ((void *, void *));
+typedef unsigned (*Hash_hasher) (const void *, unsigned);
+typedef bool (*Hash_comparator) (const void *, const void *);
+typedef void (*Hash_data_freer) (void *);
+typedef bool (*Hash_processor) (void *, void *);
 
 struct hash_entry
   {
@@ -64,32 +56,32 @@ struct hash_table;
 typedef struct hash_table Hash_table;
 
 /* Information and lookup.  */
-unsigned hash_get_n_buckets PARAMS ((const Hash_table *));
-unsigned hash_get_n_buckets_used PARAMS ((const Hash_table *));
-unsigned hash_get_n_entries PARAMS ((const Hash_table *));
-unsigned hash_get_max_bucket_length PARAMS ((const Hash_table *));
-bool hash_table_ok PARAMS ((const Hash_table *));
-void hash_print_statistics PARAMS ((const Hash_table *, FILE *));
-void *hash_lookup PARAMS ((const Hash_table *, const void *));
+unsigned hash_get_n_buckets (const Hash_table *);
+unsigned hash_get_n_buckets_used (const Hash_table *);
+unsigned hash_get_n_entries (const Hash_table *);
+unsigned hash_get_max_bucket_length (const Hash_table *);
+bool hash_table_ok (const Hash_table *);
+void hash_print_statistics (const Hash_table *, FILE *);
+void *hash_lookup (const Hash_table *, const void *);
 
 /* Walking.  */
-void *hash_get_first PARAMS ((const Hash_table *));
-void *hash_get_next PARAMS ((const Hash_table *, const void *));
-unsigned hash_get_entries PARAMS ((const Hash_table *, void **, unsigned));
-unsigned hash_do_for_each PARAMS ((const Hash_table *, Hash_processor, void 
*));
+void *hash_get_first (const Hash_table *);
+void *hash_get_next (const Hash_table *, const void *);
+unsigned hash_get_entries (const Hash_table *, void **, unsigned);
+unsigned hash_do_for_each (const Hash_table *, Hash_processor, void *);
 
 /* Allocation and clean-up.  */
-unsigned hash_string PARAMS ((const char *, unsigned));
-void hash_reset_tuning PARAMS ((Hash_tuning *));
-Hash_table *hash_initialize PARAMS ((unsigned, const Hash_tuning *,
-                                    Hash_hasher, Hash_comparator,
-                                    Hash_data_freer));
-void hash_clear PARAMS ((Hash_table *));
-void hash_free PARAMS ((Hash_table *));
+unsigned hash_string (const char *, unsigned);
+void hash_reset_tuning (Hash_tuning *);
+Hash_table *hash_initialize (unsigned, const Hash_tuning *,
+                            Hash_hasher, Hash_comparator,
+                            Hash_data_freer);
+void hash_clear (Hash_table *);
+void hash_free (Hash_table *);
 
 /* Insertion and deletion.  */
-bool hash_rehash PARAMS ((Hash_table *, unsigned));
-void *hash_insert PARAMS ((Hash_table *, const void *));
-void *hash_delete PARAMS ((Hash_table *, const void *));
+bool hash_rehash (Hash_table *, unsigned);
+void *hash_insert (Hash_table *, const void *);
+void *hash_delete (Hash_table *, const void *);
 
 #endif
Index: lib/linebuffer.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/linebuffer.h,v
retrieving revision 1.13
diff -p -u -r1.13 linebuffer.h
--- lib/linebuffer.h    4 Jun 2003 19:22:29 -0000       1.13
+++ lib/linebuffer.h    17 Jun 2003 19:36:07 -0000
@@ -31,25 +31,16 @@ struct linebuffer
   char *buffer;
 };
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
 /* Initialize linebuffer LINEBUFFER for use. */
-void initbuffer PARAMS ((struct linebuffer *linebuffer));
+void initbuffer (struct linebuffer *linebuffer);
 
 /* Read an arbitrarily long line of text from STREAM into LINEBUFFER.
    Keep the newline; append a newline if it's the last line of a file
    that ends in a non-newline character.  Do not null terminate.
    Return LINEBUFFER, except at end of file return 0.  */
-struct linebuffer *readlinebuffer PARAMS ((struct linebuffer *linebuffer,
-                                          FILE *stream));
+struct linebuffer *readlinebuffer (struct linebuffer *linebuffer, FILE 
*stream);
 
 /* Free linebuffer LINEBUFFER and its data, all allocated with malloc. */
-void freebuffer PARAMS ((struct linebuffer *));
+void freebuffer (struct linebuffer *);
 
 #endif /* LINEBUFFER_H */
Index: lib/long-options.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/long-options.h,v
retrieving revision 1.12
diff -p -u -r1.12 long-options.h
--- lib/long-options.h  7 Aug 2000 15:48:18 -0000       1.12
+++ lib/long-options.h  17 Jun 2003 19:36:07 -0000
@@ -17,19 +17,10 @@
 
 /* Written by Jim Meyering.  */
 
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-#endif
-
-void
-  parse_long_options PARAMS ((int _argc,
-                             char **_argv,
-                             const char *_command_name,
-                             const char *_package,
-                             const char *_version,
-                             const char *_authors,
-                             void (*_usage) (int)));
+void parse_long_options (int _argc,
+                        char **_argv,
+                        const char *_command_name,
+                        const char *_package,
+                        const char *_version,
+                        const char *_authors,
+                        void (*_usage) (int));
Index: lib/makepath.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/makepath.c,v
retrieving revision 1.54
diff -p -u -r1.54 makepath.c
--- lib/makepath.c      12 Jan 2003 08:51:10 -0000      1.54
+++ lib/makepath.c      17 Jun 2003 19:36:07 -0000
@@ -86,7 +86,6 @@ extern int errno;
 
 #define WX_USR (S_IWUSR | S_IXUSR)
 
-/* Include this before libintl.h so we get our definition of PARAMS. */
 #include "makepath.h"
 
 #include "gettext.h"
Index: lib/makepath.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/makepath.h,v
retrieving revision 1.6
diff -p -u -r1.6 makepath.h
--- lib/makepath.h      5 Nov 2000 15:04:39 -0000       1.6
+++ lib/makepath.h      17 Jun 2003 19:36:07 -0000
@@ -1,22 +1,12 @@
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-#endif
+int make_path (const char *_argpath,
+              int _mode,
+              int _parent_mode,
+              uid_t _owner,
+              gid_t _group,
+              int _preserve_existing,
+              const char *_verbose_fmt_string);
 
-int
-make_path PARAMS ((const char *_argpath,
-                  int _mode,
-                  int _parent_mode,
-                  uid_t _owner,
-                  gid_t _group,
-                  int _preserve_existing,
-                  const char *_verbose_fmt_string));
-
-int
-make_dir PARAMS ((const char *dir,
-                 const char *dirpath,
-                 mode_t mode,
-                 int *created_dir_p));
+int make_dir (const char *dir,
+             const char *dirpath,
+             mode_t mode,
+             int *created_dir_p);
Index: lib/memcasecmp.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/memcasecmp.h,v
retrieving revision 1.6
diff -p -u -r1.6 memcasecmp.h
--- lib/memcasecmp.h    4 Jun 2003 19:22:29 -0000       1.6
+++ lib/memcasecmp.h    17 Jun 2003 19:36:07 -0000
@@ -1,12 +1,3 @@
 #include <stddef.h>
 
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-#endif
-
-int
-  memcasecmp PARAMS ((const void *vs1, const void *vs2, size_t n));
+int memcasecmp (const void *vs1, const void *vs2, size_t n);
Index: lib/memcoll.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/memcoll.h,v
retrieving revision 1.2
diff -p -u -r1.2 memcoll.h
--- lib/memcoll.h       4 Jun 2003 19:22:29 -0000       1.2
+++ lib/memcoll.h       17 Jun 2003 19:36:07 -0000
@@ -1,20 +1,8 @@
 #ifndef MEMCOLL_H_
 # define MEMCOLL_H_ 1
 
-# if HAVE_CONFIG_H
-#  include <config.h>
-# endif
-
 # include <stddef.h>
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-int memcoll PARAMS ((char *, size_t, char *, size_t));
+int memcoll (char *, size_t, char *, size_t);
 
 #endif /* MEMCOLL_H_ */
Index: lib/modechange.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/modechange.h,v
retrieving revision 1.11
diff -p -u -r1.11 modechange.h
--- lib/modechange.h    7 Aug 2000 15:48:18 -0000       1.11
+++ lib/modechange.h    17 Jun 2003 19:36:07 -0000
@@ -20,10 +20,6 @@
 #if ! defined MODECHANGE_H_
 # define MODECHANGE_H_
 
-# if HAVE_CONFIG_H
-#  include <config.h>
-# endif
-
 # include <sys/types.h>
 
 /* Affect the execute bits only if at least one execute bit is set already,
@@ -55,17 +51,9 @@ struct mode_change
 # define MODE_MEMORY_EXHAUSTED (struct mode_change *) 1
 # define MODE_BAD_REFERENCE (struct mode_change *) 2
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-struct mode_change *mode_compile PARAMS ((const char *, unsigned));
-struct mode_change *mode_create_from_ref PARAMS ((const char *));
-mode_t mode_adjust PARAMS ((mode_t, const struct mode_change *));
-void mode_free PARAMS ((struct mode_change *));
+struct mode_change *mode_compile (const char *, unsigned);
+struct mode_change *mode_create_from_ref (const char *);
+mode_t mode_adjust (mode_t, const struct mode_change *);
+void mode_free (struct mode_change *);
 
 #endif
Index: lib/mountlist.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/mountlist.h,v
retrieving revision 1.9
diff -p -u -r1.9 mountlist.h
--- lib/mountlist.h     21 Nov 2002 08:32:22 -0000      1.9
+++ lib/mountlist.h     17 Jun 2003 19:36:07 -0000
@@ -27,15 +27,7 @@ struct mount_entry
   struct mount_entry *me_next;
 };
 
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-#endif
-
-struct mount_entry *read_filesystem_list PARAMS ((int need_fs_type));
+struct mount_entry *read_filesystem_list (int need_fs_type);
 
 #ifndef ME_DUMMY
 # define ME_DUMMY(Fs_name, Fs_type) \
Index: lib/path-concat.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/path-concat.h,v
retrieving revision 1.3
diff -p -u -r1.3 path-concat.h
--- lib/path-concat.h   21 Dec 1997 11:22:59 -0000      1.3
+++ lib/path-concat.h   17 Jun 2003 19:36:07 -0000
@@ -1,15 +1,6 @@
 #if ! defined PATH_CONCAT_H_
 # define PATH_CONCAT_H_
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-char *
-path_concat PARAMS ((const char *dir, const char *base, char 
**base_in_result));
+char *path_concat (const char *dir, const char *base, char **base_in_result);
 
 #endif
Index: lib/physmem.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/physmem.h,v
retrieving revision 1.1
diff -p -u -r1.1 physmem.h
--- lib/physmem.h       19 Dec 2000 08:22:18 -0000      1.1
+++ lib/physmem.h       17 Jun 2003 19:36:07 -0000
@@ -1,19 +1,7 @@
 #ifndef PHYSMEM_H_
 # define PHYSMEM_H_ 1
 
-# if HAVE_CONFIG_H
-#  include <config.h>
-# endif
-
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-double physmem_total PARAMS ((void));
-double physmem_available PARAMS ((void));
+double physmem_total (void);
+double physmem_available (void);
 
 #endif /* PHYSMEM_H_ */
Index: lib/posixtm.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/posixtm.h,v
retrieving revision 1.4
diff -p -u -r1.4 posixtm.h
--- lib/posixtm.h       2 Jun 2003 08:22:29 -0000       1.4
+++ lib/posixtm.h       17 Jun 2003 19:36:07 -0000
@@ -7,15 +7,6 @@
 # define PDS_CENTURY 4
 # define PDS_SECONDS 8
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-bool
-posixtime PARAMS ((time_t *p, const char *s, unsigned int syntax_bits));
+bool posixtime (time_t *p, const char *s, unsigned int syntax_bits);
 
 #endif
Index: lib/quote.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/quote.h,v
retrieving revision 1.3
diff -p -u -r1.3 quote.h
--- lib/quote.h 23 Nov 2002 07:23:50 -0000      1.3
+++ lib/quote.h 17 Jun 2003 19:36:07 -0000
@@ -16,13 +16,5 @@
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-#endif
-
-char const *quote_n PARAMS ((int n, char const *name));
-char const *quote PARAMS ((char const *name));
+char const *quote_n (int n, char const *name);
+char const *quote (char const *name);
Index: lib/readutmp.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/readutmp.h,v
retrieving revision 1.12
diff -p -u -r1.12 readutmp.h
--- lib/readutmp.h      16 Apr 2002 10:41:33 -0000      1.12
+++ lib/readutmp.h      17 Jun 2003 19:36:07 -0000
@@ -20,14 +20,6 @@
 #ifndef __READUTMP_H__
 # define __READUTMP_H__
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
 # include <sys/types.h>
 
 # ifdef HAVE_UTMPX_H
@@ -136,15 +128,7 @@ extern int errno;
 #  define WTMP_FILE "/etc/wtmp"
 # endif
 
-# undef PARAMS
-# if defined (__STDC__) && __STDC__
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-
-extern char *extract_trimmed_name PARAMS ((const STRUCT_UTMP *ut));
-extern int read_utmp PARAMS ((const char *filename,
-                             int *n_entries, STRUCT_UTMP **utmp_buf));
+char *extract_trimmed_name (const STRUCT_UTMP *ut);
+int read_utmp (const char *filename, int *n_entries, STRUCT_UTMP **utmp_buf);
 
 #endif /* __READUTMP_H__ */
Index: lib/same.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/same.h,v
retrieving revision 1.2
diff -p -u -r1.2 same.h
--- lib/same.h  7 Jan 2000 07:33:37 -0000       1.2
+++ lib/same.h  17 Jun 2003 19:36:07 -0000
@@ -18,19 +18,6 @@
 #ifndef SAME_H_
 # define SAME_H_ 1
 
-# if HAVE_CONFIG_H
-#  include <config.h>
-# endif
-
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-int
-same_name PARAMS ((const char *source, const char *dest));
+int same_name (const char *source, const char *dest);
 
 #endif /* SAME_H_ */
Index: lib/save-cwd.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/save-cwd.c,v
retrieving revision 1.11
diff -p -u -r1.11 save-cwd.c
--- lib/save-cwd.c      22 Oct 2000 06:57:42 -0000      1.11
+++ lib/save-cwd.c      17 Jun 2003 19:36:07 -0000
@@ -49,7 +49,7 @@ extern int errno;
 #include "save-cwd.h"
 #include "error.h"
 
-char *xgetcwd PARAMS ((void));
+char *xgetcwd (void);
 
 /* Record the location of the current working directory in CWD so that
    the program may change to other directories and later use restore_cwd
Index: lib/save-cwd.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/save-cwd.h,v
retrieving revision 1.4
diff -p -u -r1.4 save-cwd.h
--- lib/save-cwd.h      3 Jan 1998 11:56:09 -0000       1.4
+++ lib/save-cwd.h      17 Jun 2003 19:36:07 -0000
@@ -7,17 +7,9 @@ struct saved_cwd
     char *name;
   };
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-int save_cwd PARAMS ((struct saved_cwd *cwd));
-int restore_cwd PARAMS ((const struct saved_cwd *cwd, const char *dest,
-                        const char *from));
-void free_cwd PARAMS ((struct saved_cwd *cwd));
+int save_cwd (struct saved_cwd *cwd);
+int restore_cwd (const struct saved_cwd *cwd, const char *dest,
+                const char *from);
+void free_cwd (struct saved_cwd *cwd);
 
 #endif /* SAVE_CWD_H */
Index: lib/savedir.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/savedir.h,v
retrieving revision 1.5
diff -p -u -r1.5 savedir.h
--- lib/savedir.h       31 Aug 2001 09:09:35 -0000      1.5
+++ lib/savedir.h       17 Jun 2003 19:36:07 -0000
@@ -1,14 +1,6 @@
 #if !defined SAVEDIR_H_
 # define SAVEDIR_H_
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-char *savedir PARAMS ((const char *dir));
+char *savedir (const char *dir);
 
 #endif
Index: lib/stdio-safer.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/stdio-safer.h,v
retrieving revision 1.2
diff -p -u -r1.2 stdio-safer.h
--- lib/stdio-safer.h   4 Jun 2003 19:22:29 -0000       1.2
+++ lib/stdio-safer.h   17 Jun 2003 19:36:07 -0000
@@ -1,11 +1,3 @@
 #include <stdio.h>
 
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-#endif
-
-FILE *fopen_safer PARAMS ((char const *, char const *));
+FILE *fopen_safer (char const *, char const *);
Index: lib/strtoimax.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/strtoimax.c,v
retrieving revision 1.6
diff -p -u -r1.6 strtoimax.c
--- lib/strtoimax.c     6 Jan 2003 12:38:36 -0000       1.6
+++ lib/strtoimax.c     17 Jun 2003 19:36:08 -0000
@@ -33,14 +33,6 @@
 # include <stdlib.h>
 #endif
 
-#ifndef PARAMS
-# if defined PROTOTYPES || defined __STDC__
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-#endif
-
 /* Verify a requirement at compile-time (unlike assert, which is runtime).  */
 #define verify(name, assertion) struct name { char a[(assertion) ? 1 : -1]; }
 
@@ -49,13 +41,13 @@
 "this configure-time declaration test was not run"
 # endif
 # if !HAVE_DECL_STRTOUL
-unsigned long strtoul PARAMS ((char const *, char **, int));
+unsigned long strtoul (char const *, char **, int);
 # endif
 # ifndef HAVE_DECL_STRTOULL
 "this configure-time declaration test was not run"
 # endif
 # if !HAVE_DECL_STRTOULL && HAVE_UNSIGNED_LONG_LONG
-unsigned long long strtoull PARAMS ((char const *, char **, int));
+unsigned long long strtoull (char const *, char **, int);
 # endif
 
 #else
@@ -64,13 +56,13 @@ unsigned long long strtoull PARAMS ((cha
 "this configure-time declaration test was not run"
 # endif
 # if !HAVE_DECL_STRTOL
-long strtol PARAMS ((char const *, char **, int));
+long strtol (char const *, char **, int);
 # endif
 # ifndef HAVE_DECL_STRTOLL
 "this configure-time declaration test was not run"
 # endif
 # if !HAVE_DECL_STRTOLL && HAVE_UNSIGNED_LONG_LONG
-long long strtoll PARAMS ((char const *, char **, int));
+long long strtoll (char const *, char **, int);
 # endif
 #endif
 
Index: lib/strverscmp.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/strverscmp.h,v
retrieving revision 1.4
diff -p -u -r1.4 strverscmp.h
--- lib/strverscmp.h    21 Dec 1997 11:23:03 -0000      1.4
+++ lib/strverscmp.h    17 Jun 2003 19:36:08 -0000
@@ -3,18 +3,6 @@
 #ifndef STRVERSCMP_H_
 # define STRVERSCMP_H_
 
-# if HAVE_CONFIG_H
-#  include <config.h>
-# endif
-
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-int strverscmp PARAMS ((const char*, const char*));
+int strverscmp (const char *, const char *);
 
 #endif /* not STRVERSCMP_H_ */
Index: lib/unistd-safer.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/unistd-safer.h,v
retrieving revision 1.1
diff -p -u -r1.1 unistd-safer.h
--- lib/unistd-safer.h  3 Mar 2001 19:06:14 -0000       1.1
+++ lib/unistd-safer.h  17 Jun 2003 19:36:08 -0000
@@ -1,9 +1 @@
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-#endif
-
-int dup_safer PARAMS ((int));
+int dup_safer (int);
Index: lib/version-etc.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/version-etc.h,v
retrieving revision 1.5
diff -p -u -r1.5 version-etc.h
--- lib/version-etc.h   4 Jun 2003 19:22:29 -0000       1.5
+++ lib/version-etc.h   17 Jun 2003 19:36:08 -0000
@@ -22,19 +22,10 @@
 
 # include <stdio.h>
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
 extern char *version_etc_copyright;
 
-void
-version_etc PARAMS ((FILE *stream,
-                    const char *command_name, const char *package,
-                    const char *version, const char *authors));
+void version_etc (FILE *stream,
+                 const char *command_name, const char *package,
+                 const char *version, const char *authors);
 
 #endif /* VERSION_ETC_H */
Index: lib/xalloc.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xalloc.h,v
retrieving revision 1.14
diff -p -u -r1.14 xalloc.h
--- lib/xalloc.h        4 Jun 2003 19:22:29 -0000       1.14
+++ lib/xalloc.h        17 Jun 2003 19:36:08 -0000
@@ -20,14 +20,6 @@
 
 # include <stddef.h>
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
 # ifndef __attribute__
 #  if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
 #   define __attribute__(x)
@@ -45,7 +37,7 @@ extern int xalloc_exit_failure;
 
 /* If this pointer is non-zero, run the specified function upon each
    allocation failure.  It is initialized to zero. */
-extern void (*xalloc_fail_func) PARAMS ((void));
+extern void (*xalloc_fail_func) (void);
 
 /* If XALLOC_FAIL_FUNC is undefined or a function that returns, this
    message is output.  It is translated via gettext.
@@ -56,12 +48,12 @@ extern char const xalloc_msg_memory_exha
    in charge of honoring the three previous items.  This is the
    function to call when one wants the program to die because of a
    memory allocation failure.  */
-extern void xalloc_die PARAMS ((void)) ATTRIBUTE_NORETURN;
+extern void xalloc_die (void) ATTRIBUTE_NORETURN;
 
-void *xmalloc PARAMS ((size_t n));
-void *xcalloc PARAMS ((size_t n, size_t s));
-void *xrealloc PARAMS ((void *p, size_t n));
-char *xstrdup PARAMS ((const char *str));
+void *xmalloc (size_t n);
+void *xcalloc (size_t n, size_t s);
+void *xrealloc (void *p, size_t n);
+char *xstrdup (const char *str);
 
 # define XMALLOC(Type, N_items) ((Type *) xmalloc (sizeof (Type) * (N_items)))
 # define XCALLOC(Type, N_items) ((Type *) xcalloc (sizeof (Type), (N_items)))
Index: lib/xmalloc.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xmalloc.c,v
retrieving revision 1.23
diff -p -u -r1.23 xmalloc.c
--- lib/xmalloc.c       21 Nov 2002 19:16:29 -0000      1.23
+++ lib/xmalloc.c       17 Jun 2003 19:36:08 -0000
@@ -56,7 +56,7 @@ void free ();
 int xalloc_exit_failure = EXIT_FAILURE;
 
 /* If non NULL, call this function when memory is exhausted. */
-void (*xalloc_fail_func) PARAMS ((void)) = 0;
+void (*xalloc_fail_func) (void) = 0;
 
 /* If XALLOC_FAIL_FUNC is NULL, or does return, display this message
    before exiting when memory is exhausted.  Goes through gettext. */
Index: lib/xreadlink.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xreadlink.h,v
retrieving revision 1.2
diff -p -u -r1.2 xreadlink.h
--- lib/xreadlink.h     4 Sep 2001 20:21:54 -0000       1.2
+++ lib/xreadlink.h     17 Jun 2003 19:36:08 -0000
@@ -1,9 +1 @@
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
-# endif
-#endif
-
-char *xreadlink PARAMS ((char const *));
+char *xreadlink (char const *);
Index: lib/xstrtod.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xstrtod.h,v
retrieving revision 1.6
diff -p -u -r1.6 xstrtod.h
--- lib/xstrtod.h       16 Jan 1998 08:51:39 -0000      1.6
+++ lib/xstrtod.h       17 Jun 2003 19:36:08 -0000
@@ -1,15 +1,6 @@
 #ifndef XSTRTOD_H
 # define XSTRTOD_H 1
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
-int
-  xstrtod PARAMS ((const char *str, const char **ptr, double *result));
+int xstrtod (const char *str, const char **ptr, double *result);
 
 #endif /* not XSTRTOD_H */
Index: lib/xstrtol.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xstrtol.h,v
retrieving revision 1.15
diff -p -u -r1.15 xstrtol.h
--- lib/xstrtol.h       6 Jan 2003 12:38:36 -0000       1.15
+++ lib/xstrtol.h       17 Jun 2003 19:36:08 -0000
@@ -27,14 +27,6 @@
 #  endif
 # endif
 
-# ifndef PARAMS
-#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#   define PARAMS(Args) Args
-#  else
-#   define PARAMS(Args) ()
-#  endif
-# endif
-
 # ifndef _STRTOL_ERROR
 enum strtol_error
   {
@@ -44,9 +36,7 @@ typedef enum strtol_error strtol_error;
 # endif
 
 # define _DECLARE_XSTRTOL(name, type) \
-  strtol_error \
-    name PARAMS ((const char *s, char **ptr, int base, \
-                 type *val, const char *valid_suffixes));
+  strtol_error name (const char *, char **, int, type *, const char *);
 _DECLARE_XSTRTOL (xstrtol, long int)
 _DECLARE_XSTRTOL (xstrtoul, unsigned long int)
 _DECLARE_XSTRTOL (xstrtoimax, intmax_t)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]