xref: /minix3/external/bsd/nvi/dist/common/log.h (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1*84d9c625SLionel Sambuc /*	$NetBSD: log.h,v 1.2 2013/11/22 15:52:05 christos Exp $	*/
2*84d9c625SLionel Sambuc /*-
3*84d9c625SLionel Sambuc  * Copyright (c) 1992, 1993, 1994
4*84d9c625SLionel Sambuc  *	The Regents of the University of California.  All rights reserved.
5*84d9c625SLionel Sambuc  * Copyright (c) 1992, 1993, 1994, 1995, 1996
6*84d9c625SLionel Sambuc  *	Keith Bostic.  All rights reserved.
7*84d9c625SLionel Sambuc  *
8*84d9c625SLionel Sambuc  * See the LICENSE file for redistribution information.
9*84d9c625SLionel Sambuc  *
10*84d9c625SLionel Sambuc  *	Id: log.h,v 10.4 2002/06/08 21:00:33 skimo Exp  (Berkeley) Date: 2002/06/08 21:00:33
11*84d9c625SLionel Sambuc  */
12*84d9c625SLionel Sambuc 
13*84d9c625SLionel Sambuc #define	LOG_NOTYPE		0
14*84d9c625SLionel Sambuc #define	LOG_CURSOR_INIT		2
15*84d9c625SLionel Sambuc #define	LOG_CURSOR_END		3
16*84d9c625SLionel Sambuc #define	LOG_LINE_APPEND_B	4
17*84d9c625SLionel Sambuc #define	LOG_LINE_APPEND_F	5
18*84d9c625SLionel Sambuc #define	LOG_LINE_DELETE_B	6
19*84d9c625SLionel Sambuc #define	LOG_LINE_DELETE_F	7
20*84d9c625SLionel Sambuc #define	LOG_LINE_RESET_B	8
21*84d9c625SLionel Sambuc #define	LOG_LINE_RESET_F	9
22*84d9c625SLionel Sambuc #define	LOG_MARK		10
23*84d9c625SLionel Sambuc 
24*84d9c625SLionel Sambuc typedef enum { UNDO_FORWARD, UNDO_BACKWARD, UNDO_SETLINE } undo_t;
25*84d9c625SLionel Sambuc 
26*84d9c625SLionel Sambuc struct _log_state {
27*84d9c625SLionel Sambuc 	int	didop;
28*84d9c625SLionel Sambuc 	MARK	pos;
29*84d9c625SLionel Sambuc 	undo_t	undo;
30*84d9c625SLionel Sambuc };
31