summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2008-07-22 22:30:01 (GMT)
committerandreas_kupries <akupries@shaw.ca>2008-07-22 22:30:01 (GMT)
commit39e94f9db312d56df3d26940e1d0526cca1d47dc (patch)
tree301cacce6199d8a8ef846f6c31ad7bae06d6243c /generic/tclCompile.c
parent1a2015301662b5c0554f2f7ccfef588da923588b (diff)
downloadtcl-39e94f9db312d56df3d26940e1d0526cca1d47dc.zip
tcl-39e94f9db312d56df3d26940e1d0526cca1d47dc.tar.gz
tcl-39e94f9db312d56df3d26940e1d0526cca1d47dc.tar.bz2
* generic/tclCompile.c: Made the new TclEnterCmdWordIndex
* generic/tclCompile.h: static.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index a1747ba..a49297c 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompile.c,v 1.43.2.10 2008/07/22 21:40:26 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.43.2.11 2008/07/22 22:30:05 andreas_kupries Exp $
*/
#include "tclInt.h"
@@ -308,6 +308,9 @@ static void EnterCmdWordData _ANSI_ARGS_((
ExtCmdLoc *eclPtr, int srcOffset, Tcl_Token* tokenPtr,
CONST char* cmd, int len, int numWords, int line,
int** lines));
+
+static void EnterCmdWordIndex _ANSI_ARGS_((
+ ExtCmdLoc *eclPtr, Tcl_Obj* obj, int pc, int word));
#endif
@@ -1262,10 +1265,10 @@ TclCompileScript(interp, script, numBytes, nested, envPtr)
tokenPtr[1].start, tokenPtr[1].size);
#ifdef TCL_TIP280
if (eclPtr->type == TCL_LOCATION_SOURCE) {
- TclEnterCmdWordIndex (eclPtr,
- envPtr->literalArrayPtr[objIndex].objPtr,
- envPtr->codeNext - envPtr->codeStart,
- wordIdx);
+ EnterCmdWordIndex (eclPtr,
+ envPtr->literalArrayPtr[objIndex].objPtr,
+ envPtr->codeNext - envPtr->codeStart,
+ wordIdx);
}
#endif
}
@@ -2485,8 +2488,8 @@ EnterCmdWordData(eclPtr, srcOffset, tokenPtr, cmd, len, numWords, line, wlines)
eclPtr->nuloc ++;
}
-void
-TclEnterCmdWordIndex (eclPtr, obj, pc, word)
+static void
+EnterCmdWordIndex (eclPtr, obj, pc, word)
ExtCmdLoc *eclPtr;
Tcl_Obj* obj;
int pc;