00001 /* ELLE - Copyright 1982, 1987 by Ken Harrenstien, SRI International 00002 * This software is quasi-public; it may be used freely with 00003 * like software, but may NOT be sold or made part of licensed 00004 * products without permission of the author. 00005 */ 00006 /* EEVINI - ELLE initialized variables and array storage. 00007 * Initial values are defined here, but the vars must be 00008 * declared in ELLE.H as well so that references from all modules will 00009 * compile correctly. 00010 * Arrays are also allocated here, so size re-definitions only require 00011 * re-compiling this single small module. 00012 */ 00013 00014 #define EXT /* Allocate storage for non-initialized vars */ 00015 #include "elle.h" 00016 00017 #ifndef EVFILMOD 00018 #if V6 00019 #define EVFILMOD (0600) /* (int) Default file creation mode on V6 */ 00020 #else 00021 #define EVFILMOD (0666) /* (int) Default file creation mode on V7, note */ 00022 #endif /*-V6*/ /* paranoids can use V7 "umask" in shell. */ 00023 #endif 00024 #ifndef EVFNO1 00025 #define EVFNO1 0 /* (char *) "Old" filename prefix */ 00026 #endif 00027 #ifndef EVFNN1 00028 #define EVFNN1 0 /* (char *) "New" filename prefix */ 00029 #endif 00030 #ifndef EVFNO2 00031 #define EVFNO2 "O" /* (char *) "Old" filename postfix */ 00032 #endif 00033 #ifndef EVFNN2 00034 #define EVFNN2 "N" /* (char *) "New" filename postfix */ 00035 #endif 00036 #ifndef EVFCOL 00037 #define EVFCOL (71) /* (int) Initial value for Fill Column */ 00038 #endif 00039 #ifndef EVCCOL 00040 #define EVCCOL (40) /* (int) Initial value for Comment Column */ 00041 #endif 00042 #ifndef EVNWPCT 00043 #define EVNWPCT 50 /* (int) 50% For random New Window, center cursor. */ 00044 #endif 00045 #ifndef EVMVPCT 00046 #define EVMVPCT 67 /* (int) 67% When move off edge, show 67% new stuff */ 00047 #endif 00048 #ifndef EVMODWSO 00049 #define EVMODWSO 0 /* (bool) Initial mode window standout mode */ 00050 #endif 00051 #ifndef EV2MODEWS 00052 #define EV2MODEWS 1 /* 2-mode-window flag. 0=Never, 1=if SO, 2=always */ 00053 #endif 00054 #ifndef EVMARKSHOW 00055 #define EVMARKSHOW 0 /* (char *) String shown for Set Mark */ 00056 #endif 00057 #ifndef EVHELPFILE /* (char *) Location of ELLE help file. */ 00058 #define EVHELPFILE "/usr/src/elle/help.dat" 00059 #endif 00060 00061 char *ev_verstr = "ELLE 4.1b"; /* String: Editor name and version # */ 00062 int ev_filmod = EVFILMOD; /* Default file creation mode */ 00063 char *ev_fno1 = EVFNO1; /* "Old" filename prefix */ 00064 char *ev_fnn1 = EVFNN1; /* "New" filename prefix */ 00065 char *ev_fno2 = EVFNO2; /* "Old" filename postfix */ 00066 char *ev_fnn2 = EVFNN2; /* "New" filename postfix */ 00067 00068 int ev_fcolumn = EVFCOL; /* Initial value for Fill Column */ 00069 #if FX_INDCOMM 00070 int ev_ccolumn = EVCCOL; /* Initial value for Comment Column */ 00071 #endif 00072 00073 /* New window selection parameters. 00074 ** Both are expressed as an integer % of window lines (where the whole 00075 ** window is 100), and apply when a new window is selected. 00076 ** ev_nwpct - when "New Window" is called, % of lines between top and cursor. 00077 ** Also applies when screen has changed randomly. 00078 ** ev_mvpct - when cursor moves out of window, this is the % of lines 00079 ** between top and cursor (if moved off top) or between bottom and 00080 ** cursor (if moved off bottom). 00081 */ 00082 int ev_nwpct = EVNWPCT; /* New Window cursor loc preference (%) */ 00083 int ev_mvpct = EVMVPCT; /* Moved cursor loc preference (%) */ 00084 00085 #if FX_SOWIND 00086 int ev_modwso = EVMODWSO; /* Initial mode window standout flag */ 00087 #endif 00088 #if FX_2MODEWINDS 00089 int ev_2modws = EV2MODEWS; /* Initial 2-mode-wind flag */ 00090 #endif 00091 char *ev_markshow = EVMARKSHOW; /* String to display when Set Mark done */ 00092 00093 char *ev_helpfile = EVHELPFILE; /* Location of ELLE help file */ 00094 char *ev_profile = EVPROFBINFILE; /* Location of ELLE binary user profile */ 00095 /* Note ELLE doesn't use EVPROFTEXTFILE. */ 00096 00097 /* Array allocations */ 00098 00099 struct scr_line *scr[MAXHT]; /* Array of screen line structures */ 00100 SBSTR *kill_ring[KILL_LEN]; /* Kill ring table */
1.5.8