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