summaryrefslogtreecommitdiffstats
path: root/generic/tclLiteral.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-04-21 22:42:03 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-04-21 22:42:03 (GMT)
commit918dbfe6102b60da44efe1c8344461ad3bddb4b0 (patch)
tree8ba1076ef3186cf6a0dde41d04d6f9d14cb6cb57 /generic/tclLiteral.c
parent094335002cae81ecfcede60611fca53b6c864104 (diff)
downloadtcl-918dbfe6102b60da44efe1c8344461ad3bddb4b0.zip
tcl-918dbfe6102b60da44efe1c8344461ad3bddb4b0.tar.gz
tcl-918dbfe6102b60da44efe1c8344461ad3bddb4b0.tar.bz2
* generic/tclLiteral.c: Disabled the code that forces some literals
into the "int" Tcl_ObjType during registration. We can re-enable it if this change causes trouble, but it seems more sensible to let Tcl's "on-demand" shimmering rule, and not try to pre-guess things.
Diffstat (limited to 'generic/tclLiteral.c')
-rw-r--r--generic/tclLiteral.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclLiteral.c b/generic/tclLiteral.c
index 3f9f079..c17a7e4 100644
--- a/generic/tclLiteral.c
+++ b/generic/tclLiteral.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclLiteral.c,v 1.21 2004/12/24 18:07:01 msofer Exp $
+ * RCS: @(#) $Id: tclLiteral.c,v 1.22 2005/04/21 22:42:04 dgp Exp $
*/
#include "tclInt.h"
@@ -366,6 +366,7 @@ TclRegisterLiteral(envPtr, bytes, length, flags)
TclInitStringRep(objPtr, bytes, length);
}
+#if 0
if (TclLooksLikeInt(bytes, length)) {
/*
* From here we use the objPtr, because it is NULL terminated
@@ -378,6 +379,7 @@ TclRegisterLiteral(envPtr, bytes, length, flags)
}
}
}
+#endif
#ifdef TCL_COMPILE_DEBUG
if (TclLookupLiteralEntry((Tcl_Interp *) iPtr, objPtr) != NULL) {