Skip to content
Tcl Source Code View Ticket
Login

View Ticket

This small patch would make it easier to sync Jacl with Tcl

Closed / Fixed218417ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:57:19
OriginalBugID: 5570 RFE
Version: 8.4a1
SubmitDate: '2000-05-17'
LastModified: '2000-05-19'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Linux
FixedDate: '2000-10-25'
ClosedDate: '2000-05-19'


Name:

mo



CVS:

Wed May 17



DesiredBehavior:

This small change would make it easier to keep versions of Jacl and

the Tcl core in sync. Java does not allow boolean operations on

integer values, so the following type of compare is needed.



Patch:

Index: generic/tclHistory.c

===================================================================

RCS file: /cvsroot/tcl/generic/tclHistory.c,v

retrieving revision 1.3

diff -u -r1.3 tclHistory.c

--- tclHistory.c        1999/04/16 00:46:47     1.3

+++ tclHistory.c        2000/05/17 21:52:54

@@ -138,7 +138,7 @@

      */

 

     result = TCL_OK;

-    if (!(flags & TCL_NO_EVAL)) {

+    if ((flags & TCL_NO_EVAL) == 0) {

        result = Tcl_EvalObjEx(interp, cmdPtr, flags & TCL_EVAL_GLOBAL);

     }

     return result;



PatchFiles:

generic/tclHistory.c





I don't see the point of this one fix, as this !(mode & BITFLAG)
construct is used 48 times in the generic code alone, so why does
this one fix help?  This is C code, not Java after all...  I'm
also surprised to see that Java couldn't handle such a basic
construct anyway. 
-- 05/19/2000 hobbs
welch Closed ticket [218417ffff]. [History diff]2000-10-26 08:21:18
dgp Open ticket [218417ffff]. [History diff]2001-04-20 02:44:59
dgp Closed ticket [218417ffff]. [History diff]2001-04-20 02:45:56
Log in (anonymous is fine) to add a comment.