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/tclNamesp.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/tclNamesp.c')
-rw-r--r-- | generic/tclNamesp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index f3d7bf1..645943a 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -22,7 +22,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclNamesp.c,v 1.118 2006/11/14 16:30:31 dgp Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.119 2006/11/15 20:08:44 dgp Exp $ */ #include "tclInt.h" @@ -3458,7 +3458,7 @@ NamespaceEvalCmd( int limit = 200; int overflow = (length > limit); - TclAppendObjToErrorInfo(interp, TclObjPrintf( + Tcl_AppendObjToErrorInfo(interp, Tcl_ObjPrintf( "\n (in namespace eval \"%.*s%s\" script line %d)", (overflow ? limit : length), namespacePtr->fullName, (overflow ? "..." : ""), interp->errorLine)); @@ -3898,7 +3898,7 @@ NamespaceInscopeCmd( int limit = 200; int overflow = (length > limit); - TclAppendObjToErrorInfo(interp, TclObjPrintf( + Tcl_AppendObjToErrorInfo(interp, Tcl_ObjPrintf( "\n (in namespace inscope \"%.*s%s\" script line %d)", (overflow ? limit : length), namespacePtr->fullName, (overflow ? "..." : ""), interp->errorLine)); @@ -4628,7 +4628,7 @@ NamespaceUpvarCmd( /* * The namespace does not exist, leave an error message. */ - Tcl_SetObjResult(interp, TclFormat(NULL, + Tcl_SetObjResult(interp, Tcl_Format(NULL, "namespace \"%s\" does not exist", 1, objv+2)); return TCL_ERROR; } @@ -7019,7 +7019,7 @@ Tcl_LogCommandInfo( } overflow = (length > limit); - TclAppendObjToErrorInfo(interp, TclObjPrintf( + Tcl_AppendObjToErrorInfo(interp, Tcl_ObjPrintf( "\n %s\n\"%.*s%s\"", ((iPtr->errorInfo == NULL) ? "while executing" : "invoked from within"), (overflow ? limit : length), command, (overflow ? "..." : ""))); |