Mercurial > vim
annotate src/proto.h @ 6083:7cfbad4a78bf v7.4.380
updated for version 7.4.380
Problem: Loading python may cause Vim to exit.
Solution: Avoid loading the "site" module. (Taro Muraoka)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 23 Jul 2014 16:57:00 +0200 |
parents | ff193256398a |
children | 18ac55444b37 |
rev | line source |
---|---|
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" | |
4168 | 50 # include "winclip.pro" |
7 | 51 # endif |
52 # ifdef WIN3264 | |
53 # include "os_win32.pro" | |
54 # include "os_mswin.pro" | |
4168 | 55 # include "winclip.pro" |
7 | 56 # if (defined(__GNUC__) && !defined(__MINGW32__)) \ |
57 || (defined(__BORLANDC__) && __BORLANDC__ < 0x502) | |
58 extern int _stricoll __ARGS((char *a, char *b)); | |
59 # endif | |
60 # endif | |
61 # ifdef VMS | |
62 # include "os_vms.pro" | |
63 # endif | |
64 # ifdef __BEOS__ | |
65 # include "os_beos.pro" | |
66 # endif | |
67 # ifdef __QNX__ | |
68 # include "os_qnx.pro" | |
69 # endif | |
70 | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
71 # ifdef FEAT_CRYPT |
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
72 # include "blowfish.pro" |
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
73 # endif |
7 | 74 # include "buffer.pro" |
75 # include "charset.pro" | |
76 # ifdef FEAT_CSCOPE | |
77 # include "if_cscope.pro" | |
78 # endif | |
79 # include "diff.pro" | |
80 # include "digraph.pro" | |
81 # include "edit.pro" | |
82 # include "eval.pro" | |
83 # include "ex_cmds.pro" | |
84 # include "ex_cmds2.pro" | |
85 # include "ex_docmd.pro" | |
86 # include "ex_eval.pro" | |
87 # include "ex_getln.pro" | |
88 # include "fileio.pro" | |
89 # include "fold.pro" | |
90 # include "getchar.pro" | |
91 # ifdef FEAT_HANGULIN | |
92 # include "hangulin.pro" | |
93 # endif | |
440 | 94 # include "hardcopy.pro" |
799 | 95 # include "hashtab.pro" |
7 | 96 # include "main.pro" |
97 # include "mark.pro" | |
98 # include "memfile.pro" | |
99 # include "memline.pro" | |
100 # ifdef FEAT_MENU | |
101 # include "menu.pro" | |
102 # endif | |
272 | 103 |
104 # if !defined MESSAGE_FILE || defined(HAVE_STDARG_H) | |
105 /* These prototypes cannot be produced automatically and conflict with | |
106 * the old-style prototypes in message.c. */ | |
107 int | |
108 # ifdef __BORLANDC__ | |
109 _RTLENTRYF | |
110 # endif | |
111 smsg __ARGS((char_u *, ...)); | |
2280
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
112 |
272 | 113 int |
114 # ifdef __BORLANDC__ | |
115 _RTLENTRYF | |
116 # endif | |
117 smsg_attr __ARGS((int, char_u *, ...)); | |
2280
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
118 |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
119 int |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
120 # ifdef __BORLANDC__ |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
121 _RTLENTRYF |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
122 # endif |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
123 vim_snprintf_add __ARGS((char *, size_t, char *, ...)); |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
124 |
272 | 125 int |
126 # ifdef __BORLANDC__ | |
127 _RTLENTRYF | |
128 # endif | |
129 vim_snprintf __ARGS((char *, size_t, char *, ...)); | |
2280
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
130 |
451 | 131 # if defined(HAVE_STDARG_H) |
449 | 132 int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs); |
451 | 133 # endif |
272 | 134 # endif |
135 | |
7 | 136 # include "message.pro" |
137 # include "misc1.pro" | |
138 # include "misc2.pro" | |
139 #ifndef HAVE_STRPBRK /* not generated automatically from misc2.c */ | |
140 char_u *vim_strpbrk __ARGS((char_u *s, char_u *charset)); | |
141 #endif | |
142 #ifndef HAVE_QSORT | |
143 /* Use our own qsort(), don't define the prototype when not used. */ | |
144 void qsort __ARGS((void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *))); | |
145 #endif | |
146 # include "move.pro" | |
147 # if defined(FEAT_MBYTE) || defined(FEAT_XIM) || defined(FEAT_KEYMAP) \ | |
148 || defined(FEAT_POSTSCRIPT) | |
149 # include "mbyte.pro" | |
150 # endif | |
151 # include "normal.pro" | |
152 # include "ops.pro" | |
153 # include "option.pro" | |
799 | 154 # include "popupmnu.pro" |
155 # ifdef FEAT_QUICKFIX | |
156 # include "quickfix.pro" | |
157 # endif | |
7 | 158 # include "regexp.pro" |
159 # include "screen.pro" | |
2265
b7cb69ab616d
Added salt to blowfish encryption.
Bram Moolenaar <bram@vim.org>
parents:
2209
diff
changeset
|
160 # if defined(FEAT_CRYPT) || defined(FEAT_PERSISTENT_UNDO) |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
161 # include "sha256.pro" |
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
162 # endif |
7 | 163 # include "search.pro" |
220 | 164 # include "spell.pro" |
7 | 165 # include "syntax.pro" |
166 # include "tag.pro" | |
167 # include "term.pro" | |
168 # if defined(HAVE_TGETENT) && (defined(AMIGA) || defined(VMS)) | |
169 # include "termlib.pro" | |
170 # endif | |
171 # include "ui.pro" | |
172 # include "undo.pro" | |
173 # include "version.pro" | |
174 # include "window.pro" | |
175 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2310
diff
changeset
|
176 # ifdef FEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2310
diff
changeset
|
177 # include "if_lua.pro" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2310
diff
changeset
|
178 # endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2310
diff
changeset
|
179 |
14 | 180 # ifdef FEAT_MZSCHEME |
181 # include "if_mzsch.pro" | |
182 # endif | |
183 | |
7 | 184 # ifdef FEAT_PYTHON |
185 # include "if_python.pro" | |
186 # endif | |
187 | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
188 # ifdef FEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
189 # include "if_python3.pro" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
190 # endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
191 |
7 | 192 # ifdef FEAT_TCL |
193 # include "if_tcl.pro" | |
194 # endif | |
195 | |
196 # ifdef FEAT_RUBY | |
197 # include "if_ruby.pro" | |
198 # endif | |
199 | |
2209
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
200 /* Ugly solution for "BalloonEval" not being defined while it's used in some |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
201 * .pro files. */ |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
202 # ifndef FEAT_BEVAL |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
203 # define BalloonEval int |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
204 # endif |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
205 |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
206 # ifdef FEAT_NETBEANS_INTG |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
207 # include "netbeans.pro" |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
208 # endif |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
209 |
7 | 210 # ifdef FEAT_GUI |
211 # include "gui.pro" | |
212 # if defined(UNIX) || defined(MACOS) | |
213 # include "pty.pro" | |
214 # endif | |
215 # if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS) | |
216 extern int putenv __ARGS((const char *string)); /* from pty.c */ | |
217 # ifdef USE_VIMPTY_GETENV | |
218 extern char_u *vimpty_getenv __ARGS((const char_u *string)); /* from pty.c */ | |
219 # endif | |
220 # endif | |
221 # ifdef FEAT_GUI_W16 | |
222 # include "gui_w16.pro" | |
223 # endif | |
224 # ifdef FEAT_GUI_W32 | |
225 # include "gui_w32.pro" | |
226 # endif | |
227 # ifdef FEAT_GUI_GTK | |
228 # include "gui_gtk.pro" | |
229 # include "gui_gtk_x11.pro" | |
230 # endif | |
231 # ifdef FEAT_GUI_MOTIF | |
232 # include "gui_motif.pro" | |
44 | 233 # include "gui_xmdlg.pro" |
7 | 234 # endif |
235 # ifdef FEAT_GUI_ATHENA | |
236 # include "gui_athena.pro" | |
237 # ifdef FEAT_BROWSE | |
238 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)); | |
239 # endif | |
240 # endif | |
241 # ifdef FEAT_GUI_MAC | |
242 # include "gui_mac.pro" | |
243 # endif | |
244 # ifdef FEAT_GUI_X11 | |
245 # include "gui_x11.pro" | |
246 # endif | |
247 # ifdef FEAT_GUI_PHOTON | |
248 # include "gui_photon.pro" | |
249 # endif | |
250 # ifdef FEAT_SUN_WORKSHOP | |
251 # include "workshop.pro" | |
252 # endif | |
253 # endif /* FEAT_GUI */ | |
254 | |
255 # ifdef FEAT_OLE | |
256 # include "if_ole.pro" | |
257 # endif | |
258 # if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11) | |
259 # include "if_xcmdsrv.pro" | |
260 # endif | |
261 | |
262 /* | |
539 | 263 * The perl include files pollute the namespace, therefore proto.h must be |
7 | 264 * included before the perl include files. But then CV is not defined, which |
265 * is used in if_perl.pro. To get around this, the perl prototype files are | |
266 * not included here for the perl files. Use a dummy define for CV for the | |
267 * other files. | |
268 */ | |
269 #if defined(FEAT_PERL) && !defined(IN_PERL_FILE) | |
270 # define CV void | |
271 # ifdef __BORLANDC__ | |
127 | 272 #pragma option -pc |
7 | 273 # endif |
274 # include "if_perl.pro" | |
275 # ifdef __BORLANDC__ | |
127 | 276 #pragma option -p. |
7 | 277 # endif |
278 # include "if_perlsfio.pro" | |
279 #endif | |
280 | |
763 | 281 #ifdef MACOS_CONVERT |
501 | 282 # include "os_mac_conv.pro" |
283 #endif | |
2310
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
284 #if defined(MACOS_X_UNIX) && defined(FEAT_CLIPBOARD) && !defined(FEAT_GUI) |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
285 /* functions in os_macosx.m */ |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
286 void clip_mch_lose_selection(VimClipboard *cbd); |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
287 int clip_mch_own_selection(VimClipboard *cbd); |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
288 void clip_mch_request_selection(VimClipboard *cbd); |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
289 void clip_mch_set_selection(VimClipboard *cbd); |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
290 #endif |
501 | 291 |
7 | 292 #ifdef __BORLANDC__ |
293 # define _PROTO_H | |
294 #endif | |
295 #endif /* !PROTO && !NOPROTO */ |