Commit | Line | Data |
---|---|---|
299f2784 MH |
1 | /* Copyright (c) 1981 Regents of the University of California */ |
2 | static char *sccsid = "@(#)ex_data.c 7.1 %G%"; | |
e9a419e5 MH |
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. | |
887e3e0d MH |
10 | * |
11 | * These initializations are done char by char instead of as strings | |
12 | * to confuse xstr so it will leave them alone. | |
e9a419e5 | 13 | */ |
887e3e0d | 14 | char direct[ONMSZ] = |
299f2784 | 15 | {'/', 't', 'm', 'p'}; |
887e3e0d | 16 | char paragraphs[ONMSZ] = { |
e9a419e5 MH |
17 | 'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P', /* -ms macros */ |
18 | 'P', ' ', 'L', 'I', /* -mm macros */ | |
299f2784 | 19 | 'p', 'p', 'l', 'p', 'i', 'p', /* -me macros */ |
e9a419e5 MH |
20 | 'b', 'p' /* bare nroff */ |
21 | }; | |
887e3e0d MH |
22 | char sections[ONMSZ] = { |
23 | 'N', 'H', 'S', 'H', /* -ms macros */ | |
299f2784 MH |
24 | 'H', ' ', 'H', 'U', /* -mm macros */ |
25 | 'n', 'h', 's', 'h' /* -me macros */ | |
887e3e0d MH |
26 | }; |
27 | char shell[ONMSZ] = | |
e9a419e5 | 28 | { '/', 'b', 'i', 'n', '/', 's', 'h' }; |
887e3e0d MH |
29 | char tags[ONMSZ] = { |
30 | 't', 'a', 'g', 's', ' ', | |
31 | '/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 't', 'a', 'g', 's' | |
32 | }; | |
33 | char ttytype[ONMSZ] = | |
e9a419e5 MH |
34 | { 'd', 'u', 'm', 'b' }; |
35 | ||
36 | short COLUMNS = 80; | |
37 | short LINES = 24; | |
38 | ||
39 | struct option options[NOPTS + 1] = { | |
40 | "autoindent", "ai", ONOFF, 0, 0, 0, | |
41 | "autoprint", "ap", ONOFF, 1, 1, 0, | |
42 | "autowrite", "aw", ONOFF, 0, 0, 0, | |
43 | "beautify", "bf", ONOFF, 0, 0, 0, | |
44 | "directory", "dir", STRING, 0, 0, direct, | |
45 | "edcompatible", "ed", ONOFF, 0, 0, 0, | |
46 | "errorbells", "eb", ONOFF, 0, 0, 0, | |
47 | "hardtabs", "ht", NUMERIC, 8, 8, 0, | |
48 | "ignorecase", "ic", ONOFF, 0, 0, 0, | |
49 | "lisp", 0, ONOFF, 0, 0, 0, | |
50 | "list", 0, ONOFF, 0, 0, 0, | |
e9a419e5 | 51 | "magic", 0, ONOFF, 1, 1, 0, |
d266c416 | 52 | "mesg", 0, ONOFF, 1, 1, 0, |
e9a419e5 MH |
53 | "number", "nu", ONOFF, 0, 0, 0, |
54 | "open", 0, ONOFF, 1, 1, 0, | |
55 | "optimize", "opt", ONOFF, 0, 0, 0, | |
56 | "paragraphs", "para", STRING, 0, 0, paragraphs, | |
57 | "prompt", 0, ONOFF, 1, 1, 0, | |
d266c416 | 58 | "readonly", "ro", ONOFF, 0, 0, 0, |
e9a419e5 | 59 | "redraw", 0, ONOFF, 0, 0, 0, |
887e3e0d | 60 | "remap", 0, ONOFF, 1, 1, 0, |
e9a419e5 MH |
61 | "report", 0, NUMERIC, 5, 5, 0, |
62 | "scroll", "scr", NUMERIC, 12, 12, 0, | |
63 | "sections", "sect", STRING, 0, 0, sections, | |
64 | "shell", "sh", STRING, 0, 0, shell, | |
65 | "shiftwidth", "sw", NUMERIC, TABS, TABS, 0, | |
66 | "showmatch", "sm", ONOFF, 0, 0, 0, | |
67 | "slowopen", "slow", ONOFF, 0, 0, 0, | |
68 | "tabstop", "ts", NUMERIC, TABS, TABS, 0, | |
d266c416 MH |
69 | "taglength", "tl", NUMERIC, 0, 0, 0, |
70 | "tags", "tag", STRING, 0, 0, tags, | |
e9a419e5 MH |
71 | "term", 0, OTERM, 0, 0, ttytype, |
72 | "terse", 0, ONOFF, 0, 0, 0, | |
887e3e0d MH |
73 | "timeout", "to", ONOFF, 1, 1, 0, |
74 | "ttytype", "tty", OTERM, 0, 0, ttytype, | |
e9a419e5 MH |
75 | "warn", 0, ONOFF, 1, 1, 0, |
76 | "window", "wi", NUMERIC, 23, 23, 0, | |
77 | "wrapscan", "ws", ONOFF, 1, 1, 0, | |
78 | "wrapmargin", "wm", NUMERIC, 0, 0, 0, | |
79 | "writeany", "wa", ONOFF, 0, 0, 0, | |
80 | 0, 0, 0, 0, 0, 0, | |
81 | }; |