s/__P/PARAMS/
authorJim Meyering <jim@meyering.net>
Sun, 21 Dec 1997 22:30:30 +0000 (22:30 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 21 Dec 1997 22:30:30 +0000 (22:30 +0000)
13 files changed:
src/date.c
src/env.c
src/expr.c
src/id.c
src/nice.c
src/pathchk.c
src/seq.c
src/sleep.c
src/stty.c
src/tee.c
src/test.c
src/tty.c
src/uname.c

index 76833e3..b24e09c 100644 (file)
@@ -39,8 +39,8 @@ int stime ();
 char *xstrdup ();
 time_t posixtime ();
 
-static void show_date __P ((const char *format, time_t when));
-static void usage __P ((int status));
+static void show_date PARAMS ((const char *format, time_t when));
+static void usage PARAMS ((int status));
 
 /* The name this program was run with, for error messages. */
 char *program_name;
index 3ce5abe..9bde68d 100644 (file)
--- a/src/env.c
+++ b/src/env.c
@@ -88,7 +88,7 @@
 
 int putenv ();
 
-static void usage __P ((int status));
+static void usage PARAMS ((int status));
 
 extern char **environ;
 
index 995d28e..abeae7e 100644 (file)
@@ -31,9 +31,9 @@
 #include <config.h>
 #include <stdio.h>
 #include <sys/types.h>
-#include <regex.h>
-
 #include "system.h"
+
+#include <regex.h>
 #include "long-options.h"
 #include "error.h"
 
@@ -72,18 +72,18 @@ char *program_name;
 
 char *xstrdup ();
 
-static VALUE *docolon __P ((VALUE *sv, VALUE *pv));
-static VALUE *eval __P ((void));
-static VALUE *int_value __P ((int i));
-static VALUE *str_value __P ((char *s));
-static int isstring __P ((VALUE *v));
-static int nextarg __P ((char *str));
-static int nomoreargs __P ((void));
-static int null __P ((VALUE *v));
-static int toarith __P ((VALUE *v));
-static void freev __P ((VALUE *v));
-static void printv __P ((VALUE *v));
-static void tostring __P ((VALUE *v));
+static VALUE *docolon PARAMS ((VALUE *sv, VALUE *pv));
+static VALUE *eval PARAMS ((void));
+static VALUE *int_value PARAMS ((int i));
+static VALUE *str_value PARAMS ((char *s));
+static int isstring PARAMS ((VALUE *v));
+static int nextarg PARAMS ((char *str));
+static int nomoreargs PARAMS ((void));
+static int null PARAMS ((VALUE *v));
+static int toarith PARAMS ((VALUE *v));
+static void freev PARAMS ((VALUE *v));
+static void printv PARAMS ((VALUE *v));
+static void tostring PARAMS ((VALUE *v));
 
 #ifdef EVAL_TRACE
 static void trace ();
index 8eae243..0b95910 100644 (file)
--- a/src/id.c
+++ b/src/id.c
@@ -40,11 +40,11 @@ gid_t getegid ();
 
 int getugroups ();
 
-static void print_user __P ((int uid));
-static void print_group __P ((int gid));
-static void print_group_list __P ((char *username));
-static void print_full_info __P ((char *username));
-static void usage __P ((int status));
+static void print_user PARAMS ((int uid));
+static void print_group PARAMS ((int gid));
+static void print_group_list PARAMS ((const char *username));
+static void print_full_info PARAMS ((const char *username));
+static void usage PARAMS ((int status));
 
 /* The name this program was run with. */
 char *program_name;
@@ -252,7 +252,7 @@ xgetgroups (const char *username, int *n_groups, GETGROUPS_T **groups)
 /* Print all of the distinct groups the user is in. */
 
 static void
-print_group_list (char *username)
+print_group_list (const char *username)
 {
   print_group (rgid);
   if (egid != rgid)
@@ -287,7 +287,7 @@ print_group_list (char *username)
 /* Print all of the info about the user's user and group IDs. */
 
 static void
-print_full_info (char *username)
+print_full_info (const char *username)
 {
   struct passwd *pwd;
   struct group *grp;
index 48f3735..ad5a028 100644 (file)
@@ -40,8 +40,8 @@
 # define GET_PRIORITY() getpriority (PRIO_PROCESS, 0)
 #endif
 
-static int isinteger __P ((char *s));
-static void usage __P ((int status));
+static int isinteger PARAMS ((char *s));
+static void usage PARAMS ((int status));
 
 /* The name this program was run with. */
 char *program_name;
index 3e223aa..fe3b39c 100644 (file)
@@ -91,8 +91,8 @@
 
 char *xstrdup ();
 
-static int validate_path __P ((char *path, int portability));
-static void usage __P ((int status));
+static int validate_path PARAMS ((char *path, int portability));
+static void usage PARAMS ((int status));
 
 /* The name this program was run with. */
 char *program_name;
index 50633ce..a321030 100644 (file)
--- a/src/seq.c
+++ b/src/seq.c
 #include "error.h"
 #include "xstrtod.h"
 
-static double scan_double_arg __P ((const char *arg));
-static int check_format __P ((const char *format_string));
-static char *get_width_format __P ((void));
-static int print_numbers __P ((const char *format_str));
+static double scan_double_arg PARAMS ((const char *arg));
+static int check_format PARAMS ((const char *format_string));
+static char *get_width_format PARAMS ((void));
+static int print_numbers PARAMS ((const char *format_str));
 
 /* If nonzero print all number with equal width.  */
 static int equal_width;
index 5e03cab..3180f83 100644 (file)
@@ -23,7 +23,7 @@
 #include "system.h"
 #include "error.h"
 
-static long argdecode __P ((const char *s));
+static long argdecode PARAMS ((const char *s));
 
 /* The name by which this program was run. */
 char *program_name;
index 06b1b93..4c878d0 100644 (file)
@@ -393,29 +393,29 @@ static struct control_info control_info[] =
   {NULL, 0, 0}
 };
 
-static const char *visible __P ((unsigned int ch));
-static unsigned long baud_to_value __P ((speed_t speed));
-static int recover_mode __P ((char *arg, struct termios *mode));
-static int screen_columns __P ((void));
-static int set_mode __P ((struct mode_info *info, int reversed,
-                         struct termios *mode));
-static long integer_arg __P ((const char *s));
-static speed_t string_to_baud __P ((const char *arg));
-static tcflag_t *mode_type_flag __P ((enum mode_type type,
+static const char *visible PARAMS ((unsigned int ch));
+static unsigned long baud_to_value PARAMS ((speed_t speed));
+static int recover_mode PARAMS ((char *arg, struct termios *mode));
+static int screen_columns PARAMS ((void));
+static int set_mode PARAMS ((struct mode_info *info, int reversed,
+                            struct termios *mode));
+static long integer_arg PARAMS ((const char *s));
+static speed_t string_to_baud PARAMS ((const char *arg));
+static tcflag_t *mode_type_flag PARAMS ((enum mode_type type,
+                                        struct termios *mode));
+static void display_all PARAMS ((struct termios *mode));
+static void display_changed PARAMS ((struct termios *mode));
+static void display_recoverable PARAMS ((struct termios *mode));
+static void display_settings PARAMS ((enum output_type output_type,
                                      struct termios *mode));
-static void display_all __P ((struct termios *mode));
-static void display_changed __P ((struct termios *mode));
-static void display_recoverable __P ((struct termios *mode));
-static void display_settings __P ((enum output_type output_type,
-                                  struct termios *mode));
-static void display_speed __P ((struct termios *mode, int fancy));
-static void display_window_size __P ((int fancy));
-static void sane_mode __P ((struct termios *mode));
-static void set_control_char __P ((struct control_info *info, const char *arg,
-                                  struct termios *mode));
-static void set_speed __P ((enum speed_setting type, const char *arg,
+static void display_speed PARAMS ((struct termios *mode, int fancy));
+static void display_window_size PARAMS ((int fancy));
+static void sane_mode PARAMS ((struct termios *mode));
+static void set_control_char PARAMS ((struct control_info *info, const char *arg,
+                                     struct termios *mode));
+static void set_speed PARAMS ((enum speed_setting type, const char *arg,
                            struct termios *mode));
-static void set_window_size __P ((int rows, int cols));
+static void set_window_size PARAMS ((int rows, int cols));
 
 /* The width of the screen, for output wrapping. */
 static int max_col;
index 38fed6e..87f31cc 100644 (file)
--- a/src/tee.c
+++ b/src/tee.c
@@ -28,7 +28,7 @@
 
 int full_write ();
 
-static int tee __P ((int nfiles, const char **files));
+static int tee PARAMS ((int nfiles, const char **files));
 
 /* If nonzero, append to output files rather than truncating them. */
 static int append;
index 11a777a..28059aa 100644 (file)
@@ -106,18 +106,18 @@ static int pos;           /* The offset of the current argument in ARGV. */
 static int argc;       /* The number of arguments present in ARGV. */
 static char **argv;    /* The argument list. */
 
-static int unop __P ((int op));
-static int binop __P ((char *s));
-static int unary_operator __P ((void));
-static int binary_operator __P ((void));
-static int two_arguments __P ((void));
-static int three_arguments __P ((void));
-static int posixtest __P ((void));
-
-static int expr __P ((void));
-static int term __P ((void));
-static int and __P ((void));
-static int or __P ((void));
+static int unop PARAMS ((int op));
+static int binop PARAMS ((char *s));
+static int unary_operator PARAMS ((void));
+static int binary_operator PARAMS ((void));
+static int two_arguments PARAMS ((void));
+static int three_arguments PARAMS ((void));
+static int posixtest PARAMS ((void));
+
+static int expr PARAMS ((void));
+static int term PARAMS ((void));
+static int and PARAMS ((void));
+static int or PARAMS ((void));
 
 #if __GNUC__ >= 2 && defined (__GNUC_MINOR__) \
     && __GNUC_MINOR__ >= 5 && !defined (__STRICT_ANSI__)
@@ -126,8 +126,8 @@ static int or __P ((void));
 # define NO_RETURN_ATTRIBUTE /* empty */
 #endif
 
-static void test_syntax_error __P ((char *format, char *arg)) NO_RETURN_ATTRIBUTE;
-static void beyond __P ((void)) NO_RETURN_ATTRIBUTE;
+static void test_syntax_error PARAMS ((char *format, char *arg)) NO_RETURN_ATTRIBUTE;
+static void beyond PARAMS ((void)) NO_RETURN_ATTRIBUTE;
 
 static void
 test_syntax_error (char *format, char *arg)
index 976771b..a96faea 100644 (file)
--- a/src/tty.c
+++ b/src/tty.c
@@ -30,7 +30,7 @@
 #include "system.h"
 #include "error.h"
 
-static void usage __P ((int status));
+static void usage PARAMS ((int status));
 
 /* The name under which this program was run. */
 char *program_name;
index 510a744..f32b804 100644 (file)
@@ -41,8 +41,8 @@
 #include "system.h"
 #include "error.h"
 
-static void print_element __P ((unsigned int mask, char *element));
-static void usage __P ((int status));
+static void print_element PARAMS ((unsigned int mask, char *element));
+static void usage PARAMS ((int status));
 
 /* Values that are bitwise or'd into `toprint'. */
 /* Operating system name. */