add a .gitignore file
[nvi.git] / common / log.h
blob1af311a708f2d90e2cc71fbff71008f1ea1f039f
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.
7 * See the LICENSE file for redistribution information.
9 * $Id: log.h,v 10.4 2002/06/08 21:00:33 skimo Exp $ (Berkeley) $Date: 2002/06/08 21:00:33 $
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
23 typedef enum { UNDO_FORWARD, UNDO_BACKWARD, UNDO_SETLINE } undo_t;
25 struct _log_state {
26 int didop;
27 MARK pos;
28 undo_t undo;