Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

  1. /* $Header: /nw/tony/src/stevie/src/RCS/ops.h,v 1.2 89/07/19 08:08:21 tony Exp $
  2. *
  3. * Macros and declarations for the operator code in ops.c
  4. */
  5. /*
  6. * Operators
  7. */
  8. #define NOP 0 /* no pending operation */
  9. #define DELETE 1
  10. #define YANK 2
  11. #define CHANGE 3
  12. #define LSHIFT 4
  13. #define RSHIFT 5
  14. #define FILTER 6
  15. #define TILDE 7
  16. #define LOWERCASE 8
  17. #define UPPERCASE 9
  18. extern int operator; /* current pending operator */
  19. /*
  20. * When a cursor motion command is made, it is marked as being a character
  21. * or line oriented motion. Then, if an operator is in effect, the operation
  22. * becomes character or line oriented accordingly.
  23. *
  24. * Character motions are marked as being inclusive or not. Most char.
  25. * motions are inclusive, but some (e.g. 'w') are not.
  26. */
  27. /*
  28. * Cursor motion types
  29. */
  30. #define MBAD (-1) /* 'bad' motion type marks unusable yank buf */
  31. #define MCHAR 0
  32. #define MLINE 1
  33. extern int mtype; /* type of the current cursor motion */
  34. extern bool_t mincl; /* true if char motion is inclusive */
  35. extern LNPTR startop; /* cursor pos. at start of operator */
  36. /*
  37. * Functions defined in ops.c
  38. */
  39. void doshift(), dodelete(), doput(), dochange(), dofilter();
  40. void docasechange(char,char,int,bool_t);
  41. #ifdef TILDEOP
  42. void dotilde();
  43. #endif
  44. bool_t dojoin(), doyank();
  45. void startinsert();