1 /*-
2  * Copyright (c) 2002 Jordan DeLong
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of the author nor the names of contributors may be
14  *    used to endorse or promote products derived from this software
15  *    without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27  * SUCH DAMAGE.
28  */
29 #ifndef EDITOR_H
30 #define EDITOR_H
31 
32 #ifndef __GNUC__
33 # error This program will not compile without GNUC extensions.
34 #endif
35 
36 #ifdef HAVE_CONFIG_H
37 # include <config.h>
38 #endif
39 
40 #include <sys/types.h>
41 #include <sys/stat.h>
42 #include <sys/wait.h>
43 
44 #include <assert.h>
45 #include <ctype.h>
46 #include <dirent.h>
47 #include <errno.h>
48 #include <limits.h>
49 #include <locale.h>
50 #include <signal.h>
51 #include <stdarg.h>
52 #include <stdlib.h>
53 #include <stdio.h>
54 #include <string.h>
55 #include <termios.h>
56 #include <unistd.h>
57 
58 /* this isn't present on Cygwin */
59 #ifndef _POSIX_VDISABLE
60 # define _POSIX_VDISABLE 0xff
61 #endif
62 
63 #ifdef HAVE_PATHS_H
64 # include <paths.h>
65 #else
66 # define _PATH_BSHELL	"/bin/sh"
67 #endif
68 
69 #ifdef HAVE_GETOPT_H
70 # include <getopt.h>
71 #endif
72 
73 #include "bsd_queue.h"
74 #include "bsd_vis.h"
75 #include "bsd_err.h"
76 #include "bsd_string.h"
77 
78 #include "forward.h"
79 
80 #include "ckmalloc.h"
81 #include "options.h"
82 #include "util.h"
83 #include "line.h"
84 #include "undo.h"
85 #include "buffer.h"
86 #include "screen.h"
87 #include "keybind.h"
88 #include "file.h"
89 #include "word.h"
90 #include "para.h"
91 #include "killring.h"
92 #include "minibuff.h"
93 #include "input.h"
94 #include "hash.h"
95 #include "search.h"
96 #include "macro.h"
97 #include "color.h"
98 #include "view.h"
99 #include "frame.h"
100 #include "region.h"
101 #include "vdefault.h"
102 #include "draw.h"
103 #include "command.h"
104 #include "rcfile.h"
105 #include "vminibuff.h"
106 #include "staticmod.h"
107 #include "complete.h"
108 #include "module.h"
109 #include "cmd_vdef/cmd_vdef.h"
110 
111 #ifdef USE_DMALLOC
112 # include <dmalloc.h>
113 #endif
114 
115 #define VERSION		"2.0"
116 
117 extern char *argv0;
118 
119 #endif
120