Merge branch 'vim-with-runtime' into feat/code-check
[vim_extended.git] / src / proto.h
blob9bbdc8a24d4c3fb05b4621f5517bfc1f64ac489d
1 /* vi:set ts=8 sts=4 sw=4:
3 * VIM - Vi IMproved by Bram Moolenaar
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 */
9 /*
10 * proto.h: include the (automatically generated) function prototypes
14 * Don't include these while generating prototypes. Prevents problems when
15 * files are missing.
17 #if !defined(PROTO) && !defined(NOPROTO)
20 * Machine-dependent routines.
22 /* avoid errors in function prototypes */
23 # if !defined(FEAT_X11) && !defined(FEAT_GUI_GTK)
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
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
72 # include "buffer.pro"
73 # include "charset.pro"
74 # include "code_check.pro"
75 # ifdef FEAT_CSCOPE
76 # include "if_cscope.pro"
77 # endif
78 # include "diff.pro"
79 # include "digraph.pro"
80 # include "edit.pro"
81 # include "eval.pro"
82 # include "ex_cmds.pro"
83 # include "ex_cmds2.pro"
84 # include "ex_docmd.pro"
85 # include "ex_eval.pro"
86 # include "ex_getln.pro"
87 # include "fileio.pro"
88 # include "fold.pro"
89 # include "getchar.pro"
90 # ifdef FEAT_HANGULIN
91 # include "hangulin.pro"
92 # endif
93 # include "hardcopy.pro"
94 # include "hashtab.pro"
95 # include "main.pro"
96 # include "mark.pro"
97 # include "memfile.pro"
98 # include "memline.pro"
99 # ifdef FEAT_MENU
100 # include "menu.pro"
101 # endif
103 # if !defined MESSAGE_FILE || defined(HAVE_STDARG_H)
104 /* These prototypes cannot be produced automatically and conflict with
105 * the old-style prototypes in message.c. */
107 # ifdef __BORLANDC__
108 _RTLENTRYF
109 # endif
110 smsg __ARGS((char_u *, ...));
112 # ifdef __BORLANDC__
113 _RTLENTRYF
114 # endif
115 smsg_attr __ARGS((int, char_u *, ...));
117 # ifdef __BORLANDC__
118 _RTLENTRYF
119 # endif
120 vim_snprintf __ARGS((char *, size_t, char *, ...));
121 # if defined(HAVE_STDARG_H)
122 int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs);
123 # endif
124 # endif
126 # include "message.pro"
127 # include "misc1.pro"
128 # include "misc2.pro"
129 #ifndef HAVE_STRPBRK /* not generated automatically from misc2.c */
130 char_u *vim_strpbrk __ARGS((char_u *s, char_u *charset));
131 #endif
132 #ifndef HAVE_QSORT
133 /* Use our own qsort(), don't define the prototype when not used. */
134 void qsort __ARGS((void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *)));
135 #endif
136 # include "move.pro"
137 # if defined(FEAT_MBYTE) || defined(FEAT_XIM) || defined(FEAT_KEYMAP) \
138 || defined(FEAT_POSTSCRIPT)
139 # include "mbyte.pro"
140 # endif
141 # include "normal.pro"
142 # include "ops.pro"
143 # include "option.pro"
144 # include "popupmnu.pro"
145 # ifdef FEAT_QUICKFIX
146 # include "quickfix.pro"
147 # endif
148 # include "regexp.pro"
149 # include "screen.pro"
150 # include "search.pro"
151 # include "spell.pro"
152 # include "syntax.pro"
153 # include "tag.pro"
154 # include "term.pro"
155 # if defined(HAVE_TGETENT) && (defined(AMIGA) || defined(VMS))
156 # include "termlib.pro"
157 # endif
158 # include "ui.pro"
159 # include "undo.pro"
160 # include "version.pro"
161 # include "window.pro"
163 # ifdef FEAT_MZSCHEME
164 # include "if_mzsch.pro"
165 # endif
167 # ifdef FEAT_PYTHON
168 # include "if_python.pro"
169 # endif
171 # ifdef FEAT_TCL
172 # include "if_tcl.pro"
173 # endif
175 # ifdef FEAT_RUBY
176 # include "if_ruby.pro"
177 # endif
179 # ifdef FEAT_GUI
180 # include "gui.pro"
181 # if defined(UNIX) || defined(MACOS)
182 # include "pty.pro"
183 # endif
184 # if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS)
185 extern int putenv __ARGS((const char *string)); /* from pty.c */
186 # ifdef USE_VIMPTY_GETENV
187 extern char_u *vimpty_getenv __ARGS((const char_u *string)); /* from pty.c */
188 # endif
189 # endif
190 # ifdef FEAT_GUI_W16
191 # include "gui_w16.pro"
192 # endif
193 /* Ugly solution for "BalloonEval" not being defined while it's used in
194 * the prototypes. */
195 # ifndef FEAT_BEVAL
196 # define BalloonEval int
197 # endif
198 # ifdef FEAT_GUI_W32
199 # include "gui_w32.pro"
200 # endif
201 # ifdef FEAT_GUI_GTK
202 # include "gui_gtk.pro"
203 # include "gui_gtk_x11.pro"
204 # endif
205 # ifdef FEAT_GUI_MOTIF
206 # include "gui_motif.pro"
207 # include "gui_xmdlg.pro"
208 # endif
209 # ifdef FEAT_GUI_ATHENA
210 # include "gui_athena.pro"
211 # ifdef FEAT_BROWSE
212 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));
213 # endif
214 # endif
215 # ifdef FEAT_GUI_MAC
216 # include "gui_mac.pro"
217 # endif
218 # ifdef FEAT_GUI_X11
219 # include "gui_x11.pro"
220 # endif
221 # ifdef RISCOS
222 # include "gui_riscos.pro"
223 # endif
224 # ifdef FEAT_GUI_PHOTON
225 # include "gui_photon.pro"
226 # endif
227 # ifdef FEAT_SUN_WORKSHOP
228 # include "workshop.pro"
229 # endif
230 # ifdef FEAT_NETBEANS_INTG
231 # include "netbeans.pro"
232 # endif
233 # endif /* FEAT_GUI */
235 # ifdef FEAT_OLE
236 # include "if_ole.pro"
237 # endif
238 # if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11)
239 # include "if_xcmdsrv.pro"
240 # endif
243 * The perl include files pollute the namespace, therefore proto.h must be
244 * included before the perl include files. But then CV is not defined, which
245 * is used in if_perl.pro. To get around this, the perl prototype files are
246 * not included here for the perl files. Use a dummy define for CV for the
247 * other files.
249 #if defined(FEAT_PERL) && !defined(IN_PERL_FILE)
250 # define CV void
251 # ifdef __BORLANDC__
252 #pragma option -pc
253 # endif
254 # include "if_perl.pro"
255 # ifdef __BORLANDC__
256 #pragma option -p.
257 # endif
258 # include "if_perlsfio.pro"
259 #endif
261 #ifdef MACOS_CONVERT
262 # include "os_mac_conv.pro"
263 #endif
265 #ifdef __BORLANDC__
266 # define _PROTO_H
267 #endif
268 #endif /* !PROTO && !NOPROTO */