7
|
1 /* vi:set ts=8 sts=4 sw=4:
|
|
2 *
|
|
3 * VIM - Vi IMproved by Bram Moolenaar
|
|
4 *
|
|
5 * Do ":help uganda" in Vim to read copying and usage conditions.
|
|
6 * Do ":help credits" in Vim to see a list of people who contributed.
|
|
7 */
|
|
8
|
|
9 /*
|
|
10 * proto.h: include the (automatically generated) function prototypes
|
|
11 */
|
|
12
|
|
13 /*
|
|
14 * Don't include these while generating prototypes. Prevents problems when
|
|
15 * files are missing.
|
|
16 */
|
|
17 #if !defined(PROTO) && !defined(NOPROTO)
|
|
18
|
|
19 /*
|
|
20 * Machine-dependent routines.
|
|
21 */
|
|
22 /* avoid errors in function prototypes */
|
573
|
23 # if !defined(FEAT_X11) && !defined(FEAT_GUI_GTK)
|
7
|
24 # define Display int
|
|
25 # define Widget int
|
|
26 # endif
|
|
27 # ifndef FEAT_GUI_GTK
|
|
28 # define GdkEvent int
|
|
29 # define GdkEventKey int
|
|
30 # endif
|
|
31 # ifndef FEAT_X11
|
|
32 # define XImage int
|
|
33 # endif
|
|
34
|
|
35 # ifdef AMIGA
|
|
36 # include "os_amiga.pro"
|
|
37 # endif
|
|
38 # if defined(UNIX) || defined(__EMX__) || defined(VMS)
|
|
39 # include "os_unix.pro"
|
|
40 # endif
|
|
41 # if defined(MSDOS) || defined(WIN16)
|
|
42 # include "os_msdos.pro"
|
|
43 # endif
|
|
44 # ifdef WIN16
|
|
45 typedef LPSTR LPWSTR;
|
|
46 typedef LPCSTR LPCWSTR;
|
|
47 typedef int LPBOOL;
|
|
48 # include "os_win16.pro"
|
|
49 # include "os_mswin.pro"
|
|
50 # endif
|
|
51 # ifdef WIN3264
|
|
52 # include "os_win32.pro"
|
|
53 # include "os_mswin.pro"
|
|
54 # if (defined(__GNUC__) && !defined(__MINGW32__)) \
|
|
55 || (defined(__BORLANDC__) && __BORLANDC__ < 0x502)
|
|
56 extern int _stricoll __ARGS((char *a, char *b));
|
|
57 # endif
|
|
58 # endif
|
|
59 # ifdef VMS
|
|
60 # include "os_vms.pro"
|
|
61 # endif
|
|
62 # ifdef __BEOS__
|
|
63 # include "os_beos.pro"
|
|
64 # endif
|
|
65 # ifdef RISCOS
|
|
66 # include "os_riscos.pro"
|
|
67 # endif
|
|
68 # ifdef __QNX__
|
|
69 # include "os_qnx.pro"
|
|
70 # endif
|
|
71
|
|
72 # include "buffer.pro"
|
|
73 # include "charset.pro"
|
|
74 # ifdef FEAT_CSCOPE
|
|
75 # include "if_cscope.pro"
|
|
76 # endif
|
|
77 # include "diff.pro"
|
|
78 # include "digraph.pro"
|
|
79 # include "edit.pro"
|
|
80 # include "eval.pro"
|
|
81 # include "ex_cmds.pro"
|
|
82 # include "ex_cmds2.pro"
|
|
83 # include "ex_docmd.pro"
|
|
84 # include "ex_eval.pro"
|
|
85 # include "ex_getln.pro"
|
|
86 # include "fileio.pro"
|
|
87 # include "fold.pro"
|
|
88 # include "getchar.pro"
|
|
89 # ifdef FEAT_HANGULIN
|
|
90 # include "hangulin.pro"
|
|
91 # endif
|
440
|
92 # include "hardcopy.pro"
|
119
|
93 # include "hashtable.pro"
|
7
|
94 # include "main.pro"
|
|
95 # include "mark.pro"
|
|
96 # include "memfile.pro"
|
|
97 # include "memline.pro"
|
|
98 # ifdef FEAT_MENU
|
|
99 # include "menu.pro"
|
|
100 # endif
|
272
|
101
|
|
102 # if !defined MESSAGE_FILE || defined(HAVE_STDARG_H)
|
|
103 /* These prototypes cannot be produced automatically and conflict with
|
|
104 * the old-style prototypes in message.c. */
|
|
105 int
|
|
106 # ifdef __BORLANDC__
|
|
107 _RTLENTRYF
|
|
108 # endif
|
|
109 smsg __ARGS((char_u *, ...));
|
|
110 int
|
|
111 # ifdef __BORLANDC__
|
|
112 _RTLENTRYF
|
|
113 # endif
|
|
114 smsg_attr __ARGS((int, char_u *, ...));
|
|
115 int
|
|
116 # ifdef __BORLANDC__
|
|
117 _RTLENTRYF
|
|
118 # endif
|
|
119 vim_snprintf __ARGS((char *, size_t, char *, ...));
|
451
|
120 # if defined(HAVE_STDARG_H)
|
449
|
121 int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs);
|
451
|
122 # endif
|
272
|
123 # endif
|
|
124
|
7
|
125 # include "message.pro"
|
|
126 # include "misc1.pro"
|
|
127 # include "misc2.pro"
|
|
128 #ifndef HAVE_STRPBRK /* not generated automatically from misc2.c */
|
|
129 char_u *vim_strpbrk __ARGS((char_u *s, char_u *charset));
|
|
130 #endif
|
|
131 #ifndef HAVE_QSORT
|
|
132 /* Use our own qsort(), don't define the prototype when not used. */
|
|
133 void qsort __ARGS((void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *)));
|
|
134 #endif
|
|
135 # include "move.pro"
|
|
136 # if defined(FEAT_MBYTE) || defined(FEAT_XIM) || defined(FEAT_KEYMAP) \
|
|
137 || defined(FEAT_POSTSCRIPT)
|
|
138 # include "mbyte.pro"
|
|
139 # endif
|
|
140 # include "normal.pro"
|
|
141 # include "ops.pro"
|
|
142 # include "option.pro"
|
539
|
143 # include "popupmenu.pro"
|
7
|
144 # include "quickfix.pro"
|
|
145 # include "regexp.pro"
|
|
146 # include "screen.pro"
|
|
147 # include "search.pro"
|
220
|
148 # include "spell.pro"
|
7
|
149 # include "syntax.pro"
|
|
150 # include "tag.pro"
|
|
151 # include "term.pro"
|
|
152 # if defined(HAVE_TGETENT) && (defined(AMIGA) || defined(VMS))
|
|
153 # include "termlib.pro"
|
|
154 # endif
|
|
155 # include "ui.pro"
|
|
156 # include "undo.pro"
|
|
157 # include "version.pro"
|
|
158 # include "window.pro"
|
|
159
|
14
|
160 # ifdef FEAT_MZSCHEME
|
|
161 # include "if_mzsch.pro"
|
|
162 # endif
|
|
163
|
7
|
164 # ifdef FEAT_PYTHON
|
|
165 # include "if_python.pro"
|
|
166 # endif
|
|
167
|
|
168 # ifdef FEAT_TCL
|
|
169 # include "if_tcl.pro"
|
|
170 # endif
|
|
171
|
|
172 # ifdef FEAT_RUBY
|
|
173 # include "if_ruby.pro"
|
|
174 # endif
|
|
175
|
|
176 # ifdef FEAT_GUI
|
|
177 # include "gui.pro"
|
|
178 # if defined(UNIX) || defined(MACOS)
|
|
179 # include "pty.pro"
|
|
180 # endif
|
|
181 # if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS)
|
|
182 extern int putenv __ARGS((const char *string)); /* from pty.c */
|
|
183 # ifdef USE_VIMPTY_GETENV
|
|
184 extern char_u *vimpty_getenv __ARGS((const char_u *string)); /* from pty.c */
|
|
185 # endif
|
|
186 # endif
|
|
187 # ifdef FEAT_GUI_W16
|
|
188 # include "gui_w16.pro"
|
|
189 # endif
|
|
190 /* Ugly solution for "BalloonEval" not being defined while it's used in
|
|
191 * the prototypes. */
|
|
192 # ifndef FEAT_BEVAL
|
|
193 # define BalloonEval int
|
|
194 # endif
|
|
195 # ifdef FEAT_GUI_W32
|
|
196 # include "gui_w32.pro"
|
|
197 # endif
|
|
198 # ifdef FEAT_GUI_GTK
|
|
199 # include "gui_gtk.pro"
|
|
200 # include "gui_gtk_x11.pro"
|
|
201 # endif
|
|
202 # ifdef FEAT_GUI_MOTIF
|
|
203 # include "gui_motif.pro"
|
44
|
204 # include "gui_xmdlg.pro"
|
7
|
205 # endif
|
|
206 # ifdef FEAT_GUI_ATHENA
|
|
207 # include "gui_athena.pro"
|
|
208 # ifdef FEAT_BROWSE
|
|
209 extern char *vim_SelFile __ARGS((Widget toplevel, char *prompt, char *init_path, int (*show_entry)(), int x, int y, guicolor_T fg, guicolor_T bg, guicolor_T scroll_fg, guicolor_T scroll_bg));
|
|
210 # endif
|
|
211 # endif
|
|
212 # ifdef FEAT_GUI_MAC
|
|
213 # include "gui_mac.pro"
|
|
214 # endif
|
|
215 # ifdef FEAT_GUI_X11
|
|
216 # include "gui_x11.pro"
|
|
217 # endif
|
|
218 # ifdef RISCOS
|
|
219 # include "gui_riscos.pro"
|
|
220 # endif
|
|
221 # ifdef FEAT_GUI_PHOTON
|
|
222 # include "gui_photon.pro"
|
|
223 # endif
|
|
224 # ifdef FEAT_SUN_WORKSHOP
|
|
225 # include "workshop.pro"
|
|
226 # endif
|
|
227 # ifdef FEAT_NETBEANS_INTG
|
|
228 # include "netbeans.pro"
|
|
229 # endif
|
|
230 # endif /* FEAT_GUI */
|
|
231
|
|
232 # ifdef FEAT_OLE
|
|
233 # include "if_ole.pro"
|
|
234 # endif
|
|
235 # if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11)
|
|
236 # include "if_xcmdsrv.pro"
|
|
237 # endif
|
|
238
|
|
239 /*
|
539
|
240 * The perl include files pollute the namespace, therefore proto.h must be
|
7
|
241 * included before the perl include files. But then CV is not defined, which
|
|
242 * is used in if_perl.pro. To get around this, the perl prototype files are
|
|
243 * not included here for the perl files. Use a dummy define for CV for the
|
|
244 * other files.
|
|
245 */
|
|
246 #if defined(FEAT_PERL) && !defined(IN_PERL_FILE)
|
|
247 # define CV void
|
|
248 # ifdef __BORLANDC__
|
127
|
249 #pragma option -pc
|
7
|
250 # endif
|
|
251 # include "if_perl.pro"
|
|
252 # ifdef __BORLANDC__
|
127
|
253 #pragma option -p.
|
7
|
254 # endif
|
|
255 # include "if_perlsfio.pro"
|
|
256 #endif
|
|
257
|
501
|
258 #if defined(FEAT_MBYTE) && defined(MACOS_X)
|
|
259 # include "os_mac_conv.pro"
|
|
260 #endif
|
|
261
|
7
|
262 #ifdef __BORLANDC__
|
|
263 # define _PROTO_H
|
|
264 #endif
|
|
265 #endif /* !PROTO && !NOPROTO */
|