source: trunk/minix/commands/elle/eevini.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 3.5 KB
Line 
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.
5 */
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
9 * compile correctly.
10 * Arrays are also allocated here, so size re-definitions only require
11 * re-compiling this single small module.
12 */
13
14#define EXT /* Allocate storage for non-initialized vars */
15#include "elle.h"
16
17#ifndef EVFILMOD
18#if V6
19#define EVFILMOD (0600) /* (int) Default file creation mode on V6 */
20#else
21#define EVFILMOD (0666) /* (int) Default file creation mode on V7, note */
22#endif /*-V6*/ /* paranoids can use V7 "umask" in shell. */
23#endif
24#ifndef EVFNO1
25#define EVFNO1 0 /* (char *) "Old" filename prefix */
26#endif
27#ifndef EVFNN1
28#define EVFNN1 0 /* (char *) "New" filename prefix */
29#endif
30#ifndef EVFNO2
31#define EVFNO2 "O" /* (char *) "Old" filename postfix */
32#endif
33#ifndef EVFNN2
34#define EVFNN2 "N" /* (char *) "New" filename postfix */
35#endif
36#ifndef EVFCOL
37#define EVFCOL (71) /* (int) Initial value for Fill Column */
38#endif
39#ifndef EVCCOL
40#define EVCCOL (40) /* (int) Initial value for Comment Column */
41#endif
42#ifndef EVNWPCT
43#define EVNWPCT 50 /* (int) 50% For random New Window, center cursor. */
44#endif
45#ifndef EVMVPCT
46#define EVMVPCT 67 /* (int) 67% When move off edge, show 67% new stuff */
47#endif
48#ifndef EVMODWSO
49#define EVMODWSO 0 /* (bool) Initial mode window standout mode */
50#endif
51#ifndef EV2MODEWS
52#define EV2MODEWS 1 /* 2-mode-window flag. 0=Never, 1=if SO, 2=always */
53#endif
54#ifndef EVMARKSHOW
55#define EVMARKSHOW 0 /* (char *) String shown for Set Mark */
56#endif
57#ifndef EVHELPFILE /* (char *) Location of ELLE help file. */
58#define EVHELPFILE "/usr/src/elle/help.dat"
59#endif
60
61char *ev_verstr = "ELLE 4.1b"; /* String: Editor name and version # */
62int ev_filmod = EVFILMOD; /* Default file creation mode */
63char *ev_fno1 = EVFNO1; /* "Old" filename prefix */
64char *ev_fnn1 = EVFNN1; /* "New" filename prefix */
65char *ev_fno2 = EVFNO2; /* "Old" filename postfix */
66char *ev_fnn2 = EVFNN2; /* "New" filename postfix */
67
68int ev_fcolumn = EVFCOL; /* Initial value for Fill Column */
69#if FX_INDCOMM
70int ev_ccolumn = EVCCOL; /* Initial value for Comment Column */
71#endif
72
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).
81*/
82int ev_nwpct = EVNWPCT; /* New Window cursor loc preference (%) */
83int ev_mvpct = EVMVPCT; /* Moved cursor loc preference (%) */
84
85#if FX_SOWIND
86int ev_modwso = EVMODWSO; /* Initial mode window standout flag */
87#endif
88#if FX_2MODEWINDS
89int ev_2modws = EV2MODEWS; /* Initial 2-mode-wind flag */
90#endif
91char *ev_markshow = EVMARKSHOW; /* String to display when Set Mark done */
92
93char *ev_helpfile = EVHELPFILE; /* Location of ELLE help file */
94char *ev_profile = EVPROFBINFILE; /* Location of ELLE binary user profile */
95 /* Note ELLE doesn't use EVPROFTEXTFILE. */
96
97/* Array allocations */
98
99struct scr_line *scr[MAXHT]; /* Array of screen line structures */
100SBSTR *kill_ring[KILL_LEN]; /* Kill ring table */
Note: See TracBrowser for help on using the repository browser.