aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorJan D2010-07-02 14:19:53 +0200
committerJan D2010-07-02 14:19:53 +0200
commitf57e2426f0e8a6b251be71b6f62237fd286998ea (patch)
treea8db36e415ea69b4196881b44122454317510f46 /lib-src
parent383e09700c9b3d175c506301d363be4597827db7 (diff)
downloademacs-f57e2426f0e8a6b251be71b6f62237fd286998ea.tar.gz
emacs-f57e2426f0e8a6b251be71b6f62237fd286998ea.zip
Remove __P and P_ from .c and .m files and definition of P_
* lisp.h: * atimer.h: Remove define for P_. * alloc.c: Remove __P and P_ from .c and .m files. * atimer.c: * buffer.c: * callint.c: * category.c: * charset.c: * chartab.c: * cm.c: * coding.c: * composite.c: * data.c: * dired.c: * dispnew.c: * doc.c: * editfns.c: * emacs.c: * eval.c: * fileio.c: * filelock.c: * fns.c: * font.c: * fontset.c: * frame.c: * ftfont.c: * ftxfont.c: * gmalloc.c: * gtkutil.c: * image.c: * indent.c: * intervals.c: * keyboard.c: * keymap.c: * lread.c: * marker.c: * menu.c: * minibuf.c: * print.c: * process.c: * scroll.c: * search.c: * sound.c: * strftime.c: * syntax.c: * sysdep.c: * term.c: * terminal.c: * textprop.c: * unexalpha.c: * w32console.c: * w32fns.c: * w32font.c: * w32menu.c: * w32term.c: * w32uniscribe.c: * window.c: * xdisp.c: * xfaces.c: * xfns.c: * xfont.c: * xftfont.c: * xmenu.c: * xselect.c: * xterm.c: Likewise. * ebrowse.c: Remove P_ and __P. * etags.c: * movemail.c: * pop.c: * update-game-score.c: Likewise.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog8
-rw-r--r--lib-src/ebrowse.c112
-rw-r--r--lib-src/etags.c242
-rw-r--r--lib-src/movemail.c4
-rw-r--r--lib-src/pop.c16
-rw-r--r--lib-src/update-game-score.c24
6 files changed, 207 insertions, 199 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 5c41ad4d894..4ef56c976cf 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,11 @@
12010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2
3 * ebrowse.c: Remove P_ and __P.
4 * etags.c:
5 * movemail.c:
6 * pop.c:
7 * update-game-score.c: Likewise.
8
12010-06-24 Juanma Barranquero <lekktu@gmail.com> 92010-06-24 Juanma Barranquero <lekktu@gmail.com>
2 10
3 * movemail.c (error): Avoid warning when there are no args. 11 * movemail.c (error): Avoid warning when there are no args.
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index b51b4aa6965..c850b11bbc3 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -479,62 +479,62 @@ struct search_path *search_path_tail;
479 479
480/* Function prototypes. */ 480/* Function prototypes. */
481 481
482int yylex P_ ((void)); 482int yylex (void);
483void yyparse P_ ((void)); 483void yyparse (void);
484void re_init_parser P_ ((void)); 484void re_init_parser (void);
485char *token_string P_ ((int)); 485char *token_string (int);
486char *matching_regexp P_ ((void)); 486char *matching_regexp (void);
487void init_sym P_ ((void)); 487void init_sym (void);
488struct sym *add_sym P_ ((char *, struct sym *)); 488struct sym *add_sym (char *, struct sym *);
489void add_link P_ ((struct sym *, struct sym *)); 489void add_link (struct sym *, struct sym *);
490void add_member_defn P_ ((struct sym *, char *, char *, 490void add_member_defn (struct sym *, char *, char *,
491 int, unsigned, int, int, int)); 491 int, unsigned, int, int, int);
492void add_member_decl P_ ((struct sym *, char *, char *, int, 492void add_member_decl (struct sym *, char *, char *, int,
493 unsigned, int, int, int, int)); 493 unsigned, int, int, int, int);
494void dump_roots P_ ((FILE *)); 494void dump_roots (FILE *);
495void *xmalloc P_ ((int)); 495void *xmalloc (int);
496void xfree P_ ((void *)); 496void xfree (void *);
497void add_global_defn P_ ((char *, char *, int, unsigned, int, int, int)); 497void add_global_defn (char *, char *, int, unsigned, int, int, int);
498void add_global_decl P_ ((char *, char *, int, unsigned, int, int, int)); 498void add_global_decl (char *, char *, int, unsigned, int, int, int);
499void add_define P_ ((char *, char *, int)); 499void add_define (char *, char *, int);
500void mark_inherited_virtual P_ ((void)); 500void mark_inherited_virtual (void);
501void leave_namespace P_ ((void)); 501void leave_namespace (void);
502void enter_namespace P_ ((char *)); 502void enter_namespace (char *);
503void register_namespace_alias P_ ((char *, struct link *)); 503void register_namespace_alias (char *, struct link *);
504void insert_keyword P_ ((char *, int)); 504void insert_keyword (char *, int);
505void re_init_scanner P_ ((void)); 505void re_init_scanner (void);
506void init_scanner P_ ((void)); 506void init_scanner (void);
507void usage P_ ((int)); 507void usage (int);
508void version P_ ((void)); 508void version (void);
509void process_file P_ ((char *)); 509void process_file (char *);
510void add_search_path P_ ((char *)); 510void add_search_path (char *);
511FILE *open_file P_ ((char *)); 511FILE *open_file (char *);
512int process_pp_line P_ ((void)); 512int process_pp_line (void);
513int dump_members P_ ((FILE *, struct member *)); 513int dump_members (FILE *, struct member *);
514void dump_sym P_ ((FILE *, struct sym *)); 514void dump_sym (FILE *, struct sym *);
515int dump_tree P_ ((FILE *, struct sym *)); 515int dump_tree (FILE *, struct sym *);
516struct member *find_member P_ ((struct sym *, char *, int, int, unsigned)); 516struct member *find_member (struct sym *, char *, int, int, unsigned);
517struct member *add_member P_ ((struct sym *, char *, int, int, unsigned)); 517struct member *add_member (struct sym *, char *, int, int, unsigned);
518void mark_virtual P_ ((struct sym *)); 518void mark_virtual (struct sym *);
519void mark_virtual P_ ((struct sym *)); 519void mark_virtual (struct sym *);
520struct sym *make_namespace P_ ((char *, struct sym *)); 520struct sym *make_namespace (char *, struct sym *);
521char *sym_scope P_ ((struct sym *)); 521char *sym_scope (struct sym *);
522char *sym_scope_1 P_ ((struct sym *)); 522char *sym_scope_1 (struct sym *);
523int skip_to P_ ((int)); 523int skip_to (int);
524void skip_matching P_ ((void)); 524void skip_matching (void);
525void member P_ ((struct sym *, int)); 525void member (struct sym *, int);
526void class_body P_ ((struct sym *, int)); 526void class_body (struct sym *, int);
527void class_definition P_ ((struct sym *, int, int, int)); 527void class_definition (struct sym *, int, int, int);
528void declaration P_ ((int)); 528void declaration (int);
529unsigned parm_list P_ ((int *)); 529unsigned parm_list (int *);
530char *operator_name P_ ((int *)); 530char *operator_name (int *);
531struct sym *parse_classname P_ ((void)); 531struct sym *parse_classname (void);
532struct sym *parse_qualified_ident_or_type P_ ((char **)); 532struct sym *parse_qualified_ident_or_type (char **);
533void parse_qualified_param_ident_or_type P_ ((char **)); 533void parse_qualified_param_ident_or_type (char **);
534int globals P_ ((int)); 534int globals (int);
535void yyerror P_ ((char *, char *)); 535void yyerror (char *, char *);
536void usage P_ ((int)) NO_RETURN; 536void usage (int) NO_RETURN;
537void version P_ (()) NO_RETURN; 537void version () NO_RETURN;
538 538
539 539
540 540
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 89edc6c1b27..53c878ec723 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -158,20 +158,20 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
158# include <stdlib.h> 158# include <stdlib.h>
159# include <string.h> 159# include <string.h>
160# else /* no standard C headers */ 160# else /* no standard C headers */
161 extern char *getenv __P((const char *)); 161 extern char *getenv (const char *);
162 extern char *strcpy __P((char *, const char *)); 162 extern char *strcpy (char *, const char *);
163 extern char *strncpy __P((char *, const char *, unsigned long)); 163 extern char *strncpy (char *, const char *, unsigned long);
164 extern char *strcat __P((char *, const char *)); 164 extern char *strcat (char *, const char *);
165 extern char *strncat __P((char *, const char *, unsigned long)); 165 extern char *strncat (char *, const char *, unsigned long);
166 extern int strcmp __P((const char *, const char *)); 166 extern int strcmp (const char *, const char *);
167 extern int strncmp __P((const char *, const char *, unsigned long)); 167 extern int strncmp (const char *, const char *, unsigned long);
168 extern int system __P((const char *)); 168 extern int system (const char *);
169 extern unsigned long strlen __P((const char *)); 169 extern unsigned long strlen (const char *);
170 extern void *malloc __P((unsigned long)); 170 extern void *malloc (unsigned long);
171 extern void *realloc __P((void *, unsigned long)); 171 extern void *realloc (void *, unsigned long);
172 extern void exit __P((int)); 172 extern void exit (int);
173 extern void free __P((void *)); 173 extern void free (void *);
174 extern void *memmove __P((void *, const void *, unsigned long)); 174 extern void *memmove (void *, const void *, unsigned long);
175# define EXIT_SUCCESS 0 175# define EXIT_SUCCESS 0
176# define EXIT_FAILURE 1 176# define EXIT_FAILURE 1
177# endif 177# endif
@@ -273,7 +273,7 @@ If you want regular expression support, you should delete this notice and
273 273
274#define bool int 274#define bool int
275 275
276typedef void Lang_function __P((FILE *)); 276typedef void Lang_function (FILE *);
277 277
278typedef struct 278typedef struct
279{ 279{
@@ -365,87 +365,87 @@ typedef struct regexp
365/* Many compilers barf on this: 365/* Many compilers barf on this:
366 Lang_function Ada_funcs; 366 Lang_function Ada_funcs;
367 so let's write it this way */ 367 so let's write it this way */
368static void Ada_funcs __P((FILE *)); 368static void Ada_funcs (FILE *);
369static void Asm_labels __P((FILE *)); 369static void Asm_labels (FILE *);
370static void C_entries __P((int c_ext, FILE *)); 370static void C_entries (int c_ext, FILE *);
371static void default_C_entries __P((FILE *)); 371static void default_C_entries (FILE *);
372static void plain_C_entries __P((FILE *)); 372static void plain_C_entries (FILE *);
373static void Cjava_entries __P((FILE *)); 373static void Cjava_entries (FILE *);
374static void Cobol_paragraphs __P((FILE *)); 374static void Cobol_paragraphs (FILE *);
375static void Cplusplus_entries __P((FILE *)); 375static void Cplusplus_entries (FILE *);
376static void Cstar_entries __P((FILE *)); 376static void Cstar_entries (FILE *);
377static void Erlang_functions __P((FILE *)); 377static void Erlang_functions (FILE *);
378static void Forth_words __P((FILE *)); 378static void Forth_words (FILE *);
379static void Fortran_functions __P((FILE *)); 379static void Fortran_functions (FILE *);
380static void HTML_labels __P((FILE *)); 380static void HTML_labels (FILE *);
381static void Lisp_functions __P((FILE *)); 381static void Lisp_functions (FILE *);
382static void Lua_functions __P((FILE *)); 382static void Lua_functions (FILE *);
383static void Makefile_targets __P((FILE *)); 383static void Makefile_targets (FILE *);
384static void Pascal_functions __P((FILE *)); 384static void Pascal_functions (FILE *);
385static void Perl_functions __P((FILE *)); 385static void Perl_functions (FILE *);
386static void PHP_functions __P((FILE *)); 386static void PHP_functions (FILE *);
387static void PS_functions __P((FILE *)); 387static void PS_functions (FILE *);
388static void Prolog_functions __P((FILE *)); 388static void Prolog_functions (FILE *);
389static void Python_functions __P((FILE *)); 389static void Python_functions (FILE *);
390static void Scheme_functions __P((FILE *)); 390static void Scheme_functions (FILE *);
391static void TeX_commands __P((FILE *)); 391static void TeX_commands (FILE *);
392static void Texinfo_nodes __P((FILE *)); 392static void Texinfo_nodes (FILE *);
393static void Yacc_entries __P((FILE *)); 393static void Yacc_entries (FILE *);
394static void just_read_file __P((FILE *)); 394static void just_read_file (FILE *);
395 395
396static void print_language_names __P((void)); 396static void print_language_names (void);
397static void print_version __P((void)); 397static void print_version (void);
398static void print_help __P((argument *)); 398static void print_help (argument *);
399int main __P((int, char **)); 399int main (int, char **);
400 400
401static compressor *get_compressor_from_suffix __P((char *, char **)); 401static compressor *get_compressor_from_suffix (char *, char **);
402static language *get_language_from_langname __P((const char *)); 402static language *get_language_from_langname (const char *);
403static language *get_language_from_interpreter __P((char *)); 403static language *get_language_from_interpreter (char *);
404static language *get_language_from_filename __P((char *, bool)); 404static language *get_language_from_filename (char *, bool);
405static void readline __P((linebuffer *, FILE *)); 405static void readline (linebuffer *, FILE *);
406static long readline_internal __P((linebuffer *, FILE *)); 406static long readline_internal (linebuffer *, FILE *);
407static bool nocase_tail __P((char *)); 407static bool nocase_tail (char *);
408static void get_tag __P((char *, char **)); 408static void get_tag (char *, char **);
409 409
410static void analyse_regex __P((char *)); 410static void analyse_regex (char *);
411static void free_regexps __P((void)); 411static void free_regexps (void);
412static void regex_tag_multiline __P((void)); 412static void regex_tag_multiline (void);
413static void error __P((const char *, const char *)); 413static void error (const char *, const char *);
414static void suggest_asking_for_help __P((void)); 414static void suggest_asking_for_help (void);
415void fatal __P((char *, char *)); 415void fatal (char *, char *);
416static void pfatal __P((char *)); 416static void pfatal (char *);
417static void add_node __P((node *, node **)); 417static void add_node (node *, node **);
418 418
419static void init __P((void)); 419static void init (void);
420static void process_file_name __P((char *, language *)); 420static void process_file_name (char *, language *);
421static void process_file __P((FILE *, char *, language *)); 421static void process_file (FILE *, char *, language *);
422static void find_entries __P((FILE *)); 422static void find_entries (FILE *);
423static void free_tree __P((node *)); 423static void free_tree (node *);
424static void free_fdesc __P((fdesc *)); 424static void free_fdesc (fdesc *);
425static void pfnote __P((char *, bool, char *, int, int, long)); 425static void pfnote (char *, bool, char *, int, int, long);
426static void make_tag __P((char *, int, bool, char *, int, int, long)); 426static void make_tag (char *, int, bool, char *, int, int, long);
427static void invalidate_nodes __P((fdesc *, node **)); 427static void invalidate_nodes (fdesc *, node **);
428static void put_entries __P((node *)); 428static void put_entries (node *);
429 429
430static char *concat __P((char *, char *, char *)); 430static char *concat (char *, char *, char *);
431static char *skip_spaces __P((char *)); 431static char *skip_spaces (char *);
432static char *skip_non_spaces __P((char *)); 432static char *skip_non_spaces (char *);
433static char *savenstr __P((char *, int)); 433static char *savenstr (char *, int);
434static char *savestr __P((char *)); 434static char *savestr (char *);
435static char *etags_strchr __P((const char *, int)); 435static char *etags_strchr (const char *, int);
436static char *etags_strrchr __P((const char *, int)); 436static char *etags_strrchr (const char *, int);
437static int etags_strcasecmp __P((const char *, const char *)); 437static int etags_strcasecmp (const char *, const char *);
438static int etags_strncasecmp __P((const char *, const char *, int)); 438static int etags_strncasecmp (const char *, const char *, int);
439static char *etags_getcwd __P((void)); 439static char *etags_getcwd (void);
440static char *relative_filename __P((char *, char *)); 440static char *relative_filename (char *, char *);
441static char *absolute_filename __P((char *, char *)); 441static char *absolute_filename (char *, char *);
442static char *absolute_dirname __P((char *, char *)); 442static char *absolute_dirname (char *, char *);
443static bool filename_is_absolute __P((char *f)); 443static bool filename_is_absolute (char *f);
444static void canonicalize_filename __P((char *)); 444static void canonicalize_filename (char *);
445static void linebuffer_init __P((linebuffer *)); 445static void linebuffer_init (linebuffer *);
446static void linebuffer_setlen __P((linebuffer *, int)); 446static void linebuffer_setlen (linebuffer *, int);
447static PTR xmalloc __P((unsigned int)); 447static PTR xmalloc (unsigned int);
448static PTR xrealloc __P((char *, unsigned int)); 448static PTR xrealloc (char *, unsigned int);
449 449
450 450
451static char searchar = '/'; /* use /.../ searches */ 451static char searchar = '/'; /* use /.../ searches */
@@ -2178,8 +2178,8 @@ invalidate_nodes (badfdp, npp)
2178} 2178}
2179 2179
2180 2180
2181static int total_size_of_entries __P((node *)); 2181static int total_size_of_entries (node *);
2182static int number_len __P((long)); 2182static int number_len (long);
2183 2183
2184/* Length of a non-negative number's decimal representation. */ 2184/* Length of a non-negative number's decimal representation. */
2185static int 2185static int
@@ -2330,9 +2330,9 @@ enum sym_type
2330 st_C_struct, st_C_extern, st_C_enum, st_C_define, st_C_typedef 2330 st_C_struct, st_C_extern, st_C_enum, st_C_define, st_C_typedef
2331}; 2331};
2332 2332
2333static unsigned int hash __P((const char *, unsigned int)); 2333static unsigned int hash (const char *, unsigned int);
2334static struct C_stab_entry * in_word_set __P((const char *, unsigned int)); 2334static struct C_stab_entry * in_word_set (const char *, unsigned int);
2335static enum sym_type C_symtype __P((char *, int, int)); 2335static enum sym_type C_symtype (char *, int, int);
2336 2336
2337/* Feed stuff between (but not including) %[ and %] lines to: 2337/* Feed stuff between (but not including) %[ and %] lines to:
2338 gperf -m 5 2338 gperf -m 5
@@ -2646,9 +2646,9 @@ static struct tok
2646 * Variables and functions for dealing with nested structures. 2646 * Variables and functions for dealing with nested structures.
2647 * Idea by Mykola Dzyuba <mdzyuba@yahoo.com> (2001) 2647 * Idea by Mykola Dzyuba <mdzyuba@yahoo.com> (2001)
2648 */ 2648 */
2649static void pushclass_above __P((int, char *, int)); 2649static void pushclass_above (int, char *, int);
2650static void popclass_above __P((int)); 2650static void popclass_above (int);
2651static void write_classname __P((linebuffer *, char *qualifier)); 2651static void write_classname (linebuffer *, char *qualifier);
2652 2652
2653static struct { 2653static struct {
2654 char **cname; /* nested class names */ 2654 char **cname; /* nested class names */
@@ -2736,8 +2736,8 @@ write_classname (cn, qualifier)
2736} 2736}
2737 2737
2738 2738
2739static bool consider_token __P((char *, int, int, int *, int, int, bool *)); 2739static bool consider_token (char *, int, int, int *, int, int, bool *);
2740static void make_C_tag __P((bool)); 2740static void make_C_tag (bool);
2741 2741
2742/* 2742/*
2743 * consider_token () 2743 * consider_token ()
@@ -4043,8 +4043,8 @@ just_read_file (inf)
4043 4043
4044/* Fortran parsing */ 4044/* Fortran parsing */
4045 4045
4046static void F_takeprec __P((void)); 4046static void F_takeprec (void);
4047static void F_getit __P((FILE *)); 4047static void F_getit (FILE *);
4048 4048
4049static void 4049static void
4050F_takeprec () 4050F_takeprec ()
@@ -4178,7 +4178,7 @@ Fortran_functions (inf)
4178 * Philippe Waroquiers (1998) 4178 * Philippe Waroquiers (1998)
4179 */ 4179 */
4180 4180
4181static void Ada_getit __P((FILE *, char *)); 4181static void Ada_getit (FILE *, char *);
4182 4182
4183/* Once we are positioned after an "interesting" keyword, let's get 4183/* Once we are positioned after an "interesting" keyword, let's get
4184 the real tag value necessary. */ 4184 the real tag value necessary. */
@@ -4832,7 +4832,7 @@ Pascal_functions (inf)
4832 * look for (def or (DEF, quote or QUOTE 4832 * look for (def or (DEF, quote or QUOTE
4833 */ 4833 */
4834 4834
4835static void L_getit __P((void)); 4835static void L_getit (void);
4836 4836
4837static void 4837static void
4838L_getit () 4838L_getit ()
@@ -5032,8 +5032,8 @@ static char *TEX_defenv = "\
5032:part:appendix:entry:index:def\ 5032:part:appendix:entry:index:def\
5033:newcommand:renewcommand:newenvironment:renewenvironment"; 5033:newcommand:renewcommand:newenvironment:renewenvironment";
5034 5034
5035static void TEX_mode __P((FILE *)); 5035static void TEX_mode (FILE *);
5036static void TEX_decode_env __P((char *, char *)); 5036static void TEX_decode_env (char *, char *);
5037 5037
5038static char TEX_esc = '\\'; 5038static char TEX_esc = '\\';
5039static char TEX_opgrp = '{'; 5039static char TEX_opgrp = '{';
@@ -5338,9 +5338,9 @@ HTML_labels (inf)
5338 * Original code by Sunichirou Sugou (1989) 5338 * Original code by Sunichirou Sugou (1989)
5339 * Rewritten by Anders Lindgren (1996) 5339 * Rewritten by Anders Lindgren (1996)
5340 */ 5340 */
5341static int prolog_pr __P((char *, char *)); 5341static int prolog_pr (char *, char *);
5342static void prolog_skip_comment __P((linebuffer *, FILE *)); 5342static void prolog_skip_comment (linebuffer *, FILE *);
5343static int prolog_atom __P((char *, int)); 5343static int prolog_atom (char *, int);
5344 5344
5345static void 5345static void
5346Prolog_functions (inf) 5346Prolog_functions (inf)
@@ -5503,9 +5503,9 @@ prolog_atom (s, pos)
5503 * Assumes that Erlang functions start at column 0. 5503 * Assumes that Erlang functions start at column 0.
5504 * Original code by Anders Lindgren (1996) 5504 * Original code by Anders Lindgren (1996)
5505 */ 5505 */
5506static int erlang_func __P((char *, char *)); 5506static int erlang_func (char *, char *);
5507static void erlang_attribute __P((char *)); 5507static void erlang_attribute (char *);
5508static int erlang_atom __P((char *)); 5508static int erlang_atom (char *);
5509 5509
5510static void 5510static void
5511Erlang_functions (inf) 5511Erlang_functions (inf)
@@ -5652,9 +5652,9 @@ erlang_atom (s)
5652} 5652}
5653 5653
5654 5654
5655static char *scan_separators __P((char *)); 5655static char *scan_separators (char *);
5656static void add_regex __P((char *, language *)); 5656static void add_regex (char *, language *);
5657static char *substitute __P((char *, char *, struct re_registers *)); 5657static char *substitute (char *, char *, struct re_registers *);
5658 5658
5659/* 5659/*
5660 * Take a string like "/blah/" and turn it into "blah", verifying 5660 * Take a string like "/blah/" and turn it into "blah", verifying
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 11cc5b892ec..f267418d8bb 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -142,10 +142,10 @@ static char *mail_spool_name ();
142 142
143char *strerror (); 143char *strerror ();
144#ifdef HAVE_INDEX 144#ifdef HAVE_INDEX
145extern char *index __P ((const char *, int)); 145extern char *index (const char *, int);
146#endif 146#endif
147#ifdef HAVE_RINDEX 147#ifdef HAVE_RINDEX
148extern char *rindex __P((const char *, int)); 148extern char *rindex (const char *, int);
149#endif 149#endif
150 150
151void fatal (); 151void fatal ();
diff --git a/lib-src/pop.c b/lib-src/pop.c
index 64488e7e3ea..974ae784794 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -116,16 +116,16 @@ extern int h_errno;
116# endif /* __STDC__ */ 116# endif /* __STDC__ */
117#endif /* ! __P */ 117#endif /* ! __P */
118 118
119static int socket_connection __P((char *, int)); 119static int socket_connection (char *, int);
120static int pop_getline __P((popserver, char **)); 120static int pop_getline (popserver, char **);
121static int sendline __P((popserver, char *)); 121static int sendline (popserver, char *);
122static int fullwrite __P((int, char *, int)); 122static int fullwrite (int, char *, int);
123static int getok __P((popserver)); 123static int getok (popserver);
124#if 0 124#if 0
125static int gettermination __P((popserver)); 125static int gettermination (popserver);
126#endif 126#endif
127static void pop_trash __P((popserver)); 127static void pop_trash (popserver);
128static char *find_crlf __P((char *, int)); 128static char *find_crlf (char *, int);
129 129
130#define ERROR_MAX 160 /* a pretty arbitrary size, but needs 130#define ERROR_MAX 160 /* a pretty arbitrary size, but needs
131 to be bigger than the original 131 to be bigger than the original
diff --git a/lib-src/update-game-score.c b/lib-src/update-game-score.c
index 24fd45f72d3..e023001aebe 100644
--- a/lib-src/update-game-score.c
+++ b/lib-src/update-game-score.c
@@ -89,8 +89,8 @@ usage (err)
89 exit (err); 89 exit (err);
90} 90}
91 91
92int lock_file P_ ((const char *filename, void **state)); 92int lock_file (const char *filename, void **state);
93int unlock_file P_ ((const char *filename, void *state)); 93int unlock_file (const char *filename, void *state);
94 94
95struct score_entry 95struct score_entry
96{ 96{
@@ -99,15 +99,15 @@ struct score_entry
99 char *data; 99 char *data;
100}; 100};
101 101
102int read_scores P_ ((const char *filename, struct score_entry **scores, 102int read_scores (const char *filename, struct score_entry **scores,
103 int *count)); 103 int *count);
104int push_score P_ ((struct score_entry **scores, int *count, 104int push_score (struct score_entry **scores, int *count,
105 int newscore, char *username, char *newdata)); 105 int newscore, char *username, char *newdata);
106void sort_scores P_ ((struct score_entry *scores, int count, int reverse)); 106void sort_scores (struct score_entry *scores, int count, int reverse);
107int write_scores P_ ((const char *filename, const struct score_entry *scores, 107int write_scores (const char *filename, const struct score_entry *scores,
108 int count)); 108 int count);
109 109
110void lose P_ ((const char *msg)) NO_RETURN; 110void lose (const char *msg) NO_RETURN;
111 111
112void 112void
113lose (msg) 113lose (msg)
@@ -117,7 +117,7 @@ lose (msg)
117 exit (EXIT_FAILURE); 117 exit (EXIT_FAILURE);
118} 118}
119 119
120void lose_syserr P_ ((const char *msg)) NO_RETURN; 120void lose_syserr (const char *msg) NO_RETURN;
121 121
122/* Taken from sysdep.c. */ 122/* Taken from sysdep.c. */
123#ifndef HAVE_STRERROR 123#ifndef HAVE_STRERROR
@@ -145,7 +145,7 @@ lose_syserr (msg)
145} 145}
146 146
147char * 147char *
148get_user_id P_ ((void)) 148get_user_id (void)
149{ 149{
150 char *name; 150 char *name;
151 struct passwd *buf = getpwuid (getuid ()); 151 struct passwd *buf = getpwuid (getuid ());