home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / STVI369G.ZIP / PARAM.H < prev    next >
C/C++ Source or Header  |  1990-05-01  |  2KB  |  58 lines

  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.  
  6. struct    param {
  7.     char    *fullname;    /* full parameter name */
  8.     char    *shortname;    /* permissible abbreviation */
  9.     int    value;        /* parameter value */
  10.     int    flags;
  11. };
  12.  
  13. extern    struct    param    params[];
  14.  
  15. /*
  16.  * Flags
  17.  */
  18. #define    P_BOOL        0x01    /* the parameter is boolean */
  19. #define    P_NUM        0x02    /* the parameter is numeric */
  20. #define    P_CHANGED    0x04    /* the parameter has been changed */
  21.  
  22. /*
  23.  * The following are the indices in the params array for each parameter
  24.  */
  25.  
  26. /*
  27.  * Numeric parameters
  28.  */
  29. #define    P_TS        0    /* tab size */
  30. #define    P_SS        1    /* scroll size */
  31. #define    P_RP        2    /* report */
  32. #define    P_LI        3    /* lines */
  33.  
  34. /*
  35.  * Boolean parameters
  36.  */
  37. #define    P_VB        4    /* visual bell */
  38. #define    P_SM        5    /* showmatch */
  39. #define    P_WS        6    /* wrap scan */
  40. #define    P_EB        7    /* error bells */
  41. #define    P_MO        8    /* show mode */
  42. #define    P_BK        9    /* make backups when writing out files */
  43. #define    P_CR        10    /* use cr-lf to terminate lines on writes */
  44. #define    P_LS        11    /* show tabs and newlines graphically */
  45. #define    P_IC        12    /* ignore case in searches */
  46. #define    P_AI        13    /* auto-indent */
  47. #define    P_NU        14    /* number lines on the screen */
  48. #define    P_ML        15    /* enables mode-lines processing */
  49. #define    P_TO        16    /* if true, tilde is an operator */
  50. #define    P_TE        17    /* ignored; here for compatibility */
  51. #define    P_TG        18    /* enables stacking of tag calls */
  52. #define    P_CO        19    /* color/attribute setting */
  53.  
  54. /*
  55.  * Macro to get the value of a parameter
  56.  */
  57. #define    P(n)    (params[n].value)
  58.