the script used to extract a release
[nvi.git] / common / common.h
blob2d072c7bd061e2f6054da18f0f2536020e041d7d
1 /*-
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.
9 * $Id: common.h,v 10.17 2000/07/14 14:29:15 skimo Exp $ (Berkeley) $Date: 2000/07/14 14:29:15 $
13 * Avoid include sys/types.h after definition of pgno_t
15 #include <sys/types.h>
16 #include <sys/queue.h>
17 #include <bitstring.h>
19 * Porting information built at configuration time. Included before
20 * any of nvi's include files.
22 #include "port.h"
25 * Pseudo-local includes. These are files that are unlikely to exist
26 * on most machines to which we're porting vi, and we want to include
27 * them in a very specific order, regardless.
29 #include "db.h"
30 #include <regex.h>
33 * Forward structure declarations. Not pretty, but the include files
34 * are far too interrelated for a clean solution.
36 typedef struct _cb CB;
37 typedef struct _csc CSC;
38 typedef struct _conv CONV;
39 typedef struct _event EVENT;
40 typedef struct _excmd EXCMD;
41 typedef struct _exf EXF;
42 typedef struct _fref FREF;
43 typedef struct _gs GS;
44 typedef struct _lmark LMARK;
45 typedef struct _mark MARK;
46 typedef struct _msg MSGS;
47 typedef struct _option OPTION;
48 typedef struct _optlist OPTLIST;
49 typedef struct _scr SCR;
50 typedef struct _script SCRIPT;
51 typedef struct _seq SEQ;
52 typedef struct _tag TAG;
53 typedef struct _tagf TAGF;
54 typedef struct _tagq TAGQ;
55 typedef struct _text TEXT;
56 typedef struct _win WIN;
58 /* Autoindent state. */
59 typedef enum { C_NOTSET, C_CARATSET, C_NOCHANGE, C_ZEROSET } carat_t;
61 /* Busy message types. */
62 typedef enum { BUSY_ON = 1, BUSY_OFF, BUSY_UPDATE } busy_t;
65 * Routines that return a confirmation return:
67 * CONF_NO User answered no.
68 * CONF_QUIT User answered quit, eof or an error.
69 * CONF_YES User answered yes.
71 typedef enum { CONF_NO, CONF_QUIT, CONF_YES } conf_t;
73 /* Directions. */
74 typedef enum { NOTSET, FORWARD, BACKWARD } dir_t;
76 /* Line operations. */
77 typedef enum { LINE_APPEND, LINE_DELETE, LINE_INSERT, LINE_RESET } lnop_t;
79 /* Lock return values. */
80 typedef enum { LOCK_FAILED, LOCK_SUCCESS, LOCK_UNAVAIL } lockr_t;
82 /* Sequence types. */
83 typedef enum { SEQ_ABBREV, SEQ_COMMAND, SEQ_INPUT } seq_t;
86 * Local includes.
88 #include "key.h" /* Required by args.h. */
89 #include "args.h" /* Required by options.h. */
90 #include "options.h" /* Required by screen.h. */
92 #include "msg.h" /* Required by gs.h. */
93 #include "cut.h" /* Required by gs.h. */
94 #include "seq.h" /* Required by screen.h. */
95 #include "util.h" /* Required by ex.h. */
96 #include "mark.h" /* Required by gs.h. */
97 #include "../ex/ex.h" /* Required by gs.h. */
98 #include "gs.h" /* Required by screen.h. */
99 #include "screen.h" /* Required by exf.h. */
100 #include "exf.h"
101 #include "log.h"
102 #include "mem.h"
103 #include "conv.h"
105 #include "extern.h"