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/tclIORChan.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/tclIORChan.c')
-rw-r--r-- | generic/tclIORChan.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c index 34d9556..8926fc5 100644 --- a/generic/tclIORChan.c +++ b/generic/tclIORChan.c @@ -15,7 +15,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIORChan.c,v 1.17 2006/11/02 15:58:08 dgp Exp $ + * RCS: @(#) $Id: tclIORChan.c,v 1.18 2006/11/15 20:08:44 dgp Exp $ */ #include <tclInt.h> @@ -1652,7 +1652,7 @@ ReflectGetOption( */ Tcl_ResetResult(interp); - Tcl_SetObjResult(interp, TclObjPrintf( + Tcl_SetObjResult(interp, Tcl_ObjPrintf( "Expected list with even number of " "elements, got %d element%s instead", listc, (listc == 1 ? "" : "s"))); @@ -1909,7 +1909,7 @@ NextHandle(void) Tcl_Obj *resObj; Tcl_MutexLock(&rcCounterMutex); - resObj = TclObjPrintf("rc%lu", rcCounter); + resObj = Tcl_ObjPrintf("rc%lu", rcCounter); rcCounter++; Tcl_MutexUnlock(&rcCounterMutex); @@ -2043,13 +2043,13 @@ InvokeTclMethod( Tcl_IncrRefCount(cmd); Tcl_ResetResult(rcPtr->interp); - Tcl_SetObjResult(rcPtr->interp, TclObjPrintf( + Tcl_SetObjResult(rcPtr->interp, Tcl_ObjPrintf( "chan handler returned bad code: %d", result)); Tcl_LogCommandInfo(rcPtr->interp, cmdString, cmdString, cmdLen); Tcl_DecrRefCount(cmd); result = TCL_ERROR; } - TclAppendObjToErrorInfo(rcPtr->interp, TclObjPrintf( + Tcl_AppendObjToErrorInfo(rcPtr->interp, Tcl_ObjPrintf( "\n (chan handler subcommand \"%s\")", method)); resObj = MarshallError(rcPtr->interp); } |