• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révisionda2a1c36aed0b986720650a93283c4c07b5cceed (tree)
l'heure2002-03-26 01:50:20
AuteurAlexandre Oliva <aoliva@redh...>
CommiterAlexandre Oliva

Message de Log

* coffread.c: Remove redundant static declarations. Replace
occurrences of PTR' with void *'.
* elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
* top.h (quit_cover): Likewise.
* defs.h (catch_errors): Likewise.

Change Summary

Modification

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
1+2002-03-25 Alexandre Oliva <aoliva@redhat.com>
2+
3+ * coffread.c: Remove redundant static declarations. Replace
4+ occurrences of `PTR' with `void *'.
5+ * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6+ * top.h (quit_cover): Likewise.
7+ * defs.h (catch_errors): Likewise.
8+
19 2002-03-23 Andrew Cagney <ac131313@redhat.com>
210
311 * MAINTAINERS (sh-elf): Change warning flag to -w.
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -192,8 +192,6 @@ static struct symbol *process_coff_symbol (struct coff_symbol *,
192192
193193 static void patch_opaque_types (struct symtab *);
194194
195-static void patch_type (struct type *, struct type *);
196-
197195 static void enter_linenos (long, int, int, struct objfile *);
198196
199197 static void free_linetab (void);
@@ -216,32 +214,6 @@ static void read_one_sym (struct coff_symbol *,
216214 struct internal_syment *, union internal_auxent *);
217215
218216 static void coff_symtab_read (long, unsigned int, struct objfile *);
219-
220-static void find_linenos (bfd *, sec_ptr, PTR);
221-
222-static void coff_symfile_init (struct objfile *);
223-
224-static void coff_new_init (struct objfile *);
225-
226-static void coff_symfile_read (struct objfile *, int);
227-
228-static void coff_symfile_finish (struct objfile *);
229-
230-static void record_minimal_symbol (char *, CORE_ADDR,
231- enum minimal_symbol_type,
232- struct objfile *);
233-
234-static void coff_end_symtab (struct objfile *);
235-
236-static void complete_symtab (char *, CORE_ADDR, unsigned int);
237-
238-static void coff_start_symtab (char *);
239-
240-static struct type *coff_alloc_type (int);
241-
242-static struct type **coff_lookup_type (int);
243-
244-static void coff_locate_sections (bfd *, asection *, PTR);
245217
246218 /* We are called once per section from coff_symfile_read. We
247219 need to examine each section we are passed, check to see
@@ -254,7 +226,7 @@ static void coff_locate_sections (bfd *, asection *, PTR);
254226 -kingdon). */
255227
256228 static void
257-coff_locate_sections (bfd *abfd, asection *sectp, PTR csip)
229+coff_locate_sections (bfd *abfd, asection *sectp, void *csip)
258230 {
259231 register struct coff_symfile_info *csi;
260232 const char *name;
@@ -312,10 +284,8 @@ struct find_targ_sec_arg
312284 asection **resultp;
313285 };
314286
315-static void find_targ_sec (bfd *, asection *, PTR);
316-
317287 static void
318-find_targ_sec (bfd *abfd, asection *sect, PTR obj)
288+find_targ_sec (bfd *abfd, asection *sect, void *obj)
319289 {
320290 struct find_targ_sec_arg *args = (struct find_targ_sec_arg *) obj;
321291 if (sect->target_index == args->targ_index)
@@ -509,7 +479,8 @@ coff_symfile_init (struct objfile *objfile)
509479 objfile->sym_stab_info = (struct dbx_symfile_info *)
510480 xmmalloc (objfile->md, sizeof (struct dbx_symfile_info));
511481
512- memset ((PTR) objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info));
482+ memset (objfile->sym_stab_info, 0,
483+ sizeof (struct dbx_symfile_info));
513484
514485 /* Allocate struct to keep track of the symfile */
515486 objfile->sym_private = xmmalloc (objfile->md,
@@ -531,7 +502,7 @@ coff_symfile_init (struct objfile *objfile)
531502
532503 /* ARGSUSED */
533504 static void
534-find_linenos (bfd *abfd, sec_ptr asect, PTR vpinfo)
505+find_linenos (bfd *abfd, sec_ptr asect, void *vpinfo)
535506 {
536507 struct coff_symfile_info *info;
537508 int size, count;
@@ -625,7 +596,7 @@ coff_symfile_read (struct objfile *objfile, int mainline)
625596 /* Read the line number table, all at once. */
626597 info->min_lineno_offset = 0;
627598 info->max_lineno_offset = 0;
628- bfd_map_over_sections (abfd, find_linenos, (PTR) info);
599+ bfd_map_over_sections (abfd, find_linenos, (void *) info);
629600
630601 make_cleanup (free_linetab_cleanup, 0 /*ignore*/);
631602 val = init_lineno (abfd, info->min_lineno_offset,
@@ -662,7 +633,7 @@ coff_symfile_read (struct objfile *objfile, int mainline)
662633
663634 install_minimal_symbols (objfile);
664635
665- bfd_map_over_sections (abfd, coff_locate_sections, (PTR) info);
636+ bfd_map_over_sections (abfd, coff_locate_sections, (void *) info);
666637
667638 if (info->stabsects)
668639 {
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1152,7 +1152,7 @@ extern int catch_exceptions (struct ui_out *uiout,
11521152 This function is superseeded by catch_exceptions(). */
11531153
11541154 typedef int (catch_errors_ftype) (PTR);
1155-extern int catch_errors (catch_errors_ftype *, PTR, char *, return_mask);
1155+extern int catch_errors (catch_errors_ftype *, void *, char *, return_mask);
11561156
11571157 /* Template to catch_errors() that wraps calls to command
11581158 functions. */
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -66,29 +66,7 @@ struct complaint stab_info_mismatch_complaint =
6666 struct complaint stab_info_questionable_complaint =
6767 {"elf/stab section information questionable for %s", 0, 0};
6868
69-static void elf_symfile_init (struct objfile *);
70-
71-static void elf_new_init (struct objfile *);
72-
73-static void elf_symfile_read (struct objfile *, int);
74-
75-static void elf_symfile_finish (struct objfile *);
76-
77-static void elf_symtab_read (struct objfile *, int);
78-
79-static void free_elfinfo (PTR);
80-
81-static struct minimal_symbol *record_minimal_symbol_and_info (char *,
82- CORE_ADDR,
83- enum
84- minimal_symbol_type,
85- char *,
86- asection *
87- bfd_section,
88- struct objfile
89- *);
90-
91-static void elf_locate_sections (bfd *, asection *, PTR);
69+static void free_elfinfo (void *);
9270
9371 /* We are called once per section from elf_symfile_read. We
9472 need to examine each section we are passed, check to see
@@ -110,7 +88,7 @@ static void elf_locate_sections (bfd *, asection *, PTR);
11088 -kingdon). */
11189
11290 static void
113-elf_locate_sections (bfd *ignore_abfd, asection *sectp, PTR eip)
91+elf_locate_sections (bfd *ignore_abfd, asection *sectp, void *eip)
11492 {
11593 register struct elfinfo *ei;
11694
@@ -443,7 +421,8 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
443421 {
444422 sectinfo = (struct stab_section_info *)
445423 xmmalloc (objfile->md, sizeof (*sectinfo));
446- memset ((PTR) sectinfo, 0, sizeof (*sectinfo));
424+ memset (sectinfo, 0,
425+ sizeof (*sectinfo));
447426 if (filesym == NULL)
448427 {
449428 complain (&section_info_complaint,
@@ -511,7 +490,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
511490 size = ((elf_symbol_type *) sym)->internal_elf_sym.st_size;
512491 msym = record_minimal_symbol_and_info
513492 ((char *) sym->name, symaddr,
514- ms_type, (PTR) size, sym->section, objfile);
493+ ms_type, (void *) size, sym->section, objfile);
515494 #ifdef SOFUN_ADDRESS_MAYBE_MISSING
516495 if (msym != NULL)
517496 msym->filename = filesymname;
@@ -572,7 +551,7 @@ elf_symfile_read (struct objfile *objfile, int mainline)
572551 objfile->sym_stab_info = (struct dbx_symfile_info *)
573552 xmmalloc (objfile->md, sizeof (struct dbx_symfile_info));
574553 memset ((char *) objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info));
575- make_cleanup (free_elfinfo, (PTR) objfile);
554+ make_cleanup (free_elfinfo, (void *) objfile);
576555
577556 /* Process the normal ELF symbol table first. This may write some
578557 chain of info into the dbx_symfile_info in objfile->sym_stab_info,
@@ -597,7 +576,7 @@ elf_symfile_read (struct objfile *objfile, int mainline)
597576 }
598577
599578 /* We first have to find them... */
600- bfd_map_over_sections (abfd, elf_locate_sections, (PTR) & ei);
579+ bfd_map_over_sections (abfd, elf_locate_sections, (void *) & ei);
601580
602581 /* ELF debugging information is inserted into the psymtab in the
603582 order of least informative first - most informative last. Since
@@ -667,7 +646,7 @@ elf_symfile_read (struct objfile *objfile, int mainline)
667646 stab_section_info's, that might be dangling from it. */
668647
669648 static void
670-free_elfinfo (PTR objp)
649+free_elfinfo (void *objp)
671650 {
672651 struct objfile *objfile = (struct objfile *) objp;
673652 struct dbx_symfile_info *dbxinfo = objfile->sym_stab_info;
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -327,30 +327,15 @@ static int found_ecoff_debugging_info;
327327
328328 /* Forward declarations */
329329
330-static void add_pending (FDR *, char *, struct type *);
331-
332-static struct mdebug_pending *is_pending_symbol (FDR *, char *);
333-
334-static void pop_parse_stack (void);
335-
336-static void push_parse_stack (void);
337-
338-static char *fdr_name (FDR *);
339-
340-static void mdebug_psymtab_to_symtab (struct partial_symtab *);
341-
342-static int
343-upgrade_type (int, struct type **, int, union aux_ext *, int, char *);
330+static int upgrade_type (int, struct type **, int, union aux_ext *,
331+ int, char *);
344332
345333 static void parse_partial_symbols (struct objfile *);
346334
347-static FDR * get_rfd (int, int);
348-
349335 static int has_opaque_xref (FDR *, SYMR *);
350336
351-static int
352-cross_ref (int, union aux_ext *, struct type **, enum type_code,
353- char **, int, char *);
337+static int cross_ref (int, union aux_ext *, struct type **, enum type_code,
338+ char **, int, char *);
354339
355340 static struct symbol *new_symbol (char *);
356341
@@ -364,10 +349,6 @@ static struct linetable *new_linetable (int);
364349
365350 static struct blockvector *new_bvect (int);
366351
367-static int
368-parse_symbol (SYMR *, union aux_ext *, char *, int, struct section_offsets *,
369- struct objfile *);
370-
371352 static struct type *parse_type (int, union aux_ext *, unsigned int, int *,
372353 int, char *);
373354
@@ -376,12 +357,8 @@ static struct symbol *mylookup_symbol (char *, struct block *, namespace_enum,
376357
377358 static struct block *shrink_block (struct block *, struct symtab *);
378359
379-static PTR xzalloc (unsigned int);
380-
381360 static void sort_blocks (struct symtab *);
382361
383-static int compare_blocks (const PTR, const PTR);
384-
385362 static struct partial_symtab *new_psymtab (char *, struct objfile *);
386363
387364 static void psymtab_to_symtab_1 (struct partial_symtab *, char *);
@@ -394,8 +371,8 @@ static int add_line (struct linetable *, int, CORE_ADDR, int);
394371
395372 static struct linetable *shrink_linetable (struct linetable *);
396373
397-static void
398-handle_psymbol_enumerators (struct objfile *, FDR *, int, CORE_ADDR);
374+static void handle_psymbol_enumerators (struct objfile *, FDR *, int,
375+ CORE_ADDR);
399376
400377 static char *mdebug_next_symbol_text (struct objfile *);
401378
@@ -405,10 +382,10 @@ CORE_ADDR sigtramp_address, sigtramp_end;
405382
406383 /* Allocate zeroed memory */
407384
408-static PTR
385+static void *
409386 xzalloc (unsigned int size)
410387 {
411- PTR p = xmalloc (size);
388+ void *p = xmalloc (size);
412389
413390 memset (p, 0, size);
414391 return p;
@@ -698,7 +675,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
698675 struct section_offsets *section_offsets, struct objfile *objfile)
699676 {
700677 const bfd_size_type external_sym_size = debug_swap->external_sym_size;
701- void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
678+ void (*const swap_sym_in) (bfd *, void *, SYMR *) = debug_swap->swap_sym_in;
702679 char *name;
703680 struct symbol *s;
704681 struct block *b;
@@ -1137,7 +1114,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
11371114 enum_sym = ((struct symbol *)
11381115 obstack_alloc (&current_objfile->symbol_obstack,
11391116 sizeof (struct symbol)));
1140- memset ((PTR) enum_sym, 0, sizeof (struct symbol));
1117+ memset (enum_sym, 0, sizeof (struct symbol));
11411118 SYMBOL_NAME (enum_sym) =
11421119 obsavestring (f->name, strlen (f->name),
11431120 &current_objfile->symbol_obstack);
@@ -1235,7 +1212,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
12351212 e = ((struct mips_extra_func_info *)
12361213 obstack_alloc (&current_objfile->symbol_obstack,
12371214 sizeof (struct mips_extra_func_info)));
1238- memset ((PTR) e, 0, sizeof (struct mips_extra_func_info));
1215+ memset (e, 0, sizeof (struct mips_extra_func_info));
12391216 SYMBOL_VALUE (s) = (long) e;
12401217 e->numargs = top_stack->numargs;
12411218 e->pdr.framereg = -1;
@@ -2230,9 +2207,9 @@ parse_partial_symbols (struct objfile *objfile)
22302207 const bfd_size_type external_sym_size = debug_swap->external_sym_size;
22312208 const bfd_size_type external_rfd_size = debug_swap->external_rfd_size;
22322209 const bfd_size_type external_ext_size = debug_swap->external_ext_size;
2233- void (*const swap_ext_in) (bfd *, PTR, EXTR *) = debug_swap->swap_ext_in;
2234- void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
2235- void (*const swap_rfd_in) (bfd *, PTR, RFDT *) = debug_swap->swap_rfd_in;
2210+ void (*const swap_ext_in) (bfd *, void *, EXTR *) = debug_swap->swap_ext_in;
2211+ void (*const swap_sym_in) (bfd *, void *, SYMR *) = debug_swap->swap_sym_in;
2212+ void (*const swap_rfd_in) (bfd *, void *, RFDT *) = debug_swap->swap_rfd_in;
22362213 int f_idx, s_idx;
22372214 HDRR *hdr = &debug_info->symbolic_header;
22382215 /* Running pointers */
@@ -2319,7 +2296,7 @@ parse_partial_symbols (struct objfile *objfile)
23192296 ((struct mdebug_pending **)
23202297 obstack_alloc (&objfile->psymbol_obstack,
23212298 hdr->ifdMax * sizeof (struct mdebug_pending *)));
2322- memset ((PTR) pending_list, 0,
2299+ memset (pending_list, 0,
23232300 hdr->ifdMax * sizeof (struct mdebug_pending *));
23242301
23252302 /* Pass 0 over external syms: swap them in. */
@@ -2522,7 +2499,7 @@ parse_partial_symbols (struct objfile *objfile)
25222499 pst->read_symtab_private = ((char *)
25232500 obstack_alloc (&objfile->psymbol_obstack,
25242501 sizeof (struct symloc)));
2525- memset ((PTR) pst->read_symtab_private, 0, sizeof (struct symloc));
2502+ memset (pst->read_symtab_private, 0, sizeof (struct symloc));
25262503
25272504 save_pst = pst;
25282505 TEXTLOW (pst) = pst->textlow;
@@ -3673,7 +3650,7 @@ handle_psymbol_enumerators (struct objfile *objfile, FDR *fh, int stype,
36733650 CORE_ADDR svalue)
36743651 {
36753652 const bfd_size_type external_sym_size = debug_swap->external_sym_size;
3676- void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
3653+ void (*const swap_sym_in) (bfd *, void *, SYMR *) = debug_swap->swap_sym_in;
36773654 char *ext_sym = ((char *) debug_info->external_sym
36783655 + ((fh->isymBase + cur_sdx + 1) * external_sym_size));
36793656 SYMR sh;
@@ -3764,8 +3741,8 @@ psymtab_to_symtab_1 (struct partial_symtab *pst, char *filename)
37643741 {
37653742 bfd_size_type external_sym_size;
37663743 bfd_size_type external_pdr_size;
3767- void (*swap_sym_in) (bfd *, PTR, SYMR *);
3768- void (*swap_pdr_in) (bfd *, PTR, PDR *);
3744+ void (*swap_sym_in) (bfd *, void *, SYMR *);
3745+ void (*swap_pdr_in) (bfd *, void *, PDR *);
37693746 int i;
37703747 struct symtab *st = NULL;
37713748 FDR *fh;
@@ -3918,7 +3895,7 @@ psymtab_to_symtab_1 (struct partial_symtab *pst, char *filename)
39183895 sizeof (struct mips_extra_func_info)));
39193896 struct symbol *s = new_symbol (MIPS_EFI_SYMBOL_NAME);
39203897
3921- memset ((PTR) e, 0, sizeof (struct mips_extra_func_info));
3898+ memset (e, 0, sizeof (struct mips_extra_func_info));
39223899 SYMBOL_NAMESPACE (s) = LABEL_NAMESPACE;
39233900 SYMBOL_CLASS (s) = LOC_CONST;
39243901 SYMBOL_TYPE (s) = mdebug_type_void;
@@ -4467,7 +4444,7 @@ add_block (struct block *b, struct symtab *s)
44674444 {
44684445 struct blockvector *bv = BLOCKVECTOR (s);
44694446
4470- bv = (struct blockvector *) xrealloc ((PTR) bv,
4447+ bv = (struct blockvector *) xrealloc ((void *) bv,
44714448 (sizeof (struct blockvector)
44724449 + BLOCKVECTOR_NBLOCKS (bv)
44734450 * sizeof (bv->block)));
@@ -4515,7 +4492,7 @@ add_line (struct linetable *lt, int lineno, CORE_ADDR adr, int last)
45154492 /* Blocks with a smaller low bound should come first */
45164493
45174494 static int
4518-compare_blocks (const PTR arg1, const PTR arg2)
4495+compare_blocks (const void *arg1, const void *arg2)
45194496 {
45204497 register int addr_diff;
45214498 struct block **b1 = (struct block **) arg1;
@@ -4617,7 +4594,7 @@ new_psymtab (char *name, struct objfile *objfile)
46174594 psymtab->read_symtab_private = ((char *)
46184595 obstack_alloc (&objfile->psymbol_obstack,
46194596 sizeof (struct symloc)));
4620- memset ((PTR) psymtab->read_symtab_private, 0, sizeof (struct symloc));
4597+ memset (psymtab->read_symtab_private, 0, sizeof (struct symloc));
46214598 CUR_BFD (psymtab) = cur_bfd;
46224599 DEBUG_SWAP (psymtab) = debug_swap;
46234600 DEBUG_INFO (psymtab) = debug_info;
@@ -4654,7 +4631,7 @@ static struct linetable *
46544631 shrink_linetable (struct linetable *lt)
46554632 {
46564633
4657- return (struct linetable *) xrealloc ((PTR) lt,
4634+ return (struct linetable *) xrealloc ((void *) lt,
46584635 (sizeof (struct linetable)
46594636 + ((lt->nitems - 1)
46604637 * sizeof (lt->item))));
@@ -4698,7 +4675,7 @@ shrink_block (struct block *b, struct symtab *s)
46984675
46994676 /* Just reallocate it and fix references to the old one */
47004677
4701- new = (struct block *) xrealloc ((PTR) b,
4678+ new = (struct block *) xrealloc ((void *) b,
47024679 (sizeof (struct block)
47034680 + ((BLOCK_NSYMS (b) - 1)
47044681 * sizeof (struct symbol *))));
@@ -4724,7 +4701,7 @@ new_symbol (char *name)
47244701 obstack_alloc (&current_objfile->symbol_obstack,
47254702 sizeof (struct symbol)));
47264703
4727- memset ((PTR) s, 0, sizeof (*s));
4704+ memset (s, 0, sizeof (*s));
47284705 SYMBOL_NAME (s) = obsavestring (name, strlen (name),
47294706 &current_objfile->symbol_obstack);
47304707 SYMBOL_LANGUAGE (s) = psymtab_language;
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -75,16 +75,6 @@ static int msym_bunch_index;
7575
7676 static int msym_count;
7777
78-/* Prototypes for local functions. */
79-
80-static int compare_minimal_symbols (const PTR, const PTR);
81-
82-static int
83-compact_minimal_symbols (struct minimal_symbol *, int, struct objfile *);
84-
85-static void add_minsym_to_demangled_hash_table (struct minimal_symbol *sym,
86- struct minimal_symbol **table);
87-
8878 /* Compute a hash code based using the same criteria as `strcmp_iw'. */
8979
9080 unsigned int
@@ -688,7 +678,7 @@ prim_record_minimal_symbol_and_info (const char *name, CORE_ADDR address,
688678 Within groups with the same address, sort by name. */
689679
690680 static int
691-compare_minimal_symbols (const PTR fn1p, const PTR fn2p)
681+compare_minimal_symbols (const void *fn1p, const void *fn2p)
692682 {
693683 register const struct minimal_symbol *fn1;
694684 register const struct minimal_symbol *fn2;
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -185,15 +185,13 @@ struct alphacoff_dynsecinfo
185185 asection *got_sect; /* Section pointer for .got section */
186186 };
187187
188-static void alphacoff_locate_sections (bfd *, asection *, PTR);
189-
190188 /* We are called once per section from read_alphacoff_dynamic_symtab.
191189 We need to examine each section we are passed, check to see
192190 if it is something we are interested in processing, and
193191 if so, stash away some access information for the section. */
194192
195193 static void
196-alphacoff_locate_sections (bfd *ignore_abfd, asection *sectp, PTR sip)
194+alphacoff_locate_sections (bfd *ignore_abfd, asection *sectp, void *sip)
197195 {
198196 register struct alphacoff_dynsecinfo *si;
199197
@@ -252,7 +250,7 @@ read_alphacoff_dynamic_symtab (struct section_offsets *section_offsets,
252250
253251 /* Locate the dynamic symbols sections and read them in. */
254252 memset ((char *) &si, 0, sizeof (si));
255- bfd_map_over_sections (abfd, alphacoff_locate_sections, (PTR) & si);
253+ bfd_map_over_sections (abfd, alphacoff_locate_sections, (void *) & si);
256254 if (si.sym_sect == NULL
257255 || si.str_sect == NULL
258256 || si.dyninfo_sect == NULL
--- a/gdb/top.h
+++ b/gdb/top.h
@@ -44,7 +44,7 @@ extern void simplified_command_loop (char *(*read_input_func) (char *),
4444 extern int quit_confirm (void);
4545 extern void quit_force (char *, int);
4646 extern void quit_command (char *, int);
47-extern int quit_cover (PTR);
47+extern int quit_cover (void *);
4848 extern void execute_command (char *, int);
4949
5050 /* This function returns a pointer to the string that is used