アットウィキロゴ

ActiveCommandTrace

概要


メンバー

  • struct Command *cmdPtr; トレースされるコマンドへのポインタ
  • struct ActiveCommandTrace *nextPtr; 
  • CommandTrace *nextTracePtr; この手続きが終わった後にチェックする次のトレースへのポインタ
  • int reverseScan; トレースを逆順にするときに、trueにセットされる。

ソース

 /*
  * When a command trace is active (i.e. its associated procedure is executing)
  * one of the following structures is linked into a list associated with the
  * command's interpreter. The information in the structure is needed in order
  * for Tcl to behave reasonably if traces are deleted while traces are active.
  */
 
 typedef struct ActiveCommandTrace {
     struct [[Command]] *cmdPtr;	/* Command that's being traced. */
     struct ActiveCommandTrace *nextPtr;
 				/* Next in list of all active command traces
 				 * for the interpreter, or NULL if no more. */
     [[CommandTrace]] *nextTracePtr;	/* Next trace to check after current trace
 				 * procedure returns; if this trace gets
 				 * deleted, must update pointer to avoid using
 				 * free'd memory. */
     int reverseScan;		/* Boolean set true when traces are scanning
 				 * in reverse order. */
 } ActiveCommandTrace;
最終更新:2011年11月07日 19:46