home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hugs101.zip / hugs101sc.zip / hugsdist / src / command.h < prev    next >
C/C++ Source or Header  |  1995-03-02  |  964b  |  38 lines

  1. /* --------------------------------------------------------------------------
  2.  * command.h:   Copyright (c) Mark P Jones 1991-1994.   All rights reserved.
  3.  *              See NOTICE for details and conditions of use etc...
  4.  *              Hugs version 1.0 August 1994, derived from Gofer 2.30a
  5.  *
  6.  * Interpreter command structure
  7.  * ------------------------------------------------------------------------*/
  8.  
  9. typedef Int Command;
  10.  
  11. struct cmd {
  12.     String cmdString;
  13.     Command cmdCode;
  14. };
  15.  
  16. extern Command readCommand Args((struct cmd *, Char, Char));
  17.  
  18. #define EDIT    0
  19. #define FIND    1
  20. #define LOAD    2
  21. #define ALSO    3
  22. #define PROJECT 4
  23. #define RELOAD  5
  24. #define EVAL    6
  25. #define TYPEOF  7
  26. #define HELP    8
  27. #define NAMES   9
  28. #define BADCMD  10
  29. #define SET     11
  30. #define QUIT    12
  31. #define SYSTEM  13
  32. #define CHGDIR  14
  33. #define INFO    15
  34. #define COLLECT 16
  35. #define NOCMD   17
  36.  
  37. /*-------------------------------------------------------------------------*/
  38.