Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-05-14
00:12 • Closed ticket [1200680fff]: Consider purge of TCL_NO_MATH plus 8 other chang... artifact: 99e48560e9 user: dgp
00:11 • Add attachment 1200680.patch to ticket [1200680fff] artifact: c79c4a80a6 user: dgp
00:11 • Ticket [1200680fff] Consider purge of TCL_NO_MATH status still Open with 4 o... artifact: 4d12e72458 user: dgp
2005-05-12
21:09 • Ticket [1200680fff]: 4 changes artifact: 6ca0b107a5 user: dgp
14:02 • New ticket [1200680fff]. artifact: a6f892b0d3 user: dgp

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: