the kennykb-numerics-branch
has replaces all calls to strtod()
with calls to TclStrToD().
With that done, many configuration
operations, and some work in
the callers can be purged now that
we are calling a known routine
with known properties. We can
purge a fair bit of safety code that
is in place for protection against
variations in strtod().
Attached patch does that.
For future consideration, note
that both Tcl_ScanObjCmd()
and GetLexeme() (in
tclParseExpr.c) are forced to
do some string copying to
provide TclStrToD() with
a NULL-terminated string to
parse. An alternative interface
that allowed for passing a
counted string instead could
save us some copying.
Logged In: YES
user_id=80530
in current form, this patch isn't
compatible with Tk. More work
required.