ex.c File Reference

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

Include dependency graph for ex.c:

Go to the source code of this file.

Defines

#define FROM   1
#define TO   2
#define BANG   4
#define EXTRA   8
#define XFILE   16
#define NOSPC   32
#define DFLALL   64
#define DFLNONE   128
#define NODFL   256
#define EXRCOK   512
#define NL   1024
#define PLUS   2048
#define ZERO   4096
#define NOBAR   8192
#define FILES   (XFILE + EXTRA)
#define WORD1   (EXTRA + NOSPC)
#define FILE1   (FILES + NOSPC)
#define NAMEDF   (FILE1 + NODFL)
#define NAMEDFS   (FILES + NODFL)
#define RANGE   (FROM + TO)
#define NONE   0

Typedefs

typedef short ARGT

Functions

char * parseptrn (REG char *ptrn)
char * linespec (REG char *s, MARK *markptr)
void ex ()
void doexcmd (char *cmdbuf)
int doexrc (char *filename)
void exstring (char *buf, int len, int qchar)

Variables

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
cmdnames []


Define Documentation

#define BANG   4
 

Definition at line 21 of file ex.c.

#define DFLALL   64
 

Definition at line 25 of file ex.c.

#define DFLNONE   128
 

Definition at line 26 of file ex.c.

#define EXRCOK   512
 

Definition at line 28 of file ex.c.

#define EXTRA   8
 

Definition at line 22 of file ex.c.

Referenced by fgetln().

#define FILE1   (FILES + NOSPC)
 

Definition at line 35 of file ex.c.

#define FILES   (XFILE + EXTRA)
 

Definition at line 33 of file ex.c.

#define FROM   1
 

Definition at line 19 of file ex.c.

#define NAMEDF   (FILE1 + NODFL)
 

Definition at line 36 of file ex.c.

#define NAMEDFS   (FILES + NODFL)
 

Definition at line 37 of file ex.c.

#define NL   1024
 

Definition at line 29 of file ex.c.

Referenced by delimbuild(), docmd(), getfn(), getrhs(), ins(), join(), maksub(), optpat(), prntln(), and set().

#define NOBAR   8192
 

Definition at line 32 of file ex.c.

#define NODFL   256
 

Definition at line 27 of file ex.c.

#define NONE   0
 

Definition at line 39 of file ex.c.

Referenced by clear_proc(), clone_opcl(), con_loadfont(), ctty_io(), dev_close(), dev_io(), dev_open(), dev_status(), dmap_driver_match(), dmap_endpt_up(), dmap_unmap_by_endpt(), do_devctl(), do_fkey_ctl(), do_ioctl(), do_irqctl(), do_reboot(), do_svrctl(), do_times(), dtab_dmp(), fs_init(), func_key(), gen_opcl(), generic_handler(), get_priv(), getuptime(), initialize(), irqtab_dmp(), kb_init_once(), kputc(), ksig_pending(), m_transfer(), main(), map_driver(), mini_receive(), pax_options(), rl_readv(), rl_writev(), show_key_mappings(), suspend(), and TranslateToDos().

#define NOSPC   32
 

Definition at line 24 of file ex.c.

#define PLUS   2048
 

Definition at line 30 of file ex.c.

#define RANGE   (FROM + TO)
 

Definition at line 38 of file ex.c.

#define TO   2
 

Definition at line 20 of file ex.c.

#define WORD1   (EXTRA + NOSPC)
 

Definition at line 34 of file ex.c.

#define XFILE   16
 

Definition at line 23 of file ex.c.

#define ZERO   4096
 

Definition at line 31 of file ex.c.


Typedef Documentation

typedef short ARGT
 

Definition at line 18 of file ex.c.


Function Documentation

void doexcmd char *  cmdbuf  ) 
 

Definition at line 342 of file ex.c.

References argt, L, MARK, REG, tomark(), and U_line.

Referenced by cmd_edit(), cmd_global(), ex(), and v_1ex().

int doexrc char *  filename  ) 
 

Definition at line 661 of file ex.c.

References BLKSIZE, close, ctrl, exstring(), L, O_RDONLY, open, tread, U_line, and U_text.

Referenced by cmd_source().

void ex  ) 
 

Definition at line 291 of file ex.c.

void exstring char *  buf,
int  len,
int  qchar
 

Definition at line 692 of file ex.c.

References i, and single.

Referenced by cmd_at(), do_modelines(), and doexrc().

char* linespec REG char *  s,
MARK markptr
 

Definition at line 180 of file ex.c.

References BLKSIZE, cursor, isdigit, isspace, L, m_bsrch(), m_fsrch(), m_tomark(), m_updnto(), MARK_AT_LINE, MARK_LAST, markline, num(), parseptrn(), pfetch(), plen, REG, and t.

Referenced by cmd_move(), and cmd_tag().

char* parseptrn REG char *  ptrn  ) 
 

Definition at line 155 of file ex.c.

References REG.

Referenced by cmd_global(), cmd_substitute(), linespec(), m_bsrch(), and m_fsrch().


Variable Documentation

ARGT argt
 

Definition at line 51 of file ex.c.

Referenced by doexcmd().

struct { ... } cmdnames[] [static]
 

CMD code
 

Definition at line 49 of file ex.c.

void(* fn)()
 

Referenced by Defdev(), do_visit(), expredir(), extension(), and main().

char* name
 

Definition at line 48 of file ex.c.


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