diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2007-09-17 10:43:58 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2007-09-17 10:43:58 (GMT) |
| commit | bde6e43aaf3d633d46175e5a0eaa42a6c952ed6f (patch) | |
| tree | d76e0f74a90f608998352567ac610785f244c7dc /generic/tclEvent.c | |
| parent | 6eda9ce5f078233400aafc52b40b5d0d7de7fb73 (diff) | |
| download | tcl-bde6e43aaf3d633d46175e5a0eaa42a6c952ed6f.zip tcl-bde6e43aaf3d633d46175e5a0eaa42a6c952ed6f.tar.gz tcl-bde6e43aaf3d633d46175e5a0eaa42a6c952ed6f.tar.bz2 | |
Generate literal values more efficiently using TclNewLiteralStringObj macro.
Diffstat (limited to 'generic/tclEvent.c')
| -rw-r--r-- | generic/tclEvent.c | 7 |
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); } |
