home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / STEVIE.ZIP / PARAM.H < prev    next >
C/C++ Source or Header  |  1988-06-09  |  1KB  |  60 lines

  1. /*
  2.  * STEVIE - ST Editor for VI Enthusiasts   ...Tim Thompson...twitch!tjt...
  3.  *
  4.  * Extensive modifications by:  Tony Andrews       onecom!wldrdg!tony
  5.  *
  6.  */
  7.  
  8. /*
  9.  * Settable parameters
  10.  */
  11.  
  12. struct    param {
  13.     char    *fullname;    /* full parameter name */
  14.     char    *shortname;    /* permissible abbreviation */
  15.     int    value;        /* parameter value */
  16.     int    flags;
  17. };
  18.  
  19. extern    struct    param    params[];
  20.  
  21. /*
  22.  * Flags
  23.  */
  24. #define    P_BOOL        0x01    /* the parameter is boolean */
  25. #define    P_NUM        0x02    /* the parameter is numeric */
  26. #define    P_CHANGED    0x04    /* the parameter has been changed */
  27.  
  28. /*
  29.  * The following are the indices in the params array for each parameter
  30.  */
  31.  
  32. /*
  33.  * Numeric parameters
  34.  */
  35. #define    P_TS        0    /* tab size */
  36. #define    P_SS        1    /* scroll size */
  37. #define    P_RP        2    /* report */
  38. #define    P_LI        3    /* lines */
  39.  
  40. /*
  41.  * Boolean parameters
  42.  */
  43. #define    P_VB        4    /* visual bell */
  44. #define    P_SM        5    /* showmatch */
  45. #define    P_WS        6    /* wrap scan */
  46. #define    P_EB        7    /* error bells */
  47. #define    P_MO        8    /* show mode */
  48. #define    P_BK        9    /* make backups when writing out files */
  49. #define    P_CR        10    /* use cr-lf to terminate lines on writes */
  50. #define    P_LS        11    /* show tabs and newlines graphically */
  51.  
  52. #if 0
  53. #define    P_AI        12    /* auto-indent (not really in yet) */
  54. #endif
  55.  
  56. /*
  57.  * Macro to get the value of a parameter
  58.  */
  59. #define    P(n)    (params[n].value)
  60.