blob: 01db6895f4b679ae196bade3c0cec9e0e0a1fb15 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001/* 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 */
Bram Moolenaarcef9dcc2005-12-06 19:50:41 +000023# if !defined(FEAT_X11) && !defined(FEAT_GUI_GTK)
Bram Moolenaar071d4272004-06-13 20:20:40 +000024# 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)
56extern 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
Bram Moolenaar071d4272004-06-13 20:20:40 +000065# ifdef RISCOS
66# include "os_riscos.pro"
67# endif
68# ifdef __QNX__
69# include "os_qnx.pro"
70# endif
71
Bram Moolenaar40e6a712010-05-16 22:32:54 +020072# ifdef FEAT_CRYPT
73# include "blowfish.pro"
74# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000075# include "buffer.pro"
76# include "charset.pro"
77# ifdef FEAT_CSCOPE
78# include "if_cscope.pro"
79# endif
80# include "diff.pro"
81# include "digraph.pro"
82# include "edit.pro"
83# include "eval.pro"
84# include "ex_cmds.pro"
85# include "ex_cmds2.pro"
86# include "ex_docmd.pro"
87# include "ex_eval.pro"
88# include "ex_getln.pro"
89# include "fileio.pro"
90# include "fold.pro"
91# include "getchar.pro"
92# ifdef FEAT_HANGULIN
93# include "hangulin.pro"
94# endif
Bram Moolenaar58d98232005-07-23 22:25:46 +000095# include "hardcopy.pro"
Bram Moolenaarc01140a2006-03-24 22:21:52 +000096# include "hashtab.pro"
Bram Moolenaar071d4272004-06-13 20:20:40 +000097# include "main.pro"
98# include "mark.pro"
Bram Moolenaar071d4272004-06-13 20:20:40 +000099# include "memfile.pro"
100# include "memline.pro"
101# ifdef FEAT_MENU
102# include "menu.pro"
103# endif
Bram Moolenaar9c13b352005-05-19 20:53:52 +0000104
105# if !defined MESSAGE_FILE || defined(HAVE_STDARG_H)
106 /* These prototypes cannot be produced automatically and conflict with
107 * the old-style prototypes in message.c. */
108int
109# ifdef __BORLANDC__
110_RTLENTRYF
111# endif
112smsg __ARGS((char_u *, ...));
Bram Moolenaara800b422010-06-27 01:15:55 +0200113
Bram Moolenaar9c13b352005-05-19 20:53:52 +0000114int
115# ifdef __BORLANDC__
116_RTLENTRYF
117# endif
118smsg_attr __ARGS((int, char_u *, ...));
Bram Moolenaara800b422010-06-27 01:15:55 +0200119
120int
121# ifdef __BORLANDC__
122_RTLENTRYF
123# endif
124vim_snprintf_add __ARGS((char *, size_t, char *, ...));
125
Bram Moolenaar9c13b352005-05-19 20:53:52 +0000126int
127# ifdef __BORLANDC__
128_RTLENTRYF
129# endif
130vim_snprintf __ARGS((char *, size_t, char *, ...));
Bram Moolenaara800b422010-06-27 01:15:55 +0200131
Bram Moolenaar3a6c56e2005-07-30 22:37:17 +0000132# if defined(HAVE_STDARG_H)
Bram Moolenaar4be06f92005-07-29 22:36:03 +0000133int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs);
Bram Moolenaar3a6c56e2005-07-30 22:37:17 +0000134# endif
Bram Moolenaar9c13b352005-05-19 20:53:52 +0000135# endif
136
Bram Moolenaar071d4272004-06-13 20:20:40 +0000137# include "message.pro"
138# include "misc1.pro"
139# include "misc2.pro"
140#ifndef HAVE_STRPBRK /* not generated automatically from misc2.c */
141char_u *vim_strpbrk __ARGS((char_u *s, char_u *charset));
142#endif
143#ifndef HAVE_QSORT
144/* Use our own qsort(), don't define the prototype when not used. */
145void qsort __ARGS((void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *)));
146#endif
147# include "move.pro"
148# if defined(FEAT_MBYTE) || defined(FEAT_XIM) || defined(FEAT_KEYMAP) \
149 || defined(FEAT_POSTSCRIPT)
150# include "mbyte.pro"
151# endif
152# include "normal.pro"
153# include "ops.pro"
154# include "option.pro"
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000155# include "popupmnu.pro"
156# ifdef FEAT_QUICKFIX
157# include "quickfix.pro"
158# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000159# include "regexp.pro"
160# include "screen.pro"
Bram Moolenaar80794b12010-06-13 05:20:42 +0200161# if defined(FEAT_CRYPT) || defined(FEAT_PERSISTENT_UNDO)
Bram Moolenaar40e6a712010-05-16 22:32:54 +0200162# include "sha256.pro"
163# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000164# include "search.pro"
Bram Moolenaar2e4096b2005-03-20 22:25:45 +0000165# include "spell.pro"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000166# include "syntax.pro"
167# include "tag.pro"
168# include "term.pro"
169# if defined(HAVE_TGETENT) && (defined(AMIGA) || defined(VMS))
170# include "termlib.pro"
171# endif
172# include "ui.pro"
173# include "undo.pro"
174# include "version.pro"
175# include "window.pro"
176
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000177# ifdef FEAT_MZSCHEME
178# include "if_mzsch.pro"
179# endif
180
Bram Moolenaar071d4272004-06-13 20:20:40 +0000181# ifdef FEAT_PYTHON
182# include "if_python.pro"
183# endif
184
185# ifdef FEAT_TCL
186# include "if_tcl.pro"
187# endif
188
189# ifdef FEAT_RUBY
190# include "if_ruby.pro"
191# endif
192
Bram Moolenaar67c53842010-05-22 18:28:27 +0200193/* Ugly solution for "BalloonEval" not being defined while it's used in some
194 * .pro files. */
195# ifndef FEAT_BEVAL
196# define BalloonEval int
197# endif
198
199# ifdef FEAT_NETBEANS_INTG
200# include "netbeans.pro"
201# endif
202
Bram Moolenaar071d4272004-06-13 20:20:40 +0000203# ifdef FEAT_GUI
204# include "gui.pro"
205# if defined(UNIX) || defined(MACOS)
206# include "pty.pro"
207# endif
208# if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS)
209extern int putenv __ARGS((const char *string)); /* from pty.c */
210# ifdef USE_VIMPTY_GETENV
211extern char_u *vimpty_getenv __ARGS((const char_u *string)); /* from pty.c */
212# endif
213# endif
214# ifdef FEAT_GUI_W16
215# include "gui_w16.pro"
216# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000217# ifdef FEAT_GUI_W32
218# include "gui_w32.pro"
219# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000220# ifdef FEAT_GUI_GTK
221# include "gui_gtk.pro"
222# include "gui_gtk_x11.pro"
223# endif
224# ifdef FEAT_GUI_MOTIF
225# include "gui_motif.pro"
Bram Moolenaardfccaf02004-12-31 20:56:11 +0000226# include "gui_xmdlg.pro"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000227# endif
228# ifdef FEAT_GUI_ATHENA
229# include "gui_athena.pro"
230# ifdef FEAT_BROWSE
231extern 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));
232# endif
233# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000234# ifdef FEAT_GUI_MAC
235# include "gui_mac.pro"
236# endif
237# ifdef FEAT_GUI_X11
238# include "gui_x11.pro"
239# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000240# ifdef RISCOS
241# include "gui_riscos.pro"
242# endif
243# ifdef FEAT_GUI_PHOTON
244# include "gui_photon.pro"
245# endif
246# ifdef FEAT_SUN_WORKSHOP
247# include "workshop.pro"
248# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000249# endif /* FEAT_GUI */
250
251# ifdef FEAT_OLE
252# include "if_ole.pro"
253# endif
254# if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11)
255# include "if_xcmdsrv.pro"
256# endif
257
258/*
Bram Moolenaarbb15b652005-10-03 21:52:09 +0000259 * The perl include files pollute the namespace, therefore proto.h must be
Bram Moolenaar071d4272004-06-13 20:20:40 +0000260 * included before the perl include files. But then CV is not defined, which
261 * is used in if_perl.pro. To get around this, the perl prototype files are
262 * not included here for the perl files. Use a dummy define for CV for the
263 * other files.
264 */
265#if defined(FEAT_PERL) && !defined(IN_PERL_FILE)
266# define CV void
267# ifdef __BORLANDC__
Bram Moolenaaraab21c32005-01-25 21:46:35 +0000268 #pragma option -pc
Bram Moolenaar071d4272004-06-13 20:20:40 +0000269# endif
270# include "if_perl.pro"
271# ifdef __BORLANDC__
Bram Moolenaaraab21c32005-01-25 21:46:35 +0000272 #pragma option -p.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000273# endif
274# include "if_perlsfio.pro"
275#endif
276
Bram Moolenaardb003512006-03-15 22:48:35 +0000277#ifdef MACOS_CONVERT
Bram Moolenaarda2303d2005-08-30 21:55:26 +0000278# include "os_mac_conv.pro"
279#endif
280
Bram Moolenaar071d4272004-06-13 20:20:40 +0000281#ifdef __BORLANDC__
282# define _PROTO_H
283#endif
284#endif /* !PROTO && !NOPROTO */