home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / include / dbg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-12  |  1.4 KB  |  47 lines

  1. /* Dbg.h - Tcl Debugger include file
  2.  
  3. Written by: Don Libes, NIST, 3/23/93
  4.  
  5. Design and implementation of this program was paid for by U.S. tax
  6. dollars.  Therefore it is public domain.  However, the author and NIST
  7. would appreciate credit if this program or parts of it are used.
  8.  
  9. */
  10.  
  11. /* _DEBUG or _DBG is just too likely, use something more unique */
  12. #ifndef _NIST_DBG
  13. #define _NIST_DBG
  14.  
  15. #include "tcl.h"
  16.  
  17. typedef int (Dbg_InterProc) _ANSI_ARGS_((Tcl_Interp *interp));
  18. typedef int (Dbg_IgnoreFuncsProc) _ANSI_ARGS_((
  19.             Tcl_Interp *interp,
  20.             char *funcname));
  21. typedef void (Dbg_OutputProc) _ANSI_ARGS_((
  22.             Tcl_Interp *interp,
  23.             char *output));
  24.  
  25. EXTERN char *Dbg_VarName;
  26. EXTERN char *Dbg_DefaultCmdName;
  27.  
  28. /* trivial interface, creates a "debug" command in your interp */
  29. EXTERN int Dbg_Init _ANSI_ARGS_((Tcl_Interp *));
  30.  
  31. EXTERN void Dbg_On _ANSI_ARGS_((Tcl_Interp *interp,
  32.                     int immediate));
  33. EXTERN void Dbg_Off _ANSI_ARGS_((Tcl_Interp *interp));
  34. EXTERN char **Dbg_ArgcArgv _ANSI_ARGS_((int argc,char *argv[],
  35.                     int copy));
  36. EXTERN int Dbg_Active _ANSI_ARGS_((Tcl_Interp *interp));
  37. EXTERN Dbg_InterProc *Dbg_Interactor _ANSI_ARGS_((
  38.                     Tcl_Interp *interp,
  39.                     Dbg_InterProc *interactor));
  40. EXTERN Dbg_IgnoreFuncsProc *Dbg_IgnoreFuncs _ANSI_ARGS_((
  41.                     Tcl_Interp *interp,
  42.                     Dbg_IgnoreFuncsProc *));
  43. EXTERN Dbg_OutputProc *Dbg_Output _ANSI_ARGS_((
  44.                     Tcl_Interp *interp,
  45.                     Dbg_OutputProc *));
  46. #endif /* _NIST_DBG */
  47.