Skip to content
Tcl Source Code View Ticket
Login

View Ticket

purge strtod() support

Closed / Out of Date1178806fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 8 years ago
Descriptionplain2005-04-07 19:45:42
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.
dgpplain2005-04-08 02:45:43
File Added - 128970: purge.patch
dgpplain2005-04-08 03:53:09
Logged In: YES 
user_id=80530


in current form, this patch isn't
compatible with Tk.  More work
required.
dgpplain2019-06-03 15:57:32
Overtaken by events.

https://core.tcl-lang.org/tcl/info/8bdef976bf124dce
Log in (anonymous is fine) to add a comment.

Attachments: