mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release 2.12.6.10
Added a patch to replaces the manual search for include files in $(INCDIR) in the have_*.h targets with compiler invocations. Thanks goes to Helmut Grohne <helmut at subdivi dot de> who implemented the patch and posted it to the Debian bug tracker and Martin Buck (m at rtin-buck dor de) for forwarding it to us. The check_include make rule was fixed to not assume /usr/include. The qprintnum() function now takes outdigits as a 3rd argument. Most of the time, this 3rd argument is just conf->outdigits. But when it comes to the experimental '%g', this value can change. This avoids having to modify conf->outdigits.
This commit is contained in:
6
value.c
6
value.c
@@ -2774,7 +2774,7 @@ printvalue(VALUE *vp, int flags)
|
||||
}
|
||||
switch (type) {
|
||||
case V_NUM:
|
||||
qprintnum(vp->v_num, MODE_DEFAULT);
|
||||
qprintnum(vp->v_num, MODE_DEFAULT, conf->outdigits);
|
||||
if (conf->traceflags & TRACE_LINKS)
|
||||
math_fmt("#%ld", vp->v_num->links);
|
||||
break;
|
||||
@@ -2835,7 +2835,7 @@ printvalue(VALUE *vp, int flags)
|
||||
if (userfunc("octet_print", vp))
|
||||
break;
|
||||
qtemp = itoq((long) *vp->v_octet);
|
||||
qprintnum(qtemp, MODE_DEFAULT);
|
||||
qprintnum(qtemp, MODE_DEFAULT, conf->outdigits);
|
||||
qfree(qtemp);
|
||||
break;
|
||||
case V_OPTR:
|
||||
@@ -2888,7 +2888,7 @@ printestr(VALUE *vp)
|
||||
math_chr('"');
|
||||
return;
|
||||
case V_NUM:
|
||||
qprintnum(vp->v_num, MODE_FRAC);
|
||||
qprintnum(vp->v_num, MODE_FRAC, conf->outdigits);
|
||||
return;
|
||||
case V_COM:
|
||||
mode = math_setmode(MODE_FRAC);
|
||||
|
Reference in New Issue
Block a user