This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] Zap some PTR's


To follow up a recent discussion.

	Andrew
2001-06-06  Andrew Cagney  <ac131313@redhat.com>

	* symfile.c (compare_psymbols): Replace PTR with void*. Delete
	declaration.
	(compare_symbols): Ditto.

Index: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.33
diff -p -r1.33 symfile.c
*** symfile.c	2001/05/29 10:20:27	1.33
--- symfile.c	2001/06/06 17:04:48
*************** static void add_shared_symbol_files_comm
*** 117,126 ****
  
  static void cashier_psymtab (struct partial_symtab *);
  
- static int compare_psymbols (const PTR, const PTR);
- 
- static int compare_symbols (const PTR, const PTR);
- 
  bfd *symfile_bfd_open (char *);
  
  static void find_sym_fns (struct objfile *);
--- 117,122 ----
*************** int auto_solib_add = 1;
*** 208,214 ****
     comparison function takes two "void *" pointers. */
  
  static int
! compare_symbols (const PTR s1p, const PTR s2p)
  {
    register struct symbol **s1, **s2;
  
--- 204,210 ----
     comparison function takes two "void *" pointers. */
  
  static int
! compare_symbols (const void *s1p, const void *s2p)
  {
    register struct symbol **s1, **s2;
  
*************** compare_symbols (const PTR s1p, const PT
*** 240,246 ****
   */
  
  static int
! compare_psymbols (const PTR s1p, const PTR s2p)
  {
    register struct partial_symbol **s1, **s2;
    register char *st1, *st2;
--- 236,242 ----
   */
  
  static int
! compare_psymbols (const void *s1p, const void *s2p)
  {
    register struct partial_symbol **s1, **s2;
    register char *st1, *st2;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]