From 2e308957d452b440cf404b914ce1cb53c9e739a9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 21 Dec 1997 22:30:30 +0000 Subject: s/__P/PARAMS/ --- src/date.c | 4 ++-- src/env.c | 2 +- src/expr.c | 28 ++++++++++++++-------------- src/id.c | 14 +++++++------- src/nice.c | 4 ++-- src/pathchk.c | 4 ++-- src/seq.c | 8 ++++---- src/sleep.c | 2 +- src/stty.c | 42 +++++++++++++++++++++--------------------- src/tee.c | 2 +- src/test.c | 28 ++++++++++++++-------------- src/tty.c | 2 +- src/uname.c | 4 ++-- 13 files changed, 72 insertions(+), 72 deletions(-) diff --git a/src/date.c b/src/date.c index 76833e3fb..b24e09c0a 100644 --- a/src/date.c +++ b/src/date.c @@ -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; diff --git a/src/env.c b/src/env.c index 3ce5abe4d..9bde68daa 100644 --- 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; diff --git a/src/expr.c b/src/expr.c index 995d28ee9..abeae7e3e 100644 --- a/src/expr.c +++ b/src/expr.c @@ -31,9 +31,9 @@ #include #include #include -#include - #include "system.h" + +#include #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 (); diff --git a/src/id.c b/src/id.c index 8eae243b6..0b95910b8 100644 --- 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; diff --git a/src/nice.c b/src/nice.c index 48f3735ef..ad5a02808 100644 --- a/src/nice.c +++ b/src/nice.c @@ -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; diff --git a/src/pathchk.c b/src/pathchk.c index 3e223aa5a..fe3b39cb1 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -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; diff --git a/src/seq.c b/src/seq.c index 50633ce6a..a321030a1 100644 --- a/src/seq.c +++ b/src/seq.c @@ -27,10 +27,10 @@ #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; diff --git a/src/sleep.c b/src/sleep.c index 5e03cabbd..3180f83b2 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -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; diff --git a/src/stty.c b/src/stty.c index 06b1b93d2..4c878d015 100644 --- a/src/stty.c +++ b/src/stty.c @@ -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; diff --git a/src/tee.c b/src/tee.c index 38fed6e34..87f31cc29 100644 --- 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; diff --git a/src/test.c b/src/test.c index 11a777ae5..28059aab8 100644 --- a/src/test.c +++ b/src/test.c @@ -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) diff --git a/src/tty.c b/src/tty.c index 976771b1d..a96faead2 100644 --- 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; diff --git a/src/uname.c b/src/uname.c index 510a74441..f32b804ea 100644 --- a/src/uname.c +++ b/src/uname.c @@ -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. */ -- cgit v1.2.3-54-g00ecf