home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / dobbs / v17n02 / turtle.exe / XCI.H < prev   
Encoding:
C/C++ Source or Header  |  1991-08-03  |  1.3 KB  |  35 lines

  1. /*****************************************************************
  2.  *                                                               *
  3.  * XCI.H  Header for XCI command interpreter                     *
  4.  *                                                               *
  5.  * Al Williams                                                   *
  6.  *                                                               *
  7.  *****************************************************************/
  8. #ifndef XCI_HEADER
  9. #define XCI_HEADER
  10.  
  11. /* type for command functions */
  12. #define XCICMD void far
  13.  
  14. /* Pointer to command function */
  15. typedef void (far * XCICMDP)(int cmd,char far *line,void *udata);
  16.  
  17. /* Various hooks */
  18. extern char *xci_prompt;   /* string to prompt with */
  19. extern FILE *xci_infile;   /* input file */
  20. extern int xci_exitflag;   /* set to exit XCI */
  21. extern int xci_defaultbrk; /* default break handling */
  22. void (*xcif_prompt)();     /* function to prompt with */
  23. void (*xcif_prehelp)();    /* function to call before help */
  24. void (*xcif_posthelp)();   /* function to call after help */
  25. char *(*xcif_input)();     /* function to get input */
  26.  
  27. /* main function prototype */
  28. int command(char *dll,char *startfile,int caseflag,
  29.             void far *ustruc,XCICMDP userfunc);
  30.  
  31. /* add command (not from DLL) */
  32. int addcmd(char *cmdnam,XCICMDP fn);
  33.  
  34. #endif
  35.