Artifacts Associated With Ticket 2991415
Ticket change [c86f4e9887] (rid 122103) by lvirden on 2010-04-23 14:52:04:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
SunOS 8, Sun C compiler, Tcl 8.6 cvs head The tclport.h header appears set up to define a variety of macros if not already defined in the compile environment. In theory, then, it should be included after any general or os specific headers, such as limits.h, giving the OS the opportunity to define the values appropriately for the specific platform. with the current CVS head, I see the following warnings: cc .* /vol/tclsrcsol/tcl86/tcl/generic/regcomp.c "/usr/include/limits.h", line 236: warning: macro redefined: LLONG_MIN "/usr/include/limits.h", line 237: warning: macro redefined: LLONG_MAX : as well as most, if not all, of the rest of the tcl core c modules have the same warning being produced. There are a number of other warnings output during compilation of the tcl source - but none so consistent as these. The libtommath pkg modules don't generate the warning and some of the itcl pkg modules do not...
- foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "lvirden"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "tclport.h #include'd before limits.h"
- type initialized to: "Bug"
Ticket change [168f72ead2] (rid 124734) by lvirden on 2010-04-23 21:53:59:
- icomment:
Okay, so the warning is telling me that the OS value for the define is being used. That's the good news. It would be nice if this particular pair of warnings were not being issued, IMO.
- login: "lvirden"
- mimetype: "text/plain"
- username: "lvirden"
- icomment:
Ticket change [c3edf598b3] (rid 111759) by nijtmans on 2010-04-23 22:06:22:
- assignee changed to: "nijtmans"
- icomment:
Having a look
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
Ticket change [0ce908443d] (rid 114264) by nijtmans on 2010-04-23 22:45:43:
- icomment:
I see what is going on. In tclInt.h: #ifdef NO_LIMITS_H # include "../compat/limits.h" #else # include <limits.h> #endif But files which only include tclPort.h and not tclInt.h will mis this. Those lines should be moved to tclPort.h.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [9bd2f77c63] (rid 111188) by nijtmans on 2010-04-23 22:46:57:
- icomment:
Added the include in "tclUnixPort.h". Should be fixed now.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [adb6d23c6f] (rid 101513) by nijtmans on 2010-04-27 18:56:12:
- icomment:
I'm still not sure that this bug is really fixed when NO_LIMITS_H is set. Observation: tclUnixPort.h: #ifdef NO_LIMITS_H # include "../compat/limits.h" #else # include <limits.h> #endif But in a lot of places of the core, e.g. "regguts.h", <limits.h> is included regardless of the NO_LIMITS_H setting. Let's evaluate the use of some standard C header files (separate issues in separate comments)
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [d2170d76c3] (rid 113467) by nijtmans on 2010-04-27 19:01:03:
- icomment:
"regguts.h" includes "regcustom.h", which includes "tclInt.h", which includes <stdio.h>, <stdlib.h>, <ctype.h>, <limits.h> and <string.h>. This means that inclusion of those header files in "regguts.h" serves no purpose.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [3f194dfaeb] (rid 121392) by nijtmans on 2010-04-27 19:15:29:
- icomment:
All C files which include "tommath.h", always include "tclInt.h" first. So, it does not do any harm to include "tclInt.h" in tclTomMath.h as well. This allows us to remove the <stdio.h>, <string.h>, <stdlib.h>, <ctype.h> and <limits.h> includes there.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [a79d7b4aee] (rid 98834) by nijtmans on 2010-04-27 19:29:27:
- icomment:
In tclBasic.c, tclExecute.c, tclObj.c, tclStrToD.c, tclTomMathInterface.c, tclUtil.c, compat/strtod.c and compat/strtol.c, "tclInt.h" is included already, so various system includes become unnessesary.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [f3aeb7f53c] (rid 129755) by nijtmans on 2010-04-27 21:05:57:
- icomment:
Checked in in HEAD. Tested OK on Linux, MSVC 6.0, Mingw32 and CYGWIN
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [e5a477fd68] (rid 104156) by nijtmans on 2010-04-27 21:06:12:
- resolution changed to: "Fixed"
Ticket change [28211f0297] (rid 88645) by nijtmans on 2010-04-28 22:18:03:
- closedate changed to: "2010-04-28T15:18:03"
- closer changed to: "nijtmans"
- icomment:
Larry, please confirm that everything is OK now in HEAD.
- login: "nijtmans"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "nijtmans"
Ticket change [526b20d5be] (rid 126313) by lvirden on 2010-04-28 22:27:13:
- icomment:
Okay, I downloaded the tar file from activestate's cvs ftp site. I configured and built it. The warnings that I see in the tcl core are "statement not reached" and "end-of-loop code not reached". No other warnings in the tcl core. There are warnings in the packaged itcl - but I've reported them on that site and the developer is working on them.
- login: "lvirden"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "lvirden"
- icomment:
Ticket change [ed875f5954] (rid 103901) by nijtmans on 2010-04-29 14:37:32:
- closedate changed to: "2010-04-29T07:37:32"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 Thanks, Closing.
- login: "nijtmans"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "nijtmans"
Ticket change [f457124975] (rid 129895) by nijtmans on 2010-05-25 17:38:14:
- icomment:
Backported to 8.5 branch.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [eca642f964] (rid 103743) by dkf on 2011-11-29 20:16:37:
- icomment:
The patch associated with this bug (https://core.tcl.tk/tcl/info/b7c55dd4bf) has the down side of making a publicly-installed header (tclTomMath.h) depend on a non-public header (tclInt.h). That Cannot Be Right.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [75f97bbc09] (rid 105489) by dkf on 2011-11-29 20:16:38:
- icomment:
allow_comments - 0
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "dkf"
- icomment:
Ticket change [38d80273c1] (rid 112281) by nijtmans on 2011-11-29 21:25:19:
- icomment:
Right. Proposed solution: Move the #include "tclInt.h" from tclTomMath.h to tommath.h (didn't test that yet, but will do that) Besides, under Windows, the header files tommath_class.h and tommath_superclass.h are installed, but on UNIX they don't. Good catch!
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [ce1dba2341] (rid 96005) by nijtmans on 2011-11-30 13:15:59:
- closedate changed to: "2011-11-30T06:15:59"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 Moved it to tclTomMathInt.h, which is even more logical
- login: "nijtmans"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "nijtmans"