Commit | Line | Data |
---|---|---|
2791ff57 KB |
1 | /*- |
2 | * Copyright (c) 1980 The Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * %sccs.include.proprietary.c% | |
19d73a0e DF |
6 | */ |
7 | ||
8 | #ifndef lint | |
2791ff57 KB |
9 | static char sccsid[] = "@(#)ex_data.c 7.11 (Berkeley) %G%"; |
10 | #endif /* not lint */ | |
19d73a0e | 11 | |
e9a419e5 MH |
12 | #include "ex.h" |
13 | #include "ex_tty.h" | |
14 | ||
15 | /* | |
16 | * Initialization of option values. | |
17 | * The option #defines in ex_vars.h are made | |
18 | * from this file by the script makeoptions. | |
887e3e0d MH |
19 | * |
20 | * These initializations are done char by char instead of as strings | |
21 | * to confuse xstr so it will leave them alone. | |
e9a419e5 | 22 | */ |
887e3e0d | 23 | char direct[ONMSZ] = |
5a6c967e CH |
24 | #ifdef vms |
25 | {'t', 'm', 'p', ':'}; | |
26 | #else | |
8feb3a87 | 27 | {'/', 'v', 'a', 'r', '/', 't', 'm', 'p'}; |
5a6c967e | 28 | #endif |
887e3e0d | 29 | char paragraphs[ONMSZ] = { |
e9a419e5 MH |
30 | 'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P', /* -ms macros */ |
31 | 'P', ' ', 'L', 'I', /* -mm macros */ | |
299f2784 | 32 | 'p', 'p', 'l', 'p', 'i', 'p', /* -me macros */ |
e9a419e5 MH |
33 | 'b', 'p' /* bare nroff */ |
34 | }; | |
887e3e0d MH |
35 | char sections[ONMSZ] = { |
36 | 'N', 'H', 'S', 'H', /* -ms macros */ | |
299f2784 MH |
37 | 'H', ' ', 'H', 'U', /* -mm macros */ |
38 | 'n', 'h', 's', 'h' /* -me macros */ | |
887e3e0d MH |
39 | }; |
40 | char shell[ONMSZ] = | |
e9a419e5 | 41 | { '/', 'b', 'i', 'n', '/', 's', 'h' }; |
887e3e0d MH |
42 | char tags[ONMSZ] = { |
43 | 't', 'a', 'g', 's', ' ', | |
c32839c5 KB |
44 | '/', 'v', 'a', 'r', '/', 'd', 'b', '/', 'l', 'i', 'b', 'c', '.', |
45 | 't', 'a', 'g', 's' | |
887e3e0d MH |
46 | }; |
47 | char ttytype[ONMSZ] = | |
e9a419e5 MH |
48 | { 'd', 'u', 'm', 'b' }; |
49 | ||
50 | short COLUMNS = 80; | |
51 | short LINES = 24; | |
52 | ||
53 | struct option options[NOPTS + 1] = { | |
54 | "autoindent", "ai", ONOFF, 0, 0, 0, | |
55 | "autoprint", "ap", ONOFF, 1, 1, 0, | |
56 | "autowrite", "aw", ONOFF, 0, 0, 0, | |
57 | "beautify", "bf", ONOFF, 0, 0, 0, | |
58 | "directory", "dir", STRING, 0, 0, direct, | |
59 | "edcompatible", "ed", ONOFF, 0, 0, 0, | |
60 | "errorbells", "eb", ONOFF, 0, 0, 0, | |
61 | "hardtabs", "ht", NUMERIC, 8, 8, 0, | |
62 | "ignorecase", "ic", ONOFF, 0, 0, 0, | |
5a6c967e CH |
63 | #ifndef UNIX_SBRK |
64 | "linelimit", "ll", NUMERIC, 2000, 2000, 0, | |
65 | #endif | |
e9a419e5 MH |
66 | "lisp", 0, ONOFF, 0, 0, 0, |
67 | "list", 0, ONOFF, 0, 0, 0, | |
e9a419e5 | 68 | "magic", 0, ONOFF, 1, 1, 0, |
d266c416 | 69 | "mesg", 0, ONOFF, 1, 1, 0, |
f6e8a45e | 70 | "modeline", 0, ONOFF, 0, 0, 0, |
e9a419e5 MH |
71 | "number", "nu", ONOFF, 0, 0, 0, |
72 | "open", 0, ONOFF, 1, 1, 0, | |
73 | "optimize", "opt", ONOFF, 0, 0, 0, | |
74 | "paragraphs", "para", STRING, 0, 0, paragraphs, | |
75 | "prompt", 0, ONOFF, 1, 1, 0, | |
d266c416 | 76 | "readonly", "ro", ONOFF, 0, 0, 0, |
e9a419e5 | 77 | "redraw", 0, ONOFF, 0, 0, 0, |
887e3e0d | 78 | "remap", 0, ONOFF, 1, 1, 0, |
e9a419e5 MH |
79 | "report", 0, NUMERIC, 5, 5, 0, |
80 | "scroll", "scr", NUMERIC, 12, 12, 0, | |
81 | "sections", "sect", STRING, 0, 0, sections, | |
82 | "shell", "sh", STRING, 0, 0, shell, | |
83 | "shiftwidth", "sw", NUMERIC, TABS, TABS, 0, | |
84 | "showmatch", "sm", ONOFF, 0, 0, 0, | |
85 | "slowopen", "slow", ONOFF, 0, 0, 0, | |
54869f35 | 86 | "sourceany", 0, ONOFF, 0, 0, 0, |
e9a419e5 | 87 | "tabstop", "ts", NUMERIC, TABS, TABS, 0, |
d266c416 MH |
88 | "taglength", "tl", NUMERIC, 0, 0, 0, |
89 | "tags", "tag", STRING, 0, 0, tags, | |
e9a419e5 MH |
90 | "term", 0, OTERM, 0, 0, ttytype, |
91 | "terse", 0, ONOFF, 0, 0, 0, | |
887e3e0d MH |
92 | "timeout", "to", ONOFF, 1, 1, 0, |
93 | "ttytype", "tty", OTERM, 0, 0, ttytype, | |
e9a419e5 MH |
94 | "warn", 0, ONOFF, 1, 1, 0, |
95 | "window", "wi", NUMERIC, 23, 23, 0, | |
96 | "wrapscan", "ws", ONOFF, 1, 1, 0, | |
97 | "wrapmargin", "wm", NUMERIC, 0, 0, 0, | |
98 | "writeany", "wa", ONOFF, 0, 0, 0, | |
99 | 0, 0, 0, 0, 0, 0, | |
100 | }; |