summaryrefslogtreecommitdiffstats
path: root/generic/tclLiteral.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-05 14:52:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-05 14:52:01 (GMT)
commit2501ad1ea2dd8592c15e7f3bda1f9c298fa446a6 (patch)
tree8b3fcee2d834673ca87d7d3ccf003f43591ccfaf /generic/tclLiteral.c
parente9e3981faf0495befa4c2914d59af0bd994ac23c (diff)
downloadtcl-2501ad1ea2dd8592c15e7f3bda1f9c298fa446a6.zip
tcl-2501ad1ea2dd8592c15e7f3bda1f9c298fa446a6.tar.gz
tcl-2501ad1ea2dd8592c15e7f3bda1f9c298fa446a6.tar.bz2
some more clean-up
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 484b86b..c329ed7 100644
--- a/generic/tclLiteral.c
+++ b/generic/tclLiteral.c
@@ -249,7 +249,6 @@ TclCreateLiteral(
if (globalPtrPtr != NULL) {
*globalPtrPtr = NULL;
}
- /*fprintf(stderr, "UNSHARED LITERAL <%s>\n", bytes);*/
return objPtr;
}
@@ -1167,6 +1166,9 @@ TclVerifyLocalLiteralTable(
if (LookupLiteralEntry((Tcl_Interp *) envPtr->iPtr,
localPtr->objPtr) == NULL) {
bytes = Tcl_GetStringFromObj(localPtr->objPtr, &length);
+ Tcl_Panic("%s: local literal \"%.*s\" is not global",
+ "TclVerifyLocalLiteralTable",
+ (length>60? 60 : length), bytes);
}
if (localPtr->objPtr->bytes == NULL) {
Tcl_Panic("%s: literal has NULL string rep",