home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / Editors / mjovesrc.zoo / vars.h < prev    next >
C/C++ Source or Header  |  1991-06-16  |  4KB  |  152 lines

  1. /***************************************************************************
  2.  * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
  3.  * is provided to you without charge, and with no warranty.  You may give  *
  4.  * away copies of JOVE, including sources, provided that this notice is    *
  5.  * included in all the files.                                              *
  6.  ***************************************************************************/
  7.  
  8. struct variable {
  9.     int    Type;        /* in this case a variable */
  10.     char    *Name;        /* name is always second */
  11.     UnivPtr    v_value;
  12.     int    v_flags;
  13. };
  14.  
  15. /* variable types/flags */
  16. #define V_BASE10    01    /* is integer in base 10 */
  17. #define V_BASE8        02    /* is integer in base 8 */
  18. #define V_BOOL        04    /* is a boolean */
  19. #define V_STRING    010    /* is a string */
  20. #define V_CHAR        020    /* is a character */
  21. #define V_FILENAME    040    /* a file name (implies V_STRING) */
  22. #define V_TYPEMASK    077    /* mask off the extra bits */
  23. #define V_MODELINE    0100    /* update modeline */
  24. #define V_CLRSCREEN    0200    /* clear and redraw screen */
  25. #define V_TTY_RESET    0400    /* redo the tty modes */
  26.  
  27. extern const struct variable    variables[];
  28.  
  29. #ifdef    MAC
  30. # ifdef    TXT_TO_C
  31. int        /* kludge, so setmaps will compile with variables */
  32. # else
  33. extern int
  34. # endif    /* TXT_TO_C */
  35. #else
  36. extern int
  37. #endif    /* MAC */
  38.  
  39. #ifndef    MAC
  40.     phystab,        /* terminal's tabstop settings */
  41. #endif
  42.     tabstop,        /* expand tabs to this number of spaces */
  43.     RMargin,        /* right margin */
  44.     LMargin,        /* left margin */
  45.     ScrollStep,        /* how should we scroll */
  46.     MarkThresh,        /* moves greater than MarkThresh will SetMark */
  47.     PDelay,            /* paren flash delay in tenths of a second */
  48.     CArgIndent,        /* how to indent arguments to C functions */
  49.     CIndIncrmt,        /* how much each indentation level pushes
  50.                    over in C mode */
  51.     CreatMode,        /* default mode for creat'ing files */
  52.     SyncFreq,        /* how often to sync the file pointers */
  53.     UpdFreq,        /* how often to update modeline */
  54.     MailInt,        /* mail check interval */
  55.     SExitChar,        /* type this to stop i-search */
  56.     AbortChar,        /* cancels command input */
  57.     IntChar,        /* ttysets this to generate QUIT */
  58. #ifdef    IBMPC
  59.     Fgcolor,
  60.     Bgcolor,
  61.     Mdcolor,
  62. #endif    /* IBMPC */
  63. #ifndef    MAC
  64.     EWSize;            /* size to make the error window */
  65. #else
  66.     Macmode;    /* see mac.c */
  67. #endif    /* MAC */
  68.  
  69. #ifdef    MAC
  70. # ifdef    TXT_TO_C    /* kludge, for setmaps with variables */
  71. bool
  72. # else
  73. extern bool
  74. # endif    /* TXT_TO_C */
  75. #else
  76. extern bool
  77. #endif    /* MAC */
  78.     OKXonXoff,        /* disable start/stop characters */
  79.     OkayBadChars,        /* allow bad characters in files created
  80.                    by JOVE */
  81. #ifdef    ABBREV
  82.     AutoCaseAbbrev,        /* automatically do case on abbreviations */
  83. #endif
  84.     CaseIgnore,        /* case ignore search */
  85. #ifdef    BIFF
  86.     BiffChk,        /* turn off/on biff with entering/exiting jove */
  87. #endif
  88. #ifdef    F_COMPLETION
  89.     DispBadFs,        /* display filenames with bad extensions? */
  90. #endif
  91.     DoEVexpand,        /* treat $foo as environment variable */
  92.     EndWNewline,        /* end files with a blank line */
  93. #ifdef    MAC
  94.     Keyonly,
  95.     Bufchange,
  96.     Modechange,
  97.     EventCmd,
  98.     Windchange,
  99.     Macmode,
  100. #endif    /* MAC */
  101. #ifdef    BACKUPFILES
  102.     BkupOnWrite,        /* make backup files when writing */
  103. #endif
  104.     MarksShouldFloat,    /* adjust marks on insertion/deletion */
  105.     UseRE,            /* use regular expressions in search */
  106.     MetaKey,        /* this terminal has a meta key */
  107.     BriteMode,        /* make the mode line inverse? */
  108.     ScrollAll,        /* we current line scrolls, scroll whole window? */
  109.     UseBuffers,        /* use buffers with Typeout() */
  110. #ifdef    ID_CHAR
  111.     UseIC,            /* whether or not to use i/d char
  112.                    processesing */
  113. #endif
  114.     VisBell,        /* use visible bell (if possible) */
  115. #ifndef    MAC
  116.     WtOnMk,            /* write files on compile-it command */
  117. #endif
  118.     WrapScan;        /* make searches wrap */
  119.  
  120.  
  121.  
  122. #ifdef    MAC
  123. # ifdef    TXT_TO_C    /* kludge, for setmaps with variables */
  124. char
  125. # else
  126. extern char
  127. # endif    /* TXT_TO_C */
  128. #else
  129. extern char
  130. #endif    /* MAC */
  131.  
  132. #ifndef    MAC
  133.     ErrFmtStr[256],        /* format string for parse errors */
  134. #endif
  135. #ifdef    IPROCS
  136.     proc_prompt[128],    /* process prompt */
  137.     dbx_parse_fmt[128],    /* dbx-mode parse string */
  138. #endif
  139. #ifdef    F_COMPLETION
  140.     BadExtensions[128],    /* extensions (e.g., ".o" to ignore) */
  141. #endif
  142. #ifdef    CMT_FMT
  143.     CmtFmt[80],
  144. #endif
  145.     ModeFmt[120],        /* mode line format string */
  146. #ifdef    UNIX
  147.     Mailbox[FILESIZE],        /* mailbox name */
  148. #endif    /* UNIX */
  149.     TmpFilePath[FILESIZE],    /* directory/device to store tmp files */
  150.     TagFile[FILESIZE],        /* default tag file */
  151.     Shell[FILESIZE];        /* shell to use */
  152.