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