diff options
author | dkf <dkf@noemail.net> | 2012-07-29 17:55:29 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2012-07-29 17:55:29 (GMT) |
commit | 24ad994d9e222210ff92f2ed12398a7178f55b34 (patch) | |
tree | 08f1a3f320a79a97a0575dbb2738fa3fde376755 /generic/tkTextImage.c | |
parent | dfe42013d1cb413ecc4f89f227615ecbeb1a2ff2 (diff) | |
download | tk-24ad994d9e222210ff92f2ed12398a7178f55b34.zip tk-24ad994d9e222210ff92f2ed12398a7178f55b34.tar.gz tk-24ad994d9e222210ff92f2ed12398a7178f55b34.tar.bz2 |
Purged Tcl_AppendElement from all non-test code.
FossilOrigin-Name: f285bf493f65f325822ef97fec75af76204f7704
Diffstat (limited to 'generic/tkTextImage.c')
-rw-r--r-- | generic/tkTextImage.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tkTextImage.c b/generic/tkTextImage.c index 0bb8f41..1770cb6 100644 --- a/generic/tkTextImage.c +++ b/generic/tkTextImage.c @@ -277,16 +277,20 @@ TkTextImageCmd( case CMD_NAMES: { Tcl_HashSearch search; Tcl_HashEntry *hPtr; + Tcl_Obj *resultObj; if (objc != 3) { Tcl_WrongNumArgs(interp, 3, objv, NULL); return TCL_ERROR; } + resultObj = Tcl_NewObj(); for (hPtr = Tcl_FirstHashEntry(&textPtr->sharedTextPtr->imageTable, &search); hPtr != NULL; hPtr = Tcl_NextHashEntry(&search)) { - Tcl_AppendElement(interp, - Tcl_GetHashKey(&textPtr->sharedTextPtr->markTable, hPtr)); + Tcl_ListObjAppendElement(NULL, resultObj, Tcl_NewStringObj( + Tcl_GetHashKey(&textPtr->sharedTextPtr->markTable, hPtr), + -1)); } + Tcl_SetObjResult(interp, resultObj); return TCL_OK; } default: |