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.

60 lines
2.1 KiB

  1. /* $Header: /nw/tony/src/stevie/src/RCS/param.h,v 1.8 89/08/02 10:59:35 tony Exp $
  2. *
  3. * Settable parameters
  4. */
  5. struct param {
  6. char *fullname; /* full parameter name */
  7. char *shortname; /* permissible abbreviation */
  8. int value; /* parameter value */
  9. int flags;
  10. };
  11. extern struct param params[];
  12. /*
  13. * Flags
  14. */
  15. #define P_BOOL 0x01 /* the parameter is boolean */
  16. #define P_NUM 0x02 /* the parameter is numeric */
  17. #define P_CHANGED 0x04 /* the parameter has been changed */
  18. /*
  19. * The following are the indices in the params array for each parameter
  20. */
  21. /*
  22. * Numeric parameters
  23. */
  24. #define P_TS 0 /* tab size */
  25. #define P_SS 1 /* scroll size */
  26. #define P_RP 2 /* report */
  27. #define P_LI 3 /* lines */
  28. /*
  29. * Boolean parameters
  30. */
  31. #define P_VB 4 /* visual bell */
  32. #define P_SM 5 /* showmatch */
  33. #define P_WS 6 /* wrap scan */
  34. #define P_EB 7 /* error bells */
  35. #define P_MO 8 /* show mode */
  36. #define P_BK 9 /* make backups when writing out files */
  37. #define P_CR 10 /* use cr-lf to terminate lines on writes */
  38. #define P_LS 11 /* show tabs and newlines graphically */
  39. #define P_IC 12 /* ignore case in searches */
  40. #define P_AI 13 /* auto-indent */
  41. #define P_NU 14 /* number lines on the screen */
  42. #define P_ML 15 /* enables mode-lines processing */
  43. #define P_TO 16 /* if true, tilde is an operator */
  44. #define P_TE 17 /* ignored; here for compatibility */
  45. #define P_CS 18 /* Cursor size */
  46. #define P_HS 19 /* Highlight search result */
  47. #define P_CO 20 /* Number of columns */
  48. #define P_HT 21 /* hard tabs flag */
  49. #define P_SW 22 /* shift width for << and >> */
  50. /*
  51. * Macro to get the value of a parameter
  52. */
  53. #define P(n) (params[n].value)