blob: 611657863a41603c879abc2f08ece1ca9ee4c078 [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 Moolenaar843ee412004-06-30 16:16:41 +000023# if !defined(FEAT_X11) && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_KDE)
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
65# ifdef MACOS
66# include "os_mac.pro"
67# endif
68# ifdef RISCOS
69# include "os_riscos.pro"
70# endif
71# ifdef __QNX__
72# include "os_qnx.pro"
73# endif
74
75# 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 Moolenaar383f9bc2005-01-19 22:18:32 +000096# include "hashtable.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 *, ...));
113int
114# ifdef __BORLANDC__
115_RTLENTRYF
116# endif
117smsg_attr __ARGS((int, char_u *, ...));
118int
119# ifdef __BORLANDC__
120_RTLENTRYF
121# endif
122vim_snprintf __ARGS((char *, size_t, char *, ...));
Bram Moolenaar3a6c56e2005-07-30 22:37:17 +0000123# if defined(HAVE_STDARG_H)
Bram Moolenaar4be06f92005-07-29 22:36:03 +0000124int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs);
Bram Moolenaar3a6c56e2005-07-30 22:37:17 +0000125# endif
Bram Moolenaar9c13b352005-05-19 20:53:52 +0000126# endif
127
Bram Moolenaar071d4272004-06-13 20:20:40 +0000128# include "message.pro"
129# include "misc1.pro"
130# include "misc2.pro"
131#ifndef HAVE_STRPBRK /* not generated automatically from misc2.c */
132char_u *vim_strpbrk __ARGS((char_u *s, char_u *charset));
133#endif
134#ifndef HAVE_QSORT
135/* Use our own qsort(), don't define the prototype when not used. */
136void qsort __ARGS((void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *)));
137#endif
138# include "move.pro"
139# if defined(FEAT_MBYTE) || defined(FEAT_XIM) || defined(FEAT_KEYMAP) \
140 || defined(FEAT_POSTSCRIPT)
141# include "mbyte.pro"
142# endif
143# include "normal.pro"
144# include "ops.pro"
145# include "option.pro"
146# include "quickfix.pro"
147# include "regexp.pro"
148# include "screen.pro"
149# include "search.pro"
Bram Moolenaar2e4096b2005-03-20 22:25:45 +0000150# include "spell.pro"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000151# include "syntax.pro"
152# include "tag.pro"
153# include "term.pro"
154# if defined(HAVE_TGETENT) && (defined(AMIGA) || defined(VMS))
155# include "termlib.pro"
156# endif
157# include "ui.pro"
158# include "undo.pro"
159# include "version.pro"
160# include "window.pro"
161
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000162# ifdef FEAT_MZSCHEME
163# include "if_mzsch.pro"
164# endif
165
Bram Moolenaar071d4272004-06-13 20:20:40 +0000166# ifdef FEAT_PYTHON
167# include "if_python.pro"
168# endif
169
170# ifdef FEAT_TCL
171# include "if_tcl.pro"
172# endif
173
174# ifdef FEAT_RUBY
175# include "if_ruby.pro"
176# endif
177
178# ifdef FEAT_GUI
179# include "gui.pro"
180# if defined(UNIX) || defined(MACOS)
181# include "pty.pro"
182# endif
183# if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS)
184extern int putenv __ARGS((const char *string)); /* from pty.c */
185# ifdef USE_VIMPTY_GETENV
186extern char_u *vimpty_getenv __ARGS((const char_u *string)); /* from pty.c */
187# endif
188# endif
189# ifdef FEAT_GUI_W16
190# include "gui_w16.pro"
191# endif
192 /* Ugly solution for "BalloonEval" not being defined while it's used in
193 * the prototypes. */
194# ifndef FEAT_BEVAL
195# define BalloonEval int
196# endif
197# ifdef FEAT_GUI_W32
198# include "gui_w32.pro"
199# endif
Bram Moolenaar843ee412004-06-30 16:16:41 +0000200# ifdef FEAT_GUI_KDE
201# include "gui_kde.pro"
202# include "gui_kde_x11.pro"
203# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000204# ifdef FEAT_GUI_GTK
205# include "gui_gtk.pro"
206# include "gui_gtk_x11.pro"
207# endif
208# ifdef FEAT_GUI_MOTIF
209# include "gui_motif.pro"
Bram Moolenaardfccaf02004-12-31 20:56:11 +0000210# include "gui_xmdlg.pro"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000211# endif
212# ifdef FEAT_GUI_ATHENA
213# include "gui_athena.pro"
214# ifdef FEAT_BROWSE
215extern 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));
216# endif
217# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000218# ifdef FEAT_GUI_MAC
219# include "gui_mac.pro"
220# endif
221# ifdef FEAT_GUI_X11
222# include "gui_x11.pro"
223# endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000224# ifdef RISCOS
225# include "gui_riscos.pro"
226# endif
227# ifdef FEAT_GUI_PHOTON
228# include "gui_photon.pro"
229# endif
230# ifdef FEAT_SUN_WORKSHOP
231# include "workshop.pro"
232# endif
233# ifdef FEAT_NETBEANS_INTG
234# include "netbeans.pro"
235# endif
236# endif /* FEAT_GUI */
237
238# ifdef FEAT_OLE
239# include "if_ole.pro"
240# endif
241# if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11)
242# include "if_xcmdsrv.pro"
243# endif
244
245/*
246 * The perl include files pollute the namespace, therfore proto.h must be
247 * included before the perl include files. But then CV is not defined, which
248 * is used in if_perl.pro. To get around this, the perl prototype files are
249 * not included here for the perl files. Use a dummy define for CV for the
250 * other files.
251 */
252#if defined(FEAT_PERL) && !defined(IN_PERL_FILE)
253# define CV void
254# ifdef __BORLANDC__
Bram Moolenaaraab21c32005-01-25 21:46:35 +0000255 #pragma option -pc
Bram Moolenaar071d4272004-06-13 20:20:40 +0000256# endif
257# include "if_perl.pro"
258# ifdef __BORLANDC__
Bram Moolenaaraab21c32005-01-25 21:46:35 +0000259 #pragma option -p.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000260# endif
261# include "if_perlsfio.pro"
262#endif
263
Bram Moolenaarda2303d2005-08-30 21:55:26 +0000264#if defined(FEAT_MBYTE) && defined(MACOS_X)
265# include "os_mac_conv.pro"
266#endif
267
Bram Moolenaar071d4272004-06-13 20:20:40 +0000268#ifdef __BORLANDC__
269# define _PROTO_H
270#endif
271#endif /* !PROTO && !NOPROTO */