diff options
author | dkf <dkf@noemail.net> | 2004-05-13 12:59:04 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2004-05-13 12:59:04 (GMT) |
commit | 2ef0c1372089fef99e82f74a012a2f862920a350 (patch) | |
tree | 6e35a78f3d83e2cb85b57d1401aaf89989c6ff3d /generic/tclHistory.c | |
parent | 41201fa20c4e8c799855fafc02f0e0fb5cbe8fd0 (diff) | |
download | tcl-2ef0c1372089fef99e82f74a012a2f862920a350.zip tcl-2ef0c1372089fef99e82f74a012a2f862920a350.tar.gz tcl-2ef0c1372089fef99e82f74a012a2f862920a350.tar.bz2 |
TIP#143 implementation; still needs docs and more tests...
FossilOrigin-Name: 9736fa23ede52d46484e814a9d86a49349eed6b0
Diffstat (limited to 'generic/tclHistory.c')
-rw-r--r-- | generic/tclHistory.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclHistory.c b/generic/tclHistory.c index 90ef855..4598a6a 100644 --- a/generic/tclHistory.c +++ b/generic/tclHistory.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclHistory.c,v 1.5 2004/04/06 22:25:51 dgp Exp $ + * RCS: @(#) $Id: tclHistory.c,v 1.6 2004/05/13 12:59:22 dkf Exp $ */ #include "tclInt.h" @@ -133,6 +133,14 @@ Tcl_RecordAndEvalObj(interp, cmdPtr, flags) Tcl_DecrRefCount(objPtr); /* + * One possible failure mode above: exceeding a resource limit + */ + + if (Tcl_LimitExceeded(interp)) { + return TCL_ERROR; + } + + /* * Execute the command. */ |