diff options
author | dgp <dgp@users.sourceforge.net> | 2007-09-09 17:26:34 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-09-09 17:26:34 (GMT) |
commit | f37ed6d9e8a193b1c47410bc8ac13f48399af268 (patch) | |
tree | e80b3b44b808bf0e3a3dd9ab66a65bef4067501c /generic/tclExecute.c | |
parent | 8917ba0148b9ee83eb704cd8437e730cef6c2b30 (diff) | |
download | tcl-f37ed6d9e8a193b1c47410bc8ac13f48399af268.zip tcl-f37ed6d9e8a193b1c47410bc8ac13f48399af268.tar.gz tcl-f37ed6d9e8a193b1c47410bc8ac13f48399af268.tar.bz2 |
merge updates from HEAD
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 7dcc31f..c4e1449 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.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: tclExecute.c,v 1.285.2.14 2007/09/09 04:14:28 dgp Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.285.2.15 2007/09/09 17:26:38 dgp Exp $ */ #include "tclInt.h" @@ -1883,6 +1883,22 @@ TclExecuteByteCode( NEXT_INST_F(5, 0, 1); } + case INST_REVERSE: { + int opnd; + Tcl_Obj **a, **b; + + opnd = TclGetUInt4AtPtr(pc+1); + a = tosPtr-(opnd-1); + b = tosPtr; + while (a<b) { + Tcl_Obj *temp = *a; + *a = *b; + *b = temp; + a++; b--; + } + NEXT_INST_F(5, 0, 0); + } + case INST_CONCAT1: { int opnd, length, appendLen = 0; char *bytes, *p; |