Commit | Line | Data |
---|---|---|
7c4625ef | 1 | /* Copyright (c) 1980 Regents of the University of California */ |
04379bab | 2 | static char *sccsid = "@(#)ex_data.c 6.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] = |
e9a419e5 | 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 */ | |
19 | 'b', 'p' /* bare nroff */ | |
20 | }; | |
887e3e0d MH |
21 | char sections[ONMSZ] = { |
22 | 'N', 'H', 'S', 'H', /* -ms macros */ | |
23 | 'H', ' ', 'H', 'U' /* -mm macros */ | |
24 | }; | |
25 | char shell[ONMSZ] = | |
e9a419e5 | 26 | { '/', 'b', 'i', 'n', '/', 's', 'h' }; |
887e3e0d MH |
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] = | |
e9a419e5 MH |
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, | |
e9a419e5 | 49 | "magic", 0, ONOFF, 1, 1, 0, |
d266c416 | 50 | "mesg", 0, ONOFF, 1, 1, 0, |
e9a419e5 MH |
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, | |
d266c416 | 56 | "readonly", "ro", ONOFF, 0, 0, 0, |
e9a419e5 | 57 | "redraw", 0, ONOFF, 0, 0, 0, |
887e3e0d | 58 | "remap", 0, ONOFF, 1, 1, 0, |
e9a419e5 MH |
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, | |
d266c416 MH |
67 | "taglength", "tl", NUMERIC, 0, 0, 0, |
68 | "tags", "tag", STRING, 0, 0, tags, | |
e9a419e5 MH |
69 | "term", 0, OTERM, 0, 0, ttytype, |
70 | "terse", 0, ONOFF, 0, 0, 0, | |
887e3e0d MH |
71 | "timeout", "to", ONOFF, 1, 1, 0, |
72 | "ttytype", "tty", OTERM, 0, 0, ttytype, | |
e9a419e5 MH |
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 | }; |