From: Laurent Mazet Date: Mon, 6 Mar 2023 14:57:39 +0000 (+0100) Subject: fix format to non decimal values on storage and stack X-Git-Tag: v1.2~2^2~1 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=be3900434c431d1a267af59df7cf3d54657c7fd7;p=calc.git fix format to non decimal values on storage and stack --- diff --git a/format.c b/format.c index e5be2df..60cb1d4 100644 --- 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; } diff --git a/format.h b/format.h index b18b92d..3a376a0 100644 --- 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 ();