2 * Copyright (c) 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1991, 1993, 1994, 1995, 1996
5 * Keith Bostic. All rights reserved.
7 * See the LICENSE file for redistribution information.
15 #include "/usr/include/db1/db.h" /* Only include db1. */
17 #include "/usr/include/db.h" /* Only include db1. */
19 #include <regex.h> /* May refer to the bundled regex. */
22 * Forward structure declarations. Not pretty, but the include files
23 * are far too interrelated for a clean solution.
25 typedef struct _cb CB;
26 typedef struct _csc CSC;
27 typedef struct _conv CONV;
28 typedef struct _conv_win CONVWIN;
29 typedef struct _event EVENT;
30 typedef struct _excmd EXCMD;
31 typedef struct _exf EXF;
32 typedef struct _fref FREF;
33 typedef struct _gs GS;
34 typedef struct _lmark LMARK;
35 typedef struct _mark MARK;
36 typedef struct _msg MSGS;
37 typedef struct _option OPTION;
38 typedef struct _optlist OPTLIST;
39 typedef struct _scr SCR;
40 typedef struct _script SCRIPT;
41 typedef struct _seq SEQ;
42 typedef struct _tag TAG;
43 typedef struct _tagf TAGF;
44 typedef struct _tagq TAGQ;
45 typedef struct _text TEXT;
47 /* Autoindent state. */
48 typedef enum { C_NOTSET, C_CARATSET, C_ZEROSET } carat_t;
50 /* Busy message types. */
51 typedef enum { BUSY_ON = 1, BUSY_OFF, BUSY_UPDATE } busy_t;
54 * Routines that return a confirmation return:
56 * CONF_NO User answered no.
57 * CONF_QUIT User answered quit, eof or an error.
58 * CONF_YES User answered yes.
60 typedef enum { CONF_NO, CONF_QUIT, CONF_YES } conf_t;
63 typedef enum { NOTSET, FORWARD, BACKWARD } dir_t;
65 /* Line operations. */
66 typedef enum { LINE_APPEND, LINE_DELETE, LINE_INSERT, LINE_RESET } lnop_t;
68 /* Lock return values. */
69 typedef enum { LOCK_FAILED, LOCK_SUCCESS, LOCK_UNAVAIL } lockr_t;
72 typedef enum { SEQ_ABBREV, SEQ_COMMAND, SEQ_INPUT } seq_t;
77 #include "key.h" /* Required by args.h. */
78 #include "args.h" /* Required by options.h. */
79 #include "options.h" /* Required by screen.h. */
81 #include "msg.h" /* Required by gs.h. */
82 #include "cut.h" /* Required by gs.h. */
83 #include "seq.h" /* Required by screen.h. */
84 #include "util.h" /* Required by ex.h. */
85 #include "mark.h" /* Required by gs.h. */
86 #include "conv.h" /* Required by ex.h and screen.h */
87 #include "../ex/ex.h" /* Required by gs.h. */
88 #include "gs.h" /* Required by screen.h. */
89 #include "screen.h" /* Required by exf.h. */