summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-08-10 05:16:38 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-08-10 05:16:38 (GMT)
commitde857ca207e4dceea586bf2dbfe497df4d9d02c8 (patch)
tree8047783a9771beff85554397a4263d1d93acde9b /generic/tclInt.h
parentfec32bb50c597bfbb21ad55211339355034f6d55 (diff)
downloadtcl-de857ca207e4dceea586bf2dbfe497df4d9d02c8.zip
tcl-de857ca207e4dceea586bf2dbfe497df4d9d02c8.tar.gz
tcl-de857ca207e4dceea586bf2dbfe497df4d9d02c8.tar.bz2
Arrange for both execution traces and [info frame] to get their pre-subst
source strings from a common routine, with care taken to reduce copying by that routine.
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 99f1305..161d166 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -1208,6 +1208,7 @@ typedef struct CmdFrame {
const char *pc; /* ... and instruction pointer. */
} tebc;
} data;
+ Tcl_Obj *cmdObj;
const char *cmd; /* The executed command, if possible... */
int len; /* ... and its length. */
int numLevels; /* Value of interp's numLevels when the frame
@@ -2907,7 +2908,11 @@ MODULE_SCOPE int TclGetOpenModeEx(Tcl_Interp *interp,
const char *modeString, int *seekFlagPtr,
int *binaryPtr);
MODULE_SCOPE Tcl_Obj * TclGetProcessGlobalValue(ProcessGlobalValue *pgvPtr);
+MODULE_SCOPE Tcl_Obj * TclGetSourceFromFrame(CmdFrame *cfPtr, int objc,
+ Tcl_Obj *const objv[]);
MODULE_SCOPE const char *TclGetSrcInfoForCmd(Interp *iPtr, int *lenPtr);
+MODULE_SCOPE const char *TclGetSrcInfoForCmdFrame(CmdFrame *cfPtr,
+ int *lenPtr);
MODULE_SCOPE int TclGlob(Tcl_Interp *interp, char *pattern,
Tcl_Obj *unquotedPrefix, int globFlags,
Tcl_GlobTypeData *types);