1996-11-01 06:45:43 +00:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 1991, 1993, 1994
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
|
|
|
* Copyright (c) 1991, 1993, 1994, 1995, 1996
|
|
|
|
* Keith Bostic. All rights reserved.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for redistribution information.
|
|
|
|
*/
|
|
|
|
|
2020-10-01 04:25:54 +00:00
|
|
|
#ifndef TCSASOFT
|
|
|
|
#define TCSASOFT 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __linux__
|
|
|
|
#include "/usr/include/db1/db.h" /* Only include db1. */
|
|
|
|
#else
|
2020-10-12 10:42:24 +00:00
|
|
|
#include <db.h> /* Only include db1. */
|
2020-10-01 04:25:54 +00:00
|
|
|
#endif
|
2020-09-09 07:57:59 +00:00
|
|
|
#include <regex.h> /* May refer to the bundled regex. */
|
1996-11-01 06:45:43 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Forward structure declarations. Not pretty, but the include files
|
|
|
|
* are far too interrelated for a clean solution.
|
|
|
|
*/
|
|
|
|
typedef struct _cb CB;
|
|
|
|
typedef struct _csc CSC;
|
2015-04-10 13:26:05 +00:00
|
|
|
typedef struct _conv CONV;
|
|
|
|
typedef struct _conv_win CONVWIN;
|
1996-11-01 06:45:43 +00:00
|
|
|
typedef struct _event EVENT;
|
|
|
|
typedef struct _excmd EXCMD;
|
|
|
|
typedef struct _exf EXF;
|
|
|
|
typedef struct _fref FREF;
|
|
|
|
typedef struct _gs GS;
|
|
|
|
typedef struct _lmark LMARK;
|
|
|
|
typedef struct _mark MARK;
|
|
|
|
typedef struct _msg MSGS;
|
|
|
|
typedef struct _option OPTION;
|
|
|
|
typedef struct _optlist OPTLIST;
|
|
|
|
typedef struct _scr SCR;
|
|
|
|
typedef struct _script SCRIPT;
|
|
|
|
typedef struct _seq SEQ;
|
|
|
|
typedef struct _tag TAG;
|
|
|
|
typedef struct _tagf TAGF;
|
|
|
|
typedef struct _tagq TAGQ;
|
|
|
|
typedef struct _text TEXT;
|
|
|
|
|
|
|
|
/* Autoindent state. */
|
2013-08-11 09:44:58 +00:00
|
|
|
typedef enum { C_NOTSET, C_CARATSET, C_ZEROSET } carat_t;
|
1996-11-01 06:45:43 +00:00
|
|
|
|
|
|
|
/* Busy message types. */
|
|
|
|
typedef enum { BUSY_ON = 1, BUSY_OFF, BUSY_UPDATE } busy_t;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Routines that return a confirmation return:
|
|
|
|
*
|
|
|
|
* CONF_NO User answered no.
|
|
|
|
* CONF_QUIT User answered quit, eof or an error.
|
|
|
|
* CONF_YES User answered yes.
|
|
|
|
*/
|
|
|
|
typedef enum { CONF_NO, CONF_QUIT, CONF_YES } conf_t;
|
|
|
|
|
|
|
|
/* Directions. */
|
|
|
|
typedef enum { NOTSET, FORWARD, BACKWARD } dir_t;
|
|
|
|
|
|
|
|
/* Line operations. */
|
|
|
|
typedef enum { LINE_APPEND, LINE_DELETE, LINE_INSERT, LINE_RESET } lnop_t;
|
|
|
|
|
|
|
|
/* Lock return values. */
|
|
|
|
typedef enum { LOCK_FAILED, LOCK_SUCCESS, LOCK_UNAVAIL } lockr_t;
|
|
|
|
|
|
|
|
/* Sequence types. */
|
|
|
|
typedef enum { SEQ_ABBREV, SEQ_COMMAND, SEQ_INPUT } seq_t;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local includes.
|
|
|
|
*/
|
|
|
|
#include "key.h" /* Required by args.h. */
|
|
|
|
#include "args.h" /* Required by options.h. */
|
|
|
|
#include "options.h" /* Required by screen.h. */
|
|
|
|
|
|
|
|
#include "msg.h" /* Required by gs.h. */
|
|
|
|
#include "cut.h" /* Required by gs.h. */
|
|
|
|
#include "seq.h" /* Required by screen.h. */
|
|
|
|
#include "util.h" /* Required by ex.h. */
|
|
|
|
#include "mark.h" /* Required by gs.h. */
|
2013-08-11 09:44:58 +00:00
|
|
|
#include "conv.h" /* Required by ex.h and screen.h */
|
1996-11-01 06:45:43 +00:00
|
|
|
#include "../ex/ex.h" /* Required by gs.h. */
|
|
|
|
#include "gs.h" /* Required by screen.h. */
|
|
|
|
#include "screen.h" /* Required by exf.h. */
|
|
|
|
#include "exf.h"
|
|
|
|
#include "log.h"
|
|
|
|
#include "mem.h"
|
|
|
|
|
2013-08-11 09:44:58 +00:00
|
|
|
#include "extern.h"
|