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 #include <stdint.h> 21 22 /* 23 * Forward structure declarations. Not pretty, but the include files 24 * are far too interrelated for a clean solution. 25 */ 26 typedef struct _cb CB; 27 typedef struct _csc CSC; 28 typedef struct _conv CONV; 29 typedef struct _conv_win CONVWIN; 30 typedef struct _event EVENT; 31 typedef struct _excmd EXCMD; 32 typedef struct _exf EXF; 33 typedef struct _fref FREF; 34 typedef struct _gs GS; 35 typedef struct _lmark LMARK; 36 typedef struct _mark MARK; 37 typedef struct _msg MSGS; 38 typedef struct _option OPTION; 39 typedef struct _optlist OPTLIST; 40 typedef struct _scr SCR; 41 typedef struct _script SCRIPT; 42 typedef struct _seq SEQ; 43 typedef struct _tag TAG; 44 typedef struct _tagf TAGF; 45 typedef struct _tagq TAGQ; 46 typedef struct _text TEXT; 47 48 /* Autoindent state. */ 49 typedef enum { C_NOTSET, C_CARATSET, C_ZEROSET } carat_t; 50 51 /* Busy message types. */ 52 typedef enum { BUSY_ON = 1, BUSY_OFF, BUSY_UPDATE } busy_t; 53 54 /* 55 * Routines that return a confirmation return: 56 * 57 * CONF_NO User answered no. 58 * CONF_QUIT User answered quit, eof or an error. 59 * CONF_YES User answered yes. 60 */ 61 typedef enum { CONF_NO, CONF_QUIT, CONF_YES } conf_t; 62 63 /* Directions. */ 64 typedef enum { NOTSET, FORWARD, BACKWARD } dir_t; 65 66 /* Line operations. */ 67 typedef enum { LINE_APPEND, LINE_DELETE, LINE_INSERT, LINE_RESET } lnop_t; 68 69 /* Lock return values. */ 70 typedef enum { LOCK_FAILED, LOCK_SUCCESS, LOCK_UNAVAIL } lockr_t; 71 72 /* Sequence types. */ 73 typedef enum { SEQ_ABBREV, SEQ_COMMAND, SEQ_INPUT } seq_t; 74 75 /* 76 * Local includes. 77 */ 78 #include "key.h" /* Required by args.h. */ 79 #include "args.h" /* Required by options.h. */ 80 #include "options.h" /* Required by screen.h. */ 81 82 #include "msg.h" /* Required by gs.h. */ 83 #include "cut.h" /* Required by gs.h. */ 84 #include "seq.h" /* Required by screen.h. */ 85 #include "util.h" /* Required by ex.h. */ 86 #include "mark.h" /* Required by gs.h. */ 87 #include "conv.h" /* Required by ex.h and screen.h */ 88 #include "../ex/ex.h" /* Required by gs.h. */ 89 #include "gs.h" /* Required by screen.h. */ 90 #include "screen.h" /* Required by exf.h. */ 91 #include "exf.h" 92 #include "log.h" 93 #include "mem.h" 94 95 #include "extern.h" 96