Home | History | Annotate | Line # | Download | only in common
log.h revision 1.1.1.1
      1 /*-
      2  * Copyright (c) 1992, 1993, 1994
      3  *	The Regents of the University of California.  All rights reserved.
      4  * Copyright (c) 1992, 1993, 1994, 1995, 1996
      5  *	Keith Bostic.  All rights reserved.
      6  *
      7  * See the LICENSE file for redistribution information.
      8  *
      9  *	Id: log.h,v 10.4 2002/06/08 21:00:33 skimo Exp  (Berkeley) Date: 2002/06/08 21:00:33
     10  */
     11 
     12 #define	LOG_NOTYPE		0
     13 #define	LOG_CURSOR_INIT		2
     14 #define	LOG_CURSOR_END		3
     15 #define	LOG_LINE_APPEND_B	4
     16 #define	LOG_LINE_APPEND_F	5
     17 #define	LOG_LINE_DELETE_B	6
     18 #define	LOG_LINE_DELETE_F	7
     19 #define	LOG_LINE_RESET_B	8
     20 #define	LOG_LINE_RESET_F	9
     21 #define	LOG_MARK		10
     22 
     23 typedef enum { UNDO_FORWARD, UNDO_BACKWARD, UNDO_SETLINE } undo_t;
     24 
     25 struct _log_state {
     26 	int	didop;
     27 	MARK	pos;
     28 	undo_t	undo;
     29 };
     30