This is the mail archive of the gdb-patches@sourceware.cygnus.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] Comment out longest_raw_hex_string


(Prompted by a patch from Robert Lipe)

The attatched comments out the function longest_raw_hex_string().  It
can be deleted in a month or so (although everyone things it isn't
used).

	Andrew
Sat Mar  4 15:45:38 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* language.c (longest_raw_hex_string): Comment out.  Appears
 	unused.

Index: language.c
===================================================================
RCS file: /cvs/src/src/gdb/language.c,v
retrieving revision 1.1.1.8
diff -c -r1.1.1.8 language.c
*** language.c	2000/02/02 00:21:08	1.1.1.8
--- language.c	2000/03/04 04:54:43
***************
*** 545,550 ****
--- 545,555 ----
    return form;
  }
  
+ #if 0
+ /* FIXME: cagney/2000-03-04: This function does not appear to be used.
+    It can be deleted once 5.0 has been released. */
+ /* FIXME: cagney/2000-03-04: This code assumes that the compiler
+    supports ``long long''. */
  /* Converts a number to hexadecimal (without leading "0x") and stores it in a
     static string.  Returns a pointer to this string. */
  
***************
*** 562,567 ****
--- 567,573 ----
    sprintf (res_longest_raw_hex_string, "%llx", ll);
    return res_longest_raw_hex_string;
  }
+ #endif
  
  /* Converts a number to hexadecimal and stores it in a static
     string.  Returns a pointer to this string. */
Index: language.h
===================================================================
RCS file: /cvs/src/src/gdb/language.h,v
retrieving revision 1.1.1.6
diff -c -r1.1.1.6 language.h
*** language.h	2000/02/02 00:21:08	1.1.1.6
--- language.h	2000/03/04 04:54:43
***************
*** 362,372 ****
--- 362,376 ----
  extern char *
    local_hex_format_custom PARAMS ((char *));	/* language.c */
  
+ #if 0
+ /* FIXME: cagney/2000-03-04: This function does not appear to be used.
+    It can be deleted once 5.0 has been released. */
  /* Return a string that contains the hex digits of the number.  No preceeding
     "0x" */
  
  extern char *
    longest_raw_hex_string PARAMS ((LONGEST));
+ #endif
  
  /* Return a string that contains a number formatted in one of the local
     (language-specific) formats.  Result is static and is overwritten by

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