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.
10 * proto.h: include the (automatically generated) function prototypes
14 * Don't include these while generating prototypes. Prevents problems when
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)
29 # define GdkEventKey int
36 # include "os_amiga.pro"
38 # if defined(UNIX) || defined(__EMX__) || defined(VMS)
39 # include "os_unix.pro"
41 # if defined(MSDOS) || defined(WIN16)
42 # include "os_msdos.pro"
46 typedef LPCSTR LPCWSTR
;
48 # include "os_win16.pro"
49 # include "os_mswin.pro"
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
));
60 # include "os_vms.pro"
63 # include "os_beos.pro"
66 # include "os_riscos.pro"
69 # include "os_qnx.pro"
72 # include "buffer.pro"
73 # include "charset.pro"
75 # include "if_cscope.pro"
78 # include "digraph.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"
88 # include "getchar.pro"
90 # include "hangulin.pro"
92 # include "hardcopy.pro"
93 # include "hashtab.pro"
96 # include "memfile.pro"
97 # include "memline.pro"
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. */
109 smsg
__ARGS((char_u
*, ...));
114 smsg_attr
__ARGS((int, char_u
*, ...));
119 vim_snprintf
__ARGS((char *, size_t, char *, ...));
120 # if defined(HAVE_STDARG_H)
121 int vim_vsnprintf(char *str
, size_t str_m
, char *fmt
, va_list ap
, typval_T
*tvs
);
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
));
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 *)));
136 # if defined(FEAT_MBYTE) || defined(FEAT_XIM) || defined(FEAT_KEYMAP) \
137 || defined(FEAT_POSTSCRIPT)
138 # include "mbyte.pro"
140 # include "normal.pro"
142 # include "option.pro"
143 # include "popupmnu.pro"
144 # ifdef FEAT_QUICKFIX
145 # include "quickfix.pro"
147 # include "regexp.pro"
148 # include "screen.pro"
149 # include "search.pro"
150 # include "spell.pro"
151 # include "syntax.pro"
154 # if defined(HAVE_TGETENT) && (defined(AMIGA) || defined(VMS))
155 # include "termlib.pro"
159 # include "version.pro"
160 # include "window.pro"
162 # ifdef FEAT_MZSCHEME
163 # include "if_mzsch.pro"
167 # include "if_python.pro"
171 # include "if_tcl.pro"
175 # include "if_ruby.pro"
180 # if defined(UNIX) || defined(MACOS)
183 # if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS)
184 extern int putenv
__ARGS((const char *string
)); /* from pty.c */
185 # ifdef USE_VIMPTY_GETENV
186 extern char_u
*vimpty_getenv
__ARGS((const char_u
*string
)); /* from pty.c */
190 # include "gui_w16.pro"
192 /* Ugly solution for "BalloonEval" not being defined while it's used in
195 # define BalloonEval int
198 # include "gui_w32.pro"
201 # include "gui_gtk.pro"
202 # include "gui_gtk_x11.pro"
204 # ifdef FEAT_GUI_MOTIF
205 # include "gui_motif.pro"
206 # include "gui_xmdlg.pro"
208 # ifdef FEAT_GUI_ATHENA
209 # include "gui_athena.pro"
211 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
));
215 # include "gui_mac.pro"
218 # include "gui_x11.pro"
221 # include "gui_riscos.pro"
223 # ifdef FEAT_GUI_PHOTON
224 # include "gui_photon.pro"
226 # ifdef FEAT_SUN_WORKSHOP
227 # include "workshop.pro"
229 # ifdef FEAT_NETBEANS_INTG
230 # include "netbeans.pro"
232 # endif /* FEAT_GUI */
235 # include "if_ole.pro"
237 # if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11)
238 # include "if_xcmdsrv.pro"
242 * The perl include files pollute the namespace, therefore proto.h must be
243 * included before the perl include files. But then CV is not defined, which
244 * is used in if_perl.pro. To get around this, the perl prototype files are
245 * not included here for the perl files. Use a dummy define for CV for the
248 #if defined(FEAT_PERL) && !defined(IN_PERL_FILE)
253 # include "if_perl.pro"
257 # include "if_perlsfio.pro"
261 # include "os_mac_conv.pro"
267 #endif /* !PROTO && !NOPROTO */