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. 6 * 7 * See the LICENSE file for redistribution information. 8 */ 9 10 #ifndef TCSASOFT 11 #define TCSASOFT 0 12 #endif 13 14 #ifdef DB_H_ABS_PATH 15 #include DB_H_ABS_PATH 16 #else 17 #include <db.h> 18 #endif 19 #include <regex.h> /* May refer to the bundled regex. */ 20 21 /* 22 * Forward structure declarations. Not pretty, but the include files 23 * are far too interrelated for a clean solution. 24 */ 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; 46 47 /* Autoindent state. */ 48 typedef enum { C_NOTSET, C_CARATSET, C_ZEROSET } carat_t; 49 50 /* Busy message types. */ 51 typedef enum { BUSY_ON = 1, BUSY_OFF, BUSY_UPDATE } busy_t; 52 53 /* 54 * Routines that return a confirmation return: 55 * 56 * CONF_NO User answered no. 57 * CONF_QUIT User answered quit, eof or an error. 58 * CONF_YES User answered yes. 59 */ 60 typedef enum { CONF_NO, CONF_QUIT, CONF_YES } conf_t; 61 62 /* Directions. */ 63 typedef enum { NOTSET, FORWARD, BACKWARD } dir_t; 64 65 /* Line operations. */ 66 typedef enum { LINE_APPEND, LINE_DELETE, LINE_INSERT, LINE_RESET } lnop_t; 67 68 /* Lock return values. */ 69 typedef enum { LOCK_FAILED, LOCK_SUCCESS, LOCK_UNAVAIL } lockr_t; 70 71 /* Sequence types. */ 72 typedef enum { SEQ_ABBREV, SEQ_COMMAND, SEQ_INPUT } seq_t; 73 74 /* 75 * Local includes. 76 */ 77 #include "key.h" /* Required by args.h. */ 78 #include "args.h" /* Required by options.h. */ 79 #include "options.h" /* Required by screen.h. */ 80 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. */ 90 #include "exf.h" 91 #include "log.h" 92 #include "mem.h" 93 94 #include "extern.h" 95