Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Consider purge of TCL_NO_MATH

Closed / Accepted1200680fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-05-12 14:02:42
Some parts of the Tcl source code
use the TCL_NO_MATH macro to
avoid calling math routines.  Apparently
this was intended to support some
level of Tcl on systems with no libm.

There are five source code files
that currently #include math.h, yet
only two use TCL_NO_MATH to
control.

If anyone's using TCL_NO_MATH,
it's very likely broken.  Keeping it
in a broken state doesn't make sense.
I'd suggest that keeping it at all doesn't
make sense, and purging this
un(der)tested configuration is a better
idea than continuing to half-support it.
dgpplain2005-05-12 21:09:00
Logged In: YES 
user_id=80530


Notably TclStrToD() now needs
math.h, so there's little of Tcl left
that would survive a "working"
TCL_NO_MATH.
dgpplain2005-05-14 00:11:19
File Added - 134374: 1200680.patch

Logged In: YES 
user_id=80530


Here's the patch...
dgpplain2005-05-14 00:12:17
Logged In: YES 
user_id=80530

...now committed.
Log in (anonymous is fine) to add a comment.

Attachments: