OriginalBugID: 653 Bug
From: email@example.com (Mikhail Teterin)
Very minor. Fixes will not affect any existing code.
1. The internalRep union of the Tcl_Obj structure to have all/most
of the other types: float, char, and the corresponding unsigneds.
This will make creating new types a bit easier.
Workaround: create a file with your declartion for Tcl_Obj and
ifdef this declaration in tcl.h
2. The code in Tcl_GetIntFromObj() uses a clever trick to determine
if the content of longValue can be stored as int. This is done
every time at runtime. On many platforms (including Windoze, even
on Alpha), int and long are the same, making the check useless
-- it should only be compiled in, if configure determines it is
# define Tcl_GetIntFromObj Tcl_GetLongFromObj
3. In several places pointers are is casted into int, which makes it
impossible to build TCL on mips4 without -n32.
#3 is no longer pertinent with 8.2+ (any remaining such casts
should be OK). #1 can be solved by doing the casts yourself,
or using the pointers. #2 could be improved (better to just
support longs as much as possible).
-- 03/29/2000 hobbs