psfig mod to handle \X include file construct from ditroff
[unix-history] / usr / src / usr.bin / ex / ex_data.c
CommitLineData
19d73a0e
DF
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
54869f35 8static char *sccsid = "@(#)ex_data.c 7.5 (Berkeley) %G%";
19d73a0e
DF
9#endif not lint
10
e9a419e5
MH
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.
887e3e0d
MH
18 *
19 * These initializations are done char by char instead of as strings
20 * to confuse xstr so it will leave them alone.
e9a419e5 21 */
887e3e0d 22char direct[ONMSZ] =
299f2784 23 {'/', 't', 'm', 'p'};
887e3e0d 24char paragraphs[ONMSZ] = {
e9a419e5
MH
25 'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P', /* -ms macros */
26 'P', ' ', 'L', 'I', /* -mm macros */
299f2784 27 'p', 'p', 'l', 'p', 'i', 'p', /* -me macros */
e9a419e5
MH
28 'b', 'p' /* bare nroff */
29};
887e3e0d
MH
30char sections[ONMSZ] = {
31 'N', 'H', 'S', 'H', /* -ms macros */
299f2784
MH
32 'H', ' ', 'H', 'U', /* -mm macros */
33 'n', 'h', 's', 'h' /* -me macros */
887e3e0d
MH
34};
35char shell[ONMSZ] =
e9a419e5 36 { '/', 'b', 'i', 'n', '/', 's', 'h' };
887e3e0d
MH
37char tags[ONMSZ] = {
38 't', 'a', 'g', 's', ' ',
39 '/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 't', 'a', 'g', 's'
40};
41char ttytype[ONMSZ] =
e9a419e5
MH
42 { 'd', 'u', 'm', 'b' };
43
44short COLUMNS = 80;
45short LINES = 24;
46
47struct 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,
e9a419e5 59 "magic", 0, ONOFF, 1, 1, 0,
d266c416 60 "mesg", 0, ONOFF, 1, 1, 0,
f6e8a45e 61 "modeline", 0, ONOFF, 0, 0, 0,
e9a419e5
MH
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,
d266c416 67 "readonly", "ro", ONOFF, 0, 0, 0,
e9a419e5 68 "redraw", 0, ONOFF, 0, 0, 0,
887e3e0d 69 "remap", 0, ONOFF, 1, 1, 0,
e9a419e5
MH
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,
54869f35 77 "sourceany", 0, ONOFF, 0, 0, 0,
e9a419e5 78 "tabstop", "ts", NUMERIC, TABS, TABS, 0,
d266c416
MH
79 "taglength", "tl", NUMERIC, 0, 0, 0,
80 "tags", "tag", STRING, 0, 0, tags,
e9a419e5
MH
81 "term", 0, OTERM, 0, 0, ttytype,
82 "terse", 0, ONOFF, 0, 0, 0,
887e3e0d
MH
83 "timeout", "to", ONOFF, 1, 1, 0,
84 "ttytype", "tty", OTERM, 0, 0, ttytype,
e9a419e5
MH
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};