summaryrefslogtreecommitdiffstats
path: root/generic/tclLiteral.c
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-08-19 02:59:08 (GMT)
committerhobbs <hobbs>1999-08-19 02:59:08 (GMT)
commit92e37b2bd18d8a5451699c466c1664e53403da57 (patch)
tree4ca4faf0835ac78d536738f2e313561972b933c0 /generic/tclLiteral.c
parent5e5c7d8418d3fbd50e237bc02c7c8d65618f5235 (diff)
downloadtcl-92e37b2bd18d8a5451699c466c1664e53403da57.zip
tcl-92e37b2bd18d8a5451699c466c1664e53403da57.tar.gz
tcl-92e37b2bd18d8a5451699c466c1664e53403da57.tar.bz2
1999-08-18 Jeff Hobbs <hobbs@scriptics.com>
* doc/OpenFileChnl.3: * doc/file.n: * tests/cmdAH.test: * tclIO.c: * tclCmdAH.c: added "file channels ?pattern?" tcl command, with associated Tcl_GetChannelNames and Tcl_GetChannelNamesEx public C APIs (added to tcl.decls as well), with docs and tests. * generic/tclCompile.c: add TCL_TOKEN_VARIABLE to the part types that cause differed compilation for exprs, to correct the expr double-evaluation problem for vars. Added test cases.
Diffstat (limited to 'generic/tclLiteral.c')
-rw-r--r--generic/tclLiteral.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/generic/tclLiteral.c b/generic/tclLiteral.c
index 2a7fe5b..37ef1db 100644
--- a/generic/tclLiteral.c
+++ b/generic/tclLiteral.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: tclLiteral.c,v 1.7 1999/08/05 16:56:45 hobbs Exp $
+ * RCS: @(#) $Id: tclLiteral.c,v 1.8 1999/08/19 02:59:10 hobbs Exp $
*/
#include "tclInt.h"
@@ -188,7 +188,6 @@ TclRegisterLiteral(envPtr, bytes, length, onHeap)
long n;
char buf[TCL_INTEGER_SPACE];
-
if (length < 0) {
length = (bytes? strlen(bytes) : 0);
}
@@ -303,7 +302,6 @@ TclRegisterLiteral(envPtr, bytes, length, onHeap)
if (globalTablePtr->numEntries >= globalTablePtr->rebuildSize) {
RebuildLiteralTable(globalTablePtr);
}
-
objIndex = AddLocalLiteralEntry(envPtr, globalPtr, localHash);
#ifdef TCL_COMPILE_DEBUG
@@ -752,7 +750,6 @@ TclReleaseLiteral(interp, objPtr)
* Remove the reference corresponding to the local literal table
* entry.
*/
-
Tcl_DecrRefCount(objPtr);
}