missing wideInt Tcl_ObjType
Closed / Fixed713562ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-04-01 22:11:38
When I build and use Tcl on a platform where TCL_WIDE_INT_IS_LONG gets #define'd, like my Linux/Alpha machine, the consequence is that there is no Tcl_ObjType named "wideInt" registered in that Tcl library. This means that an extension writer cannot reliably Tcl_ConvertToType either to or from the "wideInt" type across platforms. Instead extensions are required to do a rather complex conditionalizing on TCL_WIDE_INT_IS_LONG. Would be much nicer if the Tcl library always defined the "wideInt" Tcl_ObjType, but just made sure it did the right thing on different platforms. The most recent example is the TIP 111 implementation. I cannot test this on my Linux/Alpha box, because parts of it just assume that comparisons against &tclWideIntType are possible. That's the internal version of the exported description above.
dgpplain2003-04-02 07:33:00
File Added - 46530: 713562.patch Logged In: YES user_id=80530 work in progress towards a proposed fix.
dgpplain2003-04-02 14:56:34
File Deleted - 46530: File Added - 46559: 713562.patch Logged In: YES user_id=80530 updated patch. please review.
dgpplain2003-04-05 15:24:19
Logged In: YES user_id=80530 Raising priority. This is no longer a theoretical problem for extension authors. Now the HEAD will not build.
dkf Closed ticket [713562ffff].
[History diff]2003-04-07 17:26:05
dgpplain2003-04-07 23:23:23
Logged In: YES
user_id=80530
re-opened. There's a problem with the
committed fix.
Although the "wideInt" type is now recognized,
on TCL_WIDE_INT_IS_LONG platforms, it
cannot be converted to.
Tcl_ConvertToType(interp, objPtr, Tcl_GetObjType("wideInt"))
wil convert objPtr to type "int" instead of the
requested type "wideInt".
The patch already attached here does not
suffer from that defect.
dgpplain2003-04-08 00:41:54
File Added - 47001: 713562.patch Logged In: YES user_id=80530 here's an updated patch made against the current HEAD. Dropped priority since the HEAD compiles now.
dgpplain2003-04-08 00:41:55
File Deleted - 46559:
dgpplain2003-04-17 06:33:34
Logged In: YES user_id=80530 Fixed in 8.4 branch and HEAD.
Log in (anonymous is fine) to add a comment.
Attachments:
- 713562.patch [download] added by dgp on 2003-04-08 00:41:54. [details]