diff options
| author | dgp@users.sourceforge.net <dgp> | 2005-04-21 22:42:03 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2005-04-21 22:42:03 (GMT) |
| commit | d431d25e4a786f7d69623815b080b8d6f112ced1 (patch) | |
| tree | 8ba1076ef3186cf6a0dde41d04d6f9d14cb6cb57 | |
| parent | c5aaf81fb8700b4357ed04094169044b2f801685 (diff) | |
| download | tcl-d431d25e4a786f7d69623815b080b8d6f112ced1.zip tcl-d431d25e4a786f7d69623815b080b8d6f112ced1.tar.gz tcl-d431d25e4a786f7d69623815b080b8d6f112ced1.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.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | generic/tclLiteral.c | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -31,6 +31,11 @@ * tests/obj.test: Corrected bad tests that actually expected values like "47" and "0xac" to be accepted as booleans. + * 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. + 2005-04-20 Don Porter <dgp@users.sourceforge.net> * generic/tclGet.c (Tcl_GetInt): Corrected error that did not 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) { |
