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