summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadShl.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2012-07-03 14:52:55 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2012-07-03 14:52:55 (GMT)
commit43aa6652a75496b31a78373f609e02318fb73fb4 (patch)
tree84118ecaa9257d1f2e99228c0ae52bc98d574b97 /unix/tclLoadShl.c
parent2c9a2e44b7512cac8761344d736eab4a2ecb898a (diff)
downloadtcl-43aa6652a75496b31a78373f609e02318fb73fb4.zip
tcl-43aa6652a75496b31a78373f609e02318fb73fb4.tar.gz
tcl-43aa6652a75496b31a78373f609e02318fb73fb4.tar.bz2
Factor out a number of common patterns of use of Tcl_DStringAppend.
Diffstat (limited to 'unix/tclLoadShl.c')
-rw-r--r--unix/tclLoadShl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tclLoadShl.c b/unix/tclLoadShl.c
index 9656983..eddd80a 100644
--- a/unix/tclLoadShl.c
+++ b/unix/tclLoadShl.c
@@ -146,7 +146,7 @@ FindSymbol(
if (shl_findsym(&handle, symbol, (short) TYPE_PROCEDURE,
(void *) &proc) != 0) {
Tcl_DStringInit(&newName);
- Tcl_DStringAppend(&newName, "_", 1);
+ TclDStringAppendLiteral(&newName, "_");
Tcl_DStringAppend(&newName, symbol, -1);
if (shl_findsym(&handle, Tcl_DStringValue(&newName),
(short) TYPE_PROCEDURE, (void *) &proc) != 0) {
@@ -156,8 +156,8 @@ FindSymbol(
}
if (proc == NULL && interp != NULL) {
Tcl_ResetResult(interp);
- Tcl_AppendResult(interp, "cannot find symbol\"", symbol,
- "\": ", Tcl_PosixError(interp), NULL);
+ Tcl_AppendResult(interp, "cannot find symbol\"", symbol, "\": ",
+ Tcl_PosixError(interp), NULL);
}
return proc;
}