1 /* ELLE - Copyright 1982, 1987 by Ken Harrenstien, SRI International
2 * This software is quasi-public; it may be used freely with
3 * like software, but may NOT be sold or made part of licensed
4 * products without permission of the author.
6 /* EEVINI - ELLE initialized variables and array storage.
7 * Initial values are defined here, but the vars must be
8 * declared in ELLE.H as well so that references from all modules will
10 * Arrays are also allocated here, so size re-definitions only require
11 * re-compiling this single small module.
14 #define EXT /* Allocate storage for non-initialized vars */
19 #define EVFILMOD (0600) /* (int) Default file creation mode on V6 */
21 #define EVFILMOD (0666) /* (int) Default file creation mode on V7, note */
22 #endif /*-V6*/ /* paranoids can use V7 "umask" in shell. */
25 #define EVFNO1 0 /* (char *) "Old" filename prefix */
28 #define EVFNN1 0 /* (char *) "New" filename prefix */
31 #define EVFNO2 "O" /* (char *) "Old" filename postfix */
34 #define EVFNN2 "N" /* (char *) "New" filename postfix */
37 #define EVFCOL (71) /* (int) Initial value for Fill Column */
40 #define EVCCOL (40) /* (int) Initial value for Comment Column */
43 #define EVNWPCT 50 /* (int) 50% For random New Window, center cursor. */
46 #define EVMVPCT 67 /* (int) 67% When move off edge, show 67% new stuff */
49 #define EVMODWSO 0 /* (bool) Initial mode window standout mode */
52 #define EV2MODEWS 1 /* 2-mode-window flag. 0=Never, 1=if SO, 2=always */
55 #define EVMARKSHOW 0 /* (char *) String shown for Set Mark */
57 #ifndef EVHELPFILE /* (char *) Location of ELLE help file. */
58 #define EVHELPFILE "/usr/src/elle/help.dat"
61 char *ev_verstr
= "ELLE 4.1b"; /* String: Editor name and version # */
62 int ev_filmod
= EVFILMOD
; /* Default file creation mode */
63 char *ev_fno1
= EVFNO1
; /* "Old" filename prefix */
64 char *ev_fnn1
= EVFNN1
; /* "New" filename prefix */
65 char *ev_fno2
= EVFNO2
; /* "Old" filename postfix */
66 char *ev_fnn2
= EVFNN2
; /* "New" filename postfix */
68 int ev_fcolumn
= EVFCOL
; /* Initial value for Fill Column */
70 int ev_ccolumn
= EVCCOL
; /* Initial value for Comment Column */
73 /* New window selection parameters.
74 ** Both are expressed as an integer % of window lines (where the whole
75 ** window is 100), and apply when a new window is selected.
76 ** ev_nwpct - when "New Window" is called, % of lines between top and cursor.
77 ** Also applies when screen has changed randomly.
78 ** ev_mvpct - when cursor moves out of window, this is the % of lines
79 ** between top and cursor (if moved off top) or between bottom and
80 ** cursor (if moved off bottom).
82 int ev_nwpct
= EVNWPCT
; /* New Window cursor loc preference (%) */
83 int ev_mvpct
= EVMVPCT
; /* Moved cursor loc preference (%) */
86 int ev_modwso
= EVMODWSO
; /* Initial mode window standout flag */
89 int ev_2modws
= EV2MODEWS
; /* Initial 2-mode-wind flag */
91 char *ev_markshow
= EVMARKSHOW
; /* String to display when Set Mark done */
93 char *ev_helpfile
= EVHELPFILE
; /* Location of ELLE help file */
94 char *ev_profile
= EVPROFBINFILE
; /* Location of ELLE binary user profile */
95 /* Note ELLE doesn't use EVPROFTEXTFILE. */
97 /* Array allocations */
99 struct scr_line
*scr
[MAXHT
]; /* Array of screen line structures */
100 SBSTR
*kill_ring
[KILL_LEN
]; /* Kill ring table */