diff options
| author | Jan D | 2010-07-02 14:19:53 +0200 |
|---|---|---|
| committer | Jan D | 2010-07-02 14:19:53 +0200 |
| commit | f57e2426f0e8a6b251be71b6f62237fd286998ea (patch) | |
| tree | a8db36e415ea69b4196881b44122454317510f46 /lib-src | |
| parent | 383e09700c9b3d175c506301d363be4597827db7 (diff) | |
| download | emacs-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/ChangeLog | 8 | ||||
| -rw-r--r-- | lib-src/ebrowse.c | 112 | ||||
| -rw-r--r-- | lib-src/etags.c | 242 | ||||
| -rw-r--r-- | lib-src/movemail.c | 4 | ||||
| -rw-r--r-- | lib-src/pop.c | 16 | ||||
| -rw-r--r-- | lib-src/update-game-score.c | 24 |
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 @@ | |||
| 1 | 2010-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 | |||
| 1 | 2010-06-24 Juanma Barranquero <lekktu@gmail.com> | 9 | 2010-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 | ||
| 482 | int yylex P_ ((void)); | 482 | int yylex (void); |
| 483 | void yyparse P_ ((void)); | 483 | void yyparse (void); |
| 484 | void re_init_parser P_ ((void)); | 484 | void re_init_parser (void); |
| 485 | char *token_string P_ ((int)); | 485 | char *token_string (int); |
| 486 | char *matching_regexp P_ ((void)); | 486 | char *matching_regexp (void); |
| 487 | void init_sym P_ ((void)); | 487 | void init_sym (void); |
| 488 | struct sym *add_sym P_ ((char *, struct sym *)); | 488 | struct sym *add_sym (char *, struct sym *); |
| 489 | void add_link P_ ((struct sym *, struct sym *)); | 489 | void add_link (struct sym *, struct sym *); |
| 490 | void add_member_defn P_ ((struct sym *, char *, char *, | 490 | void add_member_defn (struct sym *, char *, char *, |
| 491 | int, unsigned, int, int, int)); | 491 | int, unsigned, int, int, int); |
| 492 | void add_member_decl P_ ((struct sym *, char *, char *, int, | 492 | void add_member_decl (struct sym *, char *, char *, int, |
| 493 | unsigned, int, int, int, int)); | 493 | unsigned, int, int, int, int); |
| 494 | void dump_roots P_ ((FILE *)); | 494 | void dump_roots (FILE *); |
| 495 | void *xmalloc P_ ((int)); | 495 | void *xmalloc (int); |
| 496 | void xfree P_ ((void *)); | 496 | void xfree (void *); |
| 497 | void add_global_defn P_ ((char *, char *, int, unsigned, int, int, int)); | 497 | void add_global_defn (char *, char *, int, unsigned, int, int, int); |
| 498 | void add_global_decl P_ ((char *, char *, int, unsigned, int, int, int)); | 498 | void add_global_decl (char *, char *, int, unsigned, int, int, int); |
| 499 | void add_define P_ ((char *, char *, int)); | 499 | void add_define (char *, char *, int); |
| 500 | void mark_inherited_virtual P_ ((void)); | 500 | void mark_inherited_virtual (void); |
| 501 | void leave_namespace P_ ((void)); | 501 | void leave_namespace (void); |
| 502 | void enter_namespace P_ ((char *)); | 502 | void enter_namespace (char *); |
| 503 | void register_namespace_alias P_ ((char *, struct link *)); | 503 | void register_namespace_alias (char *, struct link *); |
| 504 | void insert_keyword P_ ((char *, int)); | 504 | void insert_keyword (char *, int); |
| 505 | void re_init_scanner P_ ((void)); | 505 | void re_init_scanner (void); |
| 506 | void init_scanner P_ ((void)); | 506 | void init_scanner (void); |
| 507 | void usage P_ ((int)); | 507 | void usage (int); |
| 508 | void version P_ ((void)); | 508 | void version (void); |
| 509 | void process_file P_ ((char *)); | 509 | void process_file (char *); |
| 510 | void add_search_path P_ ((char *)); | 510 | void add_search_path (char *); |
| 511 | FILE *open_file P_ ((char *)); | 511 | FILE *open_file (char *); |
| 512 | int process_pp_line P_ ((void)); | 512 | int process_pp_line (void); |
| 513 | int dump_members P_ ((FILE *, struct member *)); | 513 | int dump_members (FILE *, struct member *); |
| 514 | void dump_sym P_ ((FILE *, struct sym *)); | 514 | void dump_sym (FILE *, struct sym *); |
| 515 | int dump_tree P_ ((FILE *, struct sym *)); | 515 | int dump_tree (FILE *, struct sym *); |
| 516 | struct member *find_member P_ ((struct sym *, char *, int, int, unsigned)); | 516 | struct member *find_member (struct sym *, char *, int, int, unsigned); |
| 517 | struct member *add_member P_ ((struct sym *, char *, int, int, unsigned)); | 517 | struct member *add_member (struct sym *, char *, int, int, unsigned); |
| 518 | void mark_virtual P_ ((struct sym *)); | 518 | void mark_virtual (struct sym *); |
| 519 | void mark_virtual P_ ((struct sym *)); | 519 | void mark_virtual (struct sym *); |
| 520 | struct sym *make_namespace P_ ((char *, struct sym *)); | 520 | struct sym *make_namespace (char *, struct sym *); |
| 521 | char *sym_scope P_ ((struct sym *)); | 521 | char *sym_scope (struct sym *); |
| 522 | char *sym_scope_1 P_ ((struct sym *)); | 522 | char *sym_scope_1 (struct sym *); |
| 523 | int skip_to P_ ((int)); | 523 | int skip_to (int); |
| 524 | void skip_matching P_ ((void)); | 524 | void skip_matching (void); |
| 525 | void member P_ ((struct sym *, int)); | 525 | void member (struct sym *, int); |
| 526 | void class_body P_ ((struct sym *, int)); | 526 | void class_body (struct sym *, int); |
| 527 | void class_definition P_ ((struct sym *, int, int, int)); | 527 | void class_definition (struct sym *, int, int, int); |
| 528 | void declaration P_ ((int)); | 528 | void declaration (int); |
| 529 | unsigned parm_list P_ ((int *)); | 529 | unsigned parm_list (int *); |
| 530 | char *operator_name P_ ((int *)); | 530 | char *operator_name (int *); |
| 531 | struct sym *parse_classname P_ ((void)); | 531 | struct sym *parse_classname (void); |
| 532 | struct sym *parse_qualified_ident_or_type P_ ((char **)); | 532 | struct sym *parse_qualified_ident_or_type (char **); |
| 533 | void parse_qualified_param_ident_or_type P_ ((char **)); | 533 | void parse_qualified_param_ident_or_type (char **); |
| 534 | int globals P_ ((int)); | 534 | int globals (int); |
| 535 | void yyerror P_ ((char *, char *)); | 535 | void yyerror (char *, char *); |
| 536 | void usage P_ ((int)) NO_RETURN; | 536 | void usage (int) NO_RETURN; |
| 537 | void version P_ (()) NO_RETURN; | 537 | void 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 | ||
| 276 | typedef void Lang_function __P((FILE *)); | 276 | typedef void Lang_function (FILE *); |
| 277 | 277 | ||
| 278 | typedef struct | 278 | typedef 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 */ |
| 368 | static void Ada_funcs __P((FILE *)); | 368 | static void Ada_funcs (FILE *); |
| 369 | static void Asm_labels __P((FILE *)); | 369 | static void Asm_labels (FILE *); |
| 370 | static void C_entries __P((int c_ext, FILE *)); | 370 | static void C_entries (int c_ext, FILE *); |
| 371 | static void default_C_entries __P((FILE *)); | 371 | static void default_C_entries (FILE *); |
| 372 | static void plain_C_entries __P((FILE *)); | 372 | static void plain_C_entries (FILE *); |
| 373 | static void Cjava_entries __P((FILE *)); | 373 | static void Cjava_entries (FILE *); |
| 374 | static void Cobol_paragraphs __P((FILE *)); | 374 | static void Cobol_paragraphs (FILE *); |
| 375 | static void Cplusplus_entries __P((FILE *)); | 375 | static void Cplusplus_entries (FILE *); |
| 376 | static void Cstar_entries __P((FILE *)); | 376 | static void Cstar_entries (FILE *); |
| 377 | static void Erlang_functions __P((FILE *)); | 377 | static void Erlang_functions (FILE *); |
| 378 | static void Forth_words __P((FILE *)); | 378 | static void Forth_words (FILE *); |
| 379 | static void Fortran_functions __P((FILE *)); | 379 | static void Fortran_functions (FILE *); |
| 380 | static void HTML_labels __P((FILE *)); | 380 | static void HTML_labels (FILE *); |
| 381 | static void Lisp_functions __P((FILE *)); | 381 | static void Lisp_functions (FILE *); |
| 382 | static void Lua_functions __P((FILE *)); | 382 | static void Lua_functions (FILE *); |
| 383 | static void Makefile_targets __P((FILE *)); | 383 | static void Makefile_targets (FILE *); |
| 384 | static void Pascal_functions __P((FILE *)); | 384 | static void Pascal_functions (FILE *); |
| 385 | static void Perl_functions __P((FILE *)); | 385 | static void Perl_functions (FILE *); |
| 386 | static void PHP_functions __P((FILE *)); | 386 | static void PHP_functions (FILE *); |
| 387 | static void PS_functions __P((FILE *)); | 387 | static void PS_functions (FILE *); |
| 388 | static void Prolog_functions __P((FILE *)); | 388 | static void Prolog_functions (FILE *); |
| 389 | static void Python_functions __P((FILE *)); | 389 | static void Python_functions (FILE *); |
| 390 | static void Scheme_functions __P((FILE *)); | 390 | static void Scheme_functions (FILE *); |
| 391 | static void TeX_commands __P((FILE *)); | 391 | static void TeX_commands (FILE *); |
| 392 | static void Texinfo_nodes __P((FILE *)); | 392 | static void Texinfo_nodes (FILE *); |
| 393 | static void Yacc_entries __P((FILE *)); | 393 | static void Yacc_entries (FILE *); |
| 394 | static void just_read_file __P((FILE *)); | 394 | static void just_read_file (FILE *); |
| 395 | 395 | ||
| 396 | static void print_language_names __P((void)); | 396 | static void print_language_names (void); |
| 397 | static void print_version __P((void)); | 397 | static void print_version (void); |
| 398 | static void print_help __P((argument *)); | 398 | static void print_help (argument *); |
| 399 | int main __P((int, char **)); | 399 | int main (int, char **); |
| 400 | 400 | ||
| 401 | static compressor *get_compressor_from_suffix __P((char *, char **)); | 401 | static compressor *get_compressor_from_suffix (char *, char **); |
| 402 | static language *get_language_from_langname __P((const char *)); | 402 | static language *get_language_from_langname (const char *); |
| 403 | static language *get_language_from_interpreter __P((char *)); | 403 | static language *get_language_from_interpreter (char *); |
| 404 | static language *get_language_from_filename __P((char *, bool)); | 404 | static language *get_language_from_filename (char *, bool); |
| 405 | static void readline __P((linebuffer *, FILE *)); | 405 | static void readline (linebuffer *, FILE *); |
| 406 | static long readline_internal __P((linebuffer *, FILE *)); | 406 | static long readline_internal (linebuffer *, FILE *); |
| 407 | static bool nocase_tail __P((char *)); | 407 | static bool nocase_tail (char *); |
| 408 | static void get_tag __P((char *, char **)); | 408 | static void get_tag (char *, char **); |
| 409 | 409 | ||
| 410 | static void analyse_regex __P((char *)); | 410 | static void analyse_regex (char *); |
| 411 | static void free_regexps __P((void)); | 411 | static void free_regexps (void); |
| 412 | static void regex_tag_multiline __P((void)); | 412 | static void regex_tag_multiline (void); |
| 413 | static void error __P((const char *, const char *)); | 413 | static void error (const char *, const char *); |
| 414 | static void suggest_asking_for_help __P((void)); | 414 | static void suggest_asking_for_help (void); |
| 415 | void fatal __P((char *, char *)); | 415 | void fatal (char *, char *); |
| 416 | static void pfatal __P((char *)); | 416 | static void pfatal (char *); |
| 417 | static void add_node __P((node *, node **)); | 417 | static void add_node (node *, node **); |
| 418 | 418 | ||
| 419 | static void init __P((void)); | 419 | static void init (void); |
| 420 | static void process_file_name __P((char *, language *)); | 420 | static void process_file_name (char *, language *); |
| 421 | static void process_file __P((FILE *, char *, language *)); | 421 | static void process_file (FILE *, char *, language *); |
| 422 | static void find_entries __P((FILE *)); | 422 | static void find_entries (FILE *); |
| 423 | static void free_tree __P((node *)); | 423 | static void free_tree (node *); |
| 424 | static void free_fdesc __P((fdesc *)); | 424 | static void free_fdesc (fdesc *); |
| 425 | static void pfnote __P((char *, bool, char *, int, int, long)); | 425 | static void pfnote (char *, bool, char *, int, int, long); |
| 426 | static void make_tag __P((char *, int, bool, char *, int, int, long)); | 426 | static void make_tag (char *, int, bool, char *, int, int, long); |
| 427 | static void invalidate_nodes __P((fdesc *, node **)); | 427 | static void invalidate_nodes (fdesc *, node **); |
| 428 | static void put_entries __P((node *)); | 428 | static void put_entries (node *); |
| 429 | 429 | ||
| 430 | static char *concat __P((char *, char *, char *)); | 430 | static char *concat (char *, char *, char *); |
| 431 | static char *skip_spaces __P((char *)); | 431 | static char *skip_spaces (char *); |
| 432 | static char *skip_non_spaces __P((char *)); | 432 | static char *skip_non_spaces (char *); |
| 433 | static char *savenstr __P((char *, int)); | 433 | static char *savenstr (char *, int); |
| 434 | static char *savestr __P((char *)); | 434 | static char *savestr (char *); |
| 435 | static char *etags_strchr __P((const char *, int)); | 435 | static char *etags_strchr (const char *, int); |
| 436 | static char *etags_strrchr __P((const char *, int)); | 436 | static char *etags_strrchr (const char *, int); |
| 437 | static int etags_strcasecmp __P((const char *, const char *)); | 437 | static int etags_strcasecmp (const char *, const char *); |
| 438 | static int etags_strncasecmp __P((const char *, const char *, int)); | 438 | static int etags_strncasecmp (const char *, const char *, int); |
| 439 | static char *etags_getcwd __P((void)); | 439 | static char *etags_getcwd (void); |
| 440 | static char *relative_filename __P((char *, char *)); | 440 | static char *relative_filename (char *, char *); |
| 441 | static char *absolute_filename __P((char *, char *)); | 441 | static char *absolute_filename (char *, char *); |
| 442 | static char *absolute_dirname __P((char *, char *)); | 442 | static char *absolute_dirname (char *, char *); |
| 443 | static bool filename_is_absolute __P((char *f)); | 443 | static bool filename_is_absolute (char *f); |
| 444 | static void canonicalize_filename __P((char *)); | 444 | static void canonicalize_filename (char *); |
| 445 | static void linebuffer_init __P((linebuffer *)); | 445 | static void linebuffer_init (linebuffer *); |
| 446 | static void linebuffer_setlen __P((linebuffer *, int)); | 446 | static void linebuffer_setlen (linebuffer *, int); |
| 447 | static PTR xmalloc __P((unsigned int)); | 447 | static PTR xmalloc (unsigned int); |
| 448 | static PTR xrealloc __P((char *, unsigned int)); | 448 | static PTR xrealloc (char *, unsigned int); |
| 449 | 449 | ||
| 450 | 450 | ||
| 451 | static char searchar = '/'; /* use /.../ searches */ | 451 | static char searchar = '/'; /* use /.../ searches */ |
| @@ -2178,8 +2178,8 @@ invalidate_nodes (badfdp, npp) | |||
| 2178 | } | 2178 | } |
| 2179 | 2179 | ||
| 2180 | 2180 | ||
| 2181 | static int total_size_of_entries __P((node *)); | 2181 | static int total_size_of_entries (node *); |
| 2182 | static int number_len __P((long)); | 2182 | static 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. */ |
| 2185 | static int | 2185 | static 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 | ||
| 2333 | static unsigned int hash __P((const char *, unsigned int)); | 2333 | static unsigned int hash (const char *, unsigned int); |
| 2334 | static struct C_stab_entry * in_word_set __P((const char *, unsigned int)); | 2334 | static struct C_stab_entry * in_word_set (const char *, unsigned int); |
| 2335 | static enum sym_type C_symtype __P((char *, int, int)); | 2335 | static 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 | */ |
| 2649 | static void pushclass_above __P((int, char *, int)); | 2649 | static void pushclass_above (int, char *, int); |
| 2650 | static void popclass_above __P((int)); | 2650 | static void popclass_above (int); |
| 2651 | static void write_classname __P((linebuffer *, char *qualifier)); | 2651 | static void write_classname (linebuffer *, char *qualifier); |
| 2652 | 2652 | ||
| 2653 | static struct { | 2653 | static 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 | ||
| 2739 | static bool consider_token __P((char *, int, int, int *, int, int, bool *)); | 2739 | static bool consider_token (char *, int, int, int *, int, int, bool *); |
| 2740 | static void make_C_tag __P((bool)); | 2740 | static 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 | ||
| 4046 | static void F_takeprec __P((void)); | 4046 | static void F_takeprec (void); |
| 4047 | static void F_getit __P((FILE *)); | 4047 | static void F_getit (FILE *); |
| 4048 | 4048 | ||
| 4049 | static void | 4049 | static void |
| 4050 | F_takeprec () | 4050 | F_takeprec () |
| @@ -4178,7 +4178,7 @@ Fortran_functions (inf) | |||
| 4178 | * Philippe Waroquiers (1998) | 4178 | * Philippe Waroquiers (1998) |
| 4179 | */ | 4179 | */ |
| 4180 | 4180 | ||
| 4181 | static void Ada_getit __P((FILE *, char *)); | 4181 | static 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 | ||
| 4835 | static void L_getit __P((void)); | 4835 | static void L_getit (void); |
| 4836 | 4836 | ||
| 4837 | static void | 4837 | static void |
| 4838 | L_getit () | 4838 | L_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 | ||
| 5035 | static void TEX_mode __P((FILE *)); | 5035 | static void TEX_mode (FILE *); |
| 5036 | static void TEX_decode_env __P((char *, char *)); | 5036 | static void TEX_decode_env (char *, char *); |
| 5037 | 5037 | ||
| 5038 | static char TEX_esc = '\\'; | 5038 | static char TEX_esc = '\\'; |
| 5039 | static char TEX_opgrp = '{'; | 5039 | static 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 | */ |
| 5341 | static int prolog_pr __P((char *, char *)); | 5341 | static int prolog_pr (char *, char *); |
| 5342 | static void prolog_skip_comment __P((linebuffer *, FILE *)); | 5342 | static void prolog_skip_comment (linebuffer *, FILE *); |
| 5343 | static int prolog_atom __P((char *, int)); | 5343 | static int prolog_atom (char *, int); |
| 5344 | 5344 | ||
| 5345 | static void | 5345 | static void |
| 5346 | Prolog_functions (inf) | 5346 | Prolog_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 | */ |
| 5506 | static int erlang_func __P((char *, char *)); | 5506 | static int erlang_func (char *, char *); |
| 5507 | static void erlang_attribute __P((char *)); | 5507 | static void erlang_attribute (char *); |
| 5508 | static int erlang_atom __P((char *)); | 5508 | static int erlang_atom (char *); |
| 5509 | 5509 | ||
| 5510 | static void | 5510 | static void |
| 5511 | Erlang_functions (inf) | 5511 | Erlang_functions (inf) |
| @@ -5652,9 +5652,9 @@ erlang_atom (s) | |||
| 5652 | } | 5652 | } |
| 5653 | 5653 | ||
| 5654 | 5654 | ||
| 5655 | static char *scan_separators __P((char *)); | 5655 | static char *scan_separators (char *); |
| 5656 | static void add_regex __P((char *, language *)); | 5656 | static void add_regex (char *, language *); |
| 5657 | static char *substitute __P((char *, char *, struct re_registers *)); | 5657 | static 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 | ||
| 143 | char *strerror (); | 143 | char *strerror (); |
| 144 | #ifdef HAVE_INDEX | 144 | #ifdef HAVE_INDEX |
| 145 | extern char *index __P ((const char *, int)); | 145 | extern char *index (const char *, int); |
| 146 | #endif | 146 | #endif |
| 147 | #ifdef HAVE_RINDEX | 147 | #ifdef HAVE_RINDEX |
| 148 | extern char *rindex __P((const char *, int)); | 148 | extern char *rindex (const char *, int); |
| 149 | #endif | 149 | #endif |
| 150 | 150 | ||
| 151 | void fatal (); | 151 | void 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 | ||
| 119 | static int socket_connection __P((char *, int)); | 119 | static int socket_connection (char *, int); |
| 120 | static int pop_getline __P((popserver, char **)); | 120 | static int pop_getline (popserver, char **); |
| 121 | static int sendline __P((popserver, char *)); | 121 | static int sendline (popserver, char *); |
| 122 | static int fullwrite __P((int, char *, int)); | 122 | static int fullwrite (int, char *, int); |
| 123 | static int getok __P((popserver)); | 123 | static int getok (popserver); |
| 124 | #if 0 | 124 | #if 0 |
| 125 | static int gettermination __P((popserver)); | 125 | static int gettermination (popserver); |
| 126 | #endif | 126 | #endif |
| 127 | static void pop_trash __P((popserver)); | 127 | static void pop_trash (popserver); |
| 128 | static char *find_crlf __P((char *, int)); | 128 | static 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 | ||
| 92 | int lock_file P_ ((const char *filename, void **state)); | 92 | int lock_file (const char *filename, void **state); |
| 93 | int unlock_file P_ ((const char *filename, void *state)); | 93 | int unlock_file (const char *filename, void *state); |
| 94 | 94 | ||
| 95 | struct score_entry | 95 | struct score_entry |
| 96 | { | 96 | { |
| @@ -99,15 +99,15 @@ struct score_entry | |||
| 99 | char *data; | 99 | char *data; |
| 100 | }; | 100 | }; |
| 101 | 101 | ||
| 102 | int read_scores P_ ((const char *filename, struct score_entry **scores, | 102 | int read_scores (const char *filename, struct score_entry **scores, |
| 103 | int *count)); | 103 | int *count); |
| 104 | int push_score P_ ((struct score_entry **scores, int *count, | 104 | int push_score (struct score_entry **scores, int *count, |
| 105 | int newscore, char *username, char *newdata)); | 105 | int newscore, char *username, char *newdata); |
| 106 | void sort_scores P_ ((struct score_entry *scores, int count, int reverse)); | 106 | void sort_scores (struct score_entry *scores, int count, int reverse); |
| 107 | int write_scores P_ ((const char *filename, const struct score_entry *scores, | 107 | int write_scores (const char *filename, const struct score_entry *scores, |
| 108 | int count)); | 108 | int count); |
| 109 | 109 | ||
| 110 | void lose P_ ((const char *msg)) NO_RETURN; | 110 | void lose (const char *msg) NO_RETURN; |
| 111 | 111 | ||
| 112 | void | 112 | void |
| 113 | lose (msg) | 113 | lose (msg) |
| @@ -117,7 +117,7 @@ lose (msg) | |||
| 117 | exit (EXIT_FAILURE); | 117 | exit (EXIT_FAILURE); |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | void lose_syserr P_ ((const char *msg)) NO_RETURN; | 120 | void 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 | ||
| 147 | char * | 147 | char * |
| 148 | get_user_id P_ ((void)) | 148 | get_user_id (void) |
| 149 | { | 149 | { |
| 150 | char *name; | 150 | char *name; |
| 151 | struct passwd *buf = getpwuid (getuid ()); | 151 | struct passwd *buf = getpwuid (getuid ()); |