Tcl Source Code

View Ticket
Login
Ticket UUID: 1178806
Title: purge strtod() support
Type: Patch Version: None
Submitter: dgp Created on: 2005-04-07 19:45:42
Subsystem: None Assigned To: dgp
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2019-06-03 15:57:32
Resolution: Out of Date Closed By: dgp
    Closed on: 2019-06-03 15:57:32
Description:
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.
User Comments: dgp added on 2019-06-03 15:57:32:
Overtaken by events.

https://core.tcl-lang.org/tcl/info/8bdef976bf124dce

dgp added on 2005-04-08 03:53:09:
Logged In: YES 
user_id=80530


in current form, this patch isn't
compatible with Tk.  More work
required.

dgp added on 2005-04-08 02:45:43:

File Added - 128970: purge.patch

Attachments: