home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / MacGofer 0.22d / MacGofer Sources / command.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-17  |  999 b   |  42 lines  |  [TEXT/MPS ]

  1. /* --------------------------------------------------------------------------
  2.  * command.h:   Copyright (c) Mark P Jones 1991-1993.   All rights reserved.
  3.  *              See goferite.h for details and conditions of use etc...
  4.  *              Gofer version 2.28 January 1993
  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 NOCMD   16
  35.  
  36. /* Interfaces to Mac unload dialog */
  37. #if MAC
  38. #define UNLOAD  17
  39. #endif
  40.  
  41. /*-------------------------------------------------------------------------*/
  42.