Skip to content
Tcl Source Code History Of Ticket 1841548fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1841548fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1841548fffffffffffffffffffffffffffffffff

  1. Ticket change [6bd589c79e] (rid 128392) by nobody on 2007-11-30 09:17:40:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl8.4.12 is not compatible with Tcl8.3.2 in the following example, so I have to find a way to make the result equal.
      
      The example:
      set var1 "-2147483647"
      if { $var1 == 0x80000001 } {
          set res "ok";
      } else {
          set res "nok";
      }
      
      I checked the tcl8.4.12's configure file and modified the line 4637 to let the configure process always enters the "if condition",so TCL_WIDE_INT_IS_LONG is defined to 1. And then make and make install to build the tcl lib. 
      
        4637      #if test "${tcl_cv_type_64bit}" = none ; then
        4638      if test "test" = "test" ; then
        4639          cat >> confdefs.h <<\EOF
        4640  #define TCL_WIDE_INT_IS_LONG 1
        4641  EOF
        4642
        4643          echo "$ac_t""using long" 1>&6
        4644      else
        4645          cat >> confdefs.h <<EOF
        4646  #define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
        4647  EOF
      
      I tested in linux and HP unix, it runs as I wish.But in solaris 8, after I build the tcl lib successfully, I run my app and got a TCL_ERROR in the function call to Tcl_GetIntFromObj, and the line from 1767~1774 in file generic/tclObj.c is the following:
      
          if ((LLONG_MAX > UINT_MAX)
          && ((w > UINT_MAX) || (w < -(Tcl_WideInt)UINT_MAX))) {
      if (interp != NULL) {
          Tcl_SetObjResult(interp, Tcl_NewStringObj(
      "integer value too large to represent as non-long integer",
      -1));
      }
      return TCL_ERROR;
      
      The configure command I use in solaris 8 is :
      env CC=cc ./configure --enable-threads --disable-64bit --disable-64bit-vis -prefix=/home/test/tcl8412
      
      Anyone provide a solution for the above? The requirement is very simple: just to make tcl8.4.12 act as the same as tcl8.3.2 in the above tcl script.
      
      Thanks and Regards
      Jun
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "None"
    11. title initialized to:
      Compatibility issues about 32-bit integers and wide integers
      
    12. type initialized to: "RFE"
  2. Ticket change [99e798751f] (rid 110872) by dkf on 2007-12-02 20:14:32:

    1. assignee changed to: "dgp"
    2. subsystem changed to: "11. Conversions From String"
  3. Ticket change [414229b9ca] (rid 116156) by dgp on 2007-12-04 00:30:22:

    1. closedate changed to: "2007-12-03T17:30:22"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      Dup 1841548.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. username: "dgp"
  4. Ticket change [aa77fa2c94] (rid 100934) by nobody on 2007-12-04 16:34:45:

    1. icomment:
      Logged In: NO 
      
      Hi dgp,
        Why this case has been closed? What's ur comment means? I see nothing in content.
      
      Regards
      
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  5. Ticket change [24cb518249] (rid 131170) by nobody on 2007-12-04 16:51:19:

    1. icomment:
      Logged In: NO 
      
      Hi dgp
         I find ur reponse in 1841548. 
      Thanks & Regards jun
      
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  6. Ticket change [4dd1066f62] (rid 148445) by dkf on 2016-08-23 13:47:21:

    1. closedate changed to: "2457624.0745522"
    2. closer changed to: "dkf"
    3. comment changed to:
      Tcl8.4.12 is not compatible with Tcl8.3.2 in the following example, so I have to find a way to make the result equal.
      
      The example:
      set var1 "-2147483647"
      if { $var1 == 0x80000001 } {
          set res "ok";
      } else {
          set res "nok";
      }
      
      I checked the tcl8.4.12's configure file and modified the line 4637 to let the configure process always enters the "if condition",so TCL_WIDE_INT_IS_LONG is defined to 1. And then make and make install to build the tcl lib. 
      
        4637      #if test "${tcl_cv_type_64bit}" = none ; then
        4638      if test "test" = "test" ; then
        4639          cat >> confdefs.h <<\EOF
        4640  #define TCL_WIDE_INT_IS_LONG 1
        4641  EOF
        4642
        4643          echo "$ac_t""using long" 1>&6
        4644      else
        4645          cat >> confdefs.h <<EOF
        4646  #define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
        4647  EOF
      
      I tested in linux and HP unix, it runs as I wish.But in solaris 8, after I build the tcl lib successfully, I run my app and got a TCL_ERROR in the function call to Tcl_GetIntFromObj, and the line from 1767~1774 in file generic/tclObj.c is the following:
      
          if ((LLONG_MAX > UINT_MAX)
          && ((w > UINT_MAX) || (w < -(Tcl_WideInt)UINT_MAX))) {
      if (interp != NULL) {
          Tcl_SetObjResult(interp, Tcl_NewStringObj(
      "integer value too large to represent as non-long integer",
      -1));
      }
      return TCL_ERROR;
      
      The configure command I use in solaris 8 is :
      env CC=cc ./configure --enable-threads --disable-64bit --disable-64bit-vis -prefix=/home/test/tcl8412
      
      Anyone provide a solution for the above? The requirement is very simple: just to make tcl8.4.12 act as the same as tcl8.3.2 in the above tcl script.
      
      Thanks and Regards
      Jun
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. severity changed to: "Minor"
    7. subsystem changed to: "11. Conversions from String"