blk.c File Reference

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

Include dependency graph for blk.c:

Go to the source code of this file.

Data Structures

struct  _blkbuf

Defines

#define NBUFS   5

Functions

void blkinit ()
BLKblkget (int logical)
void blkflush (REG struct _blkbuf *this)
void blkdirty (BLK *bp)
BLKblkadd (int logical)
void blksync ()
void beforedo (int forundo)
void afterdo ()
void abortdo ()
int undo ()

Variables

BLK hdr
static int b4cnt
static struct _blkbuf blk [NBUFS]
static struct _blkbuftoonew [NBUFS]
static struct _blkbufnewtoo [NBUFS]
static struct _blkbufrecycle [NBUFS]
static MARK undocurs
static long oldnlines
static long oldlnum [MAXBLKS]


Define Documentation

#define NBUFS   5
 

Definition at line 19 of file blk.c.

Referenced by blkdirty(), blkget(), blkinit(), and blksync().


Function Documentation

void abortdo  ) 
 

Definition at line 414 of file blk.c.

References afterdo(), b4cnt, FALSE, MARK_UNSET, MODE_COLON, MODE_VI, and redraw().

Referenced by trapint().

void afterdo  ) 
 

Definition at line 378 of file blk.c.

References b4cnt, cursor, MARK_LAST, markline, MODIFIED, nlines, setflag, significant, and UNDOABLE.

Referenced by abortdo(), input(), and undo().

void beforedo int  forundo  ) 
 

Definition at line 322 of file blk.c.

References b4cnt, BLKSIZE, blksync(), BLK::c, garbage(), i, L, lnum, lseek, MAXBLKS, msg, nlines, REG, and write.

Referenced by input(), and undo().

BLK* blkadd int  logical  ) 
 

Definition at line 268 of file blk.c.

References i, lnum, MAXBLKS, BLK::n, and REG.

void blkdirty BLK bp  ) 
 

Definition at line 174 of file blk.c.

References blk, _blkbuf::buf, DEBUG, i, j, k, msg, NBUFS, and REG.

Referenced by blkflush().

void blkflush REG struct _blkbuf this  ) 
 

Definition at line 134 of file blk.c.

References allocate(), blkdirty(), BLKSIZE, dirty, FALSE, L, _blkbuf::logical, lseek, msg, BLK::n, and write.

Referenced by blksync().

BLK* blkget int  logical  ) 
 

Definition at line 60 of file blk.c.

References blk, _blkbuf::buf, i, NBUFS, newtoo, REG, and toonew.

Referenced by change(), fetchline(), and tmpsave().

void blkinit  ) 
 

Definition at line 44 of file blk.c.

References blk, _blkbuf::dirty, FALSE, i, and NBUFS.

Referenced by tmpabort(), and undo().

void blksync  ) 
 

Definition at line 297 of file blk.c.

References blk, blkflush(), i, and NBUFS.

Referenced by beforedo().

int undo  ) 
 

Definition at line 435 of file blk.c.

References afterdo(), beforedo(), blkinit(), BLKSIZE, BLK::c, changes, cursor, FALSE, L, lseek, msg, read, significant, tmpfd, TRUE, tstflag, UNDOABLE, and undocurs.

Referenced by cmd_undo(), and v_undo().


Variable Documentation

int b4cnt [static]
 

Definition at line 27 of file blk.c.

Referenced by abortdo(), afterdo(), and beforedo().

struct _blkbuf blk[NBUFS] [static]
 

Referenced by add(), add_z_1(), add_z_2(), blk_ok(), blkdirty(), blkget(), blkinit(), blksync(), change(), delete(), file_vir2sec(), main(), proc_ind(), rw_inode(), and set_bit().

BLK hdr
 

Definition at line 25 of file blk.c.

struct _blkbuf * newtoo[NBUFS] [static]
 

Referenced by blkget().

long oldlnum[MAXBLKS] [static]
 

Definition at line 316 of file blk.c.

long oldnlines [static]
 

Definition at line 315 of file blk.c.

Referenced by cmd_substitute(), and fillkeybuf().

struct _blkbuf * recycle[NBUFS] [static]
 

struct _blkbuf * toonew[NBUFS] [static]
 

Referenced by blkget().

MARK undocurs [static]
 

Definition at line 314 of file blk.c.

Referenced by undo().


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