diff options
author | dgp <dgp@users.sourceforge.net> | 2006-11-02 15:58:03 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-11-02 15:58:03 (GMT) |
commit | c35468e1cedfb102415aff618d0be65dd4c1d819 (patch) | |
tree | a0d484e9ff364f3de46b9d807276106b6236242c /generic/tclCmdAH.c | |
parent | 8b2128ad1251acebbb373eaaa545f36d5a546c0a (diff) | |
download | tcl-c35468e1cedfb102415aff618d0be65dd4c1d819.zip tcl-c35468e1cedfb102415aff618d0be65dd4c1d819.tar.gz tcl-c35468e1cedfb102415aff618d0be65dd4c1d819.tar.bz2 |
* generic/tclBasic.c: Further revised TclAppendPrintToObj() and
* generic/tclCkalloc.c: TclObjPrintf() routines to panic when unable
* generic/tclCmdAH.c: to complete their formatting operations, rather
* generic/tclCmdIL.c: than report an error message. This means an
* generic/tclCmdMZ.c: interp argument for error message recording is
* generic/tclDictObj.c: no longer needed, further simplifying the
* generic/tclExecute.c: interface for callers.
* generic/tclIORChan.c:
* generic/tclIOUtil.c:
* generic/tclInt.h:
* generic/tclMain.c:
* generic/tclNamesp.c:
* generic/tclParseExpr.c:
* generic/tclPkg.c:
* generic/tclProc.c:
* generic/tclStringObj.c:
* generic/tclTimer.c:
* generic/tclUtil.c:
* unix/tclUnixFCmd.c:
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r-- | generic/tclCmdAH.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index a00f32e..1ed975f 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdAH.c,v 1.77 2006/11/02 14:04:41 dkf Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.78 2006/11/02 15:58:04 dgp Exp $ */ #include "tclInt.h" @@ -188,7 +188,7 @@ Tcl_CaseObjCmd(dummy, interp, objc, objv) armPtr = caseObjv[body - 1]; result = Tcl_EvalObjEx(interp, caseObjv[body], 0); if (result == TCL_ERROR) { - TclAppendObjToErrorInfo(interp, TclObjPrintf(NULL, + TclAppendObjToErrorInfo(interp, TclObjPrintf( "\n (\"%.50s\" arm line %d)", TclGetString(armPtr), interp->errorLine)); } @@ -251,7 +251,7 @@ Tcl_CatchObjCmd(dummy, interp, objc, objv) */ if (Tcl_LimitExceeded(interp)) { - TclAppendObjToErrorInfo(interp, TclObjPrintf(NULL, + TclAppendObjToErrorInfo(interp, TclObjPrintf( "\n (\"catch\" body line %d)", interp->errorLine)); return TCL_ERROR; } @@ -660,7 +660,7 @@ Tcl_EvalObjCmd(dummy, interp, objc, objv) result = Tcl_EvalObjEx(interp, objPtr, TCL_EVAL_DIRECT); } if (result == TCL_ERROR) { - TclAppendObjToErrorInfo(interp, TclObjPrintf(NULL, + TclAppendObjToErrorInfo(interp, TclObjPrintf( "\n (\"eval\" body line %d)", interp->errorLine)); } return result; @@ -1611,7 +1611,7 @@ Tcl_ForObjCmd(dummy, interp, objc, objv) result = Tcl_EvalObjEx(interp, objv[4], 0); if ((result != TCL_OK) && (result != TCL_CONTINUE)) { if (result == TCL_ERROR) { - TclAppendObjToErrorInfo(interp, TclObjPrintf(NULL, + TclAppendObjToErrorInfo(interp, TclObjPrintf( "\n (\"for\" body line %d)", interp->errorLine)); } break; @@ -1821,9 +1821,8 @@ Tcl_ForeachObjCmd(dummy, interp, objc, objv) result = TCL_OK; break; } else if (result == TCL_ERROR) { - TclAppendObjToErrorInfo(interp, TclObjPrintf(NULL, - "\n (\"foreach\" body line %d)", - interp->errorLine)); + TclAppendObjToErrorInfo(interp, TclObjPrintf( + "\n (\"foreach\" body line %d)", interp->errorLine)); break; } else { break; |