Annotation of 43BSDReno/usr.bin/ex/ex_data.c, revision 1.1.1.1

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.8 (Berkeley) 9/11/89";
                      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: #ifdef vms
                     24:        {'t', 'm', 'p', ':'}; 
                     25: #else
                     26:        {'/', 'v', 'a', 'r', '/', 't', 'm', 'p'};
                     27: #endif
                     28: char   paragraphs[ONMSZ] = {
                     29:        'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P',         /* -ms macros */
                     30:        'P', ' ', 'L', 'I',                             /* -mm macros */
                     31:        'p', 'p', 'l', 'p', 'i', 'p',                   /* -me macros */
                     32:        'b', 'p'                                        /* bare nroff */
                     33: };
                     34: char   sections[ONMSZ] = {
                     35:        'N', 'H', 'S', 'H',                             /* -ms macros */
                     36:        'H', ' ', 'H', 'U',                             /* -mm macros */
                     37:        'n', 'h', 's', 'h'                              /* -me macros */
                     38: };
                     39: char   shell[ONMSZ] =
                     40:        { '/', 'b', 'i', 'n', '/', 's', 'h' };
                     41: char   tags[ONMSZ] = {
                     42:        't', 'a', 'g', 's', ' ',
                     43:        '/', 'u', 's', 'r', '/', 'l', 'i', 'b', 'd', 'a', 't', 'a', '/', 't', 'a', 'g', 's'
                     44: };
                     45: char   ttytype[ONMSZ] =
                     46:        { 'd', 'u', 'm', 'b' };
                     47: 
                     48: short  COLUMNS = 80;
                     49: short  LINES = 24;
                     50: 
                     51: struct option options[NOPTS + 1] = {
                     52:        "autoindent",   "ai",   ONOFF,          0,      0,      0,
                     53:        "autoprint",    "ap",   ONOFF,          1,      1,      0,
                     54:        "autowrite",    "aw",   ONOFF,          0,      0,      0,
                     55:        "beautify",     "bf",   ONOFF,          0,      0,      0,
                     56:        "directory",    "dir",  STRING,         0,      0,      direct,
                     57:        "edcompatible", "ed",   ONOFF,          0,      0,      0,
                     58:        "errorbells",   "eb",   ONOFF,          0,      0,      0,
                     59:        "hardtabs",     "ht",   NUMERIC,        8,      8,      0,
                     60:        "ignorecase",   "ic",   ONOFF,          0,      0,      0,
                     61: #ifndef        UNIX_SBRK
                     62:        "linelimit",    "ll",   NUMERIC,        2000,   2000,   0,
                     63: #endif
                     64:        "lisp",         0,      ONOFF,          0,      0,      0,
                     65:        "list",         0,      ONOFF,          0,      0,      0,
                     66:        "magic",        0,      ONOFF,          1,      1,      0,
                     67:        "mesg",         0,      ONOFF,          1,      1,      0,
                     68:        "modeline",     0,      ONOFF,          0,      0,      0,
                     69:        "number",       "nu",   ONOFF,          0,      0,      0,
                     70:        "open",         0,      ONOFF,          1,      1,      0,
                     71:        "optimize",     "opt",  ONOFF,          0,      0,      0,
                     72:        "paragraphs",   "para", STRING,         0,      0,      paragraphs,
                     73:        "prompt",       0,      ONOFF,          1,      1,      0,
                     74:        "readonly",     "ro",   ONOFF,          0,      0,      0,
                     75:        "redraw",       0,      ONOFF,          0,      0,      0,
                     76:        "remap",        0,      ONOFF,          1,      1,      0,
                     77:        "report",       0,      NUMERIC,        5,      5,      0,
                     78:        "scroll",       "scr",  NUMERIC,        12,     12,     0,
                     79:        "sections",     "sect", STRING,         0,      0,      sections,
                     80:        "shell",        "sh",   STRING,         0,      0,      shell,
                     81:        "shiftwidth",   "sw",   NUMERIC,        TABS,   TABS,   0,
                     82:        "showmatch",    "sm",   ONOFF,          0,      0,      0,
                     83:        "slowopen",     "slow", ONOFF,          0,      0,      0,
                     84:        "sourceany",    0,      ONOFF,          0,      0,      0,
                     85:        "tabstop",      "ts",   NUMERIC,        TABS,   TABS,   0,
                     86:        "taglength",    "tl",   NUMERIC,        0,      0,      0,
                     87:        "tags",         "tag",  STRING,         0,      0,      tags,
                     88:        "term",         0,      OTERM,          0,      0,      ttytype,
                     89:        "terse",        0,      ONOFF,          0,      0,      0,
                     90:        "timeout",      "to",   ONOFF,          1,      1,      0,
                     91:        "ttytype",      "tty",  OTERM,          0,      0,      ttytype,
                     92:        "warn",         0,      ONOFF,          1,      1,      0,
                     93:        "window",       "wi",   NUMERIC,        23,     23,     0,
                     94:        "wrapscan",     "ws",   ONOFF,          1,      1,      0,
                     95:        "wrapmargin",   "wm",   NUMERIC,        0,      0,      0,
                     96:        "writeany",     "wa",   ONOFF,          0,      0,      0,
                     97:        0,              0,      0,              0,      0,      0,
                     98: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.