opts.c File Reference

#include "config.h"
#include "vi.h"
#include "ctype.h"

Include dependency graph for opts.c:

Go to the source code of this file.

Defines

#define NULL   (char *)0
#define MAXWIDTH   20
#define BOOL   0
#define NUM   1
#define STR   2
#define SET   0x01
#define CANSET   0x02
#define RCSET   0x06
#define NOSAVE   0x0a
#define WSET   0x20
#define MR   0x40

Functions

char * getenv ()
void initopts ()
void dumpopts (int all)
void saveopts (int fd)
void setopts (char *assignments)

Variables

char o_autoindent [1] = {FALSE}
char o_autoprint [1] = {TRUE}
char o_autotab [1] = {TRUE}
char o_autowrite [1] = {FALSE}
char o_columns [3] = {80, 32, 255}
char o_directory [30] = TMPDIR
char o_edcompatible [1] = {FALSE}
char o_equalprg [80] = {"fmt"}
char o_errorbells [1] = {TRUE}
char o_exrefresh [1] = {TRUE}
char o_ignorecase [1] = {FALSE}
char o_keytime [3] = {1, 0, 50}
char o_keywordprg [80] = {KEYWORDPRG}
char o_lines [3] = {25, 2, 96}
char o_list [1] = {FALSE}
char o_number [1] = {FALSE}
char o_readonly [1] = {FALSE}
char o_remap [1] = {TRUE}
char o_report [3] = {5, 1, 127}
char o_scroll [3] = {12, 1, 127}
char o_shell [60] = SHELL
char o_shiftwidth [3] = {8, 1, 255}
char o_sidescroll [3] = {8, 1, 40}
char o_sync [1] = {NEEDSYNC}
char o_tabstop [3] = {8, 1, 40}
char o_term [30] = "?"
char o_flash [1] = {TRUE}
char o_warn [1] = {TRUE}
char o_wrapscan [1] = {TRUE}
char o_beautify [1] = {FALSE}
char o_exrc [1] = {FALSE}
char o_mesg [1] = {TRUE}
char o_more [1] = {TRUE}
char o_novice [1] = {FALSE}
char o_prompt [1] = {TRUE}
char o_taglength [3] = {0, 0, 30}
char o_terse [1] = {FALSE}
char o_window [3] = {0, 1, 24}
char o_wrapmargin [3] = {0, 0, 255}
char o_writeany [1] = {FALSE}
char o_cc [30] = {CC_COMMAND}
char o_make [30] = {MAKE_COMMAND}
char o_charattr [1] = {FALSE}
char o_digraph [1] = {FALSE}
char o_flipcase [80]
char o_hideformat [1] = {FALSE}
char o_inputmode [1] = {FALSE}
char o_ruler [1] = {FALSE}
char o_magic [1] = {TRUE}
char o_modelines [1] = {FALSE}
char o_paragraphs [30] = "PPppIPLPQP"
char o_sections [30] = "NHSHSSSEse"
char o_showmatch [1] = {FALSE}
char o_smd [1] = {FALSE}
struct {
   char *   f_name
   FILE *   f_fp
   int   f_type
   char *   word
   int   type
   int   val
   char *   name
   CMD   code
   void(*   fn )()
   ARGT   argt
   char *   name
   char *   nm
   char   type
   char   flags
   char *   value
   const char *   name
   signed char   fat_bits
   int   tracks
   unsigned short   heads
   unsigned short   sectors
   device_t *   dev
   int   nr_partitions
   int   free_regions
   int   used_regions
   int   sectors
   int   nr_regions
   int   biosdrive
   region_t   regions [NR_REGIONS]
   int   this_month
   int   feb
   int   sept
   int   days_in_month
   int   dow_first
   int   o_file
   int   o_field
   WINDOW *   win
   char   erase
   char   kill
   char   werase
   unsigned   baudr
   int   speedcode
   u16_t   vendor
   u16_t   device
opts []


Define Documentation

#define BOOL   0
 

Definition at line 128 of file opts.c.

Referenced by copy_member(), digits(), fill(), print(), and string_print().

#define CANSET   0x02
 

Definition at line 132 of file opts.c.

Referenced by initopts(), and saveopts().

#define MAXWIDTH   20
 

Definition at line 24 of file opts.c.

#define MR   0x40
 

Definition at line 136 of file opts.c.

#define NOSAVE   0x0a
 

Definition at line 134 of file opts.c.

Referenced by saveopts().

#define NULL   (char *)0
 

Definition at line 19 of file opts.c.

#define NUM   1
 

Definition at line 129 of file opts.c.

#define RCSET   0x06
 

Definition at line 133 of file opts.c.

#define SET   0x01
 

Definition at line 131 of file opts.c.

Referenced by analyse_input_files(), cdiff(), diff(), dumpopts(), fts_build(), fts_children(), fts_open(), fts_read(), main(), process_command_line(), saveopts(), and update().

#define STR   2
 

Definition at line 130 of file opts.c.

#define WSET   0x20
 

Definition at line 135 of file opts.c.


Function Documentation

void dumpopts int  all  ) 
 

Definition at line 342 of file opts.c.

References flags, i, j, k, nbuf, ncols, opts, SET, and width.

Referenced by cmd_set().

char* getenv  ) 
 

void initopts  ) 
 

Definition at line 256 of file opts.c.

References atoi, CANSET, COLS, FALSE, flags, getenv(), has_VB, i, LINES, o_columns, o_directory, o_flash, o_flipcase, o_lines, o_scroll, o_shell, o_term, o_window, opts, strcmp, strcpy(), termtype, TRUE, and val.

Referenced by main().

void saveopts int  fd  ) 
 

Definition at line 562 of file opts.c.

References CANSET, flags, NOSAVE, opts, pos, and SET.

Referenced by cmd_mkexrc().

void setopts char *  assignments  ) 
 

Definition at line 606 of file opts.c.

References j, o_lines, o_window, prefix, and quote().

Referenced by cmd_set().


Variable Documentation

char flags
 

Definition at line 142 of file opts.c.

char* name
 

Definition at line 139 of file opts.c.

char* nm
 

Definition at line 140 of file opts.c.

Referenced by Findnum(), Findparms(), Findscale(), main(), nr_ds(), nr_ft(), nr_rm(), nr_rn(), nr_rr(), nr_tr(), nr_Uf(), Nreq(), and Pass2().

char o_autoindent[1] = {FALSE}
 

Definition at line 27 of file opts.c.

Referenced by cmd_append(), and input().

char o_autoprint[1] = {TRUE}
 

Definition at line 28 of file opts.c.

Referenced by ex().

char o_autotab[1] = {TRUE}
 

Definition at line 29 of file opts.c.

char o_autowrite[1] = {FALSE}
 

Definition at line 30 of file opts.c.

Referenced by cmd_xit(), and tmpabort().

char o_beautify[1] = {FALSE}
 

Definition at line 58 of file opts.c.

char o_cc[30] = {CC_COMMAND}
 

Definition at line 72 of file opts.c.

Referenced by cmd_make().

char o_charattr[1] = {FALSE}
 

Definition at line 77 of file opts.c.

Referenced by hasattr(), and idx2col().

char o_columns[3] = {80, 32, 255}
 

Definition at line 31 of file opts.c.

Referenced by getsize(), initopts(), and m_tocol().

char o_digraph[1] = {FALSE}
 

Definition at line 81 of file opts.c.

Referenced by digraph().

char o_directory[30] = TMPDIR
 

Definition at line 32 of file opts.c.

Referenced by filter(), initopts(), readcutblk(), and tmpstart().

char o_edcompatible[1] = {FALSE}
 

Definition at line 33 of file opts.c.

char o_equalprg[80] = {"fmt"}
 

Definition at line 34 of file opts.c.

Referenced by v_reformat().

char o_errorbells[1] = {TRUE}
 

Definition at line 35 of file opts.c.

Referenced by beep().

char o_exrc[1] = {FALSE}
 

Definition at line 59 of file opts.c.

char o_exrefresh[1] = {TRUE}
 

Definition at line 36 of file opts.c.

Referenced by exrefresh().

char o_flash[1] = {TRUE}
 

Definition at line 53 of file opts.c.

Referenced by beep(), and initopts().

char o_flipcase[80]
 

Definition at line 89 of file opts.c.

Referenced by initopts().

char o_hideformat[1] = {FALSE}
 

Definition at line 93 of file opts.c.

Referenced by drawtext(), and smartdrawtext().

char o_ignorecase[1] = {FALSE}
 

Definition at line 37 of file opts.c.

Referenced by match1(), and regexec().

char o_inputmode[1] = {FALSE}
 

Definition at line 97 of file opts.c.

Referenced by main(), and vi().

char o_keytime[3] = {1, 0, 50}
 

Definition at line 38 of file opts.c.

Referenced by getabkey().

char o_keywordprg[80] = {KEYWORDPRG}
 

Definition at line 39 of file opts.c.

Referenced by v_keyword().

char o_lines[3] = {25, 2, 96}
 

Definition at line 40 of file opts.c.

Referenced by getsize(), initopts(), and setopts().

char o_list[1] = {FALSE}
 

Definition at line 41 of file opts.c.

Referenced by adjmove(), drawtext(), idx2col(), m_tocol(), and smartdrawtext().

char o_magic[1] = {TRUE}
 

Definition at line 102 of file opts.c.

Referenced by cmd_substitute(), cmd_tag(), gettoken(), and regsub().

char o_make[30] = {MAKE_COMMAND}
 

Definition at line 73 of file opts.c.

Referenced by cmd_make().

char o_mesg[1] = {TRUE}
 

Definition at line 60 of file opts.c.

char o_modelines[1] = {FALSE}
 

Definition at line 106 of file opts.c.

Referenced by do_modelines().

char o_more[1] = {TRUE}
 

Definition at line 61 of file opts.c.

Referenced by getabkey().

char o_novice[1] = {FALSE}
 

Definition at line 62 of file opts.c.

char o_number[1] = {FALSE}
 

Definition at line 42 of file opts.c.

Referenced by drawtext(), mark2phys(), and nudgecursor().

char o_paragraphs[30] = "PPppIPLPQP"
 

Definition at line 110 of file opts.c.

Referenced by m_paragraph().

char o_prompt[1] = {TRUE}
 

Definition at line 63 of file opts.c.

Referenced by ex().

char o_readonly[1] = {FALSE}
 

Definition at line 43 of file opts.c.

Referenced by main(), tmpsave(), and tmpstart().

char o_remap[1] = {TRUE}
 

Definition at line 44 of file opts.c.

Referenced by getabkey().

char o_report[3] = {5, 1, 127}
 

Definition at line 45 of file opts.c.

char o_ruler[1] = {FALSE}
 

Definition at line 98 of file opts.c.

Referenced by fillkeybuf().

char o_scroll[3] = {12, 1, 127}
 

Definition at line 46 of file opts.c.

Referenced by initopts(), and m_scroll().

char o_sections[30] = "NHSHSSSEse"
 

Definition at line 111 of file opts.c.

Referenced by m_paragraph().

char o_shell[60] = SHELL
 

Definition at line 47 of file opts.c.

Referenced by cmd_shell(), initopts(), rpipe(), and system().

char o_shiftwidth[3] = {8, 1, 255}
 

Definition at line 48 of file opts.c.

char o_showmatch[1] = {FALSE}
 

Definition at line 119 of file opts.c.

char o_sidescroll[3] = {8, 1, 40}
 

Definition at line 49 of file opts.c.

Referenced by mark2phys().

char o_smd[1] = {FALSE}
 

Definition at line 123 of file opts.c.

Referenced by fillkeybuf().

char o_sync[1] = {NEEDSYNC}
 

Definition at line 50 of file opts.c.

char o_tabstop[3] = {8, 1, 40}
 

Definition at line 51 of file opts.c.

Referenced by adjmove(), cmd_shift(), drawtext(), idx2col(), m_tocol(), and smartdrawtext().

char o_taglength[3] = {0, 0, 30}
 

Definition at line 64 of file opts.c.

char o_term[30] = "?"
 

Definition at line 52 of file opts.c.

Referenced by initopts(), and main().

char o_terse[1] = {FALSE}
 

Definition at line 65 of file opts.c.

char o_warn[1] = {TRUE}
 

Definition at line 54 of file opts.c.

Referenced by cmd_shell(), m_bsrch(), m_fsrch(), and v_keyword().

char o_window[3] = {0, 1, 24}
 

Definition at line 66 of file opts.c.

Referenced by initopts(), main(), and setopts().

char o_wrapmargin[3] = {0, 0, 255}
 

Definition at line 67 of file opts.c.

Referenced by input().

char o_wrapscan[1] = {TRUE}
 

Definition at line 55 of file opts.c.

Referenced by m_bsrch(), and m_fsrch().

char o_writeany[1] = {FALSE}
 

Definition at line 68 of file opts.c.

Referenced by tmpsave().

struct { ... } opts[]
 

Referenced by dumpopts(), initopts(), and saveopts().

char type
 

Definition at line 141 of file opts.c.

char* value
 

Definition at line 143 of file opts.c.


Generated on Fri Apr 14 23:03:06 2006 for minix by  doxygen 1.4.6