diff options
author | dgp <dgp@users.sourceforge.net> | 2015-05-20 13:37:21 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2015-05-20 13:37:21 (GMT) |
commit | 47c951ae7f70c42fcd43ac0a785c03b1182ba0a8 (patch) | |
tree | b3e3f73a78933014c3a4402dac60b91d60897007 /generic | |
parent | f0da151f5aa3b05bf3d3233a136b0791fcda19f7 (diff) | |
parent | 5b379ffc49f71a2c6bccd3f1a282bdbca3a1d0b7 (diff) | |
download | tcl-47c951ae7f70c42fcd43ac0a785c03b1182ba0a8.zip tcl-47c951ae7f70c42fcd43ac0a785c03b1182ba0a8.tar.gz tcl-47c951ae7f70c42fcd43ac0a785c03b1182ba0a8.tar.bz2 |
merge trunk
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCompCmdsGR.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/generic/tclCompCmdsGR.c b/generic/tclCompCmdsGR.c index b77c43c..b9c655b 100644 --- a/generic/tclCompCmdsGR.c +++ b/generic/tclCompCmdsGR.c @@ -1210,20 +1210,7 @@ TclCompileListCmd( valueTokenPtr = TokenAfter(valueTokenPtr); } if (listObj != NULL) { - int len; - const char *bytes = Tcl_GetStringFromObj(listObj, &len); - - PushLiteral(envPtr, bytes, len); - Tcl_DecrRefCount(listObj); - if (len > 0) { - /* - * Force list interpretation! - */ - - TclEmitOpcode( INST_DUP, envPtr); - TclEmitOpcode( INST_LIST_LENGTH, envPtr); - TclEmitOpcode( INST_POP, envPtr); - } + TclEmitPush(TclAddLiteralObj(envPtr, listObj, NULL), envPtr); return TCL_OK; } |