summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2020-03-09 12:31:47 (GMT)
committerdgp <dgp@users.sourceforge.net>2020-03-09 12:31:47 (GMT)
commit42e6e9b167278c19dd2d9039fc434558bfc2c7f1 (patch)
treebbf7612ecc10930689dbca46355943bf6a82e751 /generic/tclStrToD.c
parent085094bd8714e2c46e3f098189728bb966eb3fb0 (diff)
downloadtcl-42e6e9b167278c19dd2d9039fc434558bfc2c7f1.zip
tcl-42e6e9b167278c19dd2d9039fc434558bfc2c7f1.tar.gz
tcl-42e6e9b167278c19dd2d9039fc434558bfc2c7f1.tar.bz2
More TCL_UNUSED
Diffstat (limited to 'generic/tclStrToD.c')
-rw-r--r--generic/tclStrToD.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c
index be26d0b..7964b68 100644
--- a/generic/tclStrToD.c
+++ b/generic/tclStrToD.c
@@ -328,7 +328,7 @@ static void CastOutPowersOf2(int *, int *, int *);
static char * ShorteningInt64Conversion(Double *, Tcl_WideUInt,
int, int, int, int, int, int, int, int, int,
int, int, int *, char **);
-static char * StrictInt64Conversion(Double *, Tcl_WideUInt,
+static char * StrictInt64Conversion(Tcl_WideUInt,
int, int, int, int, int, int,
int, int, int *, char **);
static int ShouldBankerRoundUpPowD(mp_int *, int, int);
@@ -340,7 +340,7 @@ static char * ShorteningBignumConversionPowD(Double *dPtr,
int sd, int k, int len,
int ilim, int ilim1, int *decpt,
char **endPtr);
-static char * StrictBignumConversionPowD(Double *dPtr,
+static char * StrictBignumConversionPowD(
Tcl_WideUInt bw, int b2, int b5,
int sd, int k, int len,
int ilim, int ilim1, int *decpt,
@@ -354,7 +354,7 @@ static char * ShorteningBignumConversion(Double *dPtr,
int s2, int s5, int k, int len,
int ilim, int ilim1, int *decpt,
char **endPtr);
-static char * StrictBignumConversion(Double *dPtr,
+static char * StrictBignumConversion(
Tcl_WideUInt bw, int b2,
int s2, int s5, int k, int len,
int ilim, int ilim1, int *decpt,
@@ -3180,7 +3180,6 @@ ShorteningInt64Conversion(
static inline char *
StrictInt64Conversion(
- Double *dPtr, /* Original number to convert. */
Tcl_WideUInt bw, /* Integer significand. */
int b2, int b5, /* Scale factor for the significand in the
* numerator. */
@@ -3205,7 +3204,6 @@ StrictInt64Conversion(
int digit; /* Current output digit. */
char *s = retval; /* Cursor in the output buffer. */
int i; /* Current position in the output buffer. */
- (void)dPtr;
/*
* Adjust if the logarithm was guessed wrong.
@@ -3589,7 +3587,6 @@ ShorteningBignumConversionPowD(
static inline char *
StrictBignumConversionPowD(
- Double *dPtr, /* Original number to convert. */
Tcl_WideUInt bw, /* Integer significand. */
int b2, int b5, /* Scale factor for the significand in the
* numerator. */
@@ -3611,7 +3608,6 @@ StrictBignumConversionPowD(
char *s = retval; /* Cursor in the output buffer. */
int i; /* Index in the output buffer. */
mp_err err;
- (void)dPtr;
/*
* b = bw * 2**b2 * 5**b5
@@ -4028,7 +4024,6 @@ ShorteningBignumConversion(
static inline char *
StrictBignumConversion(
- Double *dPtr, /* Original number being converted. */
Tcl_WideUInt bw, /* Integer significand and exponent. */
int b2, /* Scale factor for the significand. */
int s2, int s5, /* Scale factors for denominator. */
@@ -4049,7 +4044,6 @@ StrictBignumConversion(
int g; /* Size of the current digit ground. */
int i, j;
mp_err err;
- (void)dPtr;
/*
* b = bw * 2**b2 * 5**b5
@@ -4469,7 +4463,7 @@ TclDoubleDigits(
* operations.
*/
- return StrictInt64Conversion(&d, bw, b2, b5, s2, s5, k,
+ return StrictInt64Conversion(bw, b2, b5, s2, s5, k,
len, ilim, ilim1, decpt, endPtr);
} else if (s5 == 0) {
/*
@@ -4486,7 +4480,7 @@ TclDoubleDigits(
b2 += delta;
s2 += delta;
}
- return StrictBignumConversionPowD(&d, bw, b2, b5,
+ return StrictBignumConversionPowD(bw, b2, b5,
s2/MP_DIGIT_BIT, k, len, ilim, ilim1, decpt, endPtr);
} else {
/*
@@ -4496,7 +4490,7 @@ TclDoubleDigits(
* fewer mp_int divisions.
*/
- return StrictBignumConversion(&d, bw, b2, s2, s5, k,
+ return StrictBignumConversion(bw, b2, s2, s5, k,
len, ilim, ilim1, decpt, endPtr);
}
}