fix format to non decimal values on storage and stack
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Mon, 6 Mar 2023 14:57:39 +0000 (15:57 +0100)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Mon, 6 Mar 2023 14:57:39 +0000 (15:57 +0100)
format.c
format.h

index e5be2dfde3c457c9877704cbf889ab23a853a625..60cb1d477e6055281b578070daf7cae63bfc75d0 100644 (file)
--- a/format.c
+++ b/format.c
@@ -76,11 +76,6 @@ void set_base (int in, int out)
     _obase = out;
 }
 
-int is_input_decimal ()
-{
-    return (_ibase == 10);
-}
-
 char *show_base ()
 {
     static char str[16] = {0};
@@ -133,7 +128,7 @@ double printl (double value)
     if (_obase == 10) {
         printf (_minform ? _minform : DEFAULT_MINFORM, value);
     } else {
-        printf ("%s%s", (_prompt) ? _prompt : DEFAULT_PROMPT, mbitoa ((unsigned int)value));
+        printf ("%s", mbitoa ((unsigned int)value));
     }
     return value;
 }
index b18b92d728e8ccb99d9e18a684fcd452ab9ade02..3a376a0f58dc067e5758d360a58cce03fcb14f4b 100644 (file)
--- a/format.h
+++ b/format.h
@@ -13,7 +13,6 @@ void set_format ();
 void free_format ();
 
 void set_base (int in, int out);
-int is_input_decimal ();
 char *show_base ();
 int get_ibase ();