|
|
1.1 root 1: /* Copyright (c) 1980 Regents of the University of California */
2: static char *sccsid = "@(#)ex_data.c 6.1 10/18/80";
3: #include "ex.h"
4: #include "ex_tty.h"
5:
6: /*
7: * Initialization of option values.
8: * The option #defines in ex_vars.h are made
9: * from this file by the script makeoptions.
10: *
11: * These initializations are done char by char instead of as strings
12: * to confuse xstr so it will leave them alone.
13: */
14: char direct[ONMSZ] =
15: { '/', 't', 'm', 'p' };
16: char paragraphs[ONMSZ] = {
17: 'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P', /* -ms macros */
18: 'P', ' ', 'L', 'I', /* -mm macros */
19: 'b', 'p' /* bare nroff */
20: };
21: char sections[ONMSZ] = {
22: 'N', 'H', 'S', 'H', /* -ms macros */
23: 'H', ' ', 'H', 'U' /* -mm macros */
24: };
25: char shell[ONMSZ] =
26: { '/', 'b', 'i', 'n', '/', 's', 'h' };
27: char tags[ONMSZ] = {
28: 't', 'a', 'g', 's', ' ',
29: '/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 't', 'a', 'g', 's'
30: };
31: char ttytype[ONMSZ] =
32: { 'd', 'u', 'm', 'b' };
33:
34: short COLUMNS = 80;
35: short LINES = 24;
36:
37: struct option options[NOPTS + 1] = {
38: "autoindent", "ai", ONOFF, 0, 0, 0,
39: "autoprint", "ap", ONOFF, 1, 1, 0,
40: "autowrite", "aw", ONOFF, 0, 0, 0,
41: "beautify", "bf", ONOFF, 0, 0, 0,
42: "directory", "dir", STRING, 0, 0, direct,
43: "edcompatible", "ed", ONOFF, 0, 0, 0,
44: "errorbells", "eb", ONOFF, 0, 0, 0,
45: "hardtabs", "ht", NUMERIC, 8, 8, 0,
46: "ignorecase", "ic", ONOFF, 0, 0, 0,
47: "lisp", 0, ONOFF, 0, 0, 0,
48: "list", 0, ONOFF, 0, 0, 0,
49: "magic", 0, ONOFF, 1, 1, 0,
50: "mesg", 0, ONOFF, 1, 1, 0,
51: "number", "nu", ONOFF, 0, 0, 0,
52: "open", 0, ONOFF, 1, 1, 0,
53: "optimize", "opt", ONOFF, 0, 0, 0,
54: "paragraphs", "para", STRING, 0, 0, paragraphs,
55: "prompt", 0, ONOFF, 1, 1, 0,
56: "readonly", "ro", ONOFF, 0, 0, 0,
57: "redraw", 0, ONOFF, 0, 0, 0,
58: "remap", 0, ONOFF, 1, 1, 0,
59: "report", 0, NUMERIC, 5, 5, 0,
60: "scroll", "scr", NUMERIC, 12, 12, 0,
61: "sections", "sect", STRING, 0, 0, sections,
62: "shell", "sh", STRING, 0, 0, shell,
63: "shiftwidth", "sw", NUMERIC, TABS, TABS, 0,
64: "showmatch", "sm", ONOFF, 0, 0, 0,
65: "slowopen", "slow", ONOFF, 0, 0, 0,
66: "tabstop", "ts", NUMERIC, TABS, TABS, 0,
67: "taglength", "tl", NUMERIC, 0, 0, 0,
68: "tags", "tag", STRING, 0, 0, tags,
69: "term", 0, OTERM, 0, 0, ttytype,
70: "terse", 0, ONOFF, 0, 0, 0,
71: "timeout", "to", ONOFF, 1, 1, 0,
72: "ttytype", "tty", OTERM, 0, 0, ttytype,
73: "warn", 0, ONOFF, 1, 1, 0,
74: "window", "wi", NUMERIC, 23, 23, 0,
75: "wrapscan", "ws", ONOFF, 1, 1, 0,
76: "wrapmargin", "wm", NUMERIC, 0, 0, 0,
77: "writeany", "wa", ONOFF, 0, 0, 0,
78: 0, 0, 0, 0, 0, 0,
79: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.