diff options
author | dgp <dgp@users.sourceforge.net> | 2007-03-28 19:03:41 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-03-28 19:03:41 (GMT) |
commit | f0dcf496f096fd97761a4392ff77c13f9eb49707 (patch) | |
tree | 5e6ea6dfc617bfe467971c624cb6c9218f9eb92c /generic/tclInt.h | |
parent | 2ef27f98192e8690ab3b297accafe52001b24014 (diff) | |
download | tcl-f0dcf496f096fd97761a4392ff77c13f9eb49707.zip tcl-f0dcf496f096fd97761a4392ff77c13f9eb49707.tar.gz tcl-f0dcf496f096fd97761a4392ff77c13f9eb49707.tar.bz2 |
* generic/tclCmdMZ.c (STR_REVERSE): Implement the actual
[string reverse] command in terms of the new TclStringObjReverse()
routine.
* generic/tclInt.h (TclStringObjReverse): New internal routine
* generic/tclStringObj.c (TclStringObjReverse): that implements the
[string reverse] operation, making use of knowledge/surgery of the
String intrep to minimize the number of allocs and copies needed to
do the job.
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index 967cec8..564c19e 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -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: tclInt.h,v 1.301 2007/02/24 18:55:43 dgp Exp $ + * RCS: @(#) $Id: tclInt.h,v 1.302 2007/03/28 19:03:42 dgp Exp $ */ #ifndef _TCLINT @@ -2407,6 +2407,7 @@ MODULE_SCOPE void TclSetBignumIntRep (Tcl_Obj *objPtr, MODULE_SCOPE void TclSetProcessGlobalValue(ProcessGlobalValue *pgvPtr, Tcl_Obj *newValue, Tcl_Encoding encoding); MODULE_SCOPE void TclSignalExitThread(Tcl_ThreadId id, int result); +MODULE_SCOPE Tcl_Obj * TclStringObjReverse(Tcl_Obj *objPtr); MODULE_SCOPE int TclSubstTokens(Tcl_Interp *interp, Tcl_Token *tokenPtr, int count, int *tokensLeftPtr, int line); MODULE_SCOPE void TclTransferResult(Tcl_Interp *sourceInterp, int result, |