* language.h (local_decimal_format_custom): Add prototype.
authorFred Fish <fnf@specifix.com>
Mon, 1 Mar 1993 16:46:55 +0000 (16:46 +0000)
committerFred Fish <fnf@specifix.com>
Mon, 1 Mar 1993 16:46:55 +0000 (16:46 +0000)
* language.c (local_decimal_format_custom):  Add function, bug
reported by Robert R. Henry (rrh@tera.com).

gdb/ChangeLog
gdb/language.c
gdb/language.h

index 758bbf442f0e740d70a815b57b92ce7382c2fb7d..d164a33a412e8dbb4700741ca9ce5e444b65b572 100644 (file)
@@ -1,3 +1,9 @@
+Mon Mar  1 09:25:57 1993  Fred Fish  (fnf@cygnus.com)
+
+       * language.h (local_decimal_format_custom):  Add prototype.
+       * language.c (local_decimal_format_custom):  Add function, bug
+       reported by Robert R. Henry (rrh@tera.com).
+
 Fri Feb 26 18:33:18 1993  John Gilmore  (gnu@cacophony.cygnus.com)
 
        * xcoffexec.c (vmap_ldinfo):  Fix "/" for '/' typo, reported
index db4fb451834d8e53ec15fdfcdc036efa6f1c3ca9..a58fd2232e39ad3f4bc34aa73a8200c969d22d8c 100644 (file)
@@ -531,6 +531,21 @@ local_octal_format_custom(pre)
    strcat (form, local_octal_format_suffix ());
    return form;
 }
+
+/* Returns the appropriate printf format for decimal numbers. */
+char *
+local_decimal_format_custom(pre)
+   char *pre;
+{
+   static char form[50];
+
+   strcpy (form, local_decimal_format_prefix ());
+   strcat (form, "%");
+   strcat (form, pre);
+   strcat (form, local_decimal_format_specifier ());
+   strcat (form, local_decimal_format_suffix ());
+   return form;
+}
 \f
 /* This page contains functions that are used in type/range checking.
    They all return zero if the type/range check fails.
index 0d54fbad23e4655de6b7b342d20c92aa885ab7ab..7e5c838324bf6b43e88a151653622ec1df517fa8 100644 (file)
@@ -304,6 +304,9 @@ set_language PARAMS ((enum language));
    overwritten by the next call.  Takes printf options like "08" or "l"
    (to produce e.g. %08x or %lx).  */
 
+extern char *
+local_decimal_format_custom PARAMS ((char *)); /* language.c */
+
 extern char *
 local_octal_format_custom PARAMS ((char *));   /* language.c */
 
This page took 0.028246 seconds and 4 git commands to generate.