diff options
author | dgp <dgp@users.sourceforge.net> | 2006-11-15 20:08:41 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-11-15 20:08:41 (GMT) |
commit | f5e6dc061f04d3923e3e9098ee796d212209eff4 (patch) | |
tree | 752af501223a220be61c59c71f29857e4269dcd2 /generic/tclExecute.c | |
parent | 957788b87ab7599dee6ac939d75fe8ae71ab91cf (diff) | |
download | tcl-f5e6dc061f04d3923e3e9098ee796d212209eff4.zip tcl-f5e6dc061f04d3923e3e9098ee796d212209eff4.tar.gz tcl-f5e6dc061f04d3923e3e9098ee796d212209eff4.tar.bz2 |
TIP#270 IMPLEMENTATION
* generic/tcl.decls: New public routines Tcl_ObjPrintf,
* generic/tclStringObj.c: Tcl_AppendObjToErrorInfo, Tcl_Format,
* generic/tclInt.h: Tcl_AppendLimitedToObj,
Tcl_AppendFormatToObj and Tcl_AppendPrintfToObj. Former internal
versions removed.
* generic/tclDecls.h: make genstubs
* generic/tclStubInit.c:
* generic/tclBasic.c: Updated callers.
* generic/tclCkalloc.c:
* generic/tclCmdAH.c:
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclCompExpr.c:
* generic/tclCompile.c:
* generic/tclDictObj.c:
* generic/tclExecute.c:
* generic/tclIORChan.c:
* generic/tclIOUtil.c:
* generic/tclMain.c:
* generic/tclNamesp.c:
* generic/tclObj.c:
* generic/tclPkg.c:
* generic/tclProc.c:
* generic/tclStrToD.c:
* generic/tclTimer.c:
* generic/tclUtil.c:
* unix/tclUnixFCmd.c:
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 9809b94..0e8c0d6 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.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: tclExecute.c,v 1.250 2006/11/13 08:23:07 das Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.251 2006/11/15 20:08:44 dgp Exp $ */ #include "tclInt.h" @@ -6308,7 +6308,7 @@ ValidatePcAndStackTop( if (cmd != NULL) { Tcl_Obj *message = Tcl_NewStringObj("\n executing ", -1); Tcl_IncrRefCount(message); - TclAppendLimitedToObj(message, cmd, numChars, 100, NULL); + Tcl_AppendLimitedToObj(message, cmd, numChars, 100, NULL); fprintf(stderr,"%s\n", Tcl_GetString(message)); Tcl_DecrRefCount(message); } else { @@ -6374,7 +6374,7 @@ IllegalExprOperandType( description = "(big) integer"; } - Tcl_SetObjResult(interp, TclObjPrintf( + Tcl_SetObjResult(interp, Tcl_ObjPrintf( "can't use %s as operand of \"%s\"", description, operator)); } @@ -6638,7 +6638,7 @@ TclExprFloatError( Tcl_SetErrorCode(interp, "ARITH", "OVERFLOW", s, (char *) NULL); } } else { - Tcl_Obj *objPtr = TclObjPrintf( + Tcl_Obj *objPtr = Tcl_ObjPrintf( "unknown floating-point error, errno = %d", errno); Tcl_SetErrorCode(interp, "ARITH", "UNKNOWN", Tcl_GetString(objPtr), (char *) NULL); |