summaryrefslogtreecommitdiffstats
path: root/generic/tclEvent.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-09-17 10:43:58 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-09-17 10:43:58 (GMT)
commit3c73dfe8f910b0af223198e6f8196f6bc52124f6 (patch)
treed76e0f74a90f608998352567ac610785f244c7dc /generic/tclEvent.c
parent700619fa04b8a0e355f2716eb6fe90d71303b4f9 (diff)
downloadtcl-3c73dfe8f910b0af223198e6f8196f6bc52124f6.zip
tcl-3c73dfe8f910b0af223198e6f8196f6bc52124f6.tar.gz
tcl-3c73dfe8f910b0af223198e6f8196f6bc52124f6.tar.bz2
Generate literal values more efficiently using TclNewLiteralStringObj macro.
Diffstat (limited to 'generic/tclEvent.c')
-rw-r--r--generic/tclEvent.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tclEvent.c b/generic/tclEvent.c
index e9619bc..198f27c 100644
--- a/generic/tclEvent.c
+++ b/generic/tclEvent.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: tclEvent.c,v 1.76 2007/09/07 18:11:24 dgp Exp $
+ * RCS: @(#) $Id: tclEvent.c,v 1.77 2007/09/17 10:44:04 dkf Exp $
*/
#include "tclInt.h"
@@ -521,7 +521,10 @@ TclGetBgErrorHandler(
Tcl_GetAssocData(interp, "tclBgError", NULL);
if (assocPtr == NULL) {
- TclSetBgErrorHandler(interp, Tcl_NewStringObj("::tcl::Bgerror", -1));
+ Tcl_Obj *bgerrorObj;
+
+ TclNewLiteralStringObj(bgerrorObj, "::tcl::Bgerror");
+ TclSetBgErrorHandler(interp, bgerrorObj);
assocPtr = (ErrAssocData *)
Tcl_GetAssocData(interp, "tclBgError", NULL);
}