tclTrace.c File Reference

#include "tclInt.h"

Go to the source code of this file.

Data Structures

struct  TraceVarInfo
struct  CombinedTraceVarInfo
struct  TraceCommandInfo
struct  StringTraceData

Defines

#define TCL_TRACE_ENTER_DURING_EXEC   4
#define TCL_TRACE_LEAVE_DURING_EXEC   8
#define TCL_TRACE_ANY_EXEC   15
#define TCL_TRACE_EXEC_IN_PROGRESS   0x10
#define TCL_TRACE_EXEC_DIRECT   0x20

Typedefs

typedef int( Tcl_TraceTypeObjCmd )(Tcl_Interp *interp, int optionIndex, int objc, Tcl_Obj *const objv[])

Functions

int Tcl_TraceObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
ClientData Tcl_CommandTraceInfo (Tcl_Interp *interp, const char *cmdName, int flags, Tcl_CommandTraceProc *proc, ClientData prevClientData)
int Tcl_TraceCommand (Tcl_Interp *interp, const char *cmdName, int flags, Tcl_CommandTraceProc *proc, ClientData clientData)
void Tcl_UntraceCommand (Tcl_Interp *interp, const char *cmdName, int flags, Tcl_CommandTraceProc *proc, ClientData clientData)
int TclCheckExecutionTraces (Tcl_Interp *interp, const char *command, int numChars, Command *cmdPtr, int code, int traceFlags, int objc, Tcl_Obj *const objv[])
int TclCheckInterpTraces (Tcl_Interp *interp, const char *command, int numChars, Command *cmdPtr, int code, int traceFlags, int objc, Tcl_Obj *const objv[])
Tcl_Trace Tcl_CreateObjTrace (Tcl_Interp *interp, int level, int flags, Tcl_CmdObjTraceProc *proc, ClientData clientData, Tcl_CmdObjTraceDeleteProc *delProc)
Tcl_Trace Tcl_CreateTrace (Tcl_Interp *interp, int level, Tcl_CmdTraceProc *proc, ClientData clientData)
void Tcl_DeleteTrace (Tcl_Interp *interp, Tcl_Trace trace)
VarTclVarTraceExists (Tcl_Interp *interp, const char *varName)
int TclObjCallVarTraces (Interp *iPtr, register Var *arrayPtr, Var *varPtr, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr, int flags, int leaveErrMsg, int index)
int TclCallVarTraces (Interp *iPtr, register Var *arrayPtr, Var *varPtr, const char *part1, const char *part2, int flags, int leaveErrMsg)
void Tcl_UntraceVar (Tcl_Interp *interp, const char *varName, int flags, Tcl_VarTraceProc *proc, ClientData clientData)
void Tcl_UntraceVar2 (Tcl_Interp *interp, const char *part1, const char *part2, int flags, Tcl_VarTraceProc *proc, ClientData clientData)
ClientData Tcl_VarTraceInfo (Tcl_Interp *interp, const char *varName, int flags, Tcl_VarTraceProc *proc, ClientData prevClientData)
ClientData Tcl_VarTraceInfo2 (Tcl_Interp *interp, const char *part1, const char *part2, int flags, Tcl_VarTraceProc *proc, ClientData prevClientData)
int Tcl_TraceVar (Tcl_Interp *interp, const char *varName, int flags, Tcl_VarTraceProc *proc, ClientData clientData)
int Tcl_TraceVar2 (Tcl_Interp *interp, const char *part1, const char *part2, int flags, Tcl_VarTraceProc *proc, ClientData clientData)


Define Documentation

#define TCL_TRACE_ANY_EXEC   15

Definition at line 90 of file tclTrace.c.

Referenced by Tcl_TraceCommand(), and Tcl_UntraceCommand().

#define TCL_TRACE_ENTER_DURING_EXEC   4

Definition at line 88 of file tclTrace.c.

#define TCL_TRACE_EXEC_DIRECT   0x20

Definition at line 92 of file tclTrace.c.

Referenced by TclCheckExecutionTraces().

#define TCL_TRACE_EXEC_IN_PROGRESS   0x10

Definition at line 91 of file tclTrace.c.

Referenced by TclCheckInterpTraces().

#define TCL_TRACE_LEAVE_DURING_EXEC   8

Definition at line 89 of file tclTrace.c.


Typedef Documentation

typedef int( Tcl_TraceTypeObjCmd)(Tcl_Interp *interp, int optionIndex, int objc, Tcl_Obj *const objv[])

Definition at line 98 of file tclTrace.c.


Function Documentation

ClientData Tcl_CommandTraceInfo ( Tcl_Interp interp,
const char *  cmdName,
int  flags,
Tcl_CommandTraceProc *  proc,
ClientData  prevClientData 
)

Tcl_Trace Tcl_CreateObjTrace ( Tcl_Interp interp,
int  level,
int  flags,
Tcl_CmdObjTraceProc *  proc,
ClientData  clientData,
Tcl_CmdObjTraceDeleteProc *  delProc 
)

Tcl_Trace Tcl_CreateTrace ( Tcl_Interp interp,
int  level,
Tcl_CmdTraceProc *  proc,
ClientData  clientData 
)

int Tcl_TraceCommand ( Tcl_Interp interp,
const char *  cmdName,
int  flags,
Tcl_CommandTraceProc *  proc,
ClientData  clientData 
)

int Tcl_TraceVar ( Tcl_Interp interp,
const char *  varName,
int  flags,
Tcl_VarTraceProc *  proc,
ClientData  clientData 
)

Definition at line 3064 of file tclTrace.c.

References Tcl_TraceVar2().

int Tcl_TraceVar2 ( Tcl_Interp interp,
const char *  part1,
const char *  part2,
int  flags,
Tcl_VarTraceProc *  proc,
ClientData  clientData 
)

Definition at line 3102 of file tclTrace.c.

References ckalloc, ckfree, VarTrace::clientData, VarTrace::flags, TCL_OK, and VarTrace::traceProc.

void Tcl_UntraceVar ( Tcl_Interp interp,
const char *  varName,
int  flags,
Tcl_VarTraceProc *  proc,
ClientData  clientData 
)

Definition at line 2796 of file tclTrace.c.

References Tcl_UntraceVar2().

void Tcl_UntraceVar2 ( Tcl_Interp interp,
const char *  part1,
const char *  part2,
int  flags,
Tcl_VarTraceProc *  proc,
ClientData  clientData 
)

ClientData Tcl_VarTraceInfo ( Tcl_Interp interp,
const char *  varName,
int  flags,
Tcl_VarTraceProc *  proc,
ClientData  prevClientData 
)

Definition at line 2954 of file tclTrace.c.

References Tcl_VarTraceInfo2().

ClientData Tcl_VarTraceInfo2 ( Tcl_Interp interp,
const char *  part1,
const char *  part2,
int  flags,
Tcl_VarTraceProc *  proc,
ClientData  prevClientData 
)

int TclObjCallVarTraces ( Interp iPtr,
register Var arrayPtr,
Var varPtr,
Tcl_Obj part1Ptr,
Tcl_Obj part2Ptr,
int  flags,
int  leaveErrMsg,
int  index 
)

Definition at line 2457 of file tclTrace.c.

References localName, TclCallVarTraces(), TclGetString, and Interp::varFramePtr.

Var* TclVarTraceExists ( Tcl_Interp interp,
const char *  varName 
)



Generated on Wed Mar 12 12:18:34 2008 by  doxygen 1.5.1