diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-11 21:24:22 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-11 21:24:22 (GMT) |
commit | 944fd5bdcf2e247575a9dd55704b37fbc2a1e9ac (patch) | |
tree | 27fde8f62082347078d925d76441498acc190a4a /generic/tclEvent.c | |
parent | 9dee089fa2567d307056363c20eb69c53b4e1655 (diff) | |
parent | 88b202715dfbdfc05b7ce33d7f176595620496be (diff) | |
download | tcl-944fd5bdcf2e247575a9dd55704b37fbc2a1e9ac.zip tcl-944fd5bdcf2e247575a9dd55704b37fbc2a1e9ac.tar.gz tcl-944fd5bdcf2e247575a9dd55704b37fbc2a1e9ac.tar.bz2 |
merge trunk
Diffstat (limited to 'generic/tclEvent.c')
-rw-r--r-- | generic/tclEvent.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tclEvent.c b/generic/tclEvent.c index e65862c..0b585b6 100644 --- a/generic/tclEvent.c +++ b/generic/tclEvent.c @@ -1416,7 +1416,7 @@ Tcl_VwaitObjCmd( } if (Tcl_LimitExceeded(interp)) { Tcl_ResetResult(interp); - Tcl_AppendResult(interp, "limit exceeded", NULL); + Tcl_SetObjResult(interp, Tcl_NewStringObj("limit exceeded", -1)); break; } } @@ -1426,8 +1426,9 @@ Tcl_VwaitObjCmd( if (!foundEvent) { Tcl_ResetResult(interp); - Tcl_AppendResult(interp, "can't wait for variable \"", nameString, - "\": would wait forever", NULL); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "can't wait for variable \"%s\": would wait forever", + nameString)); Tcl_SetErrorCode(interp, "TCL", "EVENT", "NO_SOURCES", NULL); return TCL_ERROR; } @@ -1519,7 +1520,7 @@ Tcl_UpdateObjCmd( } if (Tcl_LimitExceeded(interp)) { Tcl_ResetResult(interp); - Tcl_AppendResult(interp, "limit exceeded", NULL); + Tcl_SetObjResult(interp, Tcl_NewStringObj("limit exceeded", -1)); return TCL_ERROR; } } |