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