1 /* $NetBSD: common.h,v 1.1.1.2 2008/05/18 14:29:40 aymeric Exp $ */
4 * Copyright (c) 1991, 1993, 1994
5 * The Regents of the University of California. All rights reserved.
6 * Copyright (c) 1991, 1993, 1994, 1995, 1996
7 * Keith Bostic. All rights reserved.
9 * See the LICENSE file for redistribution information.
11 * Id: common.h,v 10.20 2002/03/02 23:36:22 skimo Exp (Berkeley) Date: 2002/03/02 23:36:22
15 * Avoid include sys/types.h after definition of pgno_t
17 #include <sys/types.h>
18 #include <sys/queue.h>
19 #include <bitstring.h>
21 * Porting information built at configuration time. Included before
22 * any of nvi's include files.
27 * Pseudo-local includes. These are files that are unlikely to exist
28 * on most machines to which we're porting vi, and we want to include
29 * them in a very specific order, regardless.
35 * Forward structure declarations. Not pretty, but the include files
36 * are far too interrelated for a clean solution.
38 typedef struct _cb CB
;
39 typedef struct _csc CSC
;
40 typedef struct _conv CONV
;
41 typedef struct _conv_win CONVWIN
;
42 typedef struct _event EVENT
;
43 typedef struct _excmd EXCMD
;
44 typedef struct _exf EXF
;
45 typedef struct _fref FREF
;
46 typedef struct _gs GS
;
47 typedef struct _lmark LMARK
;
48 typedef struct _mark MARK
;
49 typedef struct _msg MSGS
;
50 typedef struct _option OPTION
;
51 typedef struct _optlist OPTLIST
;
52 typedef struct _scr SCR
;
53 typedef struct _script SCRIPT
;
54 typedef struct _seq SEQ
;
55 typedef struct _tag TAG
;
56 typedef struct _tagf TAGF
;
57 typedef struct _tagq TAGQ
;
58 typedef struct _text TEXT
;
59 typedef struct _win WIN
;
61 /* Autoindent state. */
62 typedef enum { C_NOTSET
, C_CARATSET
, C_NOCHANGE
, C_ZEROSET
} carat_t
;
64 /* Busy message types. */
65 typedef enum { BUSY_ON
= 1, BUSY_OFF
, BUSY_UPDATE
} busy_t
;
68 * Routines that return a confirmation return:
70 * CONF_NO User answered no.
71 * CONF_QUIT User answered quit, eof or an error.
72 * CONF_YES User answered yes.
74 typedef enum { CONF_NO
, CONF_QUIT
, CONF_YES
} conf_t
;
77 typedef enum { NOTSET
, FORWARD
, BACKWARD
} dir_t
;
79 /* Line operations. */
80 typedef enum { LINE_APPEND
, LINE_DELETE
, LINE_INSERT
, LINE_RESET
} lnop_t
;
82 /* Lock return values. */
83 typedef enum { LOCK_FAILED
, LOCK_SUCCESS
, LOCK_UNAVAIL
} lockr_t
;
86 typedef enum { SEQ_ABBREV
, SEQ_COMMAND
, SEQ_INPUT
} seq_t
;
91 #include "key.h" /* Required by args.h. */
92 #include "args.h" /* Required by options.h. */
93 #include "options.h" /* Required by screen.h. */
95 #include "msg.h" /* Required by gs.h. */
96 #include "cut.h" /* Required by gs.h. */
97 #include "seq.h" /* Required by screen.h. */
98 #include "util.h" /* Required by ex.h. */
99 #include "mark.h" /* Required by gs.h. */
100 #include "conv.h" /* Required by ex.h and screen.h */
101 #include "../ex/ex.h" /* Required by gs.h. */
102 #include "gs.h" /* Required by screen.h. */
103 #include "log.h" /* Required by screen.h */
104 #include "screen.h" /* Required by exf.h. */
107 #if defined(USE_DB4_LOGGING)